@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);
    filter: blur(0);
}

.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);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 80%);
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 24px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(4px);
}

.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 {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.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 h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--maroon-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.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: 60px;
    height: 3px;
    background: var(--maroon);
    border-radius: 2px;
}

/* 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,
.img-brand {
    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);
}

.img-brand {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(5deg);
}

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

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

/* 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%);
    }
}

.logo-marquee-wrap {
    overflow: hidden;
    padding: 40px 0;
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0;
    position: relative;
}

.logo-marquee-wrap::before,
.logo-marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.logo-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.bg-gray .logo-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg2), transparent);
}

.bg-gray .logo-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg2), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
    align-items: center;
}

.logo-marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    height: 50px;
    width: 180px;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%) brightness(1.5) opacity(0.7);
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-track img:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.1);
}

/* =========================================
   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;
}

/* VMG Grid */
.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;
}

.vmg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.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: 40px 25px;
    text-align: center;
    overflow: hidden;
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    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), 0 0 20px var(--maroon-glow);
    transform: translateY(-8px);
}

.vmg-content {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(35px);
}

.vmg-card:hover .vmg-content {
    transform: translateY(-15px);
}

.vmg-icon {
    font-size: 2.2rem;
    color: var(--maroon-light);
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

.vmg-card:hover .vmg-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--maroon-glow));
}

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

.vmg-card:hover h4 {
    margin-bottom: 15px;
}

.vmg-text-reveal {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.vmg-card:hover .vmg-text-reveal {
    opacity: 1;
    max-height: 150px;
    transform: translateY(0);
}

/* Premium Warehouse Section Styles */
.premium-service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(10px);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.4);
}

.premium-icon-box {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.premium-service-text h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.premium-service-text p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 30px 0;
}

/* Eyebrow Label */
.section-eyebrow.with-tick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--maroon-light);
    margin-bottom: 15px;
    padding: 5px 14px;
    background: rgba(179, 27, 27, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(179, 27, 27, 0.2);
    font-size: 0.75rem;
}

.section-eyebrow.with-tick .tick-icon {
    font-size: 0.9rem;
    color: #fff;
}

.section-eyebrow.with-tick .punch-text {
    color: #fff;
}

/* =========================================
   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;
    /* Reduced gap */
}

.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: var(--maroon);
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: 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
   ========================================= */
.modern-who-we-are {
    position: relative;
    overflow: visible;
}

.image-composition {
    position: relative;
}

.image-composition::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: 0;
    pointer-events: none;
    filter: blur(50px);
}

.clean-image-wrapper {
    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;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.clean-image-wrapper::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;
}

.clean-image-wrapper 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);
}

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

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.commitment-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(179, 27, 27, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.commitment-item i {
    font-size: 1.4rem;
    color: var(--maroon-light);
    margin-top: 2px;
    background: rgba(179, 27, 27, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.commitment-item h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.commitment-item p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.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);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--maroon-light);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--maroon-light);
    animation: ripple 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--muted2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.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)
   ========================================= */
.radar-container {
    position: absolute;
    top: 55%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 10;
    pointer-events: none;
}

.radar-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: radar-pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.radar-ring:nth-child(1) {
    animation-delay: 0s;
}

.radar-ring:nth-child(2) {
    animation-delay: 0.8s;
}

.radar-ring:nth-child(3) {
    animation-delay: 1.6s;
}

.radar-ring:nth-child(4) {
    animation-delay: 2.4s;
}

@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
   ========================================= */
.premium-service-card.theme-maroon:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(179, 27, 27, 0.4);
    box-shadow: -5px 10px 30px rgba(179, 27, 27, 0.15);
}

.icon-box-maroon {
    background: rgba(179, 27, 27, 0.15);
    color: var(--maroon-light);
    border: 1px solid rgba(179, 27, 27, 0.2);
}

.premium-service-card.theme-blue:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: -5px 10px 30px rgba(37, 99, 235, 0.15);
}

