@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@700;900&display=swap');

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

:root {
    /* Neutral Dark Palette */
    --bg: #0a0a0a;
    --bg2: #121212;
    --bg3: #1a1a1a;

    /* Primary Brand elements */
    --primary: #2563eb;
    --primary-light: #60a5fa;

    /* Maroon Theme */
    --maroon: #8a1515;
    --maroon-light: #b31b1b;
    --maroon-glow: rgba(179, 27, 27, 0.4);

    --text: #f8fafc;
    --muted: #94a3b8;
    --muted2: #64748b;
    --border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Enhanced Scroll Reveal Animations */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    filter: blur(4px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0) scale(1) translateZ(0);
    filter: blur(0px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* HERO - STRICT LEFT ALIGNMENT */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    margin-top: 0;
    display: flex;
    align-items: center;
    padding: 130px 60px 40px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Lil dark overlay to soften the video and improve text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.pulse-dot-primary {
    width: 6px;
    height: 6px;
    background-color: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    animation: pulse-blue 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-blue {
    to {
        box-shadow: 0 0 0 8px rgba(96, 165, 250, 0);
    }
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    /* This applies a softer gray */
    max-width: 650px;
    line-height: 1.8;
    margin-top: 15px !important;
    margin-bottom: 40px !important;
    display: block;
    height: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-top: 10px !important;
    /* Adds a permanent safety buffer */
}

/* Standard Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary::before {
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary));
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline-dark::before {
    background: linear-gradient(90deg, transparent, var(--maroon), var(--maroon-light));
}

.btn-outline-dark:hover {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px var(--maroon-glow);
}

/* Structured Page-Wise Sections */
.section-padding {
    padding: 120px 60px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-gray {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: normal;
    margin-bottom: 20px;
}

.section-divider {
    width: 100%;
    max-width: 400px;
    /* Adjust this to make the line wider or narrower */
    height: 1px;
    /* This creates the smooth grey line that fades out at the edges */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 15px auto 0 auto;
    border-radius: 0;
}

/* PRODUCT SEGMENTS */
.products-section {
    background-color: var(--bg);
    padding-top: 60px;
    padding-bottom: 80px;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 50px;
    perspective: 1000px;
}

.segment-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.segment-card:hover {
    transform: translateY(-12px);
    border: 1px solid rgba(179, 27, 27, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--maroon-glow);
    background: rgba(20, 20, 20, 0.95);
}

.segment-img {
    position: relative;
    height: 240px;
    background: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
}

.img-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #ffffff;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 10px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%) scale(1);
}

.segment-card.show-brand .img-main {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1) rotate(-5deg);
}

/* Text & Button Animation */
.segment-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.segment-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.3s ease;
}

.segment-card:hover .segment-info h3 {
    color: var(--maroon-light);
}

.segment-info .product-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
}

.segment-info .click-hint {
    font-size: 0.75rem;
    color: var(--muted2);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.segment-info .click-hint:hover {
    color: #fff;
    background: rgba(179, 27, 27, 0.2);
    border-color: rgba(179, 27, 27, 0.5);
}

.segment-info .click-hint i {
    transition: transform 0.5s ease;
}

.segment-card.show-brand .click-hint i {
    transform: rotate(180deg);
}

.view-more-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(179, 27, 27, 0.4);
    border-radius: 6px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--maroon), var(--maroon-light));
    transition: left 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.segment-card:hover .view-more-btn {
    border-color: transparent;
}

.segment-card:hover .view-more-btn::before {
    left: 0;
}

/* MARQUEE */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
Â  Â SUMMARY / WHO WE ARE SECTION
Â  Â ========================================= */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.summary-image {
    background: linear-gradient(145deg, #161616, #050505);
    border: 1px solid rgba(179, 27, 27, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(179, 27, 27, 0.1);
    padding: 28px;
    border-radius: 16px;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.summary-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(179, 27, 27, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
}

.summary-image::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    pointer-events: none;
    z-index: 3;
    display: block;
}

.summary-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 4;
    position: relative;
    background: #ffffff;
    padding: 6px;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.summary-image:hover img {
    transform: scale(1.04);
}

.summary-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--maroon-light);
    margin-bottom: 10px;
}

.summary-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}

.summary-text p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* =========================================
   VISION, MISSION, VALUES (VMG GRID) - VANISHING ICON EFFECT
   ========================================= */

.bg-dot-grid {
    background-color: #080808;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Card Container */
.vmg-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px 25px;
    text-align: center;
    overflow: hidden;
    position: relative;
    height: 250px;
    /* Locked height to allow perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.vmg-card:hover {
    border-color: rgba(179, 27, 27, 0.5);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(179, 27, 27, 0.05);
    transform: translateY(-8px);
}

/* The wrapper that holds Icon, Title, and Text */
.vmg-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Pushes content down slightly so Icon + Title are perfectly centered by default */
    transform: translateY(12px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 1. The Icon (Visible Initially) */
.vmg-icon {
    font-size: 2.2rem;
    color: var(--maroon-light);
    margin-bottom: 15px;
    opacity: 1;
    max-height: 50px;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vmg-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    transition: color 0.4s ease;
}

/* 2. The Paragraph (Hidden Initially) */
.vmg-text-reveal {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    max-height: 0;
    /* Collapses the element */
    transform: translateY(20px);
    /* Pushed down to slide up */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- THE HOVER PHYSICS --- */

/* Slide the entire inner container to exact center */
.vmg-card:hover .vmg-content {
    transform: translateY(0);
}

/* The Icon shrinks, flies UP, and vanishes */
.vmg-card:hover .vmg-icon {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(-30px) scale(0.5);
}

/* Turn title maroon */
.vmg-card:hover h4 {
    color: var(--maroon-light);
}

/* The paragraph expands, slides up, and fades in */
.vmg-card:hover .vmg-text-reveal {
    opacity: 1;
    max-height: 150px;
    transform: translateY(0);
    margin-top: 15px;
    /* Adds gap between H4 and Text */
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {

    /* Mobile naturally shows text since hover doesn't exist on touch screens */
    .vmg-card {
        height: auto;
        padding: 30px 20px;
    }

    .vmg-content {
        transform: translateY(0);
    }

    .vmg-icon {
        margin-bottom: 15px;
        opacity: 1;
        max-height: 50px;
        transform: none;
    }

    .vmg-text-reveal {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
        margin-top: 15px;
    }

    /* Disables the hide animation if the user touches the card on mobile */
    .vmg-card:hover .vmg-icon {
        opacity: 1;
        max-height: 50px;
        margin-bottom: 15px;
        transform: none;
    }
}

/* Eyebrow Label */

/* =========================================
Â  Â FOOTER (NEW LAYOUT)
Â  Â ========================================= */
footer {
    /* Changed from: padding: 80px 60px 40px; */
    padding: 40px 60px 20px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col li,
.footer-col p {
    display: flex;
    align-items: center;
    /* Changed from flex-start to center for a straight horizontal line */
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-col i {
    margin-top: 0;
    /* Remove the top margin now that we are center-aligning */
    flex-shrink: 0;
    width: 24px;
    /* Force a strict fixed width instead of min-width */
    display: flex;
    justify-content: center;
    /* Perfectly centers the icon inside its fixed width */
    color: var(--maroon-light);
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--maroon-light);
    padding-left: 5px;
}

/* Newsletter Form & Animations */
.newsletter-form {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--maroon-light);
    box-shadow: 0 0 15px var(--maroon-glow);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--text);
    flex-grow: 1;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--maroon);
    padding: 0 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button i {
    font-size: 1.2rem;
}

.newsletter-form button:hover {
    color: var(--maroon-light);
}

/* Social Media Icon Animations */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--maroon);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--maroon-glow);
}

