/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f4f8fb; }

/* --- NAVBAR --- */
.navbar { padding: 20px 0; position: absolute; top: 0; width: 100%; z-index: 10; background: transparent; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; } /* White logo for hero */
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #fff; font-size: 0.95rem; opacity: 0.9; }
.nav-links a:hover { opacity: 1; }

/* --- HERO SECTION (The Big Image) --- */
.hero {
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    height: 90vh; /* Tall hero */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding-top: 60px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens image */
}

.hero-content {
    position: relative; z-index: 2; text-align: center; margin-bottom: 60px;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 15px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; }
.btn-outline { border: 2px solid #fff; color: #fff; border-radius: 50px; }
.btn-outline:hover { background: #fff; color: #000; }

/* --- FIXED GLASS NAVBAR --- */
/* --- UPDATED NAVBAR (Tinted Glass) --- */
.navbar-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    
    /* THE FIX: Slight Blue Tint instead of Pure White */
    background: rgba(240, 249, 255, 0.95); 
    
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Softer border */
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Subtle shadow for depth */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a; /* Dark Navy */
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #0284c7; /* Brand Blue */
}

.btn-nav-action {
    background: #0f172a;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.btn-nav-action:hover {
    background: #0284c7;
}

/* --- BRIGHT PICTURE HERO --- */
/* --- BRIGHT PICTURE HERO (UPDATED) --- */
.hero-bright {
    position: relative;
    height: 100vh;
    min-height: 700px;
    
    /* THE FIX: Light Blue Tint + Corporate Office Image */
    background: linear-gradient(to bottom, rgba(240, 249, 255, 0.9), rgba(240, 249, 255, 0.6)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Ensure Text Pops against the Blue Tint */
.hero-content-center h1 {
    font-size: 4rem;
    color: #0f172a; 
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    /* Optional: Adds a tiny white shadow to separate text from background details */
    text-shadow: 0 2px 10px rgba(255,255,255,0.5); 
}

.hero-content-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 60px; /* Space above boxes */
}

.badge-pill-white {
    background: #fff;
    color: #0284c7;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content-center h1 {
    font-size: 4rem;
    color: #0f172a; /* Dark Text */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight-blue {
    color: #0284c7;
}

.hero-content-center p {
    font-size: 1.25rem;
    color: #475569; /* Dark Gray Text */
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary-solid {
    background: #0284c7;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.btn-primary-solid:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background: rgba(255,255,255,0.8);
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-outline:hover {
    background: #fff;
    color: #0284c7;
}

/* --- REFINED GLASS BOXES (Bottom Row) --- */
.hero-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.glass-box {
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent White */
    backdrop-filter: blur(15px);          /* Heavy Blur */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.box-icon {
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.box-info h3 {
    color: #0f172a;
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 700;
}

.box-info p {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.box-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: 0.3s;
}

/* Hover Effects */
.glass-box:hover {
    background: #fff; /* Solid white on hover */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #38bdf8;
}

.glass-box:hover .box-icon {
    background: #0284c7;
}

.glass-box:hover .box-arrow {
    color: #0284c7;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-bright { height: auto; min-height: 100vh; padding-bottom: 50px; }
    .hero-content-center h1 { font-size: 2.8rem; }
    .hero-bottom-row { grid-template-columns: 1fr; margin-top: 40px; }
    .nav-links { display: none; } /* Use a mobile menu script if needed */
}

/* --- PROFESSIONAL ABOUT SECTION --- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split 50/50 */
    gap: 80px; /* Big gap for breathing room */
    align-items: center;
}

/* Image Styling */
.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.main-about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    /* Subtle rotation for style */
    transform: rotate(-2deg); 
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .main-about-img {
    transform: rotate(0deg); /* Straightens on hover */
}

/* Floating Glass Stat Card */
.about-stat-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 2;
}

.stat-number {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: #e2e8f0;
}

/* Pattern Dots Decoration */
.pattern-dots {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#38bdf8 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

/* Typography & List */
.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
}

.section-desc {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #334155;
}

.about-checklist i {
    color: #38bdf8; /* Brand Blue */
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 50px;
    }
    
    .about-image-wrapper {
        margin: 20px; /* Make room for the floating card */
    }
    
    .main-about-img {
        transform: rotate(0deg); /* No rotation on mobile */
    }
    
    .about-stat-card {
        right: 0;
        bottom: -20px;
        padding: 20px;
        width: 90%; /* Fit screen */
    }
}
/* --- SERVICES MATRIX STYLES --- */

.service-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-box {
    background: #fff;
    border: 1px solid #e2e8f0; /* Light gray border */
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff; /* Very light blue */
    color: #0284c7;      /* Brand Blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.service-box p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes link to bottom */
}

.service-link {
    color: #0284c7;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* --- HOVER EFFECTS --- */
.service-box:hover {
    transform: translateY(-5px);
    border-color: #38bdf8; /* Glows blue */
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.1); /* Blue shadow */
}

.service-box:hover .service-icon {
    background: #0284c7;
    color: #fff;
    transform: scale(1.1);
}

.service-box:hover .service-link {
    color: #0ea5e9;
}

.service-box:hover .service-link i {
    transform: translateX(5px); /* Arrow moves right */
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .service-matrix {
        grid-template-columns: 1fr; /* 1 Column */
        padding: 0 10px;
    }
    
    .service-box {
        padding: 30px;
    }
}
/* --- VISUAL SERVICE CARDS --- */

.service-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card-visual {
    background: #fff;
    border-radius: 16px;
    overflow: hidden; /* Keeps image inside rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* The Top Image Area */
.card-image {
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* The Bottom Content Area */
.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Floating Icon (Overlaps image and text) */
.icon-small {
    width: 50px;
    height: 50px;
    background: #0284c7;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: absolute;
    top: -25px; /* Pulls it up into the image area */
    right: 30px; /* Sits on the right */
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
    transition: 0.3s;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px; /* Space for the floating icon */
    margin-bottom: 15px;
}

.card-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Hover Effects */
.service-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #38bdf8;
}

.service-card-visual:hover .card-image img {
    transform: scale(1.1); /* Zoom effect */
}

.service-card-visual:hover .icon-small {
    transform: scale(1.1) rotate(5deg);
    background: #0ea5e9;
}

/* Responsive */
@media (max-width: 768px) {
    .service-matrix {
        grid-template-columns: 1fr;
    }
}

/* --- NEWSLETTER --- */
.newsletter-form { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.newsletter-form input { padding: 12px; width: 300px; border: 1px solid #ddd; border-radius: 5px; }
.btn-black { background: #000; color: #fff; border: none; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 50px auto 0; }
.faq-item { margin-bottom: 40px; }
.faq-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.faq-item p { color: #666; }

/* --- FOOTER --- */
.footer { background: #1a252f; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { margin-bottom: 20px; color: #fff; }
.footer-col p { color: #bdc3c7; font-size: 0.9rem; margin-bottom: 10px; }
.social-icons a { color: #fff; margin-right: 15px; font-size: 1.2rem; }
.mini-form { display: flex; gap: 5px; margin-top: 10px; }
.mini-form input { padding: 8px; border: none; border-radius: 3px; }
.mini-form button { padding: 8px 15px; background: #3498db; border: none; color: #fff; border-radius: 3px; cursor: pointer; }
.copyright { border-top: 1px solid #34495e; padding-top: 20px; color: #7f8c8d; font-size: 0.8rem; }

.btn-text {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-text:hover {
    color: #1a252f;
}

/* --- BLOG CARD STYLES --- */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Featured Post Mobile Fix */
@media (max-width: 768px) {
    .featured-post {
        flex-direction: column;
    }
}

/* --- FIXED HERO STYLES --- */
.hero-interactive {
    position: relative;
    height: 100vh;
    width: 100%;
    background: #0f172a;
    display: flex;            /* Enables Flexbox */
    justify-content: center;  /* Centers content horizontally */
    align-items: center;      /* Centers content vertically */
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* This is the key fix: Forces the container to be centered and have width */
.container {
    width: 100%;
    max-width: 1200px; /* Standard website width */
    margin: 0 auto;    /* Centers the container */
    padding: 0 20px;   /* Adds breathing room on sides */
    position: relative;
    z-index: 2;        /* Ensures text is above particles */
}

.hero-content-layer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text gets 60%, Cards get 40% */
    align-items: center;
    gap: 4rem;
    width: 100%; /* Ensures grid takes full width of container */
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
}

/* Button Group Fix */
.btn-group {
    display: flex;
    gap: 15px;
}

/* --- CARDS FIX --- */
.hero-cards-floating {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* If the grid breaks, this ensures cards don't overlap text */
    min-width: 300px; 
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.05); /* Slightly more visible */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.glass-stat-card:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); /* Glow effect */
}

.icon-glow {
    font-size: 1.5rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-stat-card h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.glass-stat-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 992px) {
    .hero-content-layer {
        grid-template-columns: 1fr; /* Stack vertically on tablet */
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-cards-floating {
        flex-direction: row; /* Horizontal cards on tablet */
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- FEATURED COURSES SECTION --- */
.badge-pill {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px); /* Gentle lift on hover */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.course-img-wrapper {
    position: relative;
    height: 200px;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.level-tag.beginner { background: #2ecc71; } /* Green */
.level-tag.intermediate { background: #f39c12; } /* Orange */
.level-tag.strategy { background: #9b59b6; } /* Purple */

.course-content {
    padding: 25px;
}

.meta-row {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.meta-row i { color: #3498db; }

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.course-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f4f4f4;
    padding-top: 15px;
}

.price {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.btn-link {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #1d6fa5;
    text-decoration: underline;
}

.btn-outline-dark {
    display: inline-block;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: #2c3e50;
    color: #fff;
}

/* --- TECH STACK MARQUEE --- */
.tech-stack-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden; /* Hides the scrollbar */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Creates the fade effect on sides */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite; /* The animation engine */
}

.tech-item {
    display: inline-block;
    margin: 0 40px;
    font-size: 2.5rem;
    color: #cbd5e1; /* Light gray initially */
    transition: 0.3s ease;
    text-align: center;
    cursor: default;
}

.tech-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0; /* Hidden text by default */
    transform: translateY(10px);
    transition: 0.3s;
}

/* Hover Effect: Colorizes the icon and shows text */
.tech-item:hover {
    color: #3498db; /* Changes to blue */
    transform: scale(1.1);
}

.tech-item:hover span {
    opacity: 1;
    transform: translateY(0);
    color: #333;
}

/* The Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves half way (because we duplicated content) */
    }
}

/* Mobile Tweak: Speed it up slightly */
@media (max-width: 768px) {
    .tech-item {
        margin: 0 20px;
        font-size: 2rem;
    }
}

/* --- PROCESS SECTION --- */
.process-section {
    background-color: #fff;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2; /* Sits above the connector line */
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: #3498db;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* The small number bubble */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.process-step:hover .step-icon {
    border-color: #3498db;
    background: #f0f9ff;
    transform: translateY(-5px);
}

.process-step h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* The Dotted Line Connector */
.process-connector {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, #ccc 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    margin-top: 40px; /* Aligns with the middle of the icon */
    opacity: 0.5;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
    .process-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-connector {
        display: none; /* Hide horizontal lines on mobile */
    }
    
    /* Add a vertical line instead? Optional. For now, stacking is cleaner. */
}

/* --- PROFESSIONAL INDUSTRIES SCROLLER (COMPLETE FIX) --- */

.scroller-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 1. THE CONTAINER (This fixes the vertical stacking) */
.industry-scroller-pro {
    display: flex;            /* Forces horizontal row */
    gap: 30px;               /* Space between cards */
    overflow-x: auto;         /* Allows scrolling */
    padding: 30px 5px;        /* Padding for hover effects */
    scroll-behavior: smooth;  
    scrollbar-width: none;    /* Hide scrollbar Firefox */
    width: 100%;              /* Ensure it takes full width */
}

/* Hide scrollbar for Chrome/Safari */
.industry-scroller-pro::-webkit-scrollbar {
    display: none; 
}

/* 2. THE CARD DESIGN (With the hover fix) */
.industry-card-pro {
    min-width: 360px;         /* Keeps cards wide */
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    flex-shrink: 0;           /* Prevents cards from squishing */
}

.industry-card-pro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* 3. THE GLASS PANEL (Hidden text logic) */
.glass-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s ease;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;         /* Compact by default */
    transition: 0.4s ease;
}

.icon-accent {
    color: #38bdf8;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.glass-panel h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Hidden Description */
.glass-panel p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;            /* Hidden */
    opacity: 0;               /* Invisible */
    margin-top: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* 4. HOVER INTERACTIONS */
.industry-card-pro:hover {
    transform: translateY(-10px);
}

.industry-card-pro:hover img {
    transform: scale(1.1);
}

.industry-card-pro:hover .glass-panel {
    background: rgba(15, 23, 42, 0.95);
    padding-bottom: 30px;
}

.industry-card-pro:hover .panel-header {
    margin-bottom: 15px;      /* Make room for text */
}

.industry-card-pro:hover .glass-panel p {
    max-height: 100px;        /* Reveal text */
    opacity: 1;
    margin-top: 5px;
}

/* 5. ARROW BUTTONS */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #38bdf8;
    color: #fff;
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

.btn-left { left: -30px; }
.btn-right { right: -30px; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .industry-card-pro {
        min-width: 280px;
        height: 400px;
    }
    .scroll-btn {
        display: none; /* Hide arrows on mobile */
    }
}

/* --- FAQ ACCORDION STYLES --- */
.row-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq-header {
    flex: 1;
    max-width: 400px;
}

.faq-list {
    flex: 1.5;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: #3498db;
}

.icon-toggle {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

/* The Answer Box (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    color: #64748b;
    padding-bottom: 20px;
    line-height: 1.6;
    margin: 0;
}

/* Active State (Added by JS) */
.faq-item.active .icon-toggle {
    transform: rotate(45deg); /* Turns (+) into (x) */
    color: #3498db;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Expands to show text */
}

/* --- DARK NEWSLETTER BANNER --- */
.newsletter-banner {
    background: #0f172a; /* Dark Tech Blue */
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.newsletter-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(15,23,42,0) 70%);
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.newsletter-form-pro {
    flex: 1;
    max-width: 500px;
}

.input-group {
    display: flex;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 5px;
    transition: 0.3s;
}

.input-group:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: #38bdf8;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px;
    outline: none;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group button {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 0 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.input-group button:hover {
    background: #fff;
}

.privacy-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .row-layout, .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .faq-header { max-width: 100%; margin-bottom: 30px; }
    .btn-text-arrow { justify-content: center; }
    
    .input-group { flex-direction: column; background: transparent; border: none; padding: 0; gap: 10px; }
    .input-group input { background: rgba(255,255,255,0.1); border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }
    .input-group button { padding: 15px; }
    .privacy-note { justify-content: center; }
}

/* --- PROFESSIONAL MEGA FOOTER --- */
.footer-pro {
    background: #0f172a; /* Deep Navy (Matches Theme) */
    color: #94a3b8;      /* Muted Text */
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Brand col is wider */
    gap: 40px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand-col p {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-icons-pro {
    display: flex;
    gap: 15px;
}

.social-icons-pro a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons-pro a:hover {
    background: #38bdf8; /* Brand Blue */
    transform: translateY(-3px);
}

/* Link Columns */
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 5px; /* Slide effect */
}

/* Contact Column */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-list i {
    color: #38bdf8;
    margin-top: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablet */
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- OPTION 2: DEEP SLATE (Subtle Dark Mode) --- */
.newsletter-banner {
    background: #1e293b; /* Slate Grey (Lighter than footer) */
    padding: 80px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Divider line */
}

/* Button stays distinct */
.input-group button {
    background: #38bdf8; /* Cyan button pops against dark grey */
    color: #0f172a;
}

/* --- SERVICES HERO (UPDATED MODERN LOOK) --- */
.services-hero {
    position: relative;
    padding: 180px 0 120px;
    background-color: #f8fafc;
    /* Kept the technical grid, it's good base */
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    overflow: hidden;
}

.hero-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Typography Updates (Removed Blue Text) */
.badge-pill-tech {
    background: #0f172a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.service-text h1 {
    font-size: 4rem;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.service-text p {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 45px;
    max-width: 550px;
    line-height: 1.6;
}

/* --- THE "STANDING" TECH STACK (Fixed) --- */
.service-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    height: 500px;
    align-items: center;
}

.isometric-stack {
    position: relative;
    width: 320px;
    height: 400px;
    /* THE FIX: Stand it up! Less X rotation, more Y rotation. */
    transform: rotateY(-20deg) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* THE CARD CONTAINER */
.iso-card {
    position: absolute;
    width: 100%;
    height: 90px;
    /* Animation to make them float */
    animation: floatStack 4s ease-in-out infinite;
}

/* THE CARD VISUALS (Dark Blocks) */
.card-surface {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Clean Dark Navy Gradient */
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    
    /* Strong shadow to show depth behind the standing card */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
}

/* THE THICKNESS (Right Side Wall) */
/* Since we stood it up, the thickness should be on the RIGHT, not the bottom */
.iso-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px; /* Shift to right */
    width: 10px;  /* Thickness */
    height: 100%;
    background: #020617; /* Darker edge */
    transform-origin: left;
    transform: skewY(45deg); /* Angled to match perspective */
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left: none;
}

/* GLOWING ACCENT BAR (Left Edge) */
.tech-edge {
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background: #38bdf8;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px #38bdf8;
}

/* CONTENT STYLING */
.iso-icon {
    width: 50px; height: 50px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.iso-info h4 { color: #fff; margin: 0 0 3px; font-size: 1.1rem; font-weight: 700; }
.iso-info span { color: #94a3b8; font-size: 0.85rem; }

/* STACKING & ANIMATION DELAYS */
/* Note: translateY moves them UP/DOWN now, not Z-depth */
.layer-infra { 
    top: 240px; 
    z-index: 3; /* Bottom card is closest in this angle */
    animation-delay: 0s;
}

.layer-data { 
    top: 130px; 
    z-index: 2;
    transform: scale(0.95); /* Slight scale for depth */
    opacity: 0.9;
    animation-delay: 0.5s;
}

.layer-ai { 
    top: 20px; 
    z-index: 1; 
    transform: scale(0.9); 
    opacity: 0.8;
    animation-delay: 1s;
}

/* CONNECTORS (Vertical Lines connecting the back) */
.connector-line {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #38bdf8, transparent);
    left: 45px;
    z-index: 0;
    opacity: 0.5;
}
.c1 { top: 70px; } /* Connects AI to Data */
.c2 { top: 180px; } /* Connects Data to Infra */

/* THE LEVITATION ANIMATION */
@keyframes floatStack {
    0%, 100% { transform: translateY(0px) scale(var(--s, 1)); }
    50% { transform: translateY(-15px) scale(var(--s, 1)); }
}

/* HOVER EFFECT */
.service-visual:hover .layer-ai { top: 0px; opacity: 1; }
.service-visual:hover .layer-data { top: 120px; opacity: 1; }
.service-visual:hover .layer-infra { top: 240px; }

/* --- FIXING THE INVISIBLE CARDS --- */

/* 1. Force the Dark Background on the Card Face */
.card-surface {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* FORCE DARK NAVY BACKGROUND */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    
    border: 1px solid rgba(56, 189, 248, 0.5); /* Brighter Blue Border */
    border-radius: 12px;
    
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    
    /* Strong Shadow to separate from grid */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
    
    /* Ensure opacity is solid */
    opacity: 1;
    z-index: 10; /* Ensure content sits on top */
}

/* 2. Force White Text Visibility */
.iso-info h4 { 
    color: #ffffff !important; /* Pure White */
    margin: 0 0 3px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Readability shadow */
}

.iso-info span { 
    color: #cbd5e1 !important; /* Light Silver */
    font-size: 0.85rem; 
    font-family: monospace;
}

/* 3. Fix the 3D Side Thickness (Right Wall) */
.iso-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px; 
    width: 10px;  
    height: 100%;
    background: #020617 !important; /* Very Dark Navy (Almost Black) */
    transform-origin: left;
    transform: skewY(45deg); 
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-left: none;
}

/* 4. Ensure Icons Pop */
.iso-icon {
    width: 50px; height: 50px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8 !important;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

/* --- BULLETPROOF CARD SURFACE FIX --- */
.card-surface {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    
    /* 1. FORCE SOLID DARK COLOR (No Gradients) */
    background-color: #0f172a !important;
    
    /* 2. ADD MICRO-GRID IMAGE ON TOP */
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px;
    
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 12px;
    
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    
    /* 3. ENSURE 3D RENDERING VISIBILITY */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 10;
    opacity: 1 !important;
    
    /* Shadow for depth */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

/* Force Text Color again just to be safe */
.iso-info h4 { color: #ffffff !important; }
.iso-info span { color: #cbd5e1 !important; }

/* --- INTERACTIVE SERVICE NEXUS --- */
.nexus-section {
    background: #f8fafc;
    padding: 100px 0;
    /* subtle background pattern to fix "emptiness" */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px; 
}

.nexus-header {
    text-align: center;
    margin-bottom: 60px;
}
.nexus-header h2 { font-size: 2.5rem; color: #0f172a; font-weight: 800; }
.nexus-header p { color: #64748b; }

.nexus-interface {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left menu narrower, Right display wider */
    gap: 40px;
    align-items: start; /* Important for Sticky to work */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- LEFT: SCROLLABLE MENU --- */
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nexus-trigger {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nexus-trigger:hover {
    transform: translateX(10px); /* Slide right */
    border-color: #cbd5e1;
}

/* Active State (Selected) */
.nexus-trigger.active {
    background: #0f172a; /* Dark Navy */
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.trigger-icon {
    width: 40px; height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
}

.nexus-trigger.active .trigger-icon {
    background: rgba(255,255,255,0.1);
    color: #38bdf8;
}

.trigger-info h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #0f172a; }
.trigger-info span { font-size: 0.85rem; color: #64748b; }

.nexus-trigger.active .trigger-info h4 { color: #fff; }
.nexus-trigger.active .trigger-info span { color: #94a3b8; }

.trigger-arrow { margin-left: auto; color: #cbd5e1; font-size: 0.9rem; }
.nexus-trigger.active .trigger-arrow { color: #38bdf8; }

/* --- RIGHT: DYNAMIC DISPLAY (STICKY) --- */
.nexus-display {
    position: sticky;
    top: 100px; /* Sticks to top of screen when scrolling */
    height: 100%;
}

.display-card {
    background: #0f172a; /* Dark Tech Background */
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 400px; /* Ensure it has size */
    display: flex;
    flex-direction: column;
}

/* Fake Browser Header */
.display-header-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }
.sys-status { margin-left: auto; font-family: monospace; color: #22c55e; font-size: 0.8rem; }

/* Content Animation Area */
.display-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.display-icon-large {
    font-size: 3rem;
    color: #38bdf8;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
}

.display-content h3 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; }
.display-content p { color: #cbd5e1; font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px; max-width: 90%; }

/* Meta Data Box */
.display-meta {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.meta-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
}

.highlight-box {
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.1);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tech-stack-dynamic { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-stack-dynamic span {
    background: rgba(255,255,255,0.1);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.highlight-box h4 { font-size: 1.5rem; color: #fff; margin: 0; font-weight: 700; }

/* Decorative Background */
.display-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 900px) {
    .nexus-interface { grid-template-columns: 1fr; }
    .nexus-display { position: static; }
}

/* --- DATA VISUALIZER (Replaces Big Icon) --- */
.display-visualizer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ANIMATED BARS */
.activity-bars {
    display: flex;
    gap: 4px;
    height: 40px;
    align-items: flex-end;
}

.bar {
    width: 6px;
    background: #38bdf8;
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
}

.bar:nth-child(1) { height: 20px; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 35px; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 15px; animation-delay: 0.3s; }
.bar:nth-child(4) { height: 30px; animation-delay: 0.4s; }
.bar:nth-child(5) { height: 10px; animation-delay: 0.5s; }

@keyframes soundWave {
    0%, 100% { height: 10px; opacity: 0.5; }
    50% { height: 35px; opacity: 1; }
}

/* LIVE BADGE */
.status-badge-live {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* --- RIGHT: DYNAMIC DISPLAY (Professional Update) --- */
.nexus-display {
    position: sticky;
    top: 100px;
    height: 100%;
}

.display-card {
    /* THE FIX: Professional Background Image with Heavy Dark Overlay */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    
    border-radius: 20px;
    padding: 50px; /* Increased padding for executive feel */
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* New "Category Label" at the top */
.category-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #38bdf8; /* Blue accent line */
}

/* Content Typography */
.display-content h3 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
    line-height: 1.1;
    letter-spacing: -1px;
}

.display-content p { 
    color: #cbd5e1; 
    font-size: 1.15rem; 
    line-height: 1.7; 
    margin-bottom: 50px; 
    max-width: 95%; 
    border-left: 3px solid rgba(56, 189, 248, 0.3); /* Professional border accent */
    padding-left: 20px;
}

/* Meta Data Box (Cleaned up) */
.display-meta {
    display: flex;
    gap: 0; /* Removed gap, we will use borders instead */
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.meta-box {
    padding: 25px 30px 0 0; /* Spacing */
    flex: 1;
}

.meta-box:last-child {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 30px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.highlight-box h4 { font-size: 1.8rem; color: #fff; margin: 0; font-weight: 700; }

.tech-stack-dynamic { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-stack-dynamic span {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
    color: #e2e8f0;
}

/* --- FIX 1: SCROLLABLE SIDEBAR --- */
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* THE SCROLL FIX */
    max-height: 500px; /* Limits height to match the right side */
    overflow-y: auto;  /* Adds scrollbar when needed */
    padding-right: 10px; /* Space for scrollbar */
}

/* --- FIXED SCROLLABLE SIDEBAR --- */
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* 1. STRICT HEIGHT LIMIT */
    height: 550px; /* This forces the container to be a fixed window */
    overflow-y: scroll; /* Forces scroll functionality */
    
    /* 2. SPACING FOR SCROLLBAR */
    padding-right: 15px; /* Ensures text doesn't hit the scrollbar */
    padding-bottom: 20px;
    
    /* Optional: Smooth scroll behavior */
    scroll-behavior: smooth;
}

/* --- VISIBLE SCROLLBAR STYLING --- */
/* This makes the scrollbar look like a UI element, not a browser default */

/* --- FIXED SCROLLABLE SIDEBAR (UPDATED) --- */
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* THE FIX: Reduce height so it's shorter than the content */
    height: 380px; 
    
    overflow-y: auto; /* 'auto' means scrollbar appears only when needed */
    padding-right: 15px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

/* Scrollbar Styling (Keep this) */
.nexus-menu::-webkit-scrollbar {
    width: 8px;
}
.nexus-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.nexus-menu::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 4px;
}

.nexus-menu::-webkit-scrollbar-thumb:hover {
    background-color: #64748b; /* Darker when you grab it */
}

/* --- FIX 2: REPAIRED META BOXES --- */
.display-meta {
    display: grid; /* Use Grid instead of Flex for stability */
    grid-template-columns: 1fr 1fr; /* Split exactly 50/50 */
    gap: 0; /* No gap, we use borders */
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.2); /* Darker background for contrast */
    border-radius: 0 0 20px 20px; /* Round bottom corners */
    margin: 0 -50px -50px -50px; /* Stretch to edges of card */
}

.meta-box {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Add divider line between the two boxes */
.meta-box:first-child {
    border-right: 1px solid rgba(255,255,255,0.15);
}

/* Highlight the second box slightly */
.highlight-box {
    background: rgba(56, 189, 248, 0.05);
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Fix the Technology Tags Layout */
.tech-stack-dynamic { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.tech-stack-dynamic span {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px; /* Squarer tech look */
    color: #fff;
    white-space: nowrap; /* Prevent text wrapping inside tag */
}

/* Fix the Big Number Text */
.highlight-box h4 { 
    font-size: 2rem; 
    color: #38bdf8; /* Blue Text for pop */
    margin: 0; 
    font-weight: 700; 
    line-height: 1;
}
 /* --- FIXED SCROLLABLE SIDEBAR (Aligned & Restored) --- */
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* 1. HEIGHT MATCHING */
    /* We set this to 550px to match the visual height of the right display card */
    height: 550px; 
    
    overflow-y: auto; 
    padding-right: 15px;
    padding-bottom: 20px;
    
    /* Optional: Snap scrolling for better feel */
    scroll-snap-type: y proximity;
}

/* --- THE MENU ITEMS (Rectangles) --- */
.nexus-trigger {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* 2. THE FIX: PREVENT SHRINKING */
    /* This forces the box to keep its original size (approx 90px) */
    /* effectively forcing the container to scroll instead of squash. */
    flex-shrink: 0; 
    
    /* Optional: Ensure consistent height */
    min-height: 90px;
    scroll-snap-align: start;
}

/* Hover & Active States (Keep these as they were) */
.nexus-trigger:hover {
    transform: translateX(5px);
    border-color: #cbd5e1;
}

.nexus-trigger.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

/* --- SCROLLBAR STYLING (Keep this) --- */
.nexus-menu::-webkit-scrollbar { width: 6px; }
.nexus-menu::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.nexus-menu::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.nexus-menu::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- ENGAGEMENT MODELS SECTION --- */
.engagement-section {
    background: #fff;
    padding: 120px 0;
    position: relative;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header-center h2 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 15px;
}

.highlight-navy {
    color: #0f172a;
    position: relative;
    display: inline-block;
}
/* Subtle underline for emphasis */
.highlight-navy::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; width: 100%; height: 6px;
    background: rgba(56, 189, 248, 0.2);
    z-index: -1;
}

.section-header-center p { color: #64748b; font-size: 1.1rem; }

.badge-pill-light {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

/* THE CARDS GRID */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center; /* Aligns them vertically */
}

/* BASE CARD STYLE */
.engage-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.engage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* CARD CONTENT */
.icon-circle {
    width: 60px; height: 60px;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    border: 1px solid #e2e8f0;
}

.engage-card h3 { font-size: 1.4rem; color: #0f172a; margin-bottom: 5px; font-weight: 700; }
.model-desc { color: #94a3b8; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; font-weight: 600; }

.card-body p { color: #64748b; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; min-height: 50px; }

/* CHECKLIST */
.check-list { list-style: none; padding: 0; text-align: left; margin-bottom: 30px; }
.check-list li {
    display: flex; gap: 10px; align-items: center;
    color: #475569; margin-bottom: 12px; font-size: 0.9rem;
}
.check-list i { color: #22c55e; font-size: 0.8rem; }

/* FEATURED CARD (The "Recommended" one) */
.featured-card {
    background: #0f172a; /* Dark Navy Background */
    color: #fff;
    border: none;
    padding: 50px 30px; /* Slightly taller */
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
    transform: scale(1.05); /* Make it bigger */
    z-index: 2;
}

.featured-card:hover { transform: scale(1.05) translateY(-5px); }

/* Override styles for dark card */
.featured-card h3 { color: #fff; }
.featured-card .model-desc { color: #94a3b8; }
.featured-card .card-body p { color: #cbd5e1; }
.featured-card .check-list li { color: #e2e8f0; }
.featured-card .icon-circle { background: rgba(255,255,255,0.1); color: #38bdf8; border: none; }

/* Badge for Featured */
.rec-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: #38bdf8;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* BUTTONS */
.btn-outline-dark {
    display: inline-block;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
}
.btn-outline-dark:hover { background: #f1f5f9; border-color: #cbd5e1; }

.btn-solid-blue {
    display: inline-block;
    background: #38bdf8;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}
.btn-solid-blue:hover { background: #0284c7; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .engagement-grid { grid-template-columns: 1fr; gap: 50px; }
    .featured-card { transform: scale(1); } /* Reset scale on mobile */
    .featured-card:hover { transform: translateY(-5px); }
}

/* --- CLEAN INFRASTRUCTURE SECTION (Fixed) --- */
.cinematic-section {
    background: #ffffff; /* Back to Clean White */
    color: #0f172a; /* Dark Navy Text */
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.cinematic-wrapper {
    display: flex;
    height: 100vh; /* Full viewport height */
    min-height: 700px;
}

/* --- LEFT: VISUAL WINDOW (Larger & Clearer) --- */
.cinematic-visual {
    width: 55%; /* FIX 1: Increased width (was 50%) */
    position: sticky;
    top: 0;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-out;
    
    /* Remove dark overlay so image pops */
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.05); 
}

/* --- RIGHT: CONTENT SCROLL (Cleaner) --- */
.cinematic-content {
    width: 45%;
    padding: 80px 60px;
    
    /* 1. THE HERO GRID BACKGROUND */
    background-color: #ffffff;
    background-image: 
        linear-gradient(#f1f5f9 1px, transparent 1px),
        linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px; /* Creates the "Box" look */
    
    overflow-y: auto;
}

.content-header { margin-bottom: 60px; position: relative; z-index: 2; }
.content-header h3 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin-bottom: 15px; 
    line-height: 1.1; 
}

.content-header p { 
    color: #64748b; /* Slate Grey */
    font-size: 1.1rem; 
    line-height: 1.6;
}

/* FEATURE LIST ITEMS */
.feature-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Added gap to separate the "cards" */
}

.feature-row {
    display: flex;
    gap: 25px;
    padding: 35px 30px;
    
    /* Default: Transparent background, just the border */
    border-left: 3px solid transparent; 
    border-radius: 0 12px 12px 0; /* Rounded right edges */
    
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* HOVER / ACTIVE STATE (Card Effect) */
.feature-row:hover, .feature-row.active {
    /* Make it look like a physical card on the grid */
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.15); /* Soft shadow */
    border-left-color: #0f172a; /* Navy accent line */
}

/* Keep the number and text styles the same */
.f-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #cbd5e1;
    font-family: monospace;
    padding-top: 5px;
}

.feature-row.active .f-number { color: #0f172a; }

.f-info h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.f-info p { color: #64748b; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; }

/* Ensure tags have a solid background to hide grid lines behind them */
.f-tags span {
    display: inline-block;
    background: #fff; 
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-right: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- MISSION LOG SECTION --- */
.mission-section {
    background: #f8fafc; /* Light Grey Background */
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
}

.mission-header {
    text-align: center;
    margin-bottom: 60px;
}

.mono-tag {
    font-family: monospace;
    color: #94a3b8;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.mission-header h2 { font-size: 2.5rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.mission-header p { color: #64748b; font-size: 1.1rem; }
.text-navy { color: #0f172a; }

/* THE GRID */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* THE FILE CARD */
.mission-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    overflow: hidden; /* Important for the slide-up effect */
    transition: 0.3s ease;
    height: 320px; /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Lift & Shadow */
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

/* THE "FOLDER TAB" */
.file-tab {
    background: #f1f5f9;
    padding: 8px 20px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    letter-spacing: 1px;
}

/* MAIN CONTENT (Visible by default) */
.card-main {
    padding: 30px 25px;
    transition: 0.3s ease;
}

.phase-icon {
    width: 50px; height: 50px;
    background: rgba(15, 23, 42, 0.05); /* Very light navy */
    color: #0f172a;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mission-card h4 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.mission-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* SLIDE-UP DELIVERABLES LIST */
.file-contents {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: #0f172a; /* Dark Navy Background */
    padding: 25px;
    transform: translateY(100%); /* Hidden below the card */
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 180px; /* Covers bottom half */
}

/* Reveal on Hover */
.mission-card:hover .file-contents {
    transform: translateY(0);
}

.content-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.file-contents ul { list-style: none; padding: 0; margin: 0; }
.file-contents li {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex; gap: 10px; align-items: center;
}
.file-contents li i { color: #38bdf8; font-size: 0.75rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .mission-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .mission-grid { grid-template-columns: 1fr; }
}

/* --- COURSE PAGE STYLES --- */

/* 1. HERO SECTION */
.course-hero {
    background: #f8fafc;
    padding: 120px 0;
    border-bottom: 1px solid #e2e8f0;
}

.course-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content { max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; color: #0f172a; font-weight: 800; line-height: 1.1; margin: 15px 0; }
.hero-content p { color: #64748b; font-size: 1.1rem; margin-bottom: 30px; }

.badge-pill-blue {
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Search Bar */
.hero-search {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
}
.hero-search input {
    border: none; outline: none; flex: 1; font-size: 1rem; color: #0f172a;
}
.hero-search button {
    background: #0f172a; color: #fff; border: none; padding: 12px 25px; border-radius: 50px; cursor: pointer; font-weight: 600;
}
.hero-search button:hover { background: #38bdf8; }

.hero-visual img {
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(56, 189, 248, 0.1);
    width: 100%;
    max-width: 500px;
}

/* 2. STICKY FILTER BAR */
.filter-bar-sticky {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.filter-flex { display: flex; justify-content: space-between; align-items: center; }

.filter-group { display: flex; gap: 15px; align-items: center; }
.filter-label { font-weight: 700; color: #0f172a; font-size: 0.9rem; }

.filter-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-select:hover { border-color: #38bdf8; }

.view-toggle span { color: #94a3b8; font-size: 0.9rem; font-weight: 600; }

/* 3. SCROLLABLE COURSE RAILS */
.course-section { padding: 60px 0; background: #fff; }

.rail-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
}
.rail-header h3 { font-size: 1.5rem; color: #0f172a; font-weight: 800; }
.mt-large { margin-top: 60px; }

.rail-controls { display: flex; gap: 10px; }
.scroll-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: 0.2s;
}
.scroll-btn:hover { background: #0f172a; color: #fff; }

/* The Horizontal Scroll Container */
.course-rail {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Enables horizontal scroll */
    padding-bottom: 30px; /* Space for shadow */
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.course-rail::-webkit-scrollbar { display: none; }

/* 4. COURSE CARD DESIGN */
.course-card {
    min-width: 300px; /* Fixed width prevents shrinking */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Level Tags */
.level-tag {
    position: absolute;
    top: 15px; left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.beginner { background: #22c55e; }
.intermediate { background: #f59e0b; }
.advanced { background: #ef4444; }

.card-body { padding: 20px; }

.tech-icon {
    width: 40px; height: 40px;
    background: #f8fafc;
    color: #38bdf8;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.course-card h4 { font-size: 1.1rem; color: #0f172a; font-weight: 700; margin-bottom: 5px; line-height: 1.4; }
.instructor { color: #64748b; font-size: 0.85rem; margin-bottom: 15px; }

.rating { color: #f59e0b; font-size: 0.9rem; margin-bottom: 20px; font-weight: 700; }
.reviews { color: #94a3b8; font-weight: 400; font-size: 0.8rem; margin-left: 5px; }

.card-meta {
    display: flex; justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .course-hero .container { flex-direction: column; text-align: center; }
    .hero-search { margin: 0 auto; }
    .hero-visual { display: none; }
    .filter-flex { flex-direction: column; gap: 15px; align-items: flex-start; }
}

/* --- OVERLAY SCROLL ARROWS --- */

/* 1. The Wrapper (Holds rail + buttons) */
.rail-wrapper {
    position: relative; /* Essential for absolute positioning of buttons */
    margin: 0 -15px; /* Negative margin allows buttons to hang off the edge slightly */
    padding: 0 15px;
}

/* 2. The Buttons (Hidden by Default) */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centers vertically */
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Nice shadow to pop off background */
    color: #0f172a;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* Sits on top of cards */
    
    /* THE FADE EFFECT */
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden; /* Prevents clicking when hidden */
}

/* 3. Positioning */
.left-arrow { left: 0px; }
.right-arrow { right: 0px; }

/* 4. HOVER TRIGGER (Show buttons when mouse enters wrapper) */
.rail-wrapper:hover .scroll-arrow {
    opacity: 1;
    visibility: visible;
}

/* Hover effect on the button itself */
.scroll-arrow:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-50%) scale(1.1); /* Grow slightly */
    border-color: #0f172a;
}

/* Ensure rail doesn't overlap arrows */
.course-rail {
    padding-left: 5px;
    padding-right: 5px;
}
.course-card {
    /* Existing styles... */
    min-width: 300px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;

    /* THE FIX: Prevent Squashing */
    flex-shrink: 0; 
    /* This ensures every card stays 300px wide, forcing the scrollbar to appear */
} 

/* =========================================
   7. STUDENT SUCCESS SECTION (Fixed & Restored)
   ========================================= */
.outcomes-section {
    background-color: #f1f5f9; /* Light Silver Background */
    padding: 100px 0;
    color: #0f172a; /* Dark Text */
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split screen layout */
    gap: 60px;
    align-items: center;
}

/* Left Side Typography */
.outcomes-left h2 { 
    font-size: 3rem; 
    color: #0f172a; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.outcomes-left .text-white { color: #0ea5e9; /* Blue highlight */ }

.section-sub { 
    color: #64748b; 
    font-size: 1.1rem; 
    margin-bottom: 40px; 
    max-width: 450px; 
}

.badge-pill-gold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706; 
    padding: 6px 14px; 
    border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    display: inline-block; margin-bottom: 20px;
}

/* Review Cards (White on Silver) */
.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}
.review-card:hover { 
    transform: translateX(10px); 
    border-color: #0ea5e9; 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); 
}

.review-header { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.review-header img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 1px solid #e2e8f0; }
.review-header div h4 { color: #0f172a; font-weight: 700; margin: 0; }
.review-header div span { color: #64748b; font-size: 0.8rem; }
.company-logo { margin-left: auto; color: #0ea5e9; font-size: 1.2rem; }
.review-card p { color: #475569; font-style: italic; line-height: 1.6; }

/* Right Side: Certificate (Dark "Premium Card" Look) */
.outcomes-right { display: flex; justify-content: center; }

.cert-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(251, 191, 36, 0.3); /* Gold Border */
    padding: 40px;
    border-radius: 20px;
    position: relative;
    max-width: 450px; width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
}

.cert-content { position: relative; z-index: 2; }
.cert-header { color: #fbbf24; margin-bottom: 20px; }
.cert-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.cert-header h5 { font-size: 0.8rem; letter-spacing: 2px; margin: 0; }

.cert-box h3 { font-size: 2rem; color: #fff; margin-bottom: 10px; font-family: 'Times New Roman', serif; }
.cert-id { 
    background: rgba(255,255,255,0.1); 
    display: inline-block; padding: 5px 15px; 
    border-radius: 4px; font-family: monospace; 
    color: #cbd5e1; font-size: 0.9rem; margin-bottom: 20px; 
}
.cert-box p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; margin-bottom: 30px; }

.cert-footer { 
    display: flex; justify-content: center; gap: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; 
}
.cert-footer span { font-size: 0.8rem; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.cert-footer i { color: #fbbf24; }

.cert-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1; pointer-events: none;
}
/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* 1. MAGAZINE HERO */
.blog-hero {
    padding: 120px 0 80px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hero-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.hero-image {
    width: 50%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: #0f172a;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.hero-text {
    width: 50%;
    padding-right: 20px;
}

.meta-tags {
    margin-bottom: 15px;
    display: flex; gap: 10px; align-items: center;
}
.meta-tags .tag {
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.meta-tags .date { color: #94a3b8; font-size: 0.85rem; }

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.author-row img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.author-row div span { display: block; font-size: 0.75rem; color: #94a3b8; }
.author-row div h5 { font-size: 1rem; color: #0f172a; margin: 0; }

.read-btn {
    display: inline-flex; align-items: center; gap: 10px;
    color: #0f172a; font-weight: 700;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 5px;
    transition: 0.2s;
}
.read-btn:hover { color: #38bdf8; border-color: #38bdf8; }

/* 2. FILTER BAR */
.blog-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list { display: flex; gap: 30px; }
.filter-list li {
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.filter-list li:hover, .filter-list li.active {
    color: #0f172a;
    border-color: #0f172a;
}

.search-mini {
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
}
.search-mini:focus-within { border-color: #cbd5e1; background: #fff; }
.search-mini input {
    border: none; background: transparent; outline: none;
    font-size: 0.9rem;
}

/* 3. ARTICLE GRID */
.blog-feed { padding: 60px 0; background: #fff; }

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    display: flex; flex-direction: column;
    background: #fff;
    transition: 0.3s;
    cursor: pointer;
}
.blog-card:hover h3 { color: #38bdf8; }
.blog-card:hover .card-img { transform: scale(1.02); }

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.card-content { display: flex; flex-direction: column; flex: 1; }

.tag-pill {
    font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase;
    margin-bottom: 10px; display: block;
}

.blog-card h3 {
    font-size: 1.4rem; font-weight: 800; color: #0f172a;
    line-height: 1.3; margin-bottom: 15px; transition: 0.2s;
}

.blog-card p {
    font-size: 1rem; color: #64748b; line-height: 1.6; margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: #94a3b8; font-weight: 600;
}
.card-footer a { color: #0f172a; transition: 0.2s; }
.card-footer a:hover { color: #38bdf8; }

/* Pagination */
.pagination { display: flex; gap: 10px; justify-content: center; }
.page-btn {
    width: 40px; height: 40px;
    border: 1px solid #e2e8f0; background: #fff;
    border-radius: 8px; cursor: pointer;
    font-weight: 600; color: #64748b; transition: 0.2s;
}
.page-btn.active, .page-btn:hover {
    background: #0f172a; color: #fff; border-color: #0f172a;
}
.page-btn:last-child { width: auto; padding: 0 20px; }

/* 4. TERMINAL NEWSLETTER */
.newsletter-section {
    padding: 80px 0;
    background: #f8fafc;
}

.terminal-box {
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b; /* Dark Slate */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: #0f172a;
    padding: 12px 20px;
    display: flex; align-items: center; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }
.term-title { color: #94a3b8; font-size: 0.8rem; margin-left: 10px; }

.terminal-body { padding: 40px; color: #fff; }
.code-line { margin-bottom: 10px; color: #cbd5e1; }
.prompt { color: #22c55e; margin-right: 10px; font-weight: 700; }

.input-row { display: flex; align-items: center; margin-top: 20px; }
.term-form { display: flex; flex: 1; border-bottom: 2px solid #fff; }

.term-form input {
    background: transparent; border: none; outline: none;
    color: #fff; font-family: inherit; font-size: 1rem;
    flex: 1; padding: 5px;
}

.term-form button {
    background: transparent; border: none;
    color: #38bdf8; font-weight: 700; cursor: pointer;
    font-family: inherit; text-transform: uppercase;
}
.term-form button:hover { color: #fff; }



/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-wrapper { flex-direction: column; }
    .hero-image, .hero-text { width: 100%; }
    .hero-image { height: 250px; }
    
    .grid-layout { grid-template-columns: 1fr; }
    .blog-filter-bar .container { flex-direction: column; gap: 20px; align-items: flex-start; }
    .filter-list { overflow-x: auto; width: 100%; padding-bottom: 10px; }
}
/* --- PROFESSIONAL NEWSLETTER SECTION --- */
.newsletter-section {
    background: #ffffff; /* Clean White Background */
    padding: 100px 0;
    border-top: 1px solid #e2e8f0; /* Subtle separation line */
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* LEFT SIDE: TEXT */
.nl-content { max-width: 500px; }

.nl-tag {
    color: #38bdf8; /* Brand Blue */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.nl-content h2 {
    font-size: 2.5rem;
    color: #0f172a; /* Dark Navy */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.nl-content p {
    color: #64748b; /* Slate Grey */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.nl-features {
    display: flex;
    gap: 20px;
}
.nl-features span {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.nl-features i { color: #22c55e; /* Green Checkmarks */ }

/* RIGHT SIDE: FORM BOX */
.nl-form-box {
    flex: 1;
    background: #f8fafc; /* Light Grey Box */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.nl-form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex; align-items: center;
}
.input-group i {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
}
.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px; /* Space for icon */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    color: #0f172a;
    background: #fff;
}
.input-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.nl-form-box button {
    background: #0f172a;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.nl-form-box button:hover {
    background: #38bdf8;
    transform: translateY(-2px);
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}
.form-note a { color: #475569; text-decoration: underline; }

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* 1. HERO */
.contact-hero {
    padding: 120px 0 60px;
    background: #f8fafc;
    text-align: center;
}
.contact-hero h1 { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.contact-hero p { color: #64748b; font-size: 1.1rem; }

/* 2. TRIAGE CARDS */
.triage-section {
    margin-top: -30px; /* Pulls it closer to hero */
    padding-bottom: 60px;
    background: #f8fafc;
}

.triage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.triage-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hover & Active States */
.triage-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.triage-card.active {
    border-color: #38bdf8;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
/* Little blue indicator for active card */
.triage-card.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #38bdf8;
}

.icon-box {
    width: 60px; height: 60px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: 0.2s;
}
.triage-card.active .icon-box { background: #0f172a; color: #fff; }

.triage-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #0f172a; font-weight: 700; }
.triage-card p { font-size: 0.9rem; color: #64748b; line-height: 1.5; }


/* 3. DYNAMIC FORM SECTION */
.form-section {
    padding: 60px 0 100px;
    background: #fff;
    min-height: 600px; /* Prevents jumping layout */
}

.form-wrapper {
    display: none; /* Hidden by default */
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.form-wrapper.active-form {
    display: block; /* Show via JS */
    opacity: 1;
    transform: translateY(0);
}

.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 { font-size: 2rem; color: #0f172a; font-weight: 800; margin-bottom: 10px; }
.form-header p { color: #64748b; }

/* =========================================
   FIXED PROFESSIONAL FORM STYLES
   ========================================= */

.st-form { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
}

/* 1. LABELS: Cleanly separated above the input */
.input-group {
    display: flex;
    flex-direction: column; /* Forces label to sit on top */
}

.input-group label {
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; /* Slate Grey */
    margin-bottom: 8px; /* Clear gap between label and input */
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* 2. THE INPUTS: Flat & Solid */
.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    
    /* Default State: Light Grey Background */
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px;
    
    outline: none;
    transition: all 0.2s ease-in-out;
    
    /* Fix for iOS shadow */
    -webkit-appearance: none;
    appearance: none; 
}

.input-group textarea { 
    height: 140px; 
    resize: vertical; 
    line-height: 1.5;
}

/* 3. CUSTOM DROPDOWN ARROW (Fixes "Ugly" Select) */
.input-group select {
    cursor: pointer;
    /* Add custom arrow icon on the right */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px; /* Make space for the arrow */
}

/* 4. FOCUS STATES */
.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    background-color: #ffffff; /* White on focus */
    border-color: #38bdf8; /* Brand Blue Border */
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1); /* Blue Ring */
}

/* Placeholder Color */
::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* 5. SUBMIT BUTTON */
.btn-submit {
    margin-top: 10px;
    background: #0f172a; 
    color: #fff;
    padding: 16px; 
    font-size: 1rem; 
    font-weight: 700;
    border: none; 
    border-radius: 8px; 
    cursor: pointer;
    transition: 0.2s;
    width: 100%; /* Full width for better mobile UX */
}

.btn-submit:hover {
    background: #334155; 
    transform: translateY(-1px);
}
/* 4. MAP / HQ SECTION (Dark Theme) */
.map-section {
    background: #0f172a; /* Dark Navy */
    color: #fff;
    padding: 0; /* Full width split */
}

.map-flex {
    display: flex;
    min-height: 500px;
}

.map-info {
    width: 40%;
    padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
}

.map-info h3 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.1; }
.map-info p { color: #94a3b8; margin-bottom: 40px; font-size: 1.1rem; }

.contact-details { display: flex; flex-direction: column; gap: 25px; }
.cd-row { display: flex; gap: 20px; align-items: flex-start; }
.cd-row i { color: #38bdf8; font-size: 1.2rem; margin-top: 5px; }
.cd-row span { color: #cbd5e1; line-height: 1.5; font-size: 1rem; }

.map-visual {
    width: 60%;
    background-size: cover;
    background-position: center;
    opacity: 0.8; /* Slight dim */
}

/* =========================================
   FINAL PROFESSIONAL FORM STYLES
   ========================================= */

.st-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 1. LABELS: Strict positioning (No Borders on Parent) */
.input-group { 
    display: flex; 
    flex-direction: column; 
    position: relative;
    /* FORCE REMOVE OUTER BORDERS */
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.input-group label {
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* 2. INPUTS: The Inner Border Only */
.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    
    background-color: #ffffff; 
    /* THIS IS THE INNER BORDER */
    border: 1px solid #cbd5e1; 
    border-radius: 8px;
    
    outline: none;
    transition: all 0.2s ease-in-out;
}

.input-group textarea { height: 140px; resize: none; line-height: 1.5; }

/* 3. FOCUS STATE: Sharp Navy Border (No Outer Glow) */
.input-group input:focus, 
.input-group textarea:focus {
    border-color: #0f172a; 
    /* Optional: Very subtle shadow inside the input, not outside */
    box-shadow: 0 0 0 1px #0f172a; 
}

/* Placeholder */
::placeholder { color: #cbd5e1; }

/* =========================================
   CUSTOM DROPDOWN STYLES (Fixed Colors)
   ========================================= */

.custom-select-wrapper select { display: none; } /* Hide native */

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

/* The Clickable Box */
.select-selected {
    background-color: #ffffff;
    border: 1px solid #cbd5e1; /* Match Inputs */
    border-radius: 8px;
    color: #0f172a;
    padding: 14px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Arrow */
.select-selected:after {
    content: "";
    width: 8px; height: 8px;
    border: 2px solid #64748b;
    border-top: none; border-right: none;
    transform: rotate(-45deg);
    margin-top: -4px;
    transition: 0.2s;
}

/* Active State (Open) */
.select-selected.select-arrow-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}
.select-selected.select-arrow-active:after {
    transform: rotate(135deg);
    margin-top: 4px;
}

/* The Dropdown List */
.select-items {
    position: absolute;
    background-color: #ffffff; /* FORCE WHITE BG */
    top: 105%; 
    left: 0; right: 0;
    z-index: 999;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

/* The Options inside the list */
.select-items div {
    color: #0f172a; /* Dark Text */
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff; /* White Item BG */
}

/* Hover State - Light Grey (NOT BLUE) */
.select-items div:hover, .same-as-selected {
    background-color: #f8fafc; 
    color: #0f172a;
    font-weight: 600;
}

/* Show/Hide Logic */
.select-hide { display: none; }
.select-show { display: block; }

/* =========================================
   PHYSICAL LABS (Light & Horizontal)
   ========================================= */

.map-section {
    /* 1. CHANGE COLOR: Light Silver to contrast with Dark Footer */
    background: #f8fafc; 
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
}

/* Header Styling */
.map-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.mono-tag {
    font-family: monospace;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.map-header h3 {
    font-size: 2.5rem;
    color: #0f172a; /* Dark Text */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.map-header p {
    color: #64748b; /* Slate Grey */
    font-size: 1.1rem;
}

/* 2. MAKE IT HORIZONTAL: The Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns side-by-side */
    gap: 30px;
    margin-bottom: 60px;
}

.contact-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0; /* Light Border */
    text-align: center;
    transition: 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #38bdf8;
}

.icon-circle {
    width: 60px; height: 60px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.contact-box span {
    display: block;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Wide Map Visual */
.map-wide-visual {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4); /* Dark overlay for text readability */
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.map-wide-visual:hover .map-overlay {
    opacity: 1;
}

.btn-map {
    background: #fff;
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-map:hover {
    background: #38bdf8;
    color: #fff;
}

/* Update the container to hold the map */
.map-wide-visual {
    width: 100%;
    height: 400px; /* Keeps the wide aspect ratio */
    border-radius: 20px; /* Keeps your rounded corners */
    overflow: hidden; /* Clips the sharp corners of the map */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #e2e8f0; /* Loading placeholder color */
    position: relative;
}

/* Force the Google Map to fill the box */
.map-wide-visual iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Removes tiny bottom gap */
}

/* =========================================
   LEGAL / TEXT PAGES TEMPLATE
   ========================================= */

/* 1. SIMPLE HERO */
.legal-hero {
    background: #f8fafc; /* Light Silver */
    padding: 120px 0 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.legal-hero h1 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-hero p {
    color: #64748b;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 2. DOCUMENT BODY */
.legal-body {
    padding: 60px 0 100px;
    background: #fff;
}

/* The Paper Sheet */
.legal-content {
    max-width: 720px; /* Limits width for optimal reading experience */
    margin: 0 auto; /* Centers the text block */
}

/* Typography Rules for Legal Text */
.legal-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* First heading shouldn't have top margin */
.legal-content h3:first-child { margin-top: 0; }

.legal-content p {
    color: #475569; /* Slate 600 - Good contrast but not harsh black */
    font-size: 1.05rem;
    line-height: 1.7; /* Extra spacing for readability */
    margin-bottom: 20px;
}

/* Legal Lists */
.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #475569;
}

.legal-content li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Address Styling */
.legal-content address {
    font-style: normal;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0f172a;
    color: #334155;
    margin-top: 20px;
}
 /* =========================================
   COOKIE CONSENT BANNER
   ========================================= */

.cookie-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    background: #0f172a; /* Dark Navy */
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 9999;
    border: 1px solid #1e293b;
    
    /* Animation Support */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Can't click when hidden */
}

/* Active State (Visible) */
.cookie-card.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Hidden State (display: none for screen readers) */
.cookie-card.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-icon {
    font-size: 1.5rem;
    color: #fbbf24; /* Cookie Gold Color */
    margin-top: 2px;
}

.cookie-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #94a3b8; /* Slate Grey */
    line-height: 1.5;
}

.cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Buttons */
.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-accept {
    flex: 1;
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.btn-accept:hover { background: #f1f5f9; }

.btn-decline {
    flex: 1;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-decline:hover {
    border-color: #fff;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .cookie-card {
        bottom: 0; right: 0; left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0; /* Only round top corners */
    }
} 

/* =========================================
   FIXED NEWSLETTER BANNER (Capsule Design)
   ========================================= */

.newsletter-banner {
    /* Slightly lighter than footer for separation */
    background-color: #1e293b; 
    padding: 80px 0;
    border-top: 1px solid #334155;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* LEFT SIDE: TEXT */
.newsletter-text { max-width: 500px; }

.newsletter-text h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.newsletter-text p {
    color: #94a3b8; /* Slate Grey */
    font-size: 1.1rem;
}

/* RIGHT SIDE: THE CAPSULE FORM */
.newsletter-form-pro {
    flex: 1;
    max-width: 500px;
}

/* The White "Capsule" Container */
.newsletter-form-pro .input-group {
    background: #ffffff;
    border-radius: 50px; /* Full rounded pill */
    padding: 6px; /* Space between border and button */
    display: flex; /* Aligns Input and Button side-by-side */
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Lift it up */
    border: 1px solid rgba(255,255,255,0.1);
}

/* The Input Field */
.newsletter-form-pro input {
    flex: 1; /* Takes up all available space */
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.newsletter-form-pro input::placeholder {
    color: #94a3b8;
}

/* The Subscribe Button (Inside the Capsule) */
.newsletter-form-pro button {
    background: #0f172a; /* Dark Navy Button */
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form-pro button:hover {
    background: #38bdf8; /* Brand Blue on Hover */
    transform: translateX(2px); /* Subtle nudge */
}

/* Privacy Note */
.privacy-note {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.85rem;
    padding-left: 20px;
    display: flex; align-items: center; gap: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .newsletter-form-pro { width: 100%; }
    .privacy-note { justify-content: center; padding: 0; }
}

/* Responsive */
@media (max-width: 600px) {
    .legal-hero { text-align: left; padding: 60px 0 30px; }
    .legal-content { padding: 0 10px; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 20px; } /* Stack vertically on mobile */
    .map-wide-visual { height: 300px; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .triage-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .map-flex { flex-direction: column; }
    .map-info, .map-visual { width: 100%; }
    .map-visual { height: 300px; }
}
/* RESPONSIVE */
@media (max-width: 900px) {
    .newsletter-wrapper { flex-direction: column; text-align: center; gap: 40px; }
    .nl-features { justify-content: center; }
    .nl-form-box { width: 100%; }
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .cinematic-wrapper { flex-direction: column; height: auto; }
    .cinematic-visual { width: 100%; height: 400px; position: relative; }
    .cinematic-content { width: 100%; padding: 50px 30px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid-split { grid-template-columns: 1fr; text-align: center; }
    .service-text p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .service-visual { height: 400px; margin-top: 50px; }
    .isometric-stack { transform: rotateX(45deg) rotateZ(-30deg) scale(0.8); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2, .hero-cards, .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-box { position: static; margin-top: -20px; margin-left: 20px; width: auto; }
}