@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

:root {
    --bg-primary: #011D49;
    --bg-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent: #adcb36;
    --accent-hover: #cce85e;
    --border-color: #333;
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nav-height: 160px;
    --nav-height-scrolled: 100px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Increased from default */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theme Classes */
.theme-dark {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-light {
    background-color: var(--bg-secondary);
    color: var(--bg-primary);
    /* Using primary dark blue for text on white */
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6 {
    color: var(--bg-primary);
}

.theme-light p {
    color: var(--bg-primary);
}

/* Global Background Image Defaults */
[style*="background-image"] {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}



body.no-scroll {
    overflow: hidden;
}

/* Hero Background Video */
#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: var(--bg-primary);
}

#hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.78vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%) scale(1.1);
    pointer-events: none;
}

/* Header & Nav */
header {
    height: var(--nav-height);
    background: rgba(1, 29, 73, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.8s ease;
}

header.scrolled {
    height: var(--nav-height-scrolled);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    /* text-transform: uppercase; Removed per request */
    letter-spacing: 0px;
    line-height: 1;
    transition: all 0.8s ease;
}

header.scrolled .logo-text {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 2rem;
    }

    .logo-img {
        height: 60px;
    }

    header {
        height: 120px;
        padding: 0 20px;
    }

    header.scrolled {
        height: 70px;
    }

    header.scrolled .logo-text {
        font-size: 1rem;
    }

    header.scrolled .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

.logo-container {
    width: auto;
    /* min-width: 120px; Removed to prevent layout constraints */
    max-width: none;
    /* Allow full flexibility */
    display: flex;
    align-items: center;
    transition: all 0.8s ease;
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.8s ease;
}

header.scrolled .logo-img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    padding: 10px;
}

.hamburger-bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}




nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    /* Nice and big initially */
    font-weight: 600;
    transition: all 0.8s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
}

header.scrolled nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* transform: translateX(-50%) translateY(20px); Centering removed */
    transform: translateY(20px);
    background: rgba(1, 29, 73, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(173, 203, 54, 0.2);
    /* Changed border to bottom for full width feel */
    border-radius: 0;
    /* Removed rounding for full width */
    /* height: calc(100vh - var(--nav-height)); Removed to allow auto height */
    height: auto;
    max-height: 80vh;
    /* Prevent it from being larger than viewport if content is huge */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
    /* Grace period for hover transition */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

header.scrolled .dropdown {
    /* height: calc(100vh - var(--nav-height-scrolled)); Removed */
    height: auto;
    max-height: 80vh;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    transition-delay: 0s;
    /* Immediate reaction on hover-in */
}

/* Force hide dropdowns when scrolling */
header.hide-dropdowns .dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

.dropdown-content {
    display: flex;
    justify-content: center;
    min-height: 350px;
    padding: 0 5%;
    /* Align with header padding */
}

.dropdown-featured {
    width: 100%;
    max-width: 1200px;
    /* Keep cards from getting too wide */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Accommodate more width nicely */
    gap: 30px;
    padding: 40px 0;
}

.featured-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    aspect-ratio: auto;
    /* Remove fixed aspect ratio */
    min-height: 250px;
    cursor: pointer;
    transition: transform 0.4s ease,
        box-shadow 0.4s ease;
}

.featured-card::after {
    content: none;
}

.card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.featured-card:hover .card-image {
    transform: scale(1.05);
}



.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(1, 29, 73, 0.5);
    flex-grow: 1;
}

.card-text h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-text p {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Removed .dropdown-list styles */



.arrow-right {
    transition: transform 0.3s ease;
}

.featured-card:hover .arrow-right,
.dropdown-list a:hover .arrow-right {
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--nav-height) 5% 0 5%;
}

.hero-content {
    display: block;
    width: 100%;
    max-width: 1400px;
}

.hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Subpage Hero Section */
.subpage-hero {
    background-color: var(--bg-primary);
    padding: 180px 5% 100px 5%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 29, 73, 0.7);
    z-index: 1;
    display: none;
}

.subpage-hero.has-image {
    background-color: var(--bg-primary);
}

.subpage-hero.has-image .hero-overlay {
    display: block;
}

.subpage-hero.has-image h1 {
    color: white;
}

.subpage-hero.has-image p {
    color: rgba(255, 255, 255, 0.8);
}

.subpage-hero .hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}


