/* ==========================================================================
   L.E.G.I.T INNOVATION HUB - MASTER STYLESHEET
   ========================================================================== */

:root {
    /* Color Palette */
    --cyber-blue: #00D4FF;
    --cyber-blue-glow: rgba(0, 212, 255, 0.25);
    --bg-pure: #ffffff;
    --bg-soft: #f8fafc;
    
    /* Typography Colors */
    --text-main: #0f172a;    
    --text-muted: #64748b;   
    
    /* Premium Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
    --ios-blur: blur(25px);
    
    /* Multi-Layered Shadows */
    --premium-shadow: 
        0 2px 4px rgba(0,0,0,0.01),
        0 10px 20px rgba(0,0,0,0.03),
        0 30px 60px rgba(0,0,0,0.05),
        0 60px 100px rgba(0,0,0,0.08);

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 1. GLOBAL DEFAULTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 2. ELECTRIC CURSOR --- */
#custom-cursor {
    position: fixed;
    width: 44px;
    height: 44px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300D4FF"><path d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>') no-repeat;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 6px var(--cyber-blue));
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.6) !important;
    filter: drop-shadow(0 0 15px var(--cyber-blue)) brightness(1.1) !important;
}

/* --- 3. VIDEO BACKGROUND BASE --- */
.video-canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}

.bg-video-premium {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(1.2);
    opacity: 50; 
}

.light-wash-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 50%, var(--bg-soft) 85%);
}

/* --- 4. DYNAMIC ISLAND HEADER --- */
.glass-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%; max-width: 100%;
    background: transparent; /* Invisible at the very top */
    backdrop-filter: none;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 25px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    /* Buttery smooth transition for the dynamic island shift */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The "Dynamic Island" State (Triggered by JS on scroll) */
.glass-header.scrolled {
    top: 20px;
    left: 13%;
    transform: translateX(-50%);
    width: 92%; 
    max-width: 1200px;
    background: var(--glass-white);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px; /* Snaps into a pill shape */
    padding: 15px 40px;
    box-shadow: var(--premium-shadow);
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1.5px; }
.dot { color: var(--cyber-blue); }

.nav-desktop a {
    text-decoration: none; color: var(--text-muted);
    font-weight: 600; font-size: 0.95rem; margin: 0 20px;
    transition: var(--transition-smooth);
}
.nav-desktop a:hover { color: var(--cyber-blue); }

.btn-magnetic {
    background: var(--cyber-blue);
    color: #fff;
    padding: 16px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex; align-items: center;
    padding-top: 100px; position: relative; z-index: 1; 
    
    /* CHANGE THIS to your local PC image name! */
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.4) 100%),
        url('hero-background.jpg'); 
    background-size: cover; background-position: center;
    background-attachment: scroll; 
}

