:root {
    /* --- Premium Palette: "Glass & Gold" --- */
    --color-primary: #050A14;
    /* Deepest Navy */
    --color-secondary: #0F1C2E;
    /* Rich Navy */
    --color-accent: #D4AF37;
    /* Classic Gold */
    --color-accent-light: #F4E0A0;
    /* Soft Gold */
    --color-text-main: #1a1a1a;
    --color-text-light: #f5f5f5;
    --color-text-muted: #888;
    --bg-light: #F9F9F9;
    /* Very crisp white/grey */
    --bg-dark: #050A14;
    --bg-dim-dark: #0a1120;
    /* Slightly lighter dark for contrast */

    /* Fonts */
    --font-heading: 'IBM Plex Serif', serif;
    --font-section-heading: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.hero-heading {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    /* Hero is usually dark bg */
}

.section-heading {
    font-weight: var(--weight-semibold);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

/* Sections that are dark need light headings */
.section-dark .section-heading,
.philosophy .section-heading {
    /* Override for specific sections */
    color: white !important;
}

.sub-headline {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* --- Header / Navigation (Liquid Glass) --- */
.glass-header {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Ultra Transparent (Top) */
    backdrop-filter: blur(10px);
    /* Subtle Blur (Top) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Faint White Border */
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    transition: all 0.4s ease;
    border-radius: 16px;
    box-shadow: none;
    /* No shadow at top for cleaner look */
}

/* Scrolled State (Persistent Transparent Liquid Glass) */
.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.15) !important;
    /* Highly Transparent */
    backdrop-filter: blur(20px);
    /* Heavy Liquid Blur */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: var(--weight-medium);
    position: relative;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.95);
    /* White Text at Top */
    transition: color 0.4s ease;
}

/* Dark Text on Scroll */
.glass-header.scrolled .nav-item {
    color: var(--color-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--color-accent);
    /* Gold Glow */
}

.nav-item:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    color: rgba(255, 255, 255, 0.9);
    /* White Icons at Top */
    transition: color 0.4s ease, stroke 0.4s ease;
}

.social-icon svg {
    stroke: rgba(255, 255, 255, 0.9);
    transition: stroke 0.4s ease;
}

/* Dark Icons on Scroll */
.glass-header.scrolled .social-icon {
    color: var(--color-primary);
}

.glass-header.scrolled .social-icon svg {
    stroke: var(--color-primary);
}

.social-icon:hover {
    color: var(--color-accent) !important;
    /* Gold on hover always */
    text-shadow: 0 0 5px var(--color-accent);
}

.social-icon:hover svg {
    stroke: var(--color-accent) !important;
}

/* Dark Header Variant (for light background pages) */
.glass-header.dark-header .nav-item {
    color: #1a1a1a;
}

.glass-header.dark-header .social-icon svg {
    stroke: #1a1a1a;
}

.glass-header.dark-header.scrolled .nav-item,
.glass-header.dark-header .nav-item {
    color: #1a1a1a;
}

.glass-header.dark-header.scrolled .social-icon svg,
.glass-header.dark-header .social-icon svg {
    stroke: #1a1a1a;
}

.glass-header.dark-header .nav-item:hover,
.glass-header.dark-header .social-icon:hover svg {
    color: var(--color-accent) !important;
    stroke: var(--color-accent) !important;
}


/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Dark Header Variant Toggle */
.glass-header.dark-header .bar,
.glass-header.scrolled .bar {
    background-color: var(--color-primary);
}

@media (max-width: 900px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        color: var(--color-primary) !important;
        font-size: 1.5rem;
        margin: 15px 0;
    }

    /* Hamburger Animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--color-primary);
    }

    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--color-primary);
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    width: 100%;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Subtle zoom effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.8) 0%, rgba(5, 10, 20, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

/* Force White Text for Hero Subheading */
/* Force White Text for Hero Subheading */
.hero-content .section-heading {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    font-size: 1.5rem;
    /* Increased Size */
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.hero-heading {
    font-size: 3.5rem;
    /* Increased Size */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-content .section-heading {
        font-size: 1.1rem;
    }
}


/* --- Scrolling Banner --- */
.scrolling-banner {
    background: var(--color-primary);
    /* Dark Navy */
    color: var(--color-accent);
    /* Gold Text */
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.banner-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
    padding-left: 0;
}

.banner-content span {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 0;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }

    /* Moving 1 of 4 duplicate spans */
}

/* --- Services Split Section (Refined) --- */
.services-split {
    display: flex;
    width: 100%;
    /* Ensure substantial height for visual impact */
    min-height: 85vh;
    position: relative;
    z-index: 2;
}