.icon-box-blue {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.dual-tone-eyebrow {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(179, 27, 27, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-title {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-light);
    margin-bottom: 0;
    font-weight: 700;
}

/* =========================================
   CAREERS SECTION ENHANCEMENTS
   ========================================= */
.career-image-container {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.career-image-container::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: 0;
    pointer-events: none;
    filter: blur(50px);
}

.career-image-wrapper {
    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;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.career-image-wrapper::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;
}

.career-image-wrapper 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.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.career-image-container:hover .career-image-wrapper img {
    transform: scale(1.04);
}

.career-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}

.career-eyebrow .red-dot,
.pulse-dot-red {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
}

.pulse-dot-red {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

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

.career-benefits,
.career-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.list-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(179, 27, 27, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.list-item i {
    color: var(--maroon-light);
    font-size: 0.85rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 400;
}

.benefit-item i {
    color: var(--text);
    font-size: 0.9rem;
}

.btn-career {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-career:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-explore {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.btn-explore:hover {
    border-color: var(--maroon);
    box-shadow: 0 8px 20px var(--maroon-glow);
    transform: translateY(-3px);
}

.btn-explore:hover::before {
    transform: scaleX(1);
}

.btn-explore i {
    transition: transform 0.4s ease;
}

.btn-explore:hover i {
    transform: translateX(6px);
}

/* =========================================
   PROVEN EXCELLENCE (CERTIFICATE) ENHANCEMENTS
   ========================================= */
.image-composition.certificate-glow::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: 0;
    pointer-events: none;
    filter: blur(50px);
}

.award-image-wrapper {
    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;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.award-image-wrapper::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;
}

.award-image-wrapper img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: 500px;
    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.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-composition:hover .award-image-wrapper img {
    transform: scale(1.04);
}

/* =========================================
   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: 40px;
    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 */
select.form-control option {
    background-color: var(--bg2);
    color: var(--text);
}

.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: 120px;
    resize: vertical;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    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;
    }

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

    .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,
    .vmg-grid {
        grid-template-columns: 1fr;
    }

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

    .commitment-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: 85px;
    /* STRICT FIXED HEIGHT */
    min-height: 85px;
    max-height: 85px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    /* FORCES EVERYTHING TO THE EXACT VERTICAL 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);
    /* The perfectly straight bottom line */
    z-index: 1000;
    margin: 0;
}

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

.nav-logo-img {
    height: 65px;
    /* Increased from 45px */
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

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

.nav-links a,
.dropbtn {
    display: flex;
    align-items: center;
    /* Centers the text perfectly within its container */
    height: 100%;
    margin: 0;
    padding: 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,
.dropdown:hover .dropbtn {
    color: var(--maroon-light);
}

/* Highlights the active page tab */
.nav-links a.active-link,
.dropdown.active-link .dropbtn {
    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);
}

/* =========================================
   DROPDOWN DESKTOP STYLES (CORRECTED)
   ========================================= */

@media (min-width: 993px) {
    .dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    /* THIS IS THE BLOCK THAT WAS MISSING */
    .dropdown-content {
        position: absolute;
        top: 85px;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        min-width: 220px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid var(--maroon-light);
        border-radius: 0 0 6px 6px;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 10px 0;
        z-index: 1000;
    }

    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-links .dropdown-content a {
        height: auto;
        padding: 12px 24px;
        display: block !important;
        /* Overrides the global flex layout */
        width: 100%;
        color: var(--muted);
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-links .dropdown-content a:last-child {
        border-bottom: none;
    }

    .nav-links .dropdown-content a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.03);
        padding-left: 30px;
    }
}

/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================= */
@media (max-width: 1150px) {
    #mainNav {
        padding: 0 30px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 85px;
        left: -100%;
        /* Hidden off-screen */
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
        /* Slide in via JS */
    }

    /* Standard Links */
    .nav-links>a {
        width: 100%;
        height: auto;
        padding: 20px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links>a::after,
    .dropdown::after {
        display: none;
    }

    /* 1. Bulletproof Dropdown Wrapper */
    .dropdown {
        width: 100%;
        height: auto !important;
        padding: 20px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* 2. Remove the forced 100% height from the trigger text */
    .dropbtn {
        width: 100%;
        height: auto !important;
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    /* 3. Force the menu to be relative so it pushes links below it downward */
    .dropdown-content {
        position: relative !important;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.02);
        padding: 0;
        margin-top: 15px;
        height: auto !important;
        display: none !important;
        /* Hidden until clicked */
    }

    /* 4. Show menu when JavaScript adds the .active class */
    .dropdown.active .dropdown-content {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 5. Force the dropdown links to stack cleanly */
    .dropdown-content a {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        line-height: 1.5 !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
    }
}

@media (max-width: 480px) {
    #mainNav {
        padding: 0 20px;
        height: 70px;
    }

    .nav-logo-img {
        max-height: 35px;
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 20px;
    }

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

    /* ADD THIS TO SHRINK THE GAP SLIGHTLY ON SMALL PHONES */
    .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(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.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: 80px;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.85) 45%, rgba(10, 10, 10, 0.4) 100%);
    z-index: 2;
}

.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);
    }
}

.marketing-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.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 {
    color: var(--maroon-light);
    display: block;
    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 --- */
.perks-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.perk-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.perk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 27, 27, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    border-radius: 12px;
}

.perk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(179, 27, 27, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(179, 27, 27, 0.3);
}

.perk-icon {
    width: 80px;
    height: 80px;
    background: rgba(179, 27, 27, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--maroon-light);
    margin: 0 auto 25px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.perk-card:hover .perk-icon {
    background: var(--maroon);
    color: #ffffff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px var(--maroon-glow);
}

.perk-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.perk-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* --- 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;
}

.career-bg-glow.blue-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    left: 80%;
    animation-delay: -3s;
}

@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);
}