.hero .cyber-h1 { color: #ffffff; font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -4px; margin-bottom: 25px; }
.hero .hero-sub { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 600px; margin-bottom: 40px; }
.hero .ultra-tag { display: inline-block; color: var(--cyber-blue); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 15px; }

.btn-primary-glow {
    background: transparent; border: 2px solid var(--cyber-blue); color: #fff;
    padding: 15px 30px; border-radius: 100px; text-decoration: none; font-weight: 700;
    box-shadow: 0 0 15px var(--cyber-blue-glow) inset; transition: var(--transition-smooth);
}
.btn-primary-glow:hover { background: var(--cyber-blue); box-shadow: 0 10px 30px var(--cyber-blue-glow); }

/* --- 6. ABOUT SECTION --- */
.legit-about-section { padding: 120px 0; background-color: var(--bg-pure); position: relative; z-index: 10; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-visuals { position: relative; width: 100%; height: 600px; }
.img-primary { position: absolute; top: 0; left: 0; width: 75%; height: 450px; object-fit: cover; border-radius: 40px; box-shadow: var(--premium-shadow); }
.img-secondary { position: absolute; bottom: 0; right: 0; width: 65%; height: 350px; object-fit: cover; border-radius: 40px; border: 8px solid var(--bg-pure); z-index: 2; box-shadow: var(--premium-shadow); }

.experience-badge { position: absolute; top: 50%; left: 50%; transform: translate(-90%, -10%); width: 160px; height: 160px; background: var(--bg-pure); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 3; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.badge-text-svg { position: absolute; animation: rotateBadge 15s linear infinite; }
@keyframes rotateBadge { 100% { transform: rotate(360deg); } }
.badge-center-blue { width: 65px; height: 65px; background: var(--cyber-blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 5px solid var(--cyber-blue-glow); box-shadow: 0 0 20px var(--cyber-blue-glow); }

.section-subtitle { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; color: var(--text-main); font-weight: 800; margin-bottom: 25px; letter-spacing: -1px; }
.text-cyber { color: var(--cyber-blue); }

.strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 45px; }
.strategy-pill { background: var(--bg-soft); padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; border: 1px solid var(--glass-border); transition: var(--transition-smooth); }
.strategy-pill:hover { border-color: var(--cyber-blue); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1); }
.strategy-pill .dot { width: 8px; height: 8px; background-color: var(--cyber-blue); border-radius: 50%; box-shadow: 0 0 8px var(--cyber-blue); }

.contact-cta-pill { display: flex; justify-content: space-between; align-items: center; background: var(--bg-pure); padding: 12px 12px 12px 30px; border-radius: 100px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); max-width: 450px; }
.contact-text .label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.contact-text .number { font-size: 1.1rem; color: var(--text-main); font-weight: 800; }
.btn-primary-cyber { background: var(--cyber-blue); color: #fff; padding: 15px 30px; border-radius: 90px; font-weight: 700; text-decoration: none; transition: box-shadow 0.3s ease; }
.btn-primary-cyber:hover { box-shadow: 0 10px 25px var(--cyber-blue-glow); }

/* --- 7. PROGRAMS SECTION --- */
.legit-services-section { padding: 120px 0; background-color: var(--bg-soft); position: relative; z-index: 10; background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px); background-size: 40px 40px; }
.section-header-center { text-align: center; max-width: 800px; margin: 0 auto 70px auto; }
.justify-center { justify-content: center; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card { background: var(--bg-pure); border-radius: 30px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.4s ease, box-shadow 0.4s ease; border: 1px solid rgba(0,0,0,0.02); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--premium-shadow); }

/* FIX: Removed 'overflow: hidden' so the overlapping badge is fully visible */
.card-image-wrapper { position: relative; width: 100%; height: 240px; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* FIX: Increased z-index to 20 so it floats above the text box */
.card-icon-overlap { position: absolute; bottom: -35px; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; background: var(--cyber-blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 6px solid var(--bg-pure); box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2); transition: transform 0.3s ease; z-index: 20; }
.service-card:hover .card-icon-overlap { transform: translateX(-50%) scale(1.1); }

/* FIX: Added relative positioning, z-index 10, and pure white background to mask the zooming image bleed */
.card-content { position: relative; z-index: 10; background: var(--bg-pure); padding: 50px 30px 40px 30px; text-align: center; }
.card-content h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; }

.discover-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 700; text-decoration: none; transition: color 0.3s ease; }
.arrow-circle { width: 32px; height: 32px; background: var(--cyber-blue); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; }
.discover-link:hover { color: var(--cyber-blue); }
.discover-link:hover .arrow-circle { transform: translateX(5px); box-shadow: 0 5px 15px var(--cyber-blue-glow); }

/* --- 8. PREMIUM ANIMATIONS & EFFECTS --- */

/* Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-skew-up { opacity: 0; transform: translateY(80px) skewY(3deg); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top left; will-change: opacity, transform; }
.reveal-skew-up.is-visible { opacity: 1; transform: translateY(0) skewY(0deg); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

/* Image Zoom & Glow */
.premium-zoom { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease; will-change: transform, filter; }
.about-visuals:hover .img-primary, .service-card:hover .card-image-wrapper img { transform: scale(1.08); filter: drop-shadow(0 0 20px var(--cyber-blue-glow)); }
.about-visuals:hover .img-secondary { transform: scale(1.05) translate(-10px, 10px); }

/* H1 Breathing Glow */
@keyframes cyberBreathingGlow {
    0% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.1); }
    50% { text-shadow: 0 0 25px rgba(0, 212, 255, 0.4); }
    100% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.1); }
}
h2.section-title, .cyber-h1 { animation: cyberBreathingGlow 4s infinite alternate ease-in-out; }