.service-half {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
}

/* Backgrounds & Overlays */
.service-half.acumentorr {
    background: url('assets/acumentorr_bg.jpg') center/cover no-repeat;
    background-color: #0c121c;
    /* Fallback */
}

.service-half.acumentorr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(12, 18, 28, 0.85), rgba(5, 8, 15, 0.95));
    z-index: 1;
}

.service-half.kilevon {
    background: url('assets/kilevon_bg.jpg') center/cover no-repeat;
    background-color: #f4f4f4;
    /* Fallback */
}

.service-half.kilevon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Light misty overlay */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.8) 100%);
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 550px;
    width: 100%;
}

/* Typography */
.service-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.1;
}

.service-subtitle {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: 0.02em;
}

/* Elegant separator using pseudo-element on subtitle */
.service-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.4;
}

/* Hide legacy divider div if present */
.service-divider {
    display: none;
}

.service-description {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Lists */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    display: inline-block;
    text-align: left;
}

.service-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 400;
}

.service-list li i {
    color: var(--color-accent);
    /* Gold check */
    font-size: 0.9rem;
}

/* Button Container for Positioning */
.service-btn-container {
    margin-top: auto;
    /* Push to bottom if flex container aligns that way */
    padding-top: 20px;
    width: 100%;
}

/* Buttons (Liquid Glass Style) */
/* Buttons (Liquid Glass Style) */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 6px;
    /* Slightly rounded, matching reference */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;

    /* Liquid Glass Base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.service-btn:hover::before {
    left: 100%;
}

.service-btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-btn:hover i {
    transform: translateX(4px);
}

/* Theme Specifics: Acumentorr (Dark) */
.service-half.acumentorr .service-title {
    color: #fdfbf7;
}

.service-half.acumentorr .service-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.service-half.acumentorr .service-subtitle::after {
    background-color: white;
}

.service-half.acumentorr .service-description {
    color: rgba(255, 255, 255, 0.8);
}

.service-half.acumentorr .service-list li {
    color: rgba(255, 255, 255, 0.85);
}

/* Acumentorr Button: Light Glass */
.service-btn.btn-light {
    background: linear-gradient(135deg, rgba(240, 235, 216, 0.8), rgba(240, 235, 216, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    color: #050A14;
}

.service-btn.btn-light:hover {
    background: linear-gradient(135deg, rgba(240, 235, 216, 0.95), rgba(240, 235, 216, 0.8));
    border-color: rgba(255, 255, 255, 0.9);
}

/* Theme Specifics: Kilevon (Light) */
.service-half.kilevon .service-title {
    color: #050A14;
}

.service-half.kilevon .service-subtitle {
    color: #0F1C2E;
}

.service-half.kilevon .service-subtitle::after {
    background-color: #0F1C2E;
}

.service-half.kilevon .service-description {
    color: #333;
}

.service-half.kilevon .service-list li {
    color: #222;
}

/* Kilevon Button: Dark Glass */
.service-btn.btn-dark {
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.85), rgba(5, 10, 20, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.service-btn.btn-dark:hover {
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.95), rgba(5, 10, 20, 0.85));
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .services-split {
        flex-direction: column;
        min-height: auto;
    }

    .service-half {
        padding: 80px 20px;
    }
}

/* --- "Who We Are" (Institution Overview) - Magazine Style --- */
.institution-overview {
    background: linear-gradient(180deg, #fff 0%, #f4f4f4 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    width: 100%;
    z-index: 2;
    /* Ensure it sits above/below correctly */
}

/* Decorative Gold Separator */
.separator-gold {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin: 30px 0;
}

.overview-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .overview-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.overview-text {
    padding-right: 20px;
}

/* --- Stream Cards (Acumentorr/Kilevon) --- */
.stream-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.stream-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.stream-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stream-card:hover::after {
    transform: scaleY(1);
}

.stream-card h4 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stream-card .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-accent);
    font-size: 1.2rem;
    border-radius: 0;
    /* Sharp, professional */
}

/* --- Image with Offset Border --- */
.overview-image {
    position: relative;
}

.overview-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    z-index: -1;
    opacity: 0.3;
}

.image-wrapper {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-top: 2px solid var(--color-accent);
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* --- Philosophy: Deep Luxury Glass --- */
#philosophy {
    background-color: var(--color-primary);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(212, 175, 55, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    color: var(--color-text-light);
    position: relative;
    padding: 120px 0;
    /* overflow: hidden; REMOVED - Prevents sticky positioning */
}

#philosophy .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.philosophy-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 70px;
}

