:root {
    --bg-color: #000000;
    --accent-dark: #232323; /* Carbon Gray replacing red */
    --particle-blue: #A3D4F2;
    --text-main: #FFFFFF;
    --text-cream: #f7f5ee;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #000;
}

body.no-scroll {
    overflow: hidden;
}

/* SPLASH SCREEN */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -100; /* Ensure it is completely out of the way */
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que el video ocupe toda la pantalla sin distorsionarse */
    background: #000;
}

.skip-btn-style {
    position: absolute;
    bottom: 50px;
    right: 50px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 3px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    animation: flashButton 1s ease-in-out infinite;
}

.skip-btn-style:hover {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: none;
}

.mute-btn-style {
    left: 50px;
    right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mute-btn-style svg {
    transition: stroke 0.4s ease;
}

@keyframes flashButton {
    0%, 100% {
        color: rgba(255, 255, 255, 0.4);
        text-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0px transparent;
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(163, 212, 242, 1);
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 20px rgba(163, 212, 242, 0.8), inset 0 0 10px rgba(163, 212, 242, 0.4);
    }
}

/* DEEP PARALLAX LAYERS */
.parallax-bg {
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 150%; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.1s linear; 
}

.layer-1 { opacity: 0.2; }
.layer-2 { opacity: 0.4; mix-blend-mode: screen; }

/* NEURAL NETWORK CANVAS */
canvas#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

/* UI OVERLAY */
.app-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Header & Logo */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(163, 212, 242, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 50px;
    object-fit: contain;
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

/* Constraint: Logo Fidelity + Glow */
.brand-logo:hover {
    filter: drop-shadow(0 0 15px rgba(163, 212, 242, 0.9)) brightness(1.2);
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* ─── NAV LINKS: UNIFIED PLAIN TEXT ─────────────────────────────────────── */
.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    /* ITC New Baskerville with curated fallback chain */
    font-family: 'ITC New Baskerville', 'Baskervville', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0.04em;
    /* EXIT: smooth & fluid */
    transition:
        color 0.65s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
        text-shadow 0.75s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0.82;
    cursor: pointer;
    /* Halo pseudo-element layer */
    isolation: isolate;
}

/* ─── HALO PSEUDO-ELEMENT (pulse ring expanding from text center) ──────── */
.main-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0.4);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(163, 212, 242, 0.28) 0%,
        rgba(163, 212, 242, 0.10) 40%,
        transparent 72%
    );
    opacity: 0;
    pointer-events: none;
    /* EXIT: smooth fade-out */
    transition:
        opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: -1;
    filter: blur(4px);
}

/* ─── HOVER STATE: ENTRY (agile & sudden) ───────────────────────────────── */
.main-nav a:hover {
    color: #ffffff;
    opacity: 1;
    /* Snappy triple-layer glow text-shadow */
    text-shadow:
        0 0 8px  rgba(163, 212, 242, 0.95),
        0 0 18px rgba(163, 212, 242, 0.60),
        0 0 36px rgba(163, 212, 242, 0.28);
    /* ENTRY: agile & sudden */
    transition:
        color 0.08s ease,
        text-shadow 0.08s ease,
        opacity 0.08s ease;
}

/* Halo pulse on hover — fast IN, slow OUT */
.main-nav a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.8);
    /* ENTRY: snappy */
    transition:
        opacity 0.12s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.2s ease;
    filter: blur(6px);
}

/* ─── Active / current section highlight ───────────────────────────────── */
.main-nav a.nav-active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(163, 212, 242, 0.6);
    opacity: 1;
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 5%;
    position: relative;
}

/* Typography & Scan Reveal */
h1, h2 {
    font-family: var(--font-heading);
    text-align: center;
    text-transform: uppercase;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 2;
}

.scan-text {
    position: relative;
    display: block;
    letter-spacing: 2px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    /* Word-by-word: text starts invisible, words are individually animated */
    color: transparent;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
}