/* --- 9. RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-visuals { height: 500px; max-width: 600px; margin: 0 auto; }
    .strategy-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-desktop { display: none; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero .cyber-h1 { font-size: 3rem; }
}

/* --- BOTTOM CTA BANNER --- */
.services-bottom-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05); /* Subtle divider line */
}

.cta-badge {
    background: var(--cyber-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--cyber-blue-glow);
}

.services-bottom-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.cta-inline-link {
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--cyber-blue);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.cta-inline-link:hover {
    color: var(--cyber-blue);
}

/* Make it stack on mobile */
@media (max-width: 768px) {
    .services-bottom-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */

.legit-why-us {
    padding: 120px 0;
    background-color: var(--bg-pure); /* Pure white contrast against previous section */
    position: relative;
    z-index: 10;
}

/* 3-Column Grid setup */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

/* Column Flexbox for stacking cards with space for the top icons */
.feature-col {
    display: flex;
    flex-direction: column;
    gap: 70px; /* Large gap because icons hang off the top */
}

/* Card Styling */
.feature-card-top {
    position: relative;
    background: var(--bg-pure);
    padding: 50px 30px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card-top:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow);
}

/* Overlapping Top Icon */
.icon-circle-top {
    position: absolute;
    top: -35px; /* Pulls it exactly half-way out of the top of the card */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 6px solid var(--bg-pure);
    box-shadow: 0 10px 20px var(--cyber-blue-glow);
    z-index: 10;
    transition: transform 0.4s ease;
}

.feature-card-top:hover .icon-circle-top {
    transform: translateX(-50%) scale(1.1);
}

.feature-card-top h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.feature-card-top p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Center Image Floating Animation */
.center-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.floating-3d-element {
    width: 400%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 0px; /* Optional if using a standard photo instead of a transparent PNG */
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.1));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: 1fr; /* Stacks everything to a single column */
        gap: 80px;
    }
    
    .center-image-wrapper {
        grid-row: 1; /* Forces the image to the top on mobile */
    }
}
/* ==========================================================================
   IMPACT & STATS SECTION (DARK REVEAL)
   ========================================================================== */