/* =========================================
Â  Â FOOTER BOTTOM & LEGAL LINKS
Â  Â ========================================= */
.footer-bottom {
    position: relative;
    /* Required for the pseudo-element line */
    padding-top: 24px;
    border-top: none;
    /* Removed the jagged border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Crisp, hardware-accelerated dividing line */
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60px;
    /* Matches desktop footer padding */
    right: -60px;
    /* Matches desktop footer padding */
    height: 1px;
    background: var(--border);
    /* REMOVE transform: translateZ(0); completely */
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--maroon-light);
}

/* =========================================
Â  Â MODERN WHO WE ARE SECTION ENHANCEMENTS
Â  Â ========================================= */
.eyebrow-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-modern {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maroon);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-modern:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-modern:hover {
    border-color: var(--maroon);
    box-shadow: 0 10px 20px var(--maroon-glow);
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* =========================================
Â  Â RADAR PULSE ANIMATION (WAREHOUSE IMAGE)
Â  Â ========================================= */

@keyframes radar-pulse {
    0% {
        transform: scale(0.2);
        opacity: 1;
        border-width: 2px;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
        border-width: 0.5px;
    }
}

/* =========================================
Â  Â DUAL-TONE (MAROON & BLUE) CARD THEMES
Â  Â ========================================= */

/* =========================================
Â  Â CAREERS SECTION ENHANCEMENTS
Â  Â ========================================= */

@keyframes pulse-red {
    to {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* =========================================
Â  Â PROVEN EXCELLENCE (CERTIFICATE) ENHANCEMENTS
Â  Â ========================================= */

/* =========================================
Â  Â CONTACT FORM / MODAL STYLES
Â  Â ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-split {
    position: relative;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--bg2);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .contact-modal-split {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--maroon-light);
    background: rgba(179, 27, 27, 0.1);
}

.contact-sidebar {
    background: linear-gradient(145deg, #161616, #0a0a0a);
    padding: 25px;
    border-right: 1px solid var(--border);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    color: var(--maroon-light);
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-info-item h4 {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-form-area {
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Fix for the white dropdown options */

.form-control:focus {
    outline: none;
    border-color: var(--maroon-light);
    box-shadow: 0 0 0 3px rgba(179, 27, 27, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    min-height: 70px;
    resize: vertical;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--muted);
}

.text-maroon {
    color: var(--maroon-light);
}

/* RESPONSIVE MEDIA QUERIES (ALL PLACED AT THE BOTTOM) */
@media (min-width: 1100px) {
    .summary-grid.reverse .summary-image {
        order: 2;
    }

    .summary-grid.reverse .summary-text {
        order: 1;
    }
}

@media (max-width: 1100px) {
    .hero-content {
        margin: 0 auto;
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .segment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 24px 40px;
        /* 100px top, 24px sides, 40px bottom */
    }

    .section-padding {
        padding: 80px 24px;
    }

    footer {
        padding: 40px 24px 20px;
        /* Tighter gaps for mobile screens */
    }

    .segment-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-modal-split {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

}

/* =========================================
Â  Â STRICT FIXED HEADER (PERFECT ALIGNMENT)
Â  Â ========================================= */

/* 1. THE MAIN BAR: Locked to exactly 85px tall */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    /* Starting tall height */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    margin: 0;
    /* Smoothly animate height and background alterations on scroll */
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, padding 0.4s ease;
}

/* 2. THE LOGO: Locked size, zero margins */
.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-logo-img {
    height: 80px;
    /* Starting large logo size */
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    /* Smoothly animate logo scaling */
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 993px) and (max-width: 1440px) {
    .nav-logo-img {
        height: 76px;
    }

    #mainNav.scrolled .nav-logo-img {
        height: 55px;
    }
}

/* 3. THE LINKS: Forced into the exact center of the 85px height */
.nav-links {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.nav-links a {
    display: flex;
    align-items: center;
    /* Centers the text perfectly within its container */
    height: auto;
    align-self: center;
    margin: 0;
    padding: 10px 0;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-sizing: border-box;
}

/* Hover Effect for Links - Kept simple so it doesn't break alignment */
.nav-links a:hover {
    color: var(--maroon-light);
}

/* Highlights the active page tab */
.nav-links a.active-link,
.has-mega-menu.active-link .nav-item-link {
    color: var(--maroon-light) !important;
}

/* 4. THE CONTACT BUTTON: Locked height to sit perfectly on the line */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    /* <-- ADD THIS LINE */
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    /* Strict button height */
    padding: 0 24px;
    border: 1px solid rgba(179, 27, 27, 0.5);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.nav-contact:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--maroon-light);
}

/* =========================================
   NEW MEGA MENU STYLES (DESKTOP) - DUTCH IOT STYLE
   ========================================= */

/* 1. Prevent parent items from cutting off or trapping the menu width */
.nav-item {
    position: static !important;
    height: auto;
    align-self: center;
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
}

.nav-item-link {
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-item-link {
    color: var(--maroon-light);
}

/* 2. Full-Width Mega Menu Panel */
.mega-menu {
    position: fixed;
    top: 110px;
    /* Sits precisely below the fixed header */
    left: 0;
    width: 100%;
    height: auto;
    /* Adapts to content height */
    background: #090909;
    /* Restored solid black background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);

    /* Animation: Slide down slightly */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    cursor: default;
    overflow: visible;
    /* Allow flyout to appear outside without scrollbars */
}



#mainNav.scrolled .mega-menu {
    top: 75px;
}

/* Click activation */
.has-mega-menu.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 999;
}

/* Make header black when a mega menu is open to seamlessly merge */
#mainNav:has(.has-mega-menu.active) {
    background: #090909 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 3. Sidebar Container Adjustments */
.mega-sidebar {
    padding: 35px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    min-height: 350px; /* Reduce dropdown size slightly but still cover flyout */
}

