/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --color-bg: #000000;
    --color-bg-light: #000000;
    --color-bg-dark: #111111;
    --color-text: #ffffff;
    --color-text-muted: #a3a3a3;
    --color-text-white: #ffffff;
    --color-accent: #3b82f6;
    /* A vibrant professional blue */
    --color-accent-hover: #60a5fa;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide global scrollbar for Chrome, Safari, and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    display: none;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--color-accent);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

.lead-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-text-white);
}

/* =========================================
   LAYOUT & UTILITIES
   ========================================= */
.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pb-2 {
    padding-bottom: 1rem;
}

.pt-3 {
    padding-top: 1.5rem;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0.2rem 0.3rem;
    /* Further reduced padding */
    z-index: 1000;
    transition: all var(--transition-fast);
    background-color: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    top: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.logo {
    position: absolute;
    top: 22px;
    /* Adjusted slightly to align nicely with smaller navbar */
    left: 3vw;
    font-weight: 800;
    font-size: 1.4rem;
    /* Kept readable */
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    z-index: 1005;
    /* High z-index to stay above other elements */
    color: var(--color-text);
    /* Add text shadow so it remains legible when scrolling over dark background images */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all var(--transition-fast);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.85rem;
    /* Shrunk font size to make pill smaller */
    color: var(--color-text);
    padding: 0.4rem 1rem;
    /* Shrunk inner link padding */
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background-color: #2a2a2a;
    color: #60a5fa;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   SECTION 1: HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 1) 100%);
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-content .subheadline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.4;
}

/* =========================================
   SECTION 2: ABOUT
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: flex-start;
}

.about-title-wrapper {
    position: sticky;
    top: 120px;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 1rem;
}

.about-text-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-text-wrapper p.lead-text {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

/* =========================================
   SECTION 3: SERVICES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #000000;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--color-accent);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 3rem;
    font-weight: 800;
    color: rgb(106, 125, 167);
    /* faded accent */
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card ul {
    border-top: 1px solid var(--color-bg-light);
    padding-top: 1.5rem;
}

.service-card li {
    padding: 0.8rem 0;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.service-card li::before {
    content: '→';
    color: var(--color-accent);
    margin-right: 10px;
    font-weight: bold;
}

/* =========================================
   SECTION 4: CULTURE
   ========================================= */
.culture-header {
    max-width: 800px;
    margin-bottom: var(--space-md);
}

.culture-lead {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.culture-sub {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.gallery-item:hover .item-caption {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   SECTION 5: GROWTH & OPPORTUNITY
   ========================================= */
.career-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding: 0 2rem;
    position: relative;
}

.flow-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.timeline-label-connector {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.1);
}

.flow-step:hover .step-circle {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.step-circle.glow {
    background-color: var(--color-accent);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 0 15px rgba(37, 99, 235, 0.2);
    border-color: #fff;
}

.flow-step:hover .step-circle.glow {
    transform: scale(1.25);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.8), 0 0 0 20px rgba(37, 99, 235, 0.3);
}

.flow-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 50%, rgba(255, 255, 255, 0.1) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    margin: -60px 0 0 0;
    z-index: 1;
    position: relative;
}

.flow-connector.active {
    background-position: 0 0;
    transition: background-position 1s ease-out;
}

.reward-strip p {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .reward-strip p {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
}

.achiever-preview-bar {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--color-accent);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.achiever-preview-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    background: linear-gradient(90deg, rgba(30, 41, 59, 1), rgba(30, 58, 138, 0.6));
    border-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #60a5fa;
}

.achiever-preview-bar .hover-arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.achiever-preview-bar:hover .hover-arrow {
    transform: translateX(5px);
    color: #60a5fa;
}

/* =========================================
   SECTION 6: JOURNEY (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--color-bg-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 8px var(--color-bg);
}

.timeline-content {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-bg-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform var(--transition-base);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: rgba(37, 99, 235, 0.2);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--color-text-muted);
}

/* =========================================
   SECTION 7: CONNECT
   ========================================= */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid rgb(2, 34, 173);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Tooltip for social icons */
.social-icon::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-text);
    color: var(--color-bg, #fff);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* =========================================
   FOOTER – COMPACT LAYOUT
   ========================================= */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 2rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Brand column */
.footer-brand .footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand .footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 220px;
    margin-bottom: 0.75rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--color-accent);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Column headings */
.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.7rem;
}

/* Quick links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--color-accent);
    padding-left: 3px;
}

/* Contact info */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    line-height: 1.4;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--color-accent);
}

.footer-contact-list li a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: var(--color-accent);
}