.legit-impact-section {
    padding: 140px 0;
    /* Translucent dark slate to reveal the video behind it */
    background-color: rgba(15, 23, 42, 0.9); 
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Typography Overrides for Dark Mode */
.text-white { color: #ffffff !important; }
.text-light-muted { color: rgba(255, 255, 255, 0.6); font-size: 1.05rem; line-height: 1.8; margin-bottom: 25px; }
.legit-impact-section .section-subtitle span.text-cyber { color: var(--cyber-blue); }

/* Horizontal Contact Block */
.impact-horizontal-cta {
    display: flex;
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-icon-zone {
    background: var(--bg-pure);
    padding: 25px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-text-zone {
    background: var(--cyber-blue);
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cta-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 5px; font-weight: 600; }
.cta-number { font-size: 1.2rem; color: #fff; font-weight: 800; }

/* Visuals & Floating Stat Cards */
.impact-visuals {
    position: relative;
    width: 100%;
}

.impact-main-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.stat-card {
    position: absolute;
    left: -60px; /* Pulls it outside the image like the screenshot */
    background: var(--bg-pure);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-top { top: 80px; }
.stat-bottom { bottom: 80px; }

.stat-icon { margin-bottom: 15px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.stat-text { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .impact-grid { grid-template-columns: 1fr; gap: 60px; }
    .stat-card { left: 20px; min-width: 180px; padding: 20px; } /* Push them inside the image bounds on mobile */
    .stat-top { top: 40px; }
    .stat-bottom { bottom: 40px; }
    .impact-main-img { height: 500px; }
}

/* ==========================================================================
   PORTFOLIO / STARTUPS SECTION
   ========================================================================== */

.legit-portfolio-section {
    padding: 120px 0;
    background-color: var(--bg-pure);
    position: relative;
    z-index: 10;
}

/* Filter Menu */
.portfolio-filter-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 15px;
    border-radius: 100px;
    transition: var(--transition-smooth);
}

.filter-btn:hover { color: var(--text-main); }
.filter-btn.active { color: var(--cyber-blue); }

.filter-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyber-blue);
    border-radius: 50%;
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Individual Portfolio Items */
.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
    display: none; /* Hides items that don't match the filter */
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cyber-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 15px var(--cyber-blue-glow);
}

.portfolio-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-filter-menu { gap: 10px; }
    .filter-btn { font-size: 0.9rem; padding: 6px 10px; }
}

/* ==========================================================================
   ECOSYSTEM FEATURES & STATS SECTION
   ========================================================================== */

.legit-features-section {
    padding: 120px 0;
    /* Deep slate background to contrast the white portfolio section */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Rotating Top Right Badge */
.features-floating-badge {
    position: absolute;
    top: 60px;
    right: 10%;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.badge-center-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.features-header {
    margin-bottom: 70px;
    max-width: 700px;
}

/* 4-Column Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    margin-bottom: 25px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
}

.feature-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Bottom Stats Row */
.features-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Matches the clean line in the screenshot */
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-big {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 60px; }
    .features-stats-row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .features-floating-badge { display: none; /* Hide badge on smaller screens to prevent overlap */ }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-big { font-size: 2.8rem; }
}
/* ==========================================================================
   MENTORSHIP & SUPPORT SECTION
   ========================================================================== */

.legit-support-section {
    padding: 120px 0;
    background-color: var(--bg-pure);
    position: relative;
    z-index: 10;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Staggered Images Setup */
.support-images-wrapper {
    display: flex;
    gap: 25px;
    position: relative;
    align-items: center;
    padding: 40px 0; /* Breathing room for the offset images */
}

.support-img-left, .support-img-right {
    width: 50%;
    height: 480px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* The Stagger Effect */
.support-img-left {
    transform: translateY(-40px);
}

.support-img-right {
    transform: translateY(40px);
}

/* Intersection Badge */
.intersect-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--bg-pure);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.badge-center-solid {
    width: 60px;
    height: 60px;
    background: var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px var(--cyber-blue-glow);
}

/* Content & Sub-features */
.support-sub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sub-feature-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-icon-circle {
    width: 55px;
    height: 55px;
    background: var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px var(--cyber-blue-glow);
}

.sub-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.sub-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .support-grid { grid-template-columns: 1fr; gap: 60px; }
    .support-images-wrapper { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .support-sub-features { grid-template-columns: 1fr; }
    .support-img-left { transform: translateY(-20px); height: 350px; }
    .support-img-right { transform: translateY(20px); height: 350px; }
    .intersect-badge { width: 110px; height: 110px; }
}
/* ==========================================================================
   FINAL CTA / CONTACT BANNER SECTION
   ========================================================================== */

.legit-cta-section {
    padding: 80px 0 140px 0; /* Extra padding at bottom for breathing room */
    background-color: var(--bg-pure);
    position: relative;
    z-index: 10;
}

.cta-banner-wrapper {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, #0055ff 100%);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 25px 50px var(--cyber-blue-glow);
    padding: 70px 80px;
    position: relative;
}

.cta-content {
    flex: 1;
    max-width: 600px;
    color: #fff;
    z-index: 2; /* Keeps text above the image */
}

.cta-content .section-subtitle span {
    color: #ffffff;
}

.cta-content .section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Contact Info Layout */
.cta-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.c-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.c-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
}

/* The Pop-out Image Trick */
.cta-image-wrapper {
    position: absolute;
    bottom: 0; /* Anchors the image to the bottom of the banner */
    right: 5%;
    width: 450px;
    height: 130%; /* Makes the wrapper taller than the banner itself! */
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.cta-person-img {
    width: 150%;
    height: 112%;
    object-fit: cover;
    filter: drop-shadow(-15px 15px 25px rgba(0,0,0,0.2)); /* Realistic shadow */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cta-banner-wrapper { 
        flex-direction: column; 
        padding: 50px 40px 300px 40px; /* Massive bottom padding to hold the image */
        text-align: center; 
    }
    
    .cta-content { max-width: 100%; }
    
    .cta-contact-info { 
        flex-direction: column; 
        gap: 20px; 
        align-items: center; 
    }
    
    .cta-image-wrapper { 
        width: 80%; 
        max-width: 400px; 
        height: auto; 
        right: 50%;
        transform: translateX(50%); /* Centers the image at the bottom */
    }
}
/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.legit-testimonials-section {
    padding: 120px 0;
    background-color: var(--bg-soft); /* Light contrast against pure white sections */
    position: relative;
    z-index: 10;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-pure);
    padding: 45px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--premium-shadow);
}

/* Card Header (Avatar & Quote) */
.testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testi-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.testi-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quote-icon {
    opacity: 0.8;
}

/* Divider & Content */
.testi-divider {
    height: 1px;
    background-color: var(--glass-border);
    margin: 25px 0;
}

.testi-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testi-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
}

/* Bottom Controls */
.testi-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-pure);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--cyber-blue);
    color: #fff;
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 15px var(--cyber-blue-glow);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 30px; }
}
/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.legit-faq-section {
    padding: 120px 0;
    background-color: var(--bg-soft);
    /* Subtle grid background like the screenshot */
    background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    z-index: 10;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

/* Left Content Features */
.faq-feature-list {
    list-style: none;
    margin-top: 40px;
}

.faq-feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-feature-list li svg {
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.2);
}