.subpage-hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    /* Increased padding */
    background-color: #f8f9fa;
    /* Slightly off-white for subtle distinction */
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    opacity: 0.8;
}

.partners-header h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto 0;
}

.partners-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
    cursor: pointer;
}

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0;
    }

    .partners-logos {
        gap: 40px;
    }

    .partner-logo {
        height: 50px;
    }
}

.subpage-hero p {
    font-size: 1.3rem;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 80px 5% 40px 5%;
    }

    .subpage-hero h1 {
        font-size: 2.2rem;
    }

    .subpage-hero p {
        font-size: 1.1rem;
    }
}

.white-section {
    padding: 100px 5%;
    min-height: 100vh;
}

.white-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: inherit;
}

.white-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    color: inherit;
}

/* Features Section */
.features-section {
    padding: 40px 5%;
    min-height: auto;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    align-items: center;
    padding: 1rem 0;
}

.feature-row:last-child {
    margin-bottom: 0;
}

/* Left alignment: icon on left, text on right */
.feature-row.left {
    grid-template-areas: "icon text";
}

.feature-row.left .feature-icon-column {
    grid-area: icon;
    justify-content: flex-end;
    padding-right: 2rem;
}

.feature-row.left .feature-text-column {
    grid-area: text;
    text-align: left;
    padding-left: 2rem;
}

/* Right alignment: text on left, icon on right */
.feature-row.right {
    grid-template-areas: "text icon";
}

.feature-row.right .feature-text-column {
    grid-area: text;
    text-align: right;
    padding-right: 2rem;
}

.feature-row.right .feature-icon-column {
    grid-area: icon;
    justify-content: flex-start;
    padding-left: 2rem;
}

.feature-icon-column {
    display: flex;
    align-items: center;
}

.feature-text-column {
    display: flex;
    align-items: center;
}

.feature-icon {
    width: 180px;
    height: 180px;
    color: var(--accent);
    transition: all 0.4s ease;
}

.feature-row:hover .feature-icon {
    color: var(--accent-hover);
    transform: scale(1.15);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    filter: none;
}

/* Image Placeholder */
.image-placeholder {
    max-width: 500px;
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 0;
    transition: all 0.4s ease;
    border: 2px dashed #ccc;
    overflow: hidden;
}

/* When using img tag inside placeholder */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Remove gray background when image is set (for background-image approach) */
.image-placeholder[style*="background-image"] {
    background-color: transparent;
    border: none;
}

/* Hide text when background or img is present */
.image-placeholder:has(img) {
    background-color: transparent;
    border: none;
}

.feature-row:hover .image-placeholder {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 968px) {
    .image-placeholder {
        max-width: 350px;
        width: 100%;
        height: 250px;
    }
}

.feature-text-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
}

.feature-text-column p {
    margin-top: 1rem;
    color: #000000;
    line-height: 1.6;
}

.feature-text-column ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: #000000;
    line-height: 1.8;
}

.feature-text-column p.spec-note {
    margin-top: 1rem;
}


/* Responsive adjustments */
@media (max-width: 968px) {
    .feature-row {
        grid-template-columns: 1fr;
        grid-template-areas: "icon" "text" !important;
        gap: 2rem;
        text-align: center;
        padding: 2rem 0;
    }

    .feature-row.left .feature-icon-column,
    .feature-row.right .feature-icon-column {
        justify-content: center;
        padding: 0;
    }

    .feature-row.left .feature-text-column,
    .feature-row.right .feature-text-column {
        text-align: center;
        padding: 0;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
    }

    .feature-text-column h3 {
        font-size: 1.3rem;
    }
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: #ffffff;
    /* Solid white instead of gradient */
    font-weight: 700;
    line-height: 1.1;
}

.hero p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.learn-more-btn {
    margin-top: 2rem;
    display: inline-block;
    background: var(--accent) !important;
    opacity: 1 !important;
    border-color: var(--accent);
    padding: 18px 48px;
    font-size: 1.2rem;
    color: var(--bg-primary) !important;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--nav-height) + 1rem);
        justify-content: center;
        height: auto;
        min-height: 100vh;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

    .learn-more-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

.learn-more-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(173, 203, 54, 0.4);
}

.btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    border-radius: 8px;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(94, 255, 177, 0.3);
}

/* Subpage Styles */
.subpage header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Removed redundant .subpage-hero definition */

