/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c3ce1;
    --primary-dark: #4f22b8;
    --primary-light: #8b5cf6;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --bg-light: #f0f2f8;
    --white: #ffffff;
    --border: #e5e7eb;
    --nav-height: 68px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-dark: #f8f9fa;
    --text-muted: #b8bcc4;
    --bg-light: #0f0f1e;
    --white: #1a1a2e;
    --border: #2a2a3e;
    --nav-bg: rgba(15, 15, 30, 0.92);
    --card-bg: #1a1a2e;
    --card-hover-bg: #22223a;
}

/* Light Theme Variables (explicit) */
[data-theme="light"] {
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --bg-light: #f0f2f8;
    --white: #ffffff;
    --border: #e5e7eb;
    --nav-bg: rgba(240, 242, 248, 0.92);
    --card-bg: #ffffff;
    --card-hover-bg: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo{
    height: 82px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(108,60,225,0.1));
}

.nav-logo:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(108,60,225,0.2));
}

.icon{
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-store-btn:hover .icon {
    transform: scale(1.1) rotate(-2deg);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg, rgba(240, 242, 248, 0.92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 60, 225, 0.08);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(108, 60, 225, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover {
    background: rgba(108, 60, 225, 0.08);
    color: var(--primary);
}

.nav-links .chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-links li:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
/* ===========================================
   DROPDOWN MENU FIX (100% SOLID BACKGROUND)
=========================================== */
.nav-links > li {
    position: relative;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    margin-top: 12px;
    left: 0;
    /* Force 100% Solid White for Light Mode */
    background: #ffffff !important; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e5e7eb !important;
    min-width: 200px;
    padding: 8px;
    z-index: 99999 !important;
    transform: translateY(15px);
    transition: all 0.4s ease !important;
    backdrop-filter: none !important; /* Glass effect hata diya */
    -webkit-backdrop-filter: none !important;
}

/* Force 100% Solid Dark for Dark Mode */
[data-theme="dark"] .dropdown-menu {
    background: #1a1a2e !important; 
    border-color: #2a2a3e !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Invisible Bridge */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* Hover par show hoga */
.nav-links li:hover .dropdown-menu {
    visibility: visible;
    opacity: 1 !important;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e !important;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .dropdown-menu a {
    color: #f8f9fa !important;
}

.dropdown-menu a:hover {
    background-color: rgba(108, 60, 225, 0.1) !important;
    color: #6c3ce1 !important;
}
/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-ask-ai {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-ask-ai:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-ask-ai .ai-icon {
    font-size: 1rem;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: background 0.2s;
}

.nav-icon-btn:hover {
    background: rgba(108, 60, 225, 0.08);
}

.nav-currency {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-currency:hover {
    background: rgba(108, 60, 225, 0.08);
}

.btn-login {
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(108, 60, 225, 0.35);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,60,225,0.08) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(108,60,225,0.15) 0%, transparent 70%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Hero Left */
.hero-content {
    max-width: 600px;
    animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(2.6rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-create {
    padding: 16px 36px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-create:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 60, 225, 0.35);
}

.app-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--card-bg, var(--white));
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.3s;
}

.app-store-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108,60,225,0.15);
    transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg, var(--white));
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    transition: background 0.3s ease;
}

.badge-icon {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge:hover .badge-icon {
    transform: scale(1.2) rotate(5deg);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Hero Right - Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.phone-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    transition: transform 0.5s ease;
}

.phone-wrapper:hover {
    transform: scale(1.03);
}

.phone-wrapper img.phone-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 70px rgba(108,60,225,0.3));
    animation: float 4s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.phone-wrapper:hover img.phone-img {
    filter: drop-shadow(0 30px 80px rgba(108,60,225,0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Floating Badges on phone */
.floating-badge {
    position: absolute;
    background: var(--card-bg, var(--white));
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    animation: floatPulse 4s ease-in-out infinite;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.floating-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(108,60,225,0.25);
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

.floating-badge.badge-futures {
    top: 58%;
    right: -4%;
    animation-delay: 0.5s;
    color: var(--text-dark);
    line-height: 1.5;
}

.floating-badge.badge-futures span {
    color: var(--primary);
    font-weight: 700;
}

.floating-badge.badge-coins {
    bottom: 54%;
    left: -2%;
    animation-delay: 1s;
    color: var(--text-muted);
    line-height: 1.5;
}

.floating-badge.badge-coins strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Decorative orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.orb-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a78bfa, #6c3ce1);
    top: 8%;
    left: 5%;
    opacity: 0.7;
    animation: floatOrb1 5s ease-in-out infinite;
    animation-delay: 0.3s;
    box-shadow: 0 0 30px rgba(167,139,250,0.4);
}

.orb-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    bottom: 12%;
    right: 6%;
    opacity: 0.65;
    animation: floatOrb2 4.5s ease-in-out infinite;
    animation-delay: 1.2s;
    box-shadow: 0 0 30px rgba(96,165,250,0.4);
}

.orb-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #34d399, #059669);
    top: 55%;
    left: 0%;
    opacity: 0.6;
    animation: floatOrb3 6s ease-in-out infinite;
    animation-delay: 0.8s;
    box-shadow: 0 0 30px rgba(52,211,153,0.4);
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(10px, -15px) scale(1.1); }
    66%       { transform: translate(-8px, 12px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(-12px, 10px) scale(1.08); }
    66%       { transform: translate(8px, -14px) scale(0.92); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(15px, 8px) scale(1.12); }
    66%       { transform: translate(-10px, -12px) scale(0.9); }
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    animation: slideDown 0.25s ease;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .mobile-nav {
    background: #1a1a2e;
    border-top-color: #2a2a3e;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

[data-theme="dark"] .mobile-nav a {
    color: #f8f9fa;
}

.mobile-nav a:hover {
    background: rgba(108,60,225,0.07);
    color: var(--primary);
}

[data-theme="dark"] .mobile-nav a:hover {
    background: rgba(108,60,225,0.15);
    color: #a78bfa;
}

.mobile-nav .btn-login-mobile {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 13px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .btn-ask-ai { display: none; }
    .nav-currency { display: none; }
    .hamburger { display: flex; }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 40px 20px 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-wrapper {
        max-width: 340px;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 10px 14px;
    }

    .floating-badge.badge-futures {
        right: 0;
    }
    
    .feature-img-wrap {
        width: 160px;
        height: 140px;
    }
    
    .learn-card {
        width: 320px;
        height: 280px;
    }
    
    .saber-card-img {
        width: 80px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .btn-login { display: none; }
    .btn-login-mobile { display: block; }
    .trust-badges { gap: 6px; }
    .badge { padding: 10px 12px; }
}


/* ===========================================
   STATS BAR
=========================================== */
.stats-bar {
    background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    transition: background 0.3s ease;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 8px 32px;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

/* ===========================================
   FEATURES SECTION
=========================================== */
.features-section {
    background: var(--bg-light);
    padding: 80px 24px 70px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    perspective: 1000px;
}

.feature-card {
    text-align: center;
    padding: 24px 28px 16px;
    transition: background 0.3s ease, transform 0.4s ease;
    border-radius: 16px;
}

.feature-card:hover {
    background: var(--card-hover-bg, rgba(108,60,225,0.03));
    transform: translateY(-8px);
}

.feature-img-wrap {
    width: 220px;
    height: 200px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-img-wrap {
    transform: translateY(-10px) scale(1.08);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-img {
    filter: drop-shadow(0 12px 24px rgba(108,60,225,0.2));
    transform: rotate(-2deg);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 260px;
    margin: 0 auto;
}

/* ===== EXPANDABLE CARD STYLES ===== */
.expandable-card {
    cursor: pointer;
    position: relative;
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s;
    line-height: 1;
    margin-left: 8px;
}

.expandable-card.expanded .expand-icon {
    transform: rotate(45deg);
}

.feature-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.expandable-card.expanded .feature-expanded-content {
    max-height: 400px;
    margin-top: 20px;
}

.feature-details {
    list-style: none;
    padding: 20px;
    background: rgba(108, 62, 244, 0.05);
    border-radius: 12px;
    text-align: left;
}

.feature-details li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-details li:last-child {
    border-bottom: none;
}

.why-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.expandable-card.expanded .why-expanded-content {
    max-height: 400px;
    margin-top: 20px;
}

.why-details {
    list-style: none;
    padding: 20px;
    background: rgba(108, 62, 244, 0.05);
    border-radius: 12px;
    text-align: left;
}

.why-details li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.why-details li:last-child {
    border-bottom: none;
}

/* ===========================================
   CTA SECTION
=========================================== */
.cta-section {
    background: var(--bg-light);
    padding: 20px 24px 80px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.btn-signup {
    display: inline-block;
    padding: 15px 44px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 60, 225, 0.35);
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 900px) {
    .feature-img-wrap {
        width: 180px;
        height: 160px;
    }
    
    .phone-wrapper {
        max-width: 480px;
    }
}

@media (max-width: 700px) {
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-item { padding: 0; }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* ===========================================
   PORTFOLIO SECTION
=========================================== */
.portfolio-section {
    background: var(--card-bg, var(--white));
    padding: 80px 24px;
    transition: background 0.3s ease;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 70px;
}

/* Row */
.portfolio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 90px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.portfolio-row:nth-child(1) {
    animation-delay: 0.2s;
}

.portfolio-row:nth-child(2) {
    animation-delay: 0.4s;
}

.portfolio-row:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-row:last-child {
    margin-bottom: 0;
}

/* Image right by default, reverse for Futures */
.portfolio-row.row-reverse {
    direction: rtl;
}

.portfolio-row.row-reverse > * {
    direction: ltr;
}

/* Content */
.portfolio-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.portfolio-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.portfolio-list {
    list-style: none;
    margin-bottom: 28px;
}

.portfolio-list li {
    position: relative;
    padding-left: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.portfolio-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.btn-portfolio {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 28px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-portfolio:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.3);
}

/* Stats row */
.portfolio-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg, var(--white));
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    width: fit-content;
    transition: background 0.3s ease;
}

.pstat {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.pstat:first-child {
    padding-left: 0;
}

.pstat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.pstat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pstat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* Image - Clean no-border style like Mudrex */
.portfolio-img-wrap {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.5s ease;
    position: relative;
}

.portfolio-img-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, rgba(108,60,225,0.15), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    border-radius: 12px;
    filter: blur(20px);
}

.portfolio-img-wrap:hover::before {
    opacity: 1;
}

.portfolio-img-wrap:hover {
    transform: scale(1.02) translateY(-4px);
}

.portfolio-img {
    width: 115%;
    height: auto;
    display: block;
    border-radius: 0;
    border: none;
    transform: scale(1);
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(1);
}

.portfolio-img-wrap:hover .portfolio-img {
    transform: scale(1.01);
    filter: brightness(1.05) drop-shadow(0 15px 35px rgba(108,60,225,0.25));
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 900px) {
    .portfolio-row,
    .portfolio-row.row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 36px;
        margin-bottom: 60px;
    }

    .portfolio-img-wrap {
        order: -1;
    }
}

@media (max-width: 600px) {
    .portfolio-stats {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   SABER SECTION
=========================================== */
.saber-section {
    padding: 60px 24px;
    background: var(--card-bg, var(--white));
    transition: background 0.3s ease;
}

.saber-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #eef0fb 0%, #e8e4f8 40%, #ede9fe 100%);
    border-radius: 24px;
    padding: 60px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    transition: background 0.4s ease;
}

[data-theme="dark"] .saber-wrapper {
    background: linear-gradient(135deg, #1a1a3e 0%, #1e1e42 40%, #22224a 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ---- Left ---- */
.saber-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.saber-logo svg {
    transition: all 0.3s ease;
}

[data-theme="dark"] .saber-logo svg path {
    stroke: #f8f9fa;
}

.saber-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.saber-heading {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 36px;
    transition: color 0.3s ease;
}

/* Stats row */
.saber-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}

.saber-stat {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.saber-stat:first-child {
    padding-left: 0;
}

.saber-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.saber-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.saber-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(108, 60, 225, 0.25);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

[data-theme="dark"] .saber-stat-divider {
    background: rgba(167, 139, 250, 0.3);
}

.btn-saber {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-saber:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.3);
}

/* ---- Right: 2x2 Grid ---- */
.saber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.saber-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: none;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}

.saber-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108,60,225,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.saber-card:hover::after {
    opacity: 1;
}

.saber-card:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(108,60,225,0.2);
}

[data-theme="dark"] .saber-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .saber-card:hover {
    background: rgba(26, 26, 46, 0.85);
}

[data-theme="dark"] .saber-card::after {
    background: linear-gradient(135deg, rgba(108,60,225,0.15), transparent 60%);
}

/* Dark theme styles for expandable sections */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .why-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(108, 60, 225, 0.1);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .why-card:hover {
    background: rgba(108, 60, 225, 0.08);
    border-color: rgba(108, 60, 225, 0.3);
}

[data-theme="dark"] .expand-icon {
    background: var(--primary);
}

[data-theme="dark"] .feature-details,
[data-theme="dark"] .why-details {
    background: rgba(108, 60, 225, 0.08);
    border: 1px solid rgba(108, 60, 225, 0.15);
}

[data-theme="dark"] .feature-details li,
[data-theme="dark"] .why-details li {
    color: rgba(248, 249, 250, 0.8);
    border-bottom-color: rgba(108, 60, 225, 0.1);
}

.saber-card-img {
    width: 110px;
    height: 100px;
    object-fit: contain;
    filter: none;
    border: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.saber-card:hover .saber-card-img {
    transform: translateY(-8px) scale(1.15);
    filter: drop-shadow(0 12px 25px rgba(108,60,225,0.3)) brightness(1.1);
}

.saber-card-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 900px) {
    .saber-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 32px;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .saber-wrapper {
        padding: 32px 20px;
    }

    .saber-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .saber-card {
        padding: 20px 16px;
    }
    
    .saber-card-img {
        width: 80px;
        height: 70px;
    }

    .saber-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .saber-stat-divider {
        display: none;
    }
}


/* ===========================================
   LEARN / GROW SECTION
=========================================== */
.learn-section {
    background: #13132b;
    padding: 80px 0 60px;
    overflow: hidden;
}

.learn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.learn-heading-wrap {
    text-align: center;
    margin-bottom: 56px;
}

.learn-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.learn-word-cycle {
    color: #a78bfa;
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.learn-word-cycle.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.learn-subtext {
    font-size: 1rem;
    color: #9ca3af;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Curved Carousel ---- */
.learn-carousel-outer {
    overflow: hidden;
    margin: 0 -80px;
    padding: 20px 0 50px;
    /* key: perspective for 3D depth */
    perspective: 900px;
    perspective-origin: 50% 50%;
}

.learn-carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 100px;
    width: max-content;
    /* JS will handle transform for 3D curved scroll */
}

/* ---- Cards — image only, no text ---- */
.learn-card {
    flex-shrink: 0;
    width: 360px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    /* 3D rotation applied by JS per card position */
    transform-origin: center center;
    transition: transform 0.05s linear;
    will-change: transform;
}

.learn-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ---- Button ---- */
.learn-btn-wrap {
    text-align: center;
    margin-top: 48px;
}

.btn-learn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-learn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.35);
}

@media (max-width: 768px) {
    .learn-card {
        width: 280px;
        height: 250px;
    }
}

/* ---- Curved Carousel Outer ---- */
.learn-carousel-outer {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    /* 3D Depth */
    perspective: 1500px; 
    /* Gradient Fade on edges like Mudrex */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.learn-carousel-track {
    display: flex;
    gap: 30px;
    padding: 0 50px;
    width: max-content;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---- Cards Styling ---- */
.learn-card {
    flex-shrink: 0;
    width: 440px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    border: none;
    
    /* Curved shadow and smooth rotation */
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
}

.learn-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108,60,225,0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.learn-card:hover::after {
    opacity: 1;
}

[data-theme="light"] .learn-card {
    background: transparent;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.learn-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.learn-card:hover img {
    filter: brightness(1.1) saturate(1.1);
    transform: scale(1.08);
}

/* ===========================================
   WHY MUDREX
=========================================== */
.why-section {
    background: var(--bg-light);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.why-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #c4b5fd 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

.why-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.why-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 56px;
    letter-spacing: -0.5px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg, white);
    overflow: hidden;
    margin-bottom: 56px;
    transition: background 0.3s ease;
}

.why-card {
    padding: 40px 32px;
    text-align: center;
    border-right: 1.5px solid var(--border);
    transition: background 0.2s;
}

.why-card:last-child {
    border-right: none;
}

.why-card:hover {
    background: var(--card-hover-bg, #faf8ff);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: rgba(108, 60, 225, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.why-cta {
    text-align: center;
}

.why-cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ===========================================
   FAQ
=========================================== */
.faq-section {
    /* background: var(--card-bg, var(--white)); */
    padding: 80px 24px;
    transition: background 0.3s ease;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 4px;
}

.faq-contact {
    margin-top: 40px;
    padding-top: 24px;
}

.faq-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-contact a:hover {
    text-decoration: underline;
}

/* ===========================================
   FOOTER
=========================================== */
.footer {
    background: #0e0e24;
    color: #9ca3af;
    padding: clamp(40px, 5vw, 60px) clamp(16px, 4vw, 40px) 0;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(150px, 1fr));
    gap: clamp(18px, 2.8vw, 40px);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand,
.footer-col,
.footer-mid-col,
.footer-bottom-left {
    min-width: 0;
}

/* Brand col */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand-sub {
    font-size: 0.82rem;
    margin-bottom: 10px;
    color: #6b7280;
}

.footer-app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.footer-app-btn:hover {
    border-color: var(--primary);
    background: rgba(108,60,225,0.1);
}

.footer-qr {
    margin-top: 16px;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-qr:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Cols */
.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.83rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

/* Payment badges */
.footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.payment-badge {
    width: 56px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mid row */
.footer-watermark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    font-size: clamp(2.1rem, 8.8vw, 7rem);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(182, 189, 202, 0.22);
    margin: clamp(26px, 4vw, 54px) 0 clamp(8px, 2vw, 18px);
    pointer-events: none;
    user-select: none;
    text-wrap: balance;
}

.logo-watermark {
    width: clamp(84px, 10vw, 132px);
    height: auto;
    opacity: 0.24;
    filter: grayscale(100%) brightness(1.08) contrast(0.9);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 0 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-left p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
}

.footer-address {
    max-width: 560px;
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        border-right: none;
        border-bottom: 1.5px solid #e5e7eb;
    }
    .why-card:last-child { border-bottom: none; }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-col .footer-col-title {
        margin-top: 0 !important;
        margin-bottom: 10px;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer {
        padding: 40px 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-watermark {
        line-height: 1;
        margin-top: 24px;
        gap: 8px;
    }

    .logo-watermark {
        width: clamp(74px, 21vw, 104px);
    }

    .footer-qr {
        margin-inline: auto;
    }
}

/* Wave Container - Full Screen */
.footer-waves {
    position: relative;
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Center-align to bleed edges */
    height: 15vh; /* Wave ki height */
    min-height: 100px;
    max-height: 150px;
    margin-top: -150px; /* Section se blend karne ke liye upar shift kiya */
    overflow: hidden;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px; /* Gap remove karne ke liye */
}

/* Animation Logic */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% {
        transform: translate3d(85px,0,0);
    }
}

/* Footer Background Match */
.footer {
    background: #0e0e24; /* Make sure this matches the 4th wave fill color */
    position: relative;
    z-index: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--card-bg, var(--white));
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(108, 60, 225, 0.08);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--text-dark);
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f59e0b;
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
    color: #a78bfa;
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(108, 60, 225, 0.3);
    background: rgba(108, 60, 225, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(108, 60, 225, 0.2);
    border-color: var(--primary-light);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #a78bfa;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-waves {
        height: 40px;
        min-height: 40px;
    }
}

