/* =========================================
   CSS Variables & Resets
========================================= */
:root {
    --bg-color: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-color: #3b82f6; /* Premium Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; 
}

/* Responsive Overrides */
@media (max-width: 768px) {
    body {
        cursor: auto !important; /* Restore default cursor on mobile */
    }
    .cursor-dot, .cursor-outline, .global-light {
        display: none !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.accent { color: var(--accent-color); }
.accent-text {
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Custom Cursor
========================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.global-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0; /* Behind content, above background */
    pointer-events: none;
    mix-blend-mode: screen;
}

/* =========================================
   Interactive Multi-layer Eye
========================================= */
.masked-eye-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 119px; /* An additional 10% smaller */
    height: 76px;
    z-index: 1000;
    cursor: pointer; /* Feedback for interactive element */
    pointer-events: auto; /* Ensure it can be tapped */
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.eye-note {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
    pointer-events: none;
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .eye-note {
        display: block;
    }
}

.stats-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 1rem auto 0;
    opacity: 0.7;
    line-height: 1.4;
    padding: 0 1rem;
}


.eye-sclera {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1; /* Sclera forms the base shell */
}

.masked-eye-pupil {
    position: absolute;
    width: 38%; /* 20% larger than previous 32% */
    height: auto;
    z-index: 2; /* Iris sits on top of the sclera background, inside the shape */
    transition: transform 0.1s ease-out;
}

/* =========================================
   Background Gradient Mesh
========================================= */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15; /* Subtle integration */
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,42,88,1) 0%, rgba(5,5,5,0) 70%);
    top: -10%;
    left: -10%;
}
.glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(15,25,48,1) 0%, rgba(5,5,5,0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}
.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, rgba(5,5,5,0) 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 70px; /* Adjust based on actual logo proportions */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #e0e0e0;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary-large {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn-secondary {
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

/* Floating Grid pattern for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   Services Section (Cards)
========================================= */
.services {
    padding: 100px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

/* Mouse gradient glow effect applied via JS */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    z-index: 0;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255,255,255,0.05);
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -10px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.card-text {
    color: var(--text-secondary);
}

/* =========================================
   Testimonials
========================================= */
.testimonials {
    padding: 100px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
    margin-top: -10px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.step-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
    display: block;
}

/* =========================================
   Statistics Section
========================================= */
.stats-section {
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin: 40px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* =========================================
   FAQ Enhancements
========================================= */
.faq-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.faq-question::after {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough to fit content */
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
    padding-bottom: 10px;
}

.dud {
    color: var(--accent-color);
    opacity: 0.5;
}

.cta-center {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 10;
}

/* =========================================
   Footer
========================================= */
.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

/* =========================================
   Animations (Intersection Observer)
========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Reels / Videos Grid
========================================= */
.reels-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.reels-grid.grid-large {
    max-width: 1100px;
    margin: 0 auto;
}

.iframe-container {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    width: 320px;
    height: 540px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    position: relative; /* Preparation for overlay */
}

.reel-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through to iframe */
    transition: opacity 0.5s ease;
    background: rgba(5, 5, 5, 0.4); /* Dark shade over video */
}

.reel-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.iframe-container:hover .reel-matrix-canvas,
.iframe-container:hover .reel-hint,
.iframe-container.decrypted .reel-matrix-canvas,
.iframe-container.decrypted .reel-hint {
    opacity: 0;
}

.iframe-container:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
}

/* =========================================
   Calendly Section
========================================= */
.calendly-section {
    padding: 100px 20px;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05), transparent);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.calendly-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* =========================================
   Lead Capture Form
========================================= */
.lead-form {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    display: flex;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    cursor: none;
}

.form-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.05);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}

/* =========================================
   Mobile Responsiveness
========================================= */
/* Mobile Menu Toggle Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

@media (max-width: 900px) {
    /* Responsive Grids */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 100;
        gap: 40px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Typography & Spacing */
    .hero {
        padding-top: 120px;
    }
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    .services, .testimonials, .calendly-section {
        padding: 60px 20px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .reels-grid {
        gap: 20px;
    }
    .iframe-container {
        width: 100%;
        max-width: 320px;
        height: 500px; /* slightly shorter on mobile to fit screen */
    }

    /* Eye Graphic positioning */
    .masked-eye-container {
        width: 95px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary-large, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .lead-form {
        padding: 30px 20px;
    }
}