.content-section {
    padding: 6rem 5%;
    background: var(--bg-primary);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 120px 20px 3rem;
    }

    .subpage-hero h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 4rem 20px;
    }

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

    /* Contact Form Mobile Fixes */
    .premium-form,
    .project-form {
        padding: 20px;
    }

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

    .hero-contact-left,
    .hero-contact-right {
        width: 100%;
    }

    .container {
        padding: 0 10px;
    }
}

/* White Page Theme */
body.white-page {
    background-color: var(--bg-primary);
    color: #ffffff;
}

body.white-page .content-section {
    background-color: var(--bg-secondary);
    color: #000000;
}

body.white-page .subpage-hero {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.white-page .section-header h2 {
    color: #000000;
}

body.white-page .section-header p {
    color: #000000;
}

body.white-page .about-text p {
    color: #000000;
}

/* Timeline on white pages */
body.white-page .timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

body.white-page .timeline-content h3 {
    color: #000000;
}

body.white-page .timeline-content p {
    color: #000000;
}

body.white-page .timeline-date {
    color: #000000;
}

/* Team cards on white pages */
body.white-page .team-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.white-page .team-info h3 {
    color: #000000;
}

body.white-page .team-info .bio {
    color: #000000;
}

body.white-page .team-info .role {
    color: var(--accent);
}

body.white-page .icon-link {
    color: var(--bg-primary);
}

/* Contact info items on white pages */
body.white-page .info-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.white-page .info-text h3 {
    color: #ffffff;
}

body.white-page .info-text p {
    color: #ffffff;
}

body.white-page .info-icon {
    background: var(--bg-primary);
    color: var(--accent);
}

/* Project section on white pages */
body.white-page .project-section {
    background-color: var(--bg-secondary);
    color: #000000;
}

body.white-page .project-section h2 {
    color: #000000;
}

body.white-page .project-intro p {
    color: #000000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* White Page Theme Overrides */
.white-page {
    background-color: #ffffff;
    color: #111;
}

/* .white-page header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
}

.white-page header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
}

.white-page .logo-text {
    color: var(--bg-primary);
}

.white-page nav a {
    color: #444;
}

    color: var(--bg-primary);


.white-page .subpage-hero {
    background-color: #ffffff;
    color: #111;
    border-bottom: 1px solid #f0f0f0;
}

.white-page .subpage-hero h1 {
    color: #ffffff;
}

.white-page .content-section {
    background: #ffffff;
    color: #111;
}

.white-page .section-header h2 {
    color: var(--bg-primary);
}

.white-page .about-text p {
    color: #333;
}

.white-page .team-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.white-page .team-info .bio {
    color: #555;
}

/* .white-page .hamburger-bar {
    background-color: var(--bg-primary);
} */

/* .white-page footer {
    background: #ffffff;
    color: #666;
    border-top: 1px solid #eee;
} */

/* History Timeline */
.history-timeline {
    position: relative;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-primary);
    opacity: 0.1;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: none;
}

.timeline-date {
    width: 45%;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    padding-top: 0.2rem;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--bg-primary);
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.team-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ddd;
    transform: scale(1.02);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 0.25rem;
    color: var(--bg-primary);
}

.team-info .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-info .bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.team-header h3 {
    margin-bottom: 0 !important;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-link {
    color: var(--bg-primary);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.icon-link:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-2px);
}

.linkedin-icon {
    color: #0077b5;
}

.linkedin-icon:hover {
    color: #0077b5;
    /* Keep LinkedIn blue on hover or change to accent */
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: calc(120px + 2rem) 5% 3rem;
    }

    .subpage-hero h1 {
        font-size: 2.5rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-item::after,
    .history-timeline::before {
        display: none;
    }

    .timeline-date,
    .timeline-content {
        width: 100%;
        text-align: center;
    }

    .timeline-date {
        margin-bottom: 1rem;
    }

    .timeline-content {
        border-left: none;
        border-top: 4px solid var(--accent);
    }

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

/* Innovation Section */
.innovation-section {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.innovation-section.has-image .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 29, 73, 0.7);
    /* Slightly darker/blue tint similar to subpage hero */
    z-index: 1;
    display: block;
}

.innovation-section.has-image .innovation-container {
    position: relative;
    z-index: 2;
}

.innovation-section.has-image h2,
.innovation-section.has-image p {
    color: #ffffff;
}