/* --- Tech Philosophy Split (Brego Layout) --- */
/* --- Tech Philosophy Split (Brego Layout) --- */
.philosophy-split {
    background-color: #ffffff !important;
    /* Forced White */
    position: relative;
    padding: 100px 0 100px 0;
    /* Reduced bottom padding to 100px */
    z-index: 10;
}

.split-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

/* Left Sticky Column */
.split-content-sticky {
    flex: 0.4;
    position: sticky;
    top: 150px;
    /* Stick near top */
    height: fit-content;
}

.section-title-tech {
    color: #3b4cb8;
    /* Tech Blue */
    font-family: 'IBM Plex Serif', serif;
    font-size: 3.5rem;
    /* Larger */
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
}

.section-subtitle-tech {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Right Stacking Column */
.split-cards-stack {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    padding-bottom: 5rem;
    /* Reduced from 15rem to remove white space */
    /* Space for scroll */
}

.tech-card {
    background: white;
    /* Clean White Card */
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    position: sticky;
    /* Sticky Stack */
    margin-bottom: 60px;
    /* Reduced from 100px for tighter spacing */
    /* Space between cards */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Offsets for Stacking (Relative to container top) */
.tech-card:nth-child(1) {
    top: 120px;
    z-index: 1;
}

.tech-card:nth-child(2) {
    top: 150px;
    z-index: 2;
}

.tech-card:nth-child(3) {
    top: 180px;
    z-index: 3;
}

.tech-card:nth-child(4) {
    top: 210px;
    z-index: 4;
}

.tech-card:nth-child(5) {
    top: 240px;
    z-index: 5;
}

.tech-card:hover,
.tech-card.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 76, 184, 0.12);
    border-color: #3b4cb8;
}

.tech-card.active .tech-number {
    background: #3b4cb8;
    color: white;
    box-shadow: 0 5px 15px rgba(59, 76, 184, 0.3);
}

.tech-card-content {
    flex: 1;
    padding-right: 20px;
}

.tech-header h4 {
    color: #3b4cb8;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.tech-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.tech-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3b4cb8;
    border: 1px solid rgba(59, 76, 184, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 76, 184, 0.02);
}

@media (max-width: 900px) {
    .split-wrapper {
        flex-direction: column;
    }

    .split-content-sticky {
        position: relative;
        top: 0;
        margin-bottom: 40px;
        flex: 1;
    }

    .split-cards-stack {
        flex: 1;
        width: 100%;
        padding-bottom: 50px;
    }
}

/* --- Operational Guidelines --- */
.operational-guidelines {
    background: var(--bg-dim-dark);
    /* Dark section */
    color: white;
    padding: 100px 0;
}

.op-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.op-card {
    padding: 40px;
    border-radius: 20px;
    /* Liquid rounded corners */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.op-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.2);
}

.op-card.light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    color: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.op-card.dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    color: var(--color-primary);
    /* Changed to dark for visibility */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.op-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.op-card.dark h3 {
    color: var(--color-primary);
    /* Changed to dark for visibility */
}

.icon-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-list i {
    color: var(--color-accent);
}

/* Duplicate styles removed */

/* --- Why This Exists (Detail Styles) --- */
.bg-cream-gradient {
    background: linear-gradient(135deg, #fdfbf7 0%, #f4f4f4 100%);
}

.quote-style {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
}

.challenges-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 60px;
    gap: 40px;
}

@media (max-width: 900px) {
    .challenges-wrapper {
        flex-direction: column;
    }
}

.challenge-col,
.solution-col {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    border-top: 3px solid transparent;
}

.challenge-col {
    border-top-color: #e74c3c;
    /* Red for challenges */
}

.solution-col {
    border-top-color: var(--color-accent);
    /* Gold for solutions */
}

.challenge-col h4,
.solution-col h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.clean-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-red {
    color: #e74c3c;
}

.icon-green {
    color: var(--color-accent);
    /* Use gold instead of green for premium feel */
}

.connector-line {
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
    align-self: stretch;
    display: block;
}

@media (max-width: 900px) {
    .connector-line {
        display: none;
    }
}

/* --- Operational Tags --- */
.not-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.badge-red {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.05));
    color: #c0392b;
    padding: 10px 20px;
    border-radius: 50px;
    /* Liquid Pill Shape */
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-top: 1px solid rgba(231, 76, 60, 0.3);
    border-left: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.badge-red:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.15);
}