/* Sidebar Title (e.g., SOLUTIONS) */
.mega-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    /* Decreased size */
    font-weight: 700;
    color: var(--maroon-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

/* Sidebar Sub-category Indicator */
.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 250px;
    height: max-content;
    flex: 0 0 auto;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.sidebar-links>li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.sidebar-links>li>a {
    color: #94a3b8;
    font-size: 0.95rem;
    /* Decreased size */
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 6px 0;
}

.sidebar-links>li>a:hover,
.sidebar-links>li.active>a,
.sidebar-links>li.open>a {
    color: #ffffff;
}

.sidebar-links li a i {
    font-size: 0.8rem;
    color: var(--maroon-light);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.sidebar-links>li.has-nested>a>i {
    opacity: 1;
    /* Always show chevron for accordions */
    transform: translateX(0);
}

.sidebar-links>li.has-nested:hover>a>i,
.sidebar-links>li.has-nested.open>a>i {
    transform: rotate(180deg);
    /* Points left towards the sidebar */
}

.sidebar-links li a:hover i,
.sidebar-links li.active a i {
    opacity: 1;
    transform: translateX(0);
}

.has-nested {
    position: relative;
}

/* Nested Flyout Panel */
.nested-flyout {
    position: absolute;
    top: -45px;
    /* Aligns perfectly with the top of the column title */
    left: 100%;
    /* Sits right next to the 250px column */
    width: 300px;
    padding-left: 50px;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;

    /* Animation from left */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.has-nested:hover .nested-flyout,
.has-nested.open .nested-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nested-links {
    list-style: none;
    padding: 25px 40px;
    /* Adjusted padding for smaller width */
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Tighter gap */
    margin: 0;
    height: max-content;
    flex: 0 0 auto;
    justify-content: flex-start;
}

.nested-links li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.nested-links li a {
    color: #94a3b8;
    font-size: 0.95rem;
    /* Decreased text size */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 6px 0;
    display: inline-block;
}

.nested-links li a:hover {
    color: #ffffff;
}

/* 5. Right Main Content Area containing subcategory links */

/* Clean, modern vertical stacked link array configuration */

/* Modern hover physics matching dot-iot interactions */

/* 6. Layout adjustments specific to Single-Column layouts (Company menu) */

/* Adds a hidden pseudo sidebar alignment layer to align Company links perfectly */

/* 7. Three-Column Layout (Dutch IoT Feature Grid Style) */

.mobile-only {
    display: none;
}

/* 8. Interactive Sidebar Layout (Dutch IoT Style nested dropdown) */

/* 8. Hero Layout (Dutch IoT Style Sidebar Dropdown) */

/* Ensure sub content isn't broken */

/* Ensure old mega-hero-panel block is removed so it doesn't override the transparent one above */

/* =========================================
   PERFECT MOBILE SLIDE-OVER (DRILL-DOWN)
   ========================================= */
@media (max-width: 1150px) {
    #mainNav {
        padding: 0 30px;
    }

    .nav-logo-img {
        height: 45px;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-only {
        display: flex !important;
    }

    /* 1. Main Container Lock */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start !important;
        padding: 0;
        gap: 0 !important;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
        overflow-x: hidden !important;
        overflow-y: auto;
        border-right: 1px solid var(--border);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }

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

    /* 2. COMPLETELY INVISIBLE OVERLAY (No blur, no dark background) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: visibility 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* Re-enables clicking outside to close */
    }

    /* 3. Mobile Menu Top Bar */
    .mobile-menu-header {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        padding: 20px 25px;
        border-bottom: 1px solid var(--border);
        background: var(--bg2);
        min-height: 70px;
    }

    .mobile-close-btn {
        color: var(--text);
        font-size: 1.4rem;
        cursor: pointer;
    }

    /* 4. STRICT ALIGNMENT AND COLOR FIXES */
    .nav-item {
        width: 100%;
        height: auto !important;
        position: static;
        display: flex;
        flex-direction: column;
        margin: 0 !important;
    }

    /* Forces ALL links to behave exactly the same way, overriding column layouts */
    .nav-links>a.nav-item,
    .nav-item-link,
    .sidebar-links a,
    .nested-links a {
        padding: 16px 25px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        /* Forces normal white color */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;

        display: flex !important;
        flex-direction: row !important;
        /* CRITICAL: Stops Home & Career from centering vertically */
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        /* Strict straight line on the left */
        align-items: center !important;
        text-align: left !important;

        background: transparent !important;
        text-decoration: none;
        height: auto !important;
        line-height: 1.2 !important;
        text-transform: uppercase;
        margin: 0 !important;
    }

    /* Hover effect to keep it interactive */
    .nav-links>a.nav-item:hover,
    .nav-item-link:hover,
    .sidebar-links a:hover,
    .nested-links a:hover {
        color: var(--maroon-light) !important;
    }

    /* Pushes the arrows to the far right independently */
    .nav-item-link i,
    .sidebar-links a i {
        font-size: 0.85rem;
        color: inherit;
        opacity: 1 !important;
        transform: none !important;
        margin-left: auto !important;
    }

    .has-mega-menu .nav-item-link::after,
    .nav-links>a::after {
        display: none !important;
    }

    /* 5. THE SLIDING SUB-PANELS */
    .mega-menu,
    .nested-flyout {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        right: auto !important;
        width: 85% !important;
        max-width: 320px !important;
        height: calc(100vh - 70px) !important;
        background: var(--bg) !important;
        z-index: 1005 !important;
        display: block !important;
        transition: left 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        overflow-y: auto;
        border-right: 1px solid var(--border);
    }

    .mega-menu.slide-in,
    .nested-flyout.slide-in {
        left: 0 !important;
    }

    .mega-sidebar {
        padding: 0 !important;
        min-height: 0;
        width: 100%;
        border: none;
        background: transparent;
    }

    .sidebar-links,
    .nested-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0 !important;
    }

    /* Maroon Category Title */
    .mega-title {
        color: var(--maroon-light) !important;
        font-size: 0.75rem !important;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.05em;
        padding: 10px 25px 15px;
        margin: 0;
        text-align: left !important;
    }

    /* Panel Back Button */
    .mobile-back-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 25px 15px 25px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        width: 100%;
        text-align: left;
        text-transform: uppercase;
    }

    .mobile-back-btn i {
        font-size: 0.85rem;
    }
}

/* =========================================
   DESKTOP VISIBILITY FIXES
   ========================================= */
@media (min-width: 1151px) {
    .mobile-menu-header {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0;
        gap: 35px;
    }

    /* FIX: Give the nested flyout proper top padding so the maroon title isn't cut off */
    .nested-flyout {
        padding: 40px 50px !important;
        /* Perfectly matches the main sidebar padding */
    }

    /* Remove the old padding from the UL so it doesn't double-up and create too much gap */
    .nested-links {
        padding: 0 !important;
    }

    /* Ensure the title has space before the links begin */
    .nested-flyout .mega-title {
        margin-bottom: 3px !important;
        display: block !important;
    }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE PHONES)
   ========================================= */
@media (max-width: 480px) {
    #mainNav {
        padding: 0 20px;
        height: 75px !important; /* Match minimized desktop */
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .nav-logo-img {
        height: 55px !important;
        max-height: 55px !important;
        width: auto !important;
        object-fit: contain;
    }

    #mainNav.scrolled .nav-logo-img {
        height: 50px !important;
        max-height: 50px !important;
    }

    .nav-links,
    .mega-menu,
    .nested-flyout {
        width: 85% !important;
    }

    .nav-contact {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .nav-right {
        gap: 12px;
    }
}

/* =========================================
Â  Â CAREERS PAGE: COMPLETE STYLES
Â  Â ========================================= */