.innovation-section.has-image .innovation-content p {
    color: rgba(255, 255, 255, 0.9);
}

.innovation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.innovation-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 800px;
}

.innovation-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

.innovation-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 900px;
}

@media (max-width: 768px) {
    .innovation-section h2 {
        font-size: 2.5rem;
    }

    .innovation-content p {
        font-size: 1.1rem;
    }
}

/* Contact Page Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.premium-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(173, 203, 54, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

/* Premium Form on white pages */
body.white-page .premium-form {
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.white-page .form-group label {
    color: #333;
}

body.white-page .form-group input,
body.white-page .form-group textarea {
    background: #fdfdfd;
    border: 1px solid #ddd;
    color: #333;
}

body.white-page .form-group input:focus,
body.white-page .form-group textarea:focus {
    background: #fff;
    border-color: var(--accent);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
    -webkit-user-select: none;
    user-select: none;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-label:hover input~.radio-custom {
    background-color: #ccc;
}

.radio-label input:checked~.radio-custom {
    background-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(173, 203, 54, 0.2);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked~.radio-custom:after {
    display: block;
}

.radio-label .radio-custom:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    border: none;
    margin-top: 10px;
    font-weight: 700;
    border-radius: 8px;
    font-family: var(--font-main);
}

.submit-btn:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(173, 203, 54, 0.4);
}

/* Redesigned Contact Page Styles (Dark Theme) */
.contact-hero {
    background: var(--bg-primary);
    color: #fff;
    padding: calc(var(--nav-height) + 4rem) 5% 6rem;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.contact-hero .container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-contact-left {
    padding-right: 40px;
}

/* Contact CTA Section */
.contact-cta-section {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 80px 5%;
    text-align: center;
}

.contact-cta-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

.contact-cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact-cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-cta-section h2 {
        font-size: 2rem;
    }
}


.hero-contact-left h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-contact-left .premium-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: none;
}

.hero-contact-left .form-group label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-contact-left .form-group input,
.hero-contact-left .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-contact-left .form-group input:focus,
.hero-contact-left .form-group textarea:focus {
    border-color: #007bbbff;
    box-shadow: 0 0 0 4px rgba(0, 123, 187, 0.1);
}

.hero-contact-right h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #fff;
}