/* Right Accordion */
.faq-accordion {
    background: var(--bg-pure);
    border-radius: 25px;
    padding: 30px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--glass-border);
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: left;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--cyber-blue);
}

/* Animated Chevron Icon */
.faq-icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }

/* Active State Styles */
.faq-item.active .faq-question { color: var(--cyber-blue); }
.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after { background: var(--cyber-blue); }
.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; } /* Turns plus into minus */

/* Expanding Answer Logic */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Collapsed by default */
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr; /* Expands smoothly */
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 25px;
}

.faq-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-grid { grid-template-columns: 1fr; gap: 50px; }
    .faq-accordion { padding: 20px; }
}
/* ==========================================================================
   LATEST NEWS / BLOG SECTION
   ========================================================================== */

.legit-news-section {
    padding: 120px 0;
    background-color: var(--bg-pure); /* Pure white to contrast the FAQ section */
    position: relative;
    z-index: 10;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background: var(--bg-pure);
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.04);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow);
}

/* Image & Badge Wrapper */
.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 25px 25px 0 0;
    overflow: hidden; /* Contains the zoom effect */
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Overlapping Date Badge */
.date-badge {
    position: absolute;
    bottom: -15px; /* Pulls it down to overlap the white card content */
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 8px 20px var(--cyber-blue-glow);
    z-index: 10;
    border: 4px solid var(--bg-pure);
    transition: transform 0.3s ease;
}

.news-card:hover .date-badge {
    transform: scale(1.1);
}

.d-day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.d-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Card Text Content */
.news-content {
    padding: 40px 30px 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 5;
    background: var(--bg-pure);
    border-radius: 0 0 25px 25px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.4;
    flex-grow: 1; /* Pushes the Read More link to the bottom evenly */
}

/* Read More Link (Reusing discover-link styles from before) */
.news-content .discover-link {
    color: var(--cyber-blue);
}

.news-content .arrow-circle {
    width: 28px;
    height: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GLOBAL FOOTER SECTION
   ========================================================================== */

.legit-footer {
    background-color: #1a1e25; /* Deep slate, almost black */
    color: #ffffff;
    padding-top: 0; /* Padding is handled by the floating bar */
    position: relative;
    z-index: 10;
}

/* 1. Floating Contact Bar */
.footer-contact-bar {
    display: flex;
    background: #2a303c; /* Slightly lighter slate */
    border-radius: 20px;
    margin-top: -60px; /* Pulls it up to overlap the previous section */
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden; /* Keeps the blue block contained */
}

.fcb-logo-zone {
    background: var(--cyber-blue);
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcb-logo-zone h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    margin: 0;
}

.fcb-info-zone {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    padding: 20px 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.fcb-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fcb-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.fcb-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3px;
}

.fcb-val {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

/* 2. Main 4-Column Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.8fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--cyber-blue);
    color: #fff;
    border-color: var(--cyber-blue);
    transform: translateY(-3px);
}

/* Links List */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyber-blue);
    padding-left: 5px; /* Tiny hover shift */
}

/* Subscribe Form */
.footer-subscribe-form {
    display: flex;
    background: #2a303c;
    border-radius: 100px;
    padding: 5px 5px 5px 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-subscribe-form input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-family: inherit;
    outline: none;
    font-size: 0.95rem;
}

.footer-subscribe-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-subscribe-form button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--cyber-blue);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-subscribe-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--cyber-blue-glow);
}