/* ─── WORD-BY-WORD REVEAL ────────────────────────────────────────────── */
.scan-word {
    display: inline-block;
    color: rgba(255, 255, 255, 0.08);
    transform: translateY(18px);
    opacity: 0;
    transition:
        color     0.5s cubic-bezier(0.42, 0, 0.58, 1),
        opacity   0.5s cubic-bezier(0.42, 0, 0.58, 1),
        transform 0.5s cubic-bezier(0.42, 0, 0.58, 1);
    /* transition-delay is set per-word via JS */
}

/* Revealed state: word is fully visible */
.scan-text.visible .scan-word {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
    animation-fill-mode: forwards;
}

/* Exit state: subtle pulse before vanishing */
.scan-text.exiting .scan-word {
    color: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(10px) scale(1.015);
    transition:
        color     0.35s cubic-bezier(0.42, 0, 0.58, 1),
        opacity   0.35s cubic-bezier(0.42, 0, 0.58, 1),
        transform 0.35s cubic-bezier(0.42, 0, 0.58, 1);
}

p.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    letter-spacing: 0.5px;
    line-height: 1.8;
    color: var(--text-cream);
    font-weight: 300;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Floating Elements */
.floating-balloon {
    position: absolute;
    bottom: -5%;
    right: 10%;
    /* Reduced scale by 15% originally 280px -> 238px */
    width: 238px;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
    animation: floatUpDown 10s ease-in-out infinite;
    z-index: 1;
    opacity: 0.9;
}

/* Organic non-linear floating physics */
@keyframes floatUpDown {
    0%   { transform: translateY(0) rotate(0deg); }
    33%  { transform: translateY(-70px) rotate(2deg); animation-timing-function: ease-in-out; }
    66%  { transform: translateY(-20px) rotate(-1deg); animation-timing-function: ease-in-out; }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ─── BIDIRECTIONAL SCROLL REVEAL ─────────────────────────────────────── */
/* Base state: invisible, offset 30px below */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(1);
    /* EXIT transition: ease-in-out amable, ritmica */
    transition:
        opacity    0.7s  cubic-bezier(0.42, 0, 0.58, 1),
        transform  0.7s  cubic-bezier(0.42, 0, 0.58, 1);
}

/* ENTER: scrolling DOWN — element ascends into view */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity    0.85s cubic-bezier(0.42, 0, 0.58, 1),
        transform  0.85s cubic-bezier(0.42, 0, 0.58, 1);
    animation-fill-mode: forwards;
}

/* EXIT: scrolling UP — subtle pulse + descend before vanishing */
.fade-in.exiting {
    opacity: 0;
    transform: translateY(15px) scale(1.02);
    transition:
        opacity    0.55s cubic-bezier(0.42, 0, 0.58, 1),
        transform  0.55s cubic-bezier(0.42, 0, 0.58, 1);
}

/* scan-text transitions handled by .scan-word spans above */

.cta-title { font-size: clamp(2rem, 4vw, 3.5rem); }

/* ─── SCROLL INDICATOR ──────────────────────────────────────────────────── */
#scroll-indicator {
    position: fixed;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    z-index: 200;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    /* Smooth fade for bottom indicator */
    transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

#scroll-indicator:hover .scroll-label {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

#scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transition: none !important;
    pointer-events: none;
}

#scroll-indicator-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ─── TOP INDICATOR (↑) — upper right corner, below nav bar ─────────────── */
#scroll-indicator-top {
    position: fixed;
    top: 5.2rem;           /* just below the fixed header */
    right: 5%;             /* aligned with the nav, upper right */
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 200;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    /* Near-instant transition: 'instante' effect as requested */
    transition: opacity 0.15s ease;
}

#scroll-indicator-top:hover .scroll-label {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.15s ease;
}