/* --- 1. Layout & Missing Alignment Fixes --- */
#culture .container,
#openings .container {
    max-width: 1250px;
    padding: 0 40px 80px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#culture .section-header,
#openings .section-header {
    text-align: center;
    padding: 90px 20px 50px;
    position: relative;
    z-index: 2;
}

#culture .section-header h2,
#openings .section-header h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#culture .section-header h2 i,
#openings .section-header h2 i {
    color: var(--maroon-light);
}

#culture .section-header p,
#openings .section-header p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.reveal-item {
    opacity: 0;
    transform: translateY(25px); /* Reduced distance for faster feel */
    transition: all 0.4s ease-out; /* Much faster, snappy transition */
}

.reveal-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. Hero Section --- */
.hero-slider-wrapper {
    position: relative;
    height: 45vh;
    min-height: 350px;
    overflow: hidden;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    margin-top: 75px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    z-index: 1;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 0 5%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-wrapper .hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 0 5%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-wrapper .hero-content h1 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1.15;
    max-width: 800px;
    opacity: 0;
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-slider-wrapper .hero-content h1 span,
.master-hero h1 span {
    color: var(--maroon-light);
    display: block;
    font-weight: 900;
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.05), 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-slider-wrapper .hero-content p {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    max-width: 650px;
    margin: 0;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}


/* --- 3. Image Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    height: 280px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(179, 27, 27, 0.1);
    border-color: rgba(179, 27, 27, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 25px;
    color: #ffffff;
    opacity: 0;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    border-bottom: 4px solid var(--maroon-light);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    transform: translateY(15px);
    transition: transform 0.4s ease;
    transition-delay: 0.05s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* --- 4. Perks Cards --- */

/* --- 5. Sleek Career Programs --- */
.career-programs-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.career-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(179, 27, 27, 0.08) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
    animation: pulse-ambient 6s infinite alternate ease-in-out;
}

@keyframes pulse-ambient {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.sleek-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sleek-track-card {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sleek-track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0.5);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.sleek-track-card.internship::before {
    background: linear-gradient(90deg, transparent, var(--maroon-light), transparent);
}

.sleek-track-card:hover {
    transform: translateY(-8px);
    background: rgba(22, 22, 22, 0.9);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 -5px 25px rgba(37, 99, 235, 0.15);
}

.sleek-track-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.sleek-track-card.internship:hover {
    border-color: rgba(179, 27, 27, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 -5px 25px rgba(179, 27, 27, 0.15);
}

@keyframes pulse-green {
    to {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.sleek-track-card .program-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--primary);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sleek-track-card.internship .program-icon {
    color: var(--maroon-light);
}

.sleek-track-card:hover .program-icon {
    transform: scale(1.15) translateY(-5px);
}

.sleek-track-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.sleek-track-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- 6. Mobile Responsive Adjustments --- */
@media (max-width: 768px) {

    #culture .container,
    #openings .container {
        padding: 0 25px 50px;
    }

    .sleek-programs-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    #culture .section-header h2,
    #openings .section-header h2 {
        font-size: 1.6rem;
    }
}

/* =========================================
Â  Â CAREERS PAGE: CUSTOM COMPONENTS & MODALS
Â  Â ========================================= */

/* --- PREMIUM JOB CARDS --- */
.sleek-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.sleek-track-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 25px 25px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sleek-track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: 1;
}

.sleek-track-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.sleek-track-card:hover::before {
    left: 150%;
}

.sleek-track-card.hidden {
    display: none;
}

.sleek-track-card>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sleek-track-card h3 {
    color: #fff;
    margin: 10px 0;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.sleek-track-card p {
    color: #a3a3a3;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

.program-icon {
    font-size: 2.5rem;
    display: block;
    margin: 0 auto 10px auto;
    text-align: center;
}

.card-apply-btn {
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 1px solid transparent;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.card-apply-btn i {
    transition: transform 0.3s ease;
}

.sleek-track-card:hover .card-apply-btn i {
    transform: translateX(5px);
}

/* --- ADVANCED DARK MODE APPLICATION MODAL --- */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: #111111;
    border: 1px solid #222;
    width: 100%;
    max-width: 1050px;
    border-radius: 16px;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a3a3a3;
    transition: all 0.2s;
    z-index: 10;
    background: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    color: #fff;
    background: var(--maroon, #800000);
    transform: rotate(90deg);
}

.job-details-pane {
    flex: 1.1;
    padding: 50px 40px;
    background: #161616;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
}

.job-details-pane h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.job-details-pane h3 {
    color: #ef4444;
    font-size: 1.2rem;
    margin: 30px 0 15px;
    border-bottom: 2px solid rgba(239, 68, 68, 0.2);
    padding-bottom: 8px;
}

.job-details-pane p,
.job-details-pane ul {
    color: #a3a3a3;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.job-details-pane ul {
    padding-left: 20px;
}

.job-details-pane li {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon, #800000);
    background: #222;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.submit-btn {
    background: var(--maroon, #800000);
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .job-details-pane {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding: 30px 20px;
        flex: none;
    }

    .custom-modal-box {
        max-height: 95vh;
    }
}

/* --- SECTION PADDING OVERRIDES --- */
#benefits.section-padding,
#culture.section-padding {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

#openings.career-programs-section {
    padding-top: 20px !important;
    padding-bottom: 40px !important;
}

#benefits .section-header,
#culture .section-header {
    padding-top: 20px !important;
    margin-bottom: 20px !important;
}

#openings .section-header {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

#benefits .container,
#culture .container {
    padding-bottom: 0 !important;
}

#openings .container {
    padding-bottom: 30px !important;
}

#culture .gallery-grid {
    margin-bottom: 20px !important;
}

/* --- LIVE STATUS ANIMATIONS --- */

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(96, 165, 250, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
}

/* --- Mobile Layout Fix: Show Text Before Image --- */
@media (max-width: 768px) {
    .summary-grid {
        display: flex;
        flex-direction: column;
    }

    /* Pulls the text block to the top */
    .summary-grid .summary-text {
        order: 1;
        margin-bottom: 2rem;
        /* Adds breathing room between text and image */
    }

    /* Pushes all your different image containers to the bottom */
    
    .summary-grid .summary-image {
        order: 2;
    }
}

/* =========================================
Â  Â GLOBAL PRESENCE HEADER ANIMATIONS
Â  Â ========================================= */

