@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #fbbf24;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-text: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 2000px; /* Essential for 3D */
    cursor: default;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Base Styles */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--glass-text);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
    position: relative;
}

/* Background Elements */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.blob-1 { top: -200px; left: -200px; }
.blob-2 { bottom: -200px; right: -200px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-contact {
    background: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Hero V2 (Matching User Image) */
.hero-v2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.1), transparent);
}

.glass-hero-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* 3D Properties */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    perspective: 1000px;
}

.hero-info h1 span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.hero-info h1 span:hover {
    transform: translateZ(50px) rotateX(10deg) rotateY(-10deg);
    color: var(--accent);
}

.hero-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
    color: #0f172a;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    transition: var(--transition);
}

.btn-get-started:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
}

.hero-image-side {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.student-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.hologram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(251, 191, 36, 0.9);
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: float3D 3s ease-in-out infinite;
}

/* Original Hero (Hidden if v2 is present) */
.hero { display: none; }


/* Vision/Mission Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    
    /* 3D Properties */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Holographic Glare */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translate(var(--glare-x, -50%), var(--glare-y, -50%));
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.glass-card:not(.no-tilt):hover {
    border-color: var(--primary-light);
    transform: translateY(-5px) translateZ(20px);
}

.static-glass-card, .no-tilt::after {
    display: none !important;
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Services Section */
.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 30px;
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent);
    transform: translateZ(30px);
    transition: var(--transition);
}

.service-item:hover .service-icon {
    transform: translateZ(60px) scale(1.1);
}

/* Contact Form */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light);
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    padding: 30px 5% 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Feedback Notifications */
#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

#form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
}

#form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* 3D Animation Utilities */
.tilt-card {
    transform-style: preserve-3d;
}

.tilt-inner {
    transform: translateZ(50px); /* Makes content pop out */
}

@keyframes float3D {
    0%, 100% { transform: translateZ(0) translateY(0) rotateX(0); }
    50% { transform: translateZ(30px) translateY(-10px) rotateX(5deg); }
}

/* Floating Assets */
.floating-asset {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    filter: blur(1px);
    animation: floatingDeep 10s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatingDeep {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(30px, -50px, 100px) rotate(10deg); }
    66% { transform: translate3d(-30px, 50px, -50px) rotate(-10deg); }
}

.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-3d.active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: flex;
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .hero-v2 {
        padding: 90px 4% !important;
    }
    
    .glass-hero-container {
        grid-template-columns: 1fr;
        padding: 25px 20px !important;
        gap: 30px !important;
    }

    .glass-card {
        padding: 25px 20px !important;
    }

    .glass-card:hover {
        transform: none; /* Disable 3D hover on mobile for better UX */
    }

    .hero-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .hero-btns a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    .image-wrapper {
        min-height: 280px !important;
    }

    .about-badge {
        right: 10px !important;
        bottom: -15px !important;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}
/* Header Actions & Lang Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    width: 100px;
}

.lang-indicator {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--primary);
    border-radius: 25px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 0;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.lang-switcher button#lang-en.active ~ .lang-indicator {
    transform: translateX(0);
}

/* This is a bit tricky with absolute positioning, we'll use JS to move the indicator or fixed positions */
/* Actually, let's use a simpler CSS approach where the active button state moves the indicator */

.lang-switcher button {
    position: relative;
    flex: 1;
    background: none;
    border: none;
    color: var(--glass-text);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 0;
    z-index: 1;
    transition: var(--transition);
    text-align: center;
}

.lang-switcher button.active {
    color: white;
}

#lang-es.active ~ .lang-indicator { transform: translateX(0); }
#lang-en.active ~ .lang-indicator { transform: translateX(44px); }

/* Body Transition Effect */
body.lang-changing::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.05;
    z-index: 9999;
    pointer-events: none;
    animation: flash 0.6s ease-out;
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 0.1; }
    100% { opacity: 0; }
}

[data-i18n] {
    transition: opacity 0.3s ease-in-out;
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 1px solid var(--glass-border);
}

.plan-card-wrapper {
    position: relative;
    height: 100%;
}

.plan-card.featured {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    transform: scale(1.05);
    z-index: 2;
    overflow: visible; /* Allowing the badge to pop out */
}

/* To prevent glare overflow when using visible, we restrict ::after */
.plan-card.featured::after {
    border-radius: 24px;
    width: 100%;
    height: 100%;
    transform: none;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.1), transparent);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0;
}

.plan-price span {
    font-size: 1rem;
    color: var(--glass-text);
    font-weight: 300;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--glass-text);
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.plan-features li.ideal-for {
    font-style: italic;
    color: var(--light);
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: 20px;
}

.plan-features li.ideal-for::before {
    content: '★';
}