/* 3. Bottom Copyright Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-links a:hover { color: var(--cyber-blue); }
.bottom-links .divider { margin: 0 10px; opacity: 0.3; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
    .footer-contact-bar { flex-direction: column; }
    .fcb-logo-zone { width: 100%; text-align: center; }
    .fcb-info-zone { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
}

@media (max-width: 768px) {
    .footer-main-grid { grid-template-columns: 1fr; gap: 40px; }
    .bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
}

/* ==========================================================================
   DARK MODE OVERRIDES
   ========================================================================== */
body.dark-mode {
    --bg-pure: #0f172a;       /* Deep slate for white areas */
    --bg-soft: #0b1120;       /* Even deeper slate for off-white areas */
    --text-main: #f8fafc;     /* Flips text to white */
    --text-muted: #94a3b8;    /* Flips muted text to light gray */
    --glass-white: rgba(15, 23, 42, 0.75); /* Darkens the glass header */
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Header Actions Layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   PRELOADER ANIMATIONS
   ========================================================================== */
.legit-preloader {
    position: fixed;
    inset: 0;
    background: #0f172a; /* Always loads dark for a cinematic feel */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* The class JS adds to pull the curtain up */
.legit-preloader.loaded {
    transform: translateY(-100%); 
}

.preloader-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
}

/* Staggered word reveal */
.preloader-text .word {
    transform: translateY(100%);
    animation: slideUpWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-text .word:nth-child(1) { animation-delay: 0.1s; }
.preloader-text .word:nth-child(2) { animation-delay: 0.3s; }
.preloader-text .word:nth-child(3) { animation-delay: 0.5s; }
.preloader-text .word:nth-child(4) { animation-delay: 0.7s; }
.preloader-text .word:nth-child(5) { animation-delay: 0.9s; }

.preloader-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--cyber-blue);
    width: 0%;
    animation: progressLoad 2.2s ease-in-out forwards;
}

@keyframes slideUpWord {
    to { transform: translateY(0); }
}

@keyframes progressLoad {
    0% { width: 0%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

/* ==========================================================================
   LEARN PAGE SPECIFIC STYLES
   ========================================================================== */

/* 1. Learn Hero */
.learn-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    
    overflow: hidden;
    z-index: 10;
}

.learn-hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.learn-hero-inner .hero-sub {
    margin: 0 auto;
}

/* Ambient Background Glow */
.hero-glow-orb {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyber-blue-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(50px);
    animation: pulseOrb 8s infinite alternate;
}

@keyframes pulseOrb {
    0% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

/* 2. Learning Tracks Grid */
.learning-tracks {
    padding: 100px 0;
    background-color: var(--bg-soft);
    position: relative;
    z-index: 10;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.track-card {
    background: var(--bg-pure);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.track-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyber-blue);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.1);
}

.track-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.track-card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.track-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the list and link to the bottom */
}

.track-skills {
    list-style: none;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.track-skills li {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-skills li::before {
    content: '→';
    color: var(--cyber-blue);
}

/* 3. The Vertical Timeline */
.learning-journey {
    padding: 120px 0;
    background-color: var(--bg-pure);
    position: relative;
    z-index: 10;
}

.journey-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* The vertical line running down the middle */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px; /* Aligned with the dots */
    width: 2px;
    background: linear-gradient(to bottom, var(--cyber-blue) 0%, rgba(0, 212, 255, 0.1) 100%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background: var(--bg-pure);
    border: 3px solid var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--cyber-blue);
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--cyber-blue-glow);
    flex-shrink: 0;
    margin-left: 15px; /* Centers the dot over the line */
}