@keyframes radar-broadcast {
    0% {
        transform: scale(0.5);
        opacity: 1;
        border-width: 2px;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes data-flow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Global Presence Advanced Map Styling --- */

/* Hover Physics for the Container */

.professional-map-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

/* Image scaling on hover */

/* High-Tech Animated Scan Line Overlay */

/* Trigger the scanner animation only when hovering */

@keyframes scanAnimation {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

/* =========================================
   AI CHAT WIDGET STYLES (FULLY RESPONSIVE)
   ========================================= */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

/* 1. Base Styles (Desktop / Large Screens) */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px var(--maroon-glow);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--maroon-light);
}

.chat-container {
    position: absolute;
    bottom: 80px;
    /* Rises above the toggle button */
    right: 0;
    width: 380px;
    /* Desktop width */
    height: 550px;
    /* Desktop height */
    max-height: calc(100vh - 180px);
    /* Prevents overlapping with the header on smaller laptops */
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(90deg, #161616, #0a0a0a);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar-header {
    position: relative;
    background: rgba(179, 27, 27, 0.15);
    color: var(--maroon-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(179, 27, 27, 0.3);
}

/* --- Glowing / Blinking Online Status Dot --- */
.status-dot {
    position: absolute;
    /* Pushes it inward to sit perfectly on the edge of the 50% rounded circle */
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    /* Online Green */
    border: 2px solid var(--bg2);
    /* Matches header background to create a "cutout" effect */
    border-radius: 50%;

    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-online 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-text strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.header-text .online-text {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.close-chat {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-chat:hover {
    color: var(--maroon-light);
}

/* Chat Messages Area */
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
    width: fit-content;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    /* Flattens corner for tail effect */
}

.user-message {
    background: var(--maroon);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    /* Flattens corner for tail effect */
    box-shadow: 0 4px 15px rgba(179, 27, 27, 0.2);
}

/* --- Inline Chat Actions (Buttons inside bot messages) --- */
.chat-cta-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    color: var(--primary-light, #60a5fa) !important;
    text-decoration: none;
    border: 1px solid var(--primary-light, #60a5fa);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.chat-cta-btn.maroon-cta {
    color: #ff6b6b !important;
    border-color: rgba(179, 27, 27, 0.6);
}

.chat-cta-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

.chat-cta-btn.maroon-cta:hover {
    background: rgba(179, 27, 27, 0.15);
}

.msg-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
    /* Reduced from 8px to pull it closer to the text */
    text-align: right;
    line-height: 1;
    /* Removes extra invisible padding */
}

/* Quick Replies */
.chat-quick-replies {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.quick-reply-btn {
    background: transparent;
    border: 1px solid rgba(179, 27, 27, 0.5);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}

/* Input Area */
.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg);
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--maroon-light);
}

.chat-input-area button {
    background: var(--maroon);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    background: var(--maroon-light);
}

/* =========================================
   2. Responsive: Tablet (max-width: 992px)
   ========================================= */
@media (max-width: 992px) {
    .ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-container {
        width: 340px;
        height: 500px;
        max-height: calc(100vh - 140px);
    }
}

/* =========================================
   3. Responsive: Mobile Phones (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .ai-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-container {
        /* Makes it take up almost the whole screen width, leaving a small margin */
        width: calc(100vw - 30px);
        height: 60vh;
        /* Takes up 60% of screen height */
        min-height: 400px;
        max-height: 500px;
        bottom: 65px;
        /* Sits right above the smaller toggle button */
        right: 0;
    }

    .chat-messages {
        padding: 15px;
    }

    .message {
        max-width: 90%;
        font-size: 0.8rem;
    }

    .quick-reply-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* =========================================
   SINGLE-PANE MODAL (GOOGLE FORMS OVERRIDES)
   ========================================= */

/* Narrows the box so it doesn't look empty without the form */
.custom-modal-box.single-pane-modal {
    max-width: 750px !important;
    margin: 0 auto;
}

/* Removes the divider line, adjusts padding, and RESTORES SCROLLING */
.custom-modal-box.single-pane-modal .job-details-pane {
    border-right: none !important;
    padding: 50px 60px !important;
    flex: none;
    max-height: 90vh;
    /* FIX: Limits height to the screen size */
    overflow-y: auto;
    /* FIX: Turns the scrollbar back on */
}

/* Styles the new Google Form Apply Button */
.external-apply-btn {
    text-decoration: none;
    margin-top: 40px;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Responsiveness for the narrowed modal */
@media (max-width: 768px) {
    .custom-modal-box.single-pane-modal .job-details-pane {
        padding: 35px 25px !important;
    }

    .external-apply-btn {
        max-width: 100%;
    }
}

/* =========================================
   TRANSPARENT HEADER (TOP OF PAGE)
   ========================================= */
/* Added via JS when at the top of the page */
#mainNav.header-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* Ensure dropdowns still look solid if opened while at the top */


/* =========================================
   HERO SCROLL INDICATOR ANIMATION
   ========================================= */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.hero-scroll-indicator:hover {
    border-color: #ffffff;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-top: 8px;
    animation: scrollDownAnim 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollDownAnim {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(18px);
        opacity: 1;
    }

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

/* Typewriter Blinking Cursor */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--primary-light);
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Hide Scroll Indicator Initially */
#hero-scroll {
    opacity: 0;
    pointer-events: none;
    /* Prevents clicking before it appears */
    transition: opacity 1.5s ease;
    /* Smooth fade in */
}

/* Class added by JavaScript to show it */
#hero-scroll.show {
    opacity: 1;
    pointer-events: auto;
}

/* Change Hero Pulse Dot to Maroon */

@keyframes hero-pulse-maroon {
    to {
        box-shadow: 0 0 0 8px rgba(179, 27, 27, 0);
        /* Maroon pulsing ripple */
    }
}

/* --- HERO ENTRANCE ANIMATIONS --- */

/* Initial state for the Eyebrow */

/* Initial state for the Main Heading */
.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    /* Slides up smoothly from the bottom */
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    /* Appears shortly after the eyebrow */
}

/* Keyframe animation used by both elements */
@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- AUTOMATIC SCROLL MINIMIZE HEADER EFFECTS --- */

/* Shrink the header bar container */
#mainNav.scrolled {
    height: 75px;
    /* Minimized header height on scroll */
    padding: 0 40px;
    /* Slightly tighter side padding */
    background: rgba(10, 10, 10, 0.98);
    /* Slightly darker for better readability over content */
}

/* Shrink the logo image inside the header */
#mainNav.scrolled .nav-logo-img {
    height: 55px;
    /* Minimized logo height on scroll */
}

/* Adjust the sliding mega menu position when header is minimized */

/* =========================================
   OUR PRODUCT SEGMENTS (COMPACT MAROON THEME)
   ========================================= */