.scroll-label {
    font-family: 'ITC New Baskerville', 'Baskervville', 'Playfair Display', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    animation: arrowPulse 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Two chevron lines stacked — subtle depth */
.scroll-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    border-radius: 1px;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
                opacity  0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* DOWN state: opacities cascade bottom-brightest */
.scroll-arrow span:nth-child(1) { opacity: 0.35; margin-bottom: -5px; }
.scroll-arrow span:nth-child(2) { opacity: 0.70; }
.scroll-arrow span:nth-child(3) { opacity: 1.00; }

/* UP state: flip chevrons + invert opacity cascade (top-brightest) */
.scroll-arrow.arrow-up {
    animation: arrowPulseUp 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    flex-direction: column-reverse;
}

.scroll-arrow.arrow-up span {
    transform: rotate(225deg); /* Points upward */
}

.scroll-arrow.arrow-up span:nth-child(1) { opacity: 0.35; margin-bottom: 0; margin-top: -5px; }
.scroll-arrow.arrow-up span:nth-child(2) { opacity: 0.70; }
.scroll-arrow.arrow-up span:nth-child(3) { opacity: 1.00; }


#scroll-indicator:hover .scroll-label {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

@keyframes arrowPulse {
    0%   { transform: translateY(0);    opacity: 1;    }
    50%  { transform: translateY(7px);  opacity: 0.55; }
    100% { transform: translateY(0);    opacity: 1;    }
}

/* UP version: pulsates upward */
@keyframes arrowPulseUp {
    0%   { transform: translateY(0);    opacity: 1;    }
    50%  { transform: translateY(-7px); opacity: 0.55; }
    100% { transform: translateY(0);    opacity: 1;    }
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: rgba(35, 35, 35, 0.45); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    margin: 0 auto;
    width: 100%;
}

/* Ecosistema Section */
.ecosistema-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vision Section */
.vision-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 1100px;
    width: 100%;
}

.vision-graphic {
    max-width: 450px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.8s ease;
    filter: grayscale(20%) contrast(1.1);
}

.vision-graphic:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.vision-text {
    flex: 1;
}

.vision-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-cream);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    font-weight: 300;
}

/* CTA Section */
.btn-recruit-large {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 1.2rem 3rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.btn-recruit-large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: -1;
}

.btn-recruit-large:hover::after {
    opacity: 1;
    width: 0%;
    height: 0%;
}

.btn-recruit-large:hover {
    background: var(--text-main);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.main-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── GOOGLE REVIEWS SECTION ────────────────────────────────────────────── */
.reviews-section {
    min-height: auto;
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 10;
}

.reviews-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.reviews-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-wrapper::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 320px;
    max-width: 350px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 auto;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.reviewer-details h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.reviewer-details span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.google-icon {
    margin-top: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.review-stars {
    color: #FBBC05;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-cream);
    margin: 0;
    font-weight: 300;
}

/* Nav Buttons */
.review-nav-btn {
    background: rgba(35, 35, 35, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    flex-shrink: 0;
    align-self: center;
    backdrop-filter: blur(8px);
}

.review-nav-btn:hover {
    background: rgba(163, 212, 242, 0.1);
    border-color: rgba(163, 212, 242, 0.6);
    box-shadow: 0 0 15px rgba(163, 212, 242, 0.3);
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .reviews-container {
        gap: 0; 
    }
    .review-nav-btn {
        display: none;
    }
    .review-card {
        min-width: 280px;
    }
}

/* Social Media Section */
.social-section {
    min-height: auto;
    padding: 6rem 5% 4rem; /* Generous padding to maintain air/composition */
}

.social-title {
    /* Using ITC New Baskerville with web-safe fallbacks */
    font-family: 'ITC New Baskerville', 'Baskervville', 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Digital Crystal Finish Hover Mechanism */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px; /* Slightly smaller than nav buttons visually fitting hierarchy */
    height: 44px;
    border: 1px solid #232323; /* Dark sleek border */
    border-radius: 8px; /* Crystal node look */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
    text-decoration: none;
}

.social-icon-svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-cream);
    transition: all 0.5s ease;
}

.social-icon:hover {
    border-color: var(--particle-blue);
    background: rgba(163, 212, 242, 0.05);
    box-shadow: 0 0 15px rgba(163, 212, 242, 0.5), inset 0 0 10px rgba(163, 212, 242, 0.2);
    transform: translateY(-3px);
}

.social-icon:hover .social-icon-svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 6px var(--particle-blue));
}


