/* Custom Premium Styles for NoubtiGO SaaS Landing Page */

:root {
    --brand-primary: #22c55e;
    --brand-primary-hover: #16a34a;
    --brand-secondary: #06b6d4;
    --brand-secondary-hover: #0891b2;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    
    --bg-light: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-dark: #0f172a;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --border-light: rgba(15, 23, 42, 0.06);
    --border-strong: rgba(15, 23, 42, 0.12);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    
    --shadow-glow: 0 0 40px rgba(34, 197, 90, 0.15);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

[dir="rtl"] {
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* Common Classes & Elements */
.text-brand {
    color: var(--brand-primary) !important;
}

.bg-brand {
    background-color: var(--brand-primary) !important;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-brand {
    background: rgba(34, 197, 94, 0.08);
    color: var(--brand-primary);
    border: 1px solid rgba(34, 197, 94, 0.15);
    font-weight: 600;
    font-size: 0.8rem;
}

.hover-up {
    transition: var(--transition-base);
}
.hover-up:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   Buttons Custom Override
   ========================================================================== */
.btn-primary {
    background: var(--brand-gradient);
    border: none;
    transition: var(--transition-base);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-gradient);
    filter: brightness(0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}
.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}
.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background-color: var(--bg-subtle);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* ==========================================================================
   Navbar custom styling
   ========================================================================== */
#navbar {
    transition: var(--transition-base);
    background: transparent;
    border-bottom: 1px solid transparent;
}
#navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Mobile menu open: always solid white background */
@media (max-width: 991.98px) {
    #navbar.show,
    #navbar:has(#navContent.show) {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        box-shadow: var(--shadow-md) !important;
    }

    #navContent {
        background: #ffffff;
        border-top: 1px solid var(--border-light);
        padding: 1rem 0;
        margin-top: 0.5rem;
    }

    #navContent .nav-link {
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
    }

    #navContent .nav-link:hover {
        background-color: rgba(34, 197, 94, 0.07);
        color: var(--brand-primary) !important;
    }

    #navContent .nav-buttons {
        flex-direction: column;
        align-items: flex-start !important;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-light);
        margin-top: 0.5rem;
    }
}

.select-lang {
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 60px;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
}
.select-lang:focus {
    box-shadow: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-content-box {
    animation: fadeInUp 0.8s ease-out;
}

.hero-mockup-container {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    z-index: 5;
    max-width: 960px;
}

.mockup-frame {
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    transition: var(--transition-base);
}
.mockup-frame:hover {
    transform: translateY(-5px);
}

.browser-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.floating-mockup-badge {
    position: absolute;
    z-index: 10;
    border: 1px solid var(--border-light);
    animation: floatUpDown 6s ease-in-out infinite;
}
.floating-mockup-badge.badge-1 {
    top: 30%;
    left: -80px;
}
.floating-mockup-badge.badge-2 {
    bottom: 25%;
    right: -80px;
    animation-delay: -3s;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.hero-bg-shapes .shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.05);
}
.hero-bg-shapes .shape-2 {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.05);
}

/* ==========================================================================
   Problem / Solution Section
   ========================================================================== */
.py-6 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.card-problem {
    background-color: rgba(239, 68, 68, 0.05) !important;
    border: 1px solid rgba(239, 68, 68, 0.12) !important;
}

.card-solution {
    background-color: rgba(34, 197, 94, 0.05) !important;
    border: 1px solid rgba(34, 197, 94, 0.12) !important;
}

.text-danger-emphasis {
    color: #b91c1c !important; /* Rich visible dark red */
}

.text-success-emphasis {
    color: #15803d !important; /* Rich visible dark green */
}

.text-muted-dark {
    color: #475569 !important; /* Slate grey for maximum text contrast */
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-list li i {
    font-size: 1.15rem;
}
.solution-list li i {
    font-size: 1.15rem;
}

/* ==========================================================================
   Features Bento Grid
   ========================================================================== */
.feature-card {
    transition: var(--transition-base);
    border: 1px solid var(--border-light) !important;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--brand-primary);
}

.bg-white-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(34, 197, 94, 0.04) 100%);
    border: 1px solid var(--border-strong) !important;
}

/* ==========================================================================
   How It Works Timeline
   ========================================================================== */
.timeline-row::before {
    content: '';
    position: absolute;
    top: 64px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--border-strong);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 5;
}

.step-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 4px solid white;
}

/* ==========================================================================
   Screenshots Section
   ========================================================================== */
.pills-custom .nav-link {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-strong);
    transition: var(--transition-base);
}
.pills-custom .nav-link.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.screenshot-box {
    border: 1px solid var(--border-strong);
}

/* ==========================================================================
   Industry Use Cases
   ========================================================================== */
.use-case-card {
    transition: var(--transition-base);
    border: 1px solid var(--border-light) !important;
}
.use-case-card:hover {
    transform: translateY(-5px);
    background-color: white !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
    box-shadow: var(--shadow-md) !important;
}

.use-case-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-section {
    background: var(--brand-gradient) !important;
}

.benefit-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-base);
}
.benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   Pricing Custom Styles
   ========================================================================== */
.pricing-card {
    transition: var(--transition-base);
    border: 1px solid var(--border-strong) !important;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.plan-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--brand-primary);
}

.border-brand {
    border: 2px solid var(--brand-primary) !important;
}

.popular-tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 99px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

.toggle-label {
    color: var(--text-muted);
    transition: var(--transition-base);
    font-weight: 600;
}
.toggle-label.active {
    color: var(--brand-primary) !important;
}

.toggle-switch-box {
    display: inline-flex;
    align-items: center;
}

.form-switch .form-check-input {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    transition: var(--transition-base);
    box-shadow: none !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.15) !important;
}

.price-amount {
    transition: opacity 0.15s ease-in-out;
}
.price-updating {
    opacity: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.accordion-custom .accordion-item {
    border: 1px solid var(--border-light) !important;
}
.accordion-custom .accordion-button {
    color: var(--text-main);
    background: transparent;
    box-shadow: none;
}
.accordion-custom .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    background: transparent;
}
.accordion-custom .accordion-button::after {
    filter: grayscale(1) opacity(0.5);
}
.accordion-custom .accordion-button:not(.collapsed)::after {
    filter: none;
}

/* ==========================================================================
   Footer Custom Styles
   ========================================================================== */
.brightness-invert {
    filter: brightness(0) invert(1);
}

.footer-section {
    background-color: #0b0f19 !important; /* Slightly darker slate for better contrast */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.text-footer-muted {
    color: #cbd5e1 !important; /* Highly readable light grey */
}

.footer-links a {
    color: #94a3b8 !important;
    transition: var(--transition-base);
    text-decoration: none;
}
.footer-links a:hover, .lang-switcher-bottom:hover {
    color: var(--brand-primary) !important;
    text-decoration: underline;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: #cbd5e1 !important;
}
.social-links a:hover {
    background: var(--brand-gradient);
    color: white !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Responsive Modifiers
   ========================================================================== */
@media (max-width: 1024px) {
    .floating-mockup-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .py-6 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .timeline-row::before {
        display: none;
    }
    
    .timeline-col {
        margin-bottom: 2rem;
    }
    .timeline-col:last-child {
        margin-bottom: 0;
    }
}