.applications-section {
    background-color: var(--bg);
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.apps-custom-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.apps-custom-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--maroon-light);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 15px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 1. Decreased height to 190px for a more compact card */
.app-card {
    position: relative;
    height: 190px; 
    background-color: var(--bg2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0s;
}

/* 2. Image styling with the smooth transparent mask */
.app-card img {
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: auto;
    width: calc(55% + 2px); 
    height: calc(100% + 2px);
    object-fit: cover;
    object-position: right center; /* Changed back to right center to prioritize the tablet */
    border: none;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 3. Dark overlay to ensure text is readable */
.app-overlay {
    position: absolute;
    inset: 0;
    /* Soft shadow from the left edge of the image to ensure text is fully readable if it slightly overlaps */
    background: linear-gradient(to right, var(--bg2) 45%, rgba(15, 15, 15, 0.8) 55%, transparent 70%);
    z-index: 1;
    transition: background 0.3s ease;
}

/* 4. RESTORED TEXT CONTENT: This brings your text back and places it on the left */
.app-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2; /* Puts text above the image and overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.app-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Helps text pop */
}

.app-learn-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Smooth hover physics */
.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(179, 27, 27, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(179, 27, 27, 0.15);
}

.app-card:hover img {
    transform: scale(1.04);
}

.app-card:hover .app-overlay {
    background: linear-gradient(to right, var(--bg2) 45%, rgba(15, 15, 15, 0.9) 55%, rgba(0, 0, 0, 0.4) 100%);
}

.app-card:hover .app-learn-more {
    color: #ffffff;
}

.app-card:hover .app-learn-more i {
    transform: translateX(5px);
}

/* Responsive Structural Adjustments */
@media (max-width: 992px) {
    .app-card {
        height: 170px;
    }
    
    .app-card img {
        width: calc(60% + 2px); /* Give image slightly more room on tablets */
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-card {
        height: 140px; /* Taller on mobile so full-width images aren't cropped too heavily */
    }

    .app-card img {
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        left: -1px;
        right: -1px;
        top: -1px;
        bottom: -1px;
        object-position: center center;
    }

    .app-overlay {
        background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.6) 60%, transparent 100%);
    }

    .app-card:hover .app-overlay {
        background: linear-gradient(to top, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0.8) 60%, rgba(0, 0, 0, 0.3) 100%);
    }

    .app-content {
        padding: 15px;
        align-items: center; /* Center align text on mobile for better aesthetics */
        text-align: center;
    }

    .app-content h3 {
        font-size: 1.15rem;
    }

    .app-learn-more {
        font-size: 0.7rem;
    }

    .apps-custom-header h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   LATEST INNOVATION SECTION (DOTTED + CENTERED VIDEO)
   ========================================= */
.innovation-section {
    background-color: transparent;
    /* Increased top padding to give the floating title room to breathe */
    padding-top: 130px;
    padding-bottom: 80px;
    border-top: 1px solid var(--border);
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* This centers the items vertically */
}

/* Left Panel Constraints */
.innovation-left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Crucial: Allows absolute positioning of title */
}

.innovation-header {
    margin-bottom: 20px;
    text-align: left;
}

/* PULLS HEADER OUT OF VERTICAL GRID ALIGNMENT ON DESKTOP 
   so ONLY the video perfectly centers with the accordion */
@media (min-width: 993px) {
    .innovation-header {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 100%;
        margin-bottom: 25px;
    }
}

/* Decreased Maroon Subtitle Text Size */
.innovation-header .text-maroon {
    color: var(--maroon-light);
    font-weight: 800;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 5px;
}

/* Decreased White Title Text Size */
.innovation-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Smaller Video/Image Frame Styling */
.innovation-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    margin: 0;
}

.innovation-image-wrapper img,
.innovation-image-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

/* Accordion Wrapper */
.innovation-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

/* Individual Accordion Items */
.accordion-item {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(179, 27, 27, 0.3);
}

/* Accordion Clickable Header */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.accordion-header i {
    color: var(--maroon-light);
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hidden Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.5s ease;
    padding: 0 25px;
    background: #121212;
}

.accordion-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    padding-bottom: 20px;
}

/* Active (Expanded) State */
.accordion-item.active {
    border-color: rgba(179, 27, 27, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-top: 10px;
}

/* Button Positioning */
.btn-innovation {
    margin-top: 10px;
    align-self: flex-start;
    border-color: rgba(179, 27, 27, 0.5);
    background: transparent;
    padding: 12px 24px;
    font-size: 0.85rem;
}

.btn-innovation:hover {
    background: var(--maroon);
    border-color: var(--maroon);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .innovation-section {
        padding-top: 80px;
        /* Restores normal padding for mobile */
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .innovation-image-wrapper {
        max-width: 100%;
    }

    .btn-innovation {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   OPERATIONAL PROCESS (ULTRA-COMPACT ALTERNATING)
   ========================================= */

/* Overrides to decrease section padding and lock in pure black */

/* Decreased container width for a much tighter look */

/* Glowing Center Spine */

/* Row Alignment */

/* Left/Right Directional Toggling */

/* The Central Circular Node */

/* The Content Cards */

/* Professional Phase Badge */

/* Text Sizing */

/* Directional Pointer Arrows attached to the cards */

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Adjusted perfectly for the 40px node */

    /* Adjusted spacing to fit smaller node */

    /* Forces all arrows to the left on mobile screens */
}

/* =========================================
   WHY CHOOSE US SECTION (ICON FLIES UP & HIDES)
   ========================================= */

/* Deep black section with a PERFECT crisp dotted background */
#why-choose-us {
    background-color: #000000 !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    background-position: 0 0;

    padding-top: 50px !important;
    padding-bottom: 50px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Decreased gap for a tighter, premium grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1050px;
    margin: 0 auto;
}

/* Base Card Styles */
.why-card {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Locks the size */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* --- THE HOVER SLIDE LOGIC --- */

/* The wrapper that holds all content inside the card */
.why-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Pushes down slightly to perfectly center the Icon + Title */
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* The Icon - Visible by default */
.why-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background: rgba(179, 27, 27, 0.08);
    border: 1px solid rgba(179, 27, 27, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--maroon-light);
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-card h4 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    transition: color 0.4s ease;
}

/* The paragraph is completely hidden initially */
.why-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    max-height: 0;
    /* Collapses the space completely */
    transform: translateY(20px);
    /* Pushed down slightly */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- HOVER PHYSICS --- */

.why-card:hover {
    background: #0a0a0a;
    border-color: rgba(179, 27, 27, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(179, 27, 27, 0.05);
}

/* 1. Slide the entire inner content to exact center */
.why-card:hover .why-card-inner {
    transform: translateY(0);
}

/* 2. The Icon shrinks, flies UP, and fades away to nothing */
.why-card:hover .why-icon-wrapper {
    opacity: 0;
    max-height: 0;
    height: 0;
    width: 0;
    margin: 0;
    border-width: 0;
    transform: translateY(-30px) scale(0.5);
    /* Fly up and shrink */
}

/* 3. Turn the heading maroon */
.why-card:hover h4 {
    color: var(--maroon-light);
}

/* 4. The paragraph slides up and fades in to fill the space */
.why-card:hover p {
    opacity: 1;
    max-height: 150px;
    /* Opens up the height */
    transform: translateY(0);
    margin-top: 15px;
    /* Creates the gap between the title and the text */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        height: 200px;
        padding: 15px 20px;
    }

    .why-card h4 {
        font-size: 0.95rem;
    }

    .why-card p {
        font-size: 0.75rem;
    }
}

/* =========================================
   LATEST NEWS & RECOGNITION (SLIDER)
   ========================================= */

#latest-news {
    padding-top: 50px !important;
    /* Decreased from default section padding */
    padding-bottom: 50px !important;
    /* Decreased from default section padding */
}

.news-slider-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 25px;
    padding-top: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    
    /* ADD THESE TO HIDE THE SCROLLBAR WHILE STILL ALLOWING SCROLLING */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Chrome/Safari: Hide scrollbar but keep functionality */
.news-slider-container::-webkit-scrollbar {
    display: none; 
}

/* Custom Scrollbar Styling (Chrome/Safari/Edge) */
.news-slider-container::-webkit-scrollbar {
    height: 6px;
}

.news-slider-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.news-slider-container::-webkit-scrollbar-thumb {
    background: var(--maroon);
    border-radius: 10px;
}

/* The Flex Track holding the cards */
.news-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Allows it to slide infinitely based on content */
    margin: 0 auto;
    /* Centers the track if it's smaller than the screen */
}