.hero-contact-right p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-info-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-box.no-margin {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.map-widget {
    margin-top: 2rem;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-widget iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.hero-info-item svg {
    color: #007bbbff;
}

.hero-info-item h3 {
    font-size: 1rem;
    color: #007bbbff;
    margin: 0 0 2px 0;
}

.hero-info-item p {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.cyan-btn {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 18px 48px !important;
    font-size: 1.2rem;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-main);
}

.cyan-btn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 0 20px rgba(173, 203, 54, 0.4);
    transform: translateY(-2px);
}

.project-section {
    background: var(--bg-primary);
    color: #fff;
    padding: 180px 5% 100px 5%;
    text-align: center;
}

.project-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.project-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.project-intro p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.project-intro a {
    color: #007bbbff;
    text-decoration: none;
    font-weight: 600;
}

.detailed-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.project-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.project-form input,
.project-form select,
.project-form textarea {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
    outline: none;
    border-color: #007bbbff;
    box-shadow: 0 0 0 3px rgba(0, 123, 187, 0.1);
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007bbbff;
    background: rgba(0, 123, 187, 0.05);
}

.file-upload-content svg {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.file-limit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

/* File Upload on white pages */
body.white-page .file-upload-area {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

body.white-page .file-upload-area:hover {
    border-color: var(--accent);
    background: rgba(173, 203, 54, 0.05);
}

body.white-page .file-limit {
    color: rgba(0, 0, 0, 0.6);
}

body.white-page .file-upload-content svg {
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 968px) {
    .contact-hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-contact-left {
        padding-right: 0;
        order: 2;
    }

    .hero-contact-right {
        order: 1;
        text-align: center;
    }

    .hero-contact-right h1 {
        font-size: 2.5rem;
    }

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

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

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

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Blog Styles */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(173, 203, 54, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    gap: 12px;
}

/* Blog on white pages */
body.white-page .blog-card {
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.white-page .blog-card:hover {
    background: #fdfdfd;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body.white-page .blog-card h3 {
    color: var(--bg-primary);
}

body.white-page .blog-card p {
    color: #666;
}

/* About Us Page Gap Adjustments */
#history.content-section {
    padding-bottom: 2rem;
    /* Reduced from 6rem */
}

#team.content-section {
    padding-top: 2rem;
    /* Reduced from 6rem */
}

/* Additional image-placeholder overrides removed - main styles at line ~830 now handle all cases */

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.white-page .filter-btn {
    color: var(--bg-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Specs Table */
.specs-table {
    width: 100%;
    max-width: 800px;
    /* Or whatever fits your design */
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    /* For border radius */
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: var(--bg-primary);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background-color: #f8f9fa;
    /* Very light gray for zebra striping */
}

.specs-table tr:hover {
    background-color: #f1f1f1;
    /* Hover effect */
    transition: background-color 0.2s ease;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--bg-primary);
    /* Highlight the label */
    width: 40%;
    /* Fixed width for labels */
}

.specs-table td:last-child {
    color: #555;
}

/* Text Emphasis */
.text-emphasis {
    font-weight: 600;
    color: var(--bg-primary);
    /* Use primary color for emphasis */
}

/* Partners Section */
.partners-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    border-top: 1px solid #eee;
}

.partners-header {
    text-align: center;
    margin-bottom: 50px;
}

.partners-header h3 {
    color: var(--bg-primary);
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
}

.partners-header h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.partners-static {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    padding: 20px;
}

.partners-track {
    display: flex;
    width: 100%;
    /* Ensure container takes full width */
    overflow: hidden;
}

.slide-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scroll 60s linear infinite;
    flex-shrink: 0;
    padding-right: 80px;
    /* Ensure gap between last item of set 1 and first of set 2 */
    width: max-content;
    will-change: transform;
}

.partners-track:hover .slide-track {
    animation-play-state: paused;
}

.partner-logo {
    height: 80px;
    /* Increased size */
    width: 200px;
    /* Fixed width for even spacing */
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

/* Autocollimator Graphic Styles */
.autocollimator-section {
    padding: 80px 5%;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.autocollimator-container {
    position: relative;
    background-color: #011D49;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    /* Centered */
}

.autocollimator-container canvas {
    display: block;
    width: 100%;
    height: auto;
}

.ac-controls {
    padding: 25px;
    background-color: #001538;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ac-controls label {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    color: #cce85e;
}

.ac-controls input[type=range] {
    width: 300px;
    cursor: pointer;
    accent-color: #cce85e;
    max-width: 100%;
}

.ac-labels {
    display: flex;
    justify-content: space-between;
    width: 310px;
    font-size: 12px;
    color: white;
    font-weight: 300;
    max-width: 100%;
}

/* Structured Light Page Specifics */
.full-width-section {
    padding: 4rem 5%;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.content-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin: 0;
}

.content-container p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #000000;
    line-height: 1.6;
    font-size: 18px;
    /* Standardize */
    max-width: none;
}

.instruction-text {
    margin-bottom: 1rem !important;
    font-style: italic;
    color: var(--bg-primary);
}

.mobile-placeholder {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Display Utilities */
@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }

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

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Tradeoffs Diagram Styles (Ported from test.html) */
.diagram-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    /* Match autocollimator-container style */
    background-color: #011D49;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 2rem auto;
    /* Centered with vertical spacing */
    padding: 2rem 0;
    /* Add internal spacing */
}

.diagram-container svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.axis-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 8;
    stroke-linecap: round;
}

.main-label {
    fill: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-anchor: middle;
}

.tech-group {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-box: fill-box;
    transform-origin: center;
}

.tech-shape {
    fill: var(--accent);
    fill-opacity: 0.25;
    stroke: var(--accent);
    stroke-width: 2;
    transition: fill-opacity 0.3s ease;
}

.tech-title {
    fill: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    /* Light shadow for readability */
}

.tech-desc {
    fill: var(--accent);
    font-size: 16px;
    font-style: italic;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

.tech-group:hover {
    transform: scale(1.15);
    z-index: 10;
}

.tech-group:hover .tech-shape {
    fill-opacity: 0.6;
}

.tech-group:hover .tech-desc {
    opacity: 1;
}

.desc-offset {
    transform: translateY(20px);
}

#optical-group {
    transform-box: view-box;
    transform-origin: 400px 300px;
}


/* Static Image Row */
.image-row-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.image-item {
    flex: 1;
    min-width: 200px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.03);
}