.plan-note-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.plan-recommendation {
    font-style: italic;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--light);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.val-added-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.val-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--glass-text);
}

.val-item i {
    color: var(--primary-light);
    flex-shrink: 0;
}

/* About Me Section */
.about-me-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-me-image {
    position: relative;
}

.about-me-image .glass-card {
    padding: 15px;
    border-radius: 30px;
}

#jorge-photo {
    width: 100%;
    border-radius: 20px;
    display: block;
    filter: sepia(0.2) contrast(1.1);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--dark);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    z-index: 5;
}

.about-me-info h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-me-info p {
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Form refinement */
select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    outline: none;
    cursor: pointer;
}

select option {
    background: var(--dark);
    color: var(--light);
}

/* Responsive updates */
@media (max-width: 992px) {
    .about-me-container {
        grid-template-columns: 1fr;
    }
    
    .about-me-image {
        max-width: 400px;
        margin: 0 auto 50px;
    }

    .plan-card.featured {
        transform: scale(1);
    }
}

.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Home Grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.home-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
}

.read-more i {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 480px) {
    .val-added-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .lang-switcher {
        padding: 4px 8px;
    }
}

/* =============================================
   PAGE LOADER
   ============================================= */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-logo span {
    color: var(--accent);
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.97); }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    animation: loader-fill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-fill {
    0% { width: 0%; }
    60% { width: 75%; }
    100% { width: 100%; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* =============================================
   PARTICLES CANVAS
   ============================================= */
#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

/* =============================================
   TYPING SUBTITLE
   ============================================= */
.typing-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.7);
    min-height: 1.8em;
}

.typing-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink-cursor 0.75s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =============================================
   HAMBURGER MENU
   ============================================= */
.hamburger {
    display: none !important;
}

@media (max-width: 860px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 4% !important;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }

    nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .logo {
        font-size: 1.15rem !important;
        white-space: nowrap;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .btn-contact {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .lang-switcher {
        width: 65px !important;
    }

    .lang-switcher button {
        font-size: 0.7rem !important;
    }

    /* Floating bottom navigation bar (App style) */
    .nav-links {
        position: fixed !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        max-width: 480px !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 50px !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 4px !important;
        z-index: 9999 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .nav-links li {
        flex-shrink: 0;
        list-style: none;
    }

    .nav-links a {
        font-size: 0.68rem !important;
        padding: 6px 8px !important;
        color: rgba(255, 255, 255, 0.65) !important;
        transition: var(--transition);
        white-space: nowrap;
        letter-spacing: -0.2px;
    }

    .nav-links a.active {
        color: var(--accent) !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
    }

    /* Ensure scrollability if items overflow on ultra-narrow screens */
    @media (max-width: 400px) {
        .logo {
            font-size: 0.98rem !important;
        }
        .nav-links {
            justify-content: flex-start !important;
            overflow-x: auto !important;
            scrollbar-width: none !important;
            -webkit-overflow-scrolling: touch !important;
            gap: 15px !important;
            padding: 8px 18px !important;
        }
        .nav-links::-webkit-scrollbar {
            display: none !important;
        }
    }

    /* Add margin to avoid overlapping with bottom bar */
    body {
        padding-bottom: 75px !important;
    }

    /* Adjust page container padding top for the double row nav */
    main > section:first-of-type {
        padding-top: 90px !important;
    }

    .hero-v2 {
        padding-top: 80px !important;
    }
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    padding: 60px 5%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.stats-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(251,191,36,0.05));
    pointer-events: none;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--glass-border);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    vertical-align: top;
    margin-top: 5px;
}

.stat-label {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--glass-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 25px;
        gap: 30px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item:nth-child(3)::after {
        display: none;
    }
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section {
    padding: 80px 5%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--glass-text);
}

.testimonials-track-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 280px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 24px;
}

.stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}

.author-name {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
}

.author-country {
    font-size: 0.8rem;
    color: var(--glass-text);
    margin-top: 2px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dots .dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 0px);
    }
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 60px 5%;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 60px;
    background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(251,191,36,0.05));
    border: 1px solid rgba(251,191,36,0.3);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(79,70,229,0.12), transparent 60%);
    animation: rotate-glow 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    color: var(--light);
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--glass-text);
    margin-bottom: 35px;
}

/* =============================================
   PREMIUM FOOTER
   ============================================= */
.footer-premium {
    padding: 70px 5% 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.01);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--glass-text);
    max-width: 260px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glass-text);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: var(--glass-text);
    font-size: 0.92rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '→';
    color: var(--primary-light);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--glass-text);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 25px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        flex-direction: column;
    }

    .cta-inner {
        padding: 50px 30px;
    }
}