/* News Navigation Buttons */
.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--maroon);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
    transition: background 0.3s ease, transform 0.2s ease;
}
.news-nav-btn:hover {
    background: var(--maroon-light);
    transform: translateY(-50%) scale(1.05);
}
.news-nav-left {
    left: -20px;
}
.news-nav-right {
    right: -20px;
}

@media (max-width: 768px) {
    .news-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .news-nav-left {
        left: -5px;
    }
    .news-nav-right {
        right: -5px;
    }
}

/* The Individual News Card */
.news-card {
    width: 360px;
    flex-shrink: 0;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    scroll-snap-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Physics */
.news-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(179, 27, 27, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(179, 27, 27, 0.15);
}

.news-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-image-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: none !important;
    -webkit-filter: none !important;
}

.news-card:hover .news-image-bg {
    transform: scale(1.08);
    /* Slow zoom effect on hover */
}

/* Floating Date Badge */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maroon);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h4 {
    color: var(--maroon-light);
}

.news-content p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1200px) {
    .news-track {
        margin: 0;
        /* Un-centers on smaller screens to allow left-to-right swiping */
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .news-card {
        width: 260px;
        /* Slightly narrower on phones */
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h4 {
        font-size: 1rem;
    }

    .news-content p {
        font-size: 0.8rem;
    }
}

/* =========================================
   MINIMAL ABOUT SECTION (MAROON THEME)
   ========================================= */
.minimal-about-section {
    background: radial-gradient(circle at top left, rgba(70, 10, 10, 0.3) 0%, rgba(10, 10, 10, 1) 50%);
    padding: 8rem 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.news-slider-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 25px;
    padding-top: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    
    /* ADD THESE TO HIDE THE SCROLLBAR WHILE STILL ALLOWING SCROLLING */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Chrome/Safari: Hide scrollbar but keep functionality */
.news-slider-container::-webkit-scrollbar {
    display: none; 
}

/* Custom Scrollbar Styling (Chrome/Safari/Edge) */
.news-slider-container::-webkit-scrollbar {
    height: 6px;
}

.news-slider-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.news-slider-container::-webkit-scrollbar-thumb {
    background: var(--maroon);
    border-radius: 10px;
}

/* The Flex Track holding the cards */
.news-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Allows it to slide infinitely based on content */
    margin: 0 auto;
    /* Centers the track if it's smaller than the screen */
}

/* The Individual News Card */
.news-card {
    width: 360px;
    flex-shrink: 0;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    scroll-snap-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Physics */
.news-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(179, 27, 27, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(179, 27, 27, 0.15);
}

.news-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-image-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: none !important;
    -webkit-filter: none !important;
}

.news-card:hover .news-image-bg {
    transform: scale(1.08);
    /* Slow zoom effect on hover */
}

/* Floating Date Badge */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maroon);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h4 {
    color: var(--maroon-light);
}

.news-content p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1200px) {
    .news-track {
        margin: 0;
        /* Un-centers on smaller screens to allow left-to-right swiping */
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .news-card {
        width: 300px;
        /* Slightly narrower on phones */
    }

    .news-image {
        height: 200px;
    }
}

/* =========================================
   MINIMAL ABOUT SECTION (MAROON THEME)
   ========================================= */
.minimal-about-section {
    background: linear-gradient(180deg, rgba(90, 15, 15, 0.3) 0%, var(--bg) 80%);
    padding: 4rem 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.minimal-about-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.minimal-about-title {
    flex: 0 0 42%;
}

.minimal-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.minimal-title-wrapper .pulse-square {
    margin-top: 20px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--maroon-light);
    flex-shrink: 0;
}

.minimal-title-wrapper h2 {
    font-size: 3.5rem;
    font-weight: 300;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.text-maroon-light {
    color: var(--maroon-light);
    font-weight: 300;
}

.minimal-about-content {
    flex: 0 0 52%;
}

.minimal-about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.8rem;
    font-weight: 300;
}

.minimal-about-content p.highlight-text {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* 3 Cards */
.minimal-commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 3rem;
    margin-left: 36px;
}

.minimal-commitment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s ease;
}

.minimal-commitment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(179, 27, 27, 0.4);
    transform: translateY(-3px);
}

.minimal-commitment-item i {
    font-size: 1.3rem;
    color: var(--maroon-light);
    margin-bottom: 12px;
}

.minimal-commitment-item h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.minimal-commitment-item p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .minimal-about-grid {
        flex-direction: column;
        gap: 40px;
    }
    .minimal-title-wrapper h2 {
        font-size: 2.5rem;
    }
}

/* =========================================
   NEWS & MEDIA PAGE STYLES
========================================= */

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 15px rgba(204,0,0,0.3);
}

.news-card {
    background: var(--bg2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: var(--primary-dark);
}

.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #ffffff !important;
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
    font-weight: 700;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7) !important;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}

.news-content p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ARTICLE MODAL */

/* RECENT BADGE STYLES */
.recent-badge {
    background: #ff3b30;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* =========================================
   HERO SWIPE INDICATOR ANIMATION
   ========================================= */

@keyframes swipeRightAnim {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(25px); opacity: 0; }
    100% { transform: translateX(0); opacity: 0; }
}


