:root {
    --primary: #0A192F;
    --accent: #C5A059;
    --accent-glow: rgba(197, 160, 89, 0.3);
    --text: #F8F9FA;
    --subtext: #94A3B8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(197, 160, 89, 0.15);
    --nav-bg: rgba(10, 25, 47, 0.85);
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: var(--primary);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Optimized Background Logic */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    /* Shorthand for top/left/right/bottom 0 */
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    /* Remove will-change here; fixed background with radial math 
       is smoother if handled as a static layer */
}

/* --- GPU Accelerated Components --- */
/* Optimized GPU Targeting */
.hero-content-wrapper,
.logo-hero-container img,
.director-card,
.whatsapp-float {
    will-change: transform;
    /* Only track what actually moves */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* --- Premium Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    background: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
}


/* 2. Style for the support link toggle */
#nav-support-link.active-accent {
    color: var(--accent) !important;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--subtext);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

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

/* --- Hero & Sections --- */

.hero-section {
    text-align: center;
    padding: 120px 8% 60px;
}

.hero-section .label {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero {
    padding: 120px 8% 80px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.hero h1,
.hero-section h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: white;
}

.hero h1 span,
.hero-section h1 span {
    color: var(--accent);
}

.hero p,
.hero-section p {
    color: var(--subtext);
    max-width: 650px;
    margin: 25px auto 40px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.text-rotator {
    display: inline-grid;
    grid-template-areas: "stack"; /* Forces all children into one spot */
    place-items: center;
    position: relative;
    height: 1.2em;
    vertical-align: middle;
    color: var(--accent);
}

.rotate-item {
    grid-area: stack; /* Everything sits in the 'stack' area */
    
    /* These ensure the items overlap perfectly */
    width: 100%;
    text-align: center;
    white-space: nowrap;
    
    /* Animation Properties */
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    transform: translateY(20px);
    transition: 
        opacity 0.6s ease, 
        transform 0.6s ease, 
        filter 0.6s ease,
        visibility 0.6s;
    
    pointer-events: none;


    -webkit-backface-visibility: hidden; /* Fixes "jitter" in mobile Chrome/Safari */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.rotate-item.active {
    opacity: 1;
    visibility: visible;
    filter: blur(0px);
    transform: translateY(0);
}

.rotate-item.exit {
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    transform: translateY(-20px);
}

/* Force Mobile Stack Fix */
@media (max-width: 768px) {
    .text-rotator {
        display: grid; /* Re-confirm grid on mobile */
        width: 100%;
        min-width: 100%;
        margin: 5px 0;
    }
    
    h1 {
        display: block !important; /* Prevents flex-direction conflicts */
        text-align: center;
    }

    .rotate-item {
        font-size: 0.85em;
        /* Force absolute centering if grid fails */
        position: relative; 
    }
    
    /* This forces all items except the active one to not take up space */
    .rotate-item:not(.active) {
        position: absolute;
        top: 0;
        left: 0;
    }
}
/* --- Components --- */
.glass-card {
    /* Layout & Style */
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Animation & Prep */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* GPU Acceleration */
    transform: translateZ(0); 
}

/* The Spotlight Glow Layer */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(197, 160, 89, 0.12),
        transparent 40%
    );
    z-index: 1; /* Sits above the background but below text */
    pointer-events: none;
}

/* Ensure all content inside the card sits ABOVE the glow */
.glass-card > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}


.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.director-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    /* Forces GPU layer for smooth movement */
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.director-card:hover {
    /* Transform is handled by GPU, so NO jank occurs */
    transform: translateY(-10px);
}

.photo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    background: #0A192F;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures faces aren't stretched */
    display: block;
}

.director-name {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.director-role {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ Accordion --- */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass);
}

.faq-question,
.faq-item h3 {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--subtext);
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 15px 20px 20px;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.3s ease-in;
}

.faq-item.active span {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item h3 span {
    transition: 0.3s;
    color: var(--accent);
    font-size: 1.5rem;
}

/* --- Floating Elements --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    animation: none;
}

.scroll-top {
    position: fixed;
    bottom: 110px;
    right: 35px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}




.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Utility Classes --- */
.icon-box {
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

.testimonial-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin-bottom: 15px;
    object-fit: cover;
    background: #0A192F;
}

.plan-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.cta-inline {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-inline:hover {
    text-decoration: underline;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--accent);
    border-bottom: 2px solid var(--glass-border);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--subtext);
    transition: 0.3s;
}