@media (max-width: 900px) {
    .vision-content { flex-direction: column; text-align: center; gap: 3rem; }
    .floating-balloon { display: none; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .scan-text { white-space: normal; }
    .scan-text::before { white-space: normal; word-wrap: break-word; }
}

/* ─── WHATSAPP FLOATING BUTTON ──────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2.2rem;
    left: 5%;
    width: 60px;
    height: 60px;
    background: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(163, 212, 242, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(163, 212, 242, 0.3), inset 0 0 10px rgba(163, 212, 242, 0.1);
    /* Levitation + Blink Combined */
    animation: wppLevitate 4s ease-in-out infinite, wppBlinkGlow 2.5s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    stroke: var(--particle-blue);
    transition: all 0.4s ease;
}

/* Float Hover Interaction */
.whatsapp-float:hover {
    background: rgba(163, 212, 242, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(163, 212, 242, 0.8), inset 0 0 20px rgba(163, 212, 242, 0.4);
    transform: scale(1.1) translateY(-5px);
    animation: none; /* Disable idle animations on hover for direct feedback */
}

.whatsapp-float:hover .whatsapp-icon {
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px #ffffff);
}

/* Animations */
@keyframes wppLevitate {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes wppBlinkGlow {
    0%   { box-shadow: 0 0 15px rgba(163, 212, 242, 0.3), inset 0 0 10px rgba(163, 212, 242, 0.1); }
    50%  { box-shadow: 0 0 35px rgba(163, 212, 242, 0.7), inset 0 0 25px rgba(163, 212, 242, 0.4); border-color: rgba(163, 212, 242, 0.8); }
    100% { box-shadow: 0 0 15px rgba(163, 212, 242, 0.3), inset 0 0 10px rgba(163, 212, 242, 0.1); }
}

/* ─── AGENTS SECTION ────────────────────────────────────────────────────── */
.agents-section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    position: relative;
    z-index: 10;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    text-align: left;
}

.agent-card-glass {
    background: rgba(35, 35, 35, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.agent-card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(163, 212, 242, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-info h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: capitalize;
}

.agent-info p {
    font-size: 0.85rem;
    color: var(--text-cream);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.agent-email-link {
    color: var(--particle-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    pointer-events: auto;
}

.agent-email-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(163, 212, 242, 0.8);
    transform: translateX(2px);
}

.email-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.9;
}

.btn-whatsapp-agent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #25D366;
    border: 1px solid #25D366;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-whatsapp-agent:hover {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-agent svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   Responsive Design & Mobile navigation Drawer
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Keep above the drawer */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation classes */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Show mobile hamburger, convert nav to drawer */
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-header {
        padding: 1rem 5%;
    }

    .main-nav {
        display: flex !important; /* Force flex in case of hiding */
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%); /* Hidden by default by shifting right */
        width: 65%;
        min-width: 250px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

    .main-nav.active {
        transform: translateX(0) !important;
        right: auto;
    }

    /* Fix video scaling logic */
    #intro-video {
        object-fit: contain; /* Shows full video letterboxed rather than cropped */
        height: auto;
        max-height: 100vh;
        width: 100vw;
    }
    
    /* Splash Screen Buttons Fix for Mobile */
    /* Use fixed positioning + safe-area-inset so they never hide behind browser chrome */
    .skip-btn-style {
        position: fixed !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 80px) !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        left: auto !important;
        padding: 10px 20px !important;
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
        width: auto !important;
    }

    .mute-btn-style {
        position: fixed !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 140px) !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        left: auto !important;
        padding: 10px 20px !important;
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
        width: auto !important;
    }
    
    /* Adapt horizontal layout components to wrap vertically */
    .vision-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .vision-text p {
        text-align: left;
    }
}