/* =========================================
   HOME HERO SLIDER STYLES (Moved from index.html)
   ========================================= */

        .home-hero-slider {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            background-color: #000;
        }
        .home-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }
        .home-slide.active {
            opacity: 1;
            visibility: visible;
            z-index: 2;
        }
        .home-bg-media {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -2;
            transform: scale(1.08);
            transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .home-slide.active .home-bg-media {
            transform: scale(1);
        }
        .home-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to right, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.6) 40%, transparent 100%);
            z-index: -1;
        }
        .home-nav-container {
            position: absolute;
            bottom: 40px;
            left: 8%;
            z-index: 20;
            display: flex;
            gap: 10px;
        }
        .home-nav-line {
            width: 45px;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .home-nav-line.active {
            background: #fff;
        }
        .home-slide .hero-content h1,
        .home-slide .hero-content .hero-sub,
        .home-slide .hero-content .hero-buttons {
            opacity: 0;
            transform: translateY(30px);
            animation: none !important;
        }
        
        @keyframes homeSlideUpIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .home-slide.active .hero-content h1 {
            animation: homeSlideUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards !important;
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
            font-weight: 900 !important;
            letter-spacing: -1px;
            line-height: 1.1 !important;
            text-shadow: 0 10px 30px rgba(0,0,0,0.8);
            text-wrap: balance;
            max-width: 900px;
        }

        .home-slide.active .hero-content .hero-sub {
            animation: homeSlideUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards !important;
            font-family: 'Inter', sans-serif;
            font-size: clamp(0.9rem, 1.2vw, 1rem) !important;
            font-weight: 400 !important;
            line-height: 1.7;
            text-shadow: 0 4px 15px rgba(0,0,0,0.9);
            max-width: 800px !important;
            margin-bottom: 30px;
            color: #d1d5db !important;
        }

        .home-slide.active .hero-content .hero-buttons {
            animation: homeSlideUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.7s forwards !important;
        }

        @media (max-width: 768px) {
            .home-nav-container { left: 5%; bottom: 15px; gap: 6px; }
            .home-nav-line { width: 30px; height: 3px; }
            .home-overlay { background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.5) 100%); }
            .home-slide { align-items: flex-end; padding-bottom: 50px; }

            /* Global Mobile Hero Slider Half-Screen Override (applies to all pages) */
            .home-hero-slider,
            .hero-slider-wrap,
            .hero-slider-wrapper,
            .master-hero,
            .sus-hero,
            .hero-team-wrap,
            section.hero,
            #about.hero {
                height: 50vh !important;
                min-height: 400px !important;
                max-height: 50vh !important;
            }

            /* Hide scrollbar icon on mobile */
            .hero-scroll-indicator,
            .scroll-indicator,
            .hero-scroll-down {
                display: none !important;
            }

            /* Decrease text size to prevent clashing with header */
            .home-slide.active .hero-content h1,
            .hero-content h1,
            .hero-content h2,
            .hero-slider-wrapper h1,
            .sus-hero-content h1,
            .master-hero h1 {
                font-size: 1.5rem !important;
                line-height: 1.2 !important;
                margin-bottom: 10px !important;
            }

            .home-slide.active .hero-content .hero-sub,
            .hero-content p,
            .hero-content .hero-sub,
            .hero-slider-wrapper p,
            .sus-hero-content p,
            .master-hero p {
                font-size: 0.85rem !important;
                line-height: 1.4 !important;
                margin-bottom: 15px !important;
            }

            /* Ensure all sections perfectly fit on mobile */
            section {
                padding-left: 15px !important;
                padding-right: 15px !important;
                box-sizing: border-box !important;
                max-width: 100vw !important;
                overflow-x: hidden !important;
            }

            html, body {
                overflow-x: hidden !important;
                max-width: 100vw !important;
                width: 100% !important;
            }

            /* Optimize scroll animations for mobile (Remove blur, reduce distance & duration) */
            .reveal {
                transform: translateY(20px) !important;
            }
            .reveal-left {
                transform: translateX(-15px) !important;
            }
            .reveal-right {
                transform: translateX(15px) !important;
            }
            
            /* CRITICAL: Allow the active state to reset the transform! */
            .reveal.active, 
            .reveal-left.active, 
            .reveal-right.active,
            .reveal-item.show {
                transform: translate(0) scale(1) translateZ(0) !important;
                opacity: 1 !important;
            }

            .reveal, .reveal-left, .reveal-right {
                filter: none !important;
                transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
            }

            /* Fix text alignment for specific sections on mobile */
            .innovation-header,
            .innovation-header h2,
            .innovation-header span,
            .section-header,
            .section-header h2,
            .section-header h3 {
                text-align: center !important;
                justify-content: center !important;
                align-items: center !important;
                display: block !important;
                width: 100% !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }
            
            /* Reduced title text sizes for mobile */
            .section-header h2 { font-size: 1.6rem !important; }
            .section-header h3 { font-size: 1rem !important; }
            
            /* Ensure the video itself is centered */
            .innovation-image-wrapper,
            #innovation-video {
                margin: 0 auto !important;
                display: block !important;
            }

            /* Restore desktop-level animations for the 'What makes us unique?' section */
            #why-choose-us .reveal {
                transform: translateY(40px) !important;
            }
            #why-choose-us .reveal-left {
                transform: translateX(-60px) !important;
            }
            #why-choose-us .reveal-right {
                transform: translateX(60px) !important;
            }
            #why-choose-us .reveal, 
            #why-choose-us .reveal-left, 
            #why-choose-us .reveal-right {
                filter: blur(4px) !important;
                transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1) !important;
            }
            #why-choose-us .reveal.active, 
            #why-choose-us .reveal-left.active, 
            #why-choose-us .reveal-right.active {
                transform: translate(0) scale(1) translateZ(0) !important;
                filter: blur(0px) !important;
                opacity: 1 !important;
            }

        }

        .hero-scroll-indicator {
            animation: homeSlideUpIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
            animation-delay: 1.5s;
            opacity: 0;
        }
    
/* Global Mobile Card Size Reductions */
@media (max-width: 768px) {
    .segment-info { padding: 15px !important; }
    .segment-img { height: 180px !important; }
    .segment-info h3, .vmg-card h4, .sleek-track-card h3 { font-size: 1.1rem !important; }
    .segment-info .product-desc, .vmg-card p, .sleek-track-card p { font-size: 0.85rem !important; }
    .vmg-card, .sleek-track-card { padding: 15px !important; height: auto !important; }
}
/* Decrease subpage hero slide sizes for mobile */
@media (max-width: 768px) {
    .hero-slider-wrap,
    .hero-team-wrap,
    #customer-page > div[style*="height: 30vh"] {
        height: 25vh !important;
        min-height: 200px !important;
    }
}
/* FINAL MOBILE HERO OVERRIDES */
@media (max-width: 768px) {
    /* Hide the scrolling mouse icon and the slider navigation lines on mobile */
    .hero-scroll-indicator,
    .scroll-indicator,
    .hero-scroll-down,
    #hero-scroll,
    .home-nav-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}
/* =========================================
   GLOBAL BREADCRUMB STANDARDIZATION
   ========================================= */
.breadcrumb {
    position: absolute !important;
    bottom: 30px !important;
    left: 5% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    z-index: 50 !important;
    margin: 0 !important;
}
.breadcrumb a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.breadcrumb a:hover {
    color: var(--maroon-light, #ff3333) !important;
}
.breadcrumb span {
    color: #888 !important;
}
.breadcrumb .active {
    color: #fff !important;
    opacity: 0.7 !important;
}

@media (max-width: 768px) {
    .breadcrumb {
        bottom: 25px !important;
        left: 5% !important;
        font-size: 0.75rem !important;
    }
}


/* =========================================
   ANTI-FOUC TRANSPARENT HEADER FIX
   ========================================= */
#header-placeholder.is-transparent #mainNav:not(.scrolled):not(:has(.has-mega-menu.active)) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* =========================================
   IPAD & TABLET HERO SLIDER FIX
   Fixes broken background-attachment: fixed on iOS/tablets
   ========================================= */
@media (max-width: 1024px) {
    .hero,
    .sus-hero,
    section.hero,
    #about,
    #about.hero,
    .innovation-hero,
    .motor-video-hero {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hero,
    .sus-hero,
    section.hero,
    #about,
    #about.hero,
    .innovation-hero,
    .motor-video-hero {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}