tr:hover td {
    background: rgba(197, 160, 89, 0.05);
    color: white;
}







/* --- Mobile Logic --- */


/* Default states */
.icon-close {
    display: none;
}

/* When the nav is active, swap the icons */
#navLinks.active~#menuToggle .icon-hamburger {
    display: none;
}

#navLinks.active~#menuToggle .icon-close {
    display: inline-block;
}

/* If your toggle is inside the nav or separate, use a parent class: */
body.menu-open .icon-hamburger {
    display: none;
}

body.menu-open .icon-close {
    display: inline-block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 2100;
    }

    nav {
        padding: 15px 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    div[style*="display:grid"],
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    header.hero h1 {
        font-size: 2rem !important;
    }

    section {
        padding: 40px 5% !important;
        content-visibility: auto;
        contain-intrinsic-size: 500px;
    }

    div[style*="border-left"] {
        border-left: none !important;
        border-top: 1px solid var(--accent);
        padding: 20px 0 0 0 !important;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    .glass-card,
    nav {
        backdrop-filter: blur(5px);
        /* Much faster for mobile GPUs */
        -webkit-backdrop-filter: blur(5px);
    }


    .glass-card {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }


    table {
        contain: layout;
        /* Tells browser table size won't change on scroll */
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        margin-bottom: 15px;

        /* --- Performance Optimization --- */
        content-visibility: auto;
        /* contain-intrinsic-size provides a 'placeholder' height 
           so the scrollbar doesn't jump as you scroll down. */
        contain-intrinsic-size: 100px;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--accent);
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    .plan-badge {
        display: inline-block;
        min-width: 80px;
        text-align: center;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}



/* 1. Breathing Gold Aura for Logo */
.logo-hero-container img {
    animation: goldPulse 4s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(197, 160, 89, 0.6));
        transform: scale(1.03);
    }
}

/* 2. Soft Floating for the Hero Content */
.hero-content-wrapper {
    animation: softFloat 6s ease-in-out infinite;
}



@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* 3. Metallic Shine for Accent Buttons */
.btn-accent {
    position: relative;
    overflow: hidden;
}

.btn-accent::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: buttonShine 5s infinite;
}

@keyframes buttonShine {
    0% {
        left: -150%;
        opacity: 0;
    }

    1% {
        opacity: 1;
    }

    15% {
        left: 150%;
        opacity: 1;
    }

    16% {
        opacity: 0;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* 4. Ambient Background Glow Shift */
.hero-animated-bg {
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.1) 0%, transparent 60%);
    background-size: 200% 200%;
    animation: ambientGlow 10s ease infinite;
}

@keyframes ambientGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}
.particles-container {
    position: absolute;
    inset: 0; /* Covers the whole header */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0; /* Start hidden and fade in via animation */
    animation: drift linear infinite;
}

/* Individual Particle Logic - Varying the 'left' and 'animation-delay' */
.p1 { width: 3px; height: 3px; left: 15%; bottom: -10%; animation-duration: 12s; }
.p2 { width: 5px; height: 5px; left: 35%; bottom: -10%; animation-duration: 18s; animation-delay: 2s; }
.p3 { width: 2px; height: 2px; left: 55%; bottom: -10%; animation-duration: 15s; animation-delay: 4s; }
.p4 { width: 4px; height: 4px; left: 75%; bottom: -10%; animation-duration: 20s; animation-delay: 1s; }
.p5 { width: 3px; height: 3px; left: 25%; bottom: -10%; animation-duration: 14s; animation-delay: 6s; }
.p6 { width: 6px; height: 6px; left: 85%; bottom: -10%; animation-duration: 22s; animation-delay: 3s; }
.p7 { width: 2px; height: 2px; left: 45%; bottom: -10%; animation-duration: 16s; animation-delay: 8s; }
.p8 { width: 4px; height: 4px; left: 65%; bottom: -10%; animation-duration: 19s; animation-delay: 5s; }

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        /* This moves them up and slightly to the side */
        transform: translateY(-600px) translateX(150px);
        opacity: 0;
    }
}


.particles-container:hover .particle {
    /* Speeds up slightly on hover */
    animation-duration: 8s;
    filter: blur(0px);
    opacity: 0.6;
}