/* --- Background Utils --- */
.bg-image-fixed {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* --- Closing CTA Premium Redesign --- */
.closing-cta {
    color: white;
    position: relative;
    overflow: hidden;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Spotlight effect: Lighter in center, deep dark edges */
    background: radial-gradient(circle at center, rgba(15, 28, 46, 0.7) 0%, rgba(5, 10, 20, 0.95) 80%);
    z-index: 1;
    backdrop-filter: blur(2px);
    /* Slight blur to abstract background image */
}

.closing-cta .headline {
    font-family: 'IBM Plex Serif', serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.closing-cta .sub-headline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Liquid Gold Button (Mentoring) */
.closing-cta .btn-light {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    color: #d4af37;
    /* Gold Text */
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-top: 1px solid rgba(212, 175, 55, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    padding: 18px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.closing-cta .btn-light:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    color: #fff;
    /* White on hover for contrast */
    border-color: #d4af37;
}

/* Liquid Platinum Button (Advisory) */
.closing-cta .btn-outline-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 18px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.closing-cta .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: white;
    color: white;
}

/* --- Modern Clean Footer (Brego Style) --- */
.site-footer-modern {
    background-color: #f8f9fa;
    color: #333;
    padding: 60px 0 30px 0;
    font-family: 'IBM Plex Sans', sans-serif;
    width: 100%;
}

.site-footer-modern .container {
    max-width: 1400px;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-col {
    flex: 1.2;
    min-width: 220px;
}

.footer-logo-text {
    color: var(--color-primary);
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.footer-links-col {
    flex: 1;
    min-width: 140px;
}

.footer-links-col h6 {
    color: #1a1a1a;
    font-size: 1rem;
    /* Slightly smaller */
    margin-bottom: 15px;
    /* Reduced margin */
    font-weight: 500;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col li {
    margin-bottom: 8px;
    /* Reduced margin */
}

.footer-links-col a {
    color: #666;
    /* Grey text */
    text-decoration: none;
    font-size: 0.9rem;
    /* Slightly smaller */
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--color-primary);
}

.footer-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    /* Reduced margin */
    width: 100%;
}

.footer-bottom-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    /* Reduced gap */
    margin-bottom: 15px;
    /* Reduced margin */
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    /* Slightly smaller */
    color: #333;
}

.footer-legal a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal .separator {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #000;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.footer-policies-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    /* Slightly smaller */
    color: #333;
    margin-top: 10px;
}

.footer-policies-row a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-legal .separator {
        display: none;
    }
}

/* --- Animations (State-Based) --- */
/* Base States (Hidden) */
.fade-in,
.fade-in-up,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in {
    transform: translateY(0);
    /* Simple fade */
}

.fade-in-up {
    transform: translateY(40px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.scale-in {
    transform: scale(0.9);
}

/* Active States (Visible) - Triggered by JS */
.fade-in.active,
.fade-in-up.active,
.slide-in-left.active,
.slide-in-right.active,
.scale-in.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Helper for staggered delays if needed, typically handled by JS or :nth-child */

/* --- Layout Restoration (Missing Primitives) --- */

/* 1. Spacing & Positioning */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.align-center {
    align-items: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.ms-3 {
    margin-left: 1rem;
}

/* 2. Layout Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.col-text {
    flex: 1;
    min-width: 300px;
}

/* 3. Visual Utilities */
.text-white {
    color: white !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-muted {
    color: var(--color-text-muted);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* 4. Missing Components */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.highlight-box-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--color-accent);
    padding: 30px;
    border-radius: 4px;
    margin-top: 2rem;
}

.experience-grid {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    /* Slight box */
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

/* Staggered Animation for List Items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.animate-item:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-item:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-item:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-item:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-item:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* =========================================
   Floating Action Buttons
   ========================================= */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

/* Floating WhatsApp (Left) */
.floating-whatsapp {
    left: 30px;
    background-color: #25D366;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
}

/* Floating Chatbot (Right) */
.floating-chatbot {
    right: 30px;
    background-color: var(--color-accent);
    /* Gold */
}

.floating-chatbot:hover {
    background-color: var(--color-primary);
    /* Navy */
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        font-size: 24px;
    }

    .floating-whatsapp {
        left: 20px;
    }

    .floating-chatbot {
        right: 20px;
    }
}

/* =========================================
   Chatbot Window
   ========================================= */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--color-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.chatbot-close:hover {
    color: white;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message.bot {
    background: white;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: var(--color-accent);
    color: var(--color-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chatbot-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.chatbot-input:focus {
    border-color: var(--color-accent);
}

.chatbot-send {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.chatbot-send:hover {
    background: var(--color-accent);
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 1px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        right: 20px;
        left: 20px;
        width: auto;
        bottom: 80px;
        height: 400px;
    }
}