.timeline-content {
    background: var(--bg-soft);
    padding: 35px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive Learn Page */
@media (max-width: 900px) {
    .tracks-grid { grid-template-columns: 1fr; }
    
    .timeline-line { left: 25px; }
    .timeline-dot { width: 40px; height: 40px; margin-left: 5px; font-size: 1rem; }
    .timeline-item { gap: 20px; flex-direction: column; padding-left: 70px; }
    
    /* Move dot to absolute positioning on mobile to sit on the line */
    .timeline-dot { position: absolute; left: 0; top: 0; }
}

/* ==========================================================================
   ULTRA-DETAILED LEARN PAGE OVERRIDES
   ========================================================================== */

.justify-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 1. Engineering Standards Section */
.engineering-standards {
    background-color: var(--bg-pure);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.standard-card {
    background: var(--bg-soft);
    padding: 30px;
    border-radius: 16px;
    border-left: 3px solid var(--cyber-blue); /* Strong tech accent */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.standard-card:hover {
    transform: translateX(10px); /* Slides right slightly on hover */
}

.standard-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.standard-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 2. The Tech Pill UI for the Course Cards */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.tech-pill {
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyber-blue);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(0, 212, 255, 0.15);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.track-card:hover .tech-pill {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Make sure the rest of the track card uses flex correctly */
.track-card {
    background: var(--bg-pure);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.track-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .standards-grid { grid-template-columns: 1fr; }
    .standard-card:hover { transform: translateY(-5px); }
}
/* ==========================================================================
   EARN PAGE SPECIFIC STYLES
   ========================================================================== */

/* 1. Earn Hero */
.earn-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    background-color: var(--bg-soft);
    overflow: hidden;
    z-index: 10;
}

.earn-hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Subtle shift in the orb color for the Earn page (Slightly greener/wealth vibe) */
.earn-orb {
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15) 0%, transparent 70%);
}

/* ==========================================================================
   FIXED PLACEMENT STATS (Unified Flex Bar)
   ========================================================================== */

.placement-stats {
    background-color: var(--bg-pure);
    padding: 80px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
}

/* The new unified container */
.earn-stats-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-soft);
    padding: 50px 20px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.earn-stat-block {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

/* Clean vertical lines to separate the stats */
.earn-stat-divider {
    width: 1px;
    height: 100px;
    background: var(--glass-border);
    margin: 0 10px;
}

.earn-stat-block .stat-big {
    font-size: clamp(2.5rem, 4vw, 3.5rem); 
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.earn-stat-block .stat-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.earn-stat-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Bulletproof Responsive Stacking */
@media (max-width: 1024px) {
    .earn-stats-flex {
        flex-wrap: wrap;
        gap: 40px 0;
    }
    .earn-stat-block {
        flex: 0 0 45%; /* Forces 2 per row on tablets */
    }
    /* Hide the 2nd divider so it breaks cleanly into two rows */
    .earn-stat-divider:nth-child(4) {
        display: none; 
    }
}

@media (max-width: 600px) {
    .earn-stats-flex {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    .earn-stat-block {
        flex: 1 1 100%;
    }
    /* Hide all dividers on mobile */
    .earn-stat-divider {
        display: none; 
    }
}
/* 3. Hiring Partners Marquee */
.hiring-partners-section {
    padding: 80px 0;
    background-color: var(--bg-soft);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-title {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 80px;
    align-items: center;
    /* Infinite scroll animation */
    animation: scrollMarquee 20s linear infinite;
}

.marquee-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.5;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.marquee-logo:hover {
    opacity: 1;
    color: var(--text-main);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the track to loop seamlessly */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
    .stats-grid-4 { grid-template-columns: 1fr; }
    .marquee-track { gap: 40px; }
    .marquee-logo { font-size: 1.2rem; }
}
/* ==========================================================================
   GROW (INCUBATION) PAGE SPECIFIC STYLES
   ========================================================================== */

/* Grow Hero */
.grow-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    background-color: var(--bg-soft);
    overflow: hidden;
    z-index: 10;
}

.grow-hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Venture Violet Glow to distinguish the Incubation phase */
.grow-orb {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
}

/* Slower Marquee for Investor Network */
.grow-marquee {
    animation: scrollMarquee 25s linear infinite; /* Slightly slower and more deliberate than the hiring marquee */
}

/* ==========================================================================
   INFRASTRUCTURE (TECH) PAGE SPECIFIC STYLES
   ========================================================================== */

/* Tech Hero with Blueprint Grid Background */
.tech-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    background-color: var(--bg-soft);
    overflow: hidden;
    z-index: 10;
}

/* The Blueprint Grid Overlay */
.tech-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.tech-hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Sharp, bright cyan orb for the Tech/Server vibe */
.tech-orb {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
}

/* Ensure the rotating text badge on the staggered UI adapts to Dark Mode */
body.dark-mode .intersect-badge .badge-text-svg text {
    fill: #ffffff; /* Turns the "BUILD PHYSICAL * BUILD DIGITAL" text white in dark mode */
}