.image-label {
    margin-top: 15px !important;
    /* Override p margin if necessary */
    font-size: 1rem !important;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .image-row-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Override feature text colors when inside innovation-section (dark background) */
.innovation-section .feature-text-column h3 {
    color: #ffffff;
}

.innovation-section .feature-text-column p,
.innovation-section .feature-text-column ul {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1200px) {
    .mobile-nav-toggle {
        display: flex;
    }

    nav {
        position: fixed !important;
        top: 0;
        right: -100% !important;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
        padding-top: 80px;
        /* Space for close button/header */
        padding-bottom: 40px;
    }

    nav.active {
        right: 0 !important;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        width: 100%;
        /* Ensure list takes full width */
    }

    .nav-item {
        width: 100%;
        /* Items take full width */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        font-size: 1.5rem;
        color: var(--text-primary) !important;
    }

    .nav-item .dropdown {
        position: static !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
        background: transparent !important;
        border-bottom: none !important;
        padding: 0 !important;
        margin-top: 0 !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transition: max-height 0.6s ease,
            opacity 0.6s ease;
    }

    .nav-item:focus-within .dropdown,
    .nav-item:hover .dropdown {
        max-height: 800px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-content {
        flex-direction: column;
        min-height: 0;
        padding: 0;
        width: 100%;
        align-items: center;
    }

    .dropdown-featured {
        grid-template-columns: 1fr;
        gap: 5px;
        /* Reduced gap for list feel */
        padding: 5px 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .featured-card {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        background: transparent;
        padding: 10px 0;
        /* Minimal padding */
        border: none;
        box-shadow: none;
        transform: none !important;
        /* Disable hover movement */
        justify-content: center;
        /* Center aligns the text like main links */
        width: 100%;
        /* spread the whole width */
    }

    .featured-card:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .featured-card::after {
        content: none;
    }

    .featured-card .card-image {
        display: none;
        /* Hide images */
    }

    .featured-card .card-text {
        background: transparent;
        padding: 0;
        align-items: center;
        /* Center align text */
        width: auto;
        flex-grow: 0;
    }

    .featured-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0;
        color: var(--text-secondary);
        /* Match nav link color style */
        font-weight: 500;
        display: inline-block;
        position: relative;
    }

    .featured-card h4::after {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--accent);
        transition: width var(--transition-speed);
    }

    .featured-card:hover h4::after {
        width: 100%;
    }

    .featured-card:hover h4 {
        color: var(--text-primary);
    }

    .featured-card p {
        display: none;
        /* Hide description for list style */
    }

    .featured-card svg {
        display: none;
        /* Hide arrows for cleaner list look */
    }

    .mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Specs Table Styles */
.specs-section {
    padding: 60px 5%;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.specs-container {
    width: 100%;
    max-width: 800px;
}

.specs-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--bg-primary);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1rem;
}

.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--bg-primary);
}

.specs-table td:first-child {
    font-weight: 700;
    width: 40%;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Autocollimator Controls */
.ac-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 600px;
    margin: 0 auto;
    background: #011D49;
    /* Dark Blue to match Canvas */
    padding: 20px;
    border-radius: 12px;
    /* border removed per request */
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.ac-controls label {
    font-size: 0.85rem;
    /* Decreased from 1rem */
    font-weight: 600;
    color: #ffffff;
    /* White text */
    text-align: left;
    text-transform: uppercase;
    /* Match other labels if desired, or keep as is */
    letter-spacing: 0.5px;
}

.value-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    /* Decreased */
    font-weight: 600;
    color: #cce85e;
    /* Green Accent */
    min-width: 80px;
    text-align: right;
}

/* Specific override for the input range to match width */
.ac-controls input[type="range"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Track */
}

/* Custom Checkbox Button Style (Matches Reset Button) */
.hidden-checkbox {
    display: none;
}

.custom-btn-label {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #cce85e;
    color: #cce85e;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-block;
    margin-bottom: 5px;
    /* Spacing */
}

.custom-btn-label:hover {
    background-color: rgba(204, 232, 94, 0.1);
    box-shadow: 0 0 10px rgba(204, 232, 94, 0.3);
}

.hidden-checkbox:checked+.custom-btn-label {
    background-color: #cce85e;
    color: #011D49;
    box-shadow: 0 0 10px rgba(204, 232, 94, 0.5);
}