/* Social media icons in footer */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
}

.footer-social-link svg {
    flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.9rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   ANIMATIONS & REVEALS
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-title-wrapper {
        position: static;
    }

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

    .career-flow {
        flex-direction: column;
        gap: 3rem;
    }

    .flow-connector {
        width: 2px;
        height: 50px;
        margin: -20px 0;
        background: linear-gradient(180deg, var(--color-accent) 50%, rgba(255, 255, 255, 0.1) 50%);
        background-size: 100% 200%;
        background-position: 0 100%;
    }

    .flow-connector.active {
        background-position: 0 0;
    }

    .timeline-label-connector {
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {

    /* Responsive adjustment for the logo */
    .logo {
        font-size: 1rem;
        top: 32px;
        /* Align vertically with the center of the mobile hamburger menu */
        left: 4vw;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.9);
    }

    /* Reset navbar container so it doesn't bound its children */
    .navbar,
    .navbar.scrolled {
        position: static;
        /* Let children escape fixed context */
        width: 100%;
        height: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 4vw;
        z-index: 1003;
        width: 50px;
        height: 50px;
        background-color: rgba(17, 17, 17, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 20px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 2.5px 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100vw;
        /* fully offscreen */
        width: 100vw;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1002;
    }

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

    .nav-links a {
        font-size: 1.8rem;
        padding: 0.5rem;
        font-weight: 600;
        opacity: 1;
        transform: none;
        color: var(--color-text);
        transition: color 0.3s ease;
    }

    .nav-links a.active {
        color: var(--color-accent);
        background-color: transparent;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .culture-gallery {
        grid-template-columns: 1fr;
    }

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


}

/* =========================================
   PHOTO SLIDER & HERO CONTROLS
   ========================================= */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    z-index: 20;
    align-items: center;
}

@media (max-width: 768px) {
    .slider-controls {
        flex-direction: column;
        gap: 20px;
        bottom: 20px;
    }

    .slider-buttons {
        margin-left: 0 !important;
    }

    .slider-dots {
        position: static !important;
        transform: none !important;
    }
}

.slider-dots {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.slider-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.slider-buttons button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: all var(--transition-fast);
}

.slider-buttons button:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* =========================================
   READ MORE MODAL
   ========================================= */
.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    margin-top: 1rem;
    margin-left: 1rem;
    /* Moves the button a little bit to the right */
    background: transparent;
}

.read-more-link:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 90, 90, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.modal-content {
    background-color: transparent;
    width: 90%;
    max-width: 1000px;
    position: relative;
    color: #fff;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    transition: color var(--transition-fast);
    z-index: 2001;
    line-height: 1;
}

.close-modal:hover {
    color: #ccc;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: transparent;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-image {
    flex: 1 1 300px;
}

.modal-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 450px;
}

.modal-text {
    flex: 2 1 400px;
}

.modal-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px;
    }

    .modal-image, 
    .modal-text {
        flex: 1 1 auto;
        width: 100%;
    }

    .close-modal {
        top: -40px;
        right: 0;
    }
}

/* Facecard Grid Styles */
.facecard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 10px;
}

@media (max-width: 992px) {
    .facecard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.facecard {
    background-color: #000;
    padding: 15px;
    /* Creates the black border effect */
    display: flex;
    flex-direction: column;
}

.facecard-image {
    width: 100%;
    aspect-ratio: 3/4;
}

.facecard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
}

.facecard-info {
    background-color: #2563eb;
    /* Blue from standard accent or similar to image */
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.facecard-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.facecard-info p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: #e0e0e0;
}

.facecard-link {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.facecard-link:hover {
    color: #ccc;
}

/* =========================================
   TEAM FOUNDATION SECTION
   ========================================= */
.team-foundation-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-dark));
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .foundation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.foundation-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.foundation-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
    pointer-events: none;
}

.foundation-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.foundation-image-wrapper:hover img {
    transform: scale(1.05);
}

.foundation-glass-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .foundation-glass-badge {
        left: 10px;
        bottom: 20px;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.badge-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.foundation-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.foundation-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.foundation-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(10px);
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-text {
    font-weight: 600;
    color: var(--color-text-white);
    font-size: 1.05rem;
}

/* Default photo-slider height for desktop */
.hero.photo-slider {
    min-height: 80vh;
}

/* =========================================
   GLOBAL MOBILE RESPONSIVENESS FIXES
   ========================================= */
@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content .subheadline {
        font-size: 1.2rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .hero.photo-slider {
        min-height: 40vh;
        height: 40vh;
    }
}