.live-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@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;
}

.btn-apply-sleek {
    position: relative;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.btn-apply-sleek.maroon {
    background: rgba(179, 27, 27, 0.1);
    color: #ff6b6b;
    border-color: rgba(179, 27, 27, 0.3);
}

.btn-apply-sleek::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-apply-sleek.maroon::before {
    background: var(--maroon);
}

.btn-apply-sleek:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-apply-sleek.maroon:hover {
    box-shadow: 0 8px 20px rgba(179, 27, 27, 0.4);
    color: #fff;
}

.btn-apply-sleek:hover::before {
    left: 0;
}

/* --- 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;
}

.live-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    z-index: 10;
    white-space: nowrap;
    line-height: 1.2;
}

.ft-card .live-status-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.int-card .live-status-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

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

.job-benefits-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps the list items anchored to the left */
    width: max-content; /* Wraps tightly to the longest line */
    max-width: 90%; /* Prevents it from touching the edges on small screens */
    margin: 25px auto 0 auto; /* Perfectly centers the whole block inside the card */
    padding: 0;
    list-style: none; 
}

.job-benefits-list li {
    font-size: 0.9rem;
    color: #d4d4d4;
    margin-bottom: 14px;
    display: flex;
    align-items: center; /* Vertically centers the text with the icon */
    gap: 16px; /* Adds a clean, consistent space between icon and text */
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: left; /* CRITICAL FIX: Forces text to line up strictly on the left edge */
    line-height: 1.4;
}

.job-benefits-list li i {
    flex-shrink: 0; /* CRITICAL FIX: Prevents the circular icons from squishing into ovals if the text is long */
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.ft-card .job-benefits-list li i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.int-card .job-benefits-list li i {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.15);
}

.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);
}

.ft-card .card-apply-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.ft-card:hover .card-apply-btn {
    background: #ef4444;
    color: #fff;
}

.int-card .card-apply-btn {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

.int-card:hover .card-apply-btn {
    background: #60a5fa;
    color: #fff;
}

/* --- 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);
}

.modal-split-layout {
    display: flex;
    height: 100%;
    max-height: 90vh;
}

.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 .job-meta {
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.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;
}

.application-form-pane {
    flex: 1;
    padding: 50px 40px;
    background: #111111;
    overflow-y: auto;
}

.application-form-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 22px;
    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;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    z-index: 5;
}

.file-upload-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a1a;
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 25px 20px;
    color: #a3a3a3;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.file-upload-ui i {
    font-size: 2rem;
    color: #666;
    transition: color 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-ui {
    border-color: #ef4444;
    background: #222;
    color: #ef4444;
}

.file-upload-wrapper:hover .file-upload-ui i {
    color: #ef4444;
}

.file-name-display {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    margin-top: 5px;
    display: none;
}

.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);
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success i {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-success p {
    color: #a3a3a3;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

    50% {
        transform: scale(1.2);
    }

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

@media (max-width: 768px) {
    .modal-split-layout {
        flex-direction: column;
        overflow-y: auto;
        display: block;
    }

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

    .application-form-pane {
        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 --- */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.ft-card .live-dot {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 1.5s infinite;
}

.int-card .live-dot {
    background-color: #60a5fa;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    animation: pulse-blue 1.5s infinite;
}

@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 .image-composition,
    .summary-grid .summary-image,
    .summary-grid .career-image-container {
        order: 2;
    }
}

/* =========================================
   GLOBAL PRESENCE HEADER ANIMATIONS
   ========================================= */
.network-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--maroon-light, #b31b1b);
    border-radius: 50%;
    position: relative;
}

.network-pulse::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--maroon-light, #b31b1b);
    border-radius: 50%;
    animation: radar-broadcast 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.animated-divider {
    width: 60px;
    height: 3px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.animated-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--maroon-light, #b31b1b), transparent);
    animation: data-flow 2.5s infinite ease-in-out;
}

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

    100% {
        left: 100%;
    }
}

/* --- Global Presence Advanced Map Styling --- */
.global-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.glass-map-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    border-radius: 16px;
    padding: 12px;

    /* Glassmorphism Panel */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Deep staging shadows with a subtle maroon inner accent */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(139, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Hover Physics for the Container */
.glass-map-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(139, 0, 0, 0.3), 0 0 40px rgba(139, 0, 0, 0.1);
}

.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 */
.glass-map-container:hover .professional-map-img {
    opacity: 1;
    transform: scale(1.015);
}

/* High-Tech Animated Scan Line Overlay */
.tech-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.8), transparent);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    /* Prevents interference with clicks */
    z-index: 2;
    transition: opacity 0.4s ease;
}

/* Trigger the scanner animation only when hovering */
.glass-map-container:hover .tech-scan-line {
    opacity: 1;
    animation: scanAnimation 3s linear infinite;
}

@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 */
    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;
    }
}

/* =========================================
   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%;
    }
}