/* ===== CSS Variables & Reset ===== */
:root {
    --primary-blue: #0066FF;
    --dark-blue: #003D99;
    --light-blue: #4D94FF;
    --ultra-light-blue: #E6F0FF;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --text-dark: #1A2332;
    --text-light: #64748B;
    --gradient-blue: linear-gradient(135deg, #0066FF 0%, #003D99 100%);
    --gradient-light: linear-gradient(135deg, #E6F0FF 0%, #FFFFFF 100%);
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Animated Background ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--gradient-blue);
    opacity: 0.03;
    border-radius: 45%;
    animation: wave 25s infinite linear;
}

.wave1 {
    top: -150%;
    left: -50%;
    animation-duration: 25s;
}

.wave2 {
    top: -120%;
    left: -30%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.04;
}

.wave3 {
    top: -100%;
    left: -60%;
    animation-duration: 35s;
    animation-delay: -10s;
    opacity: 0.02;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-left: -50px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 50px;
    transition: var(--transition);
    filter: none;
    mix-blend-mode: multiply;
}

#navbar.scrolled .logo-img {
    height: 48px;
    filter: none;
    mix-blend-mode: multiply;
}

.logo-text {
    font-size: 9px;
    font-weight: 700;
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    transition: var(--transition);
    text-align: left;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: -15px;
}

#navbar.scrolled .logo-text {
    color: var(--text-dark);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
    text-shadow: none;
}

#navbar.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

#navbar.scrolled .nav-links a::after {
    background: var(--primary-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
}

#navbar.scrolled .mobile-menu-btn span {
    background: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-slide.active {
    opacity: 1;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Crimson Pro', serif;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line:last-child {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn-primary,
.btn-secondary {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== Video Controls ===== */
.video-controls {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.video-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.video-dots {
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.video-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.video-dot.active,
.video-dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    z-index: 3;
    cursor: pointer;
    text-align: center;
    animation: fadeInUp 1s ease-out 1.4s both;
    margin-top: 28px;
}

.scroll-text {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    animation: bounce 2s infinite;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow svg {
    color: var(--white);
}

/* Hide specific product descriptions in cards but keep text for lightbox */
.product-desc.hidden-in-card {
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 80px;
}

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

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

.section-tag {
    display: inline-block;
    font-family: 'Crimson Pro', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 16px;
}

.section-tag::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.section-header.center .section-tag::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 280px;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 24px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 24px auto 0;
}

/* ===== Floating Shapes ===== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-blue);
    opacity: 0.05;
}

.shape1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: -80px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

/* ===== About Section ===== */
#about {
    background: var(--off-white);
    position: relative;
    padding: 45px 0 70px;
    scroll-margin-top: 70px;
}

#about .section-header {
    margin-top: 20px;
}

#about .section-tag {
    font-size: 46px;
    letter-spacing: 0.04em;
}

#about .section-title {
    font-size: 22px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0;
    text-align: left;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.about-text p + p {
    margin-top: 1.25em;
}

.about-text {
    max-width: 52ch;
}

.about-card {
    margin-top: 0;
    background: var(--white);
    border-radius: 20px;
    /* Desktop default – comfortable spacing around text */
    padding: 45px 48px;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* About section: 3 horizontal cards below main content */
.about-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.about-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.about-info-card-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    text-align: left;
    letter-spacing: 0.01em;
}

.about-image-wrapper {
    perspective: 1000px;
    margin-top: 12px;
}

.image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: #000000;
}

.image-card:hover {
    transform: rotateY(5deg) rotateX(2deg);
}

.globe-container {
    width: 100%;
    height: 640px;
    position: relative;
    background: #0c1445;
}

/* Earth placeholder visible until 3D iframe has loaded */
/* On top until 3D iframe has loaded, then hidden */
.globe-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0a1628;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/The_Earth_seen_from_Apollo_17.jpg/1200px-The_Earth_seen_from_Apollo_17.jpg");
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.globe-container.globe-loaded .globe-placeholder {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Hide iframe while it preloads in body (before move to globe card) */
.globe-preload-early {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 640px !important;
    height: 640px !important;
    pointer-events: none !important;
}

.globe-iframe-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.globe-container.globe-loaded .globe-iframe-wrap {
    z-index: 1;
}

.globe-iframe-wrap .about-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-image {
    width: 100%;
    height: 640px;
    object-fit: cover;
    /* shift globe slightly to the left and keep it a bit higher */
    object-position: 10% 55%;
    display: block;
    background: #000000;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 61, 153, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
    /* allow interaction with embedded 3D earth (Spline iframe) */
    pointer-events: none;
}

/* Black button bottom-right inside card */
.card-cta-btn {
    position: absolute;
    right: 15px;
    bottom: 18px;
    left: 75%;
    min-height: 38px;
    display: block;
    border-radius: 12px;
    border: none;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    cursor: default;
    box-shadow: none;
    z-index: 2;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.card-cta-btn:hover,
.card-cta-btn:active {
    background: #000000;
    cursor: default;
}

/* Viewport 324×644 only: larger 3D globe button; mobile and desktop unchanged */
@media (min-width: 320px) and (max-width: 328px) and (min-height: 640px) and (max-height: 648px) {
    .card-cta-btn {
        left: 58px;
        min-height: 56px;
        right: 0;
        bottom: 0;
        margin-top: -8px;
        border-radius: 0 0 24px 0;
    }
}

/* Mobile: black button covers Spline watermark and top gap; desktop unchanged */
@media (max-width: 768px) {
    .card-cta-btn {
        left: 50%;
        min-height: 56px;
        right: 0;
        bottom: 0;
        margin-top: -10px;
        border-radius: 0 0 24px 0;
    }
}

/* Keep About section 3D earth card static and without blue overlay on hover */
#about .image-card:hover {
    transform: none;
}

#about .image-card:hover .image-overlay {
    opacity: 0;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

/* ===== Products Section ===== */
.products {
    background: var(--white);
    padding-top: 10px;
}

.products-section-header {
    margin-bottom: 24px;
}

/* Product category carousels */
.product-category {
    margin-bottom: 60px;
}

.product-category:last-child {
    margin-bottom: 0;
}

/* Hide arrows when carousel has 2 or fewer cards (Agricultural) */
.product-category:has(#carouselAgricultural) .carousel-btn[data-carousel="agricultural"] {
    display: none;
}

.product-category-title {
    font-family: 'Crimson Pro', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-left: 4px;
}

.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.08);
}

.carousel-btn.is-disabled,
.carousel-btn.is-disabled:hover {
    opacity: 0.35;
    cursor: default;
    background: var(--white);
    color: var(--primary-blue);
    transform: none;
}

.product-carousel {
    flex: 1;
    overflow: hidden;
    width: 1008px; /* 3 cards (320px) + 2 gaps (24px) = 1008px */
    max-width: calc(100% - 80px); /* leave space for arrows */
}

.product-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.product-card.carousel-card {
    flex: 0 0 320px;
    min-width: 320px;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.8) 0%, rgba(0, 61, 153, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1);
}

.product-icon svg {
    color: var(--white);
}

/* Product Full-Screen Lightbox */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(900px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-text {
    text-align: center;
    max-width: 90%;
}

.lightbox-title {
    font-family: 'Crimson Pro', serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.lightbox-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.product-desc {
    font-size: 15px;
    color: var(--text-light);
}

/* ===== Hidden Products ===== */
.products-hidden {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 40px;
}

.products-hidden.show {
    max-height: 3000px;
    opacity: 1;
}

.view-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.view-more-btn {
    padding: 18px 50px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.view-more-btn svg {
    transition: var(--transition);
}

.view-more-btn.active svg {
    transform: rotate(180deg);
}

/* ===== Contact Section ===== */
#contact {
    background: var(--off-white);
    padding-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 565px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--ultra-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--gradient-blue);
}

.contact-card:hover .contact-icon svg {
    color: var(--white);
}

.contact-icon svg {
    color: var(--primary-blue);
    transition: var(--transition);
}

.contact-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form-heading {
    font-family: 'Crimson Pro', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 32px;
}

.contact-form {
    max-width: 620px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 13px;
    color: var(--primary-blue);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.submit-btn svg {
    transition: var(--transition);
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #003D99 0%, #001F4D 100%);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.footer-top {
    text-align: center;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 72px;
    filter: brightness(0) invert(1);
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.footer-text {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* About grid (incl. globe) visible from load – same “load & visible” timing as hero video, no scroll-to-reveal */
.about-grid-visible-on-load {
    opacity: 1;
    transform: none;
}

/* ===== Responsive Design ===== */
/* Tablet only: shift logo right so it stays fully visible (desktop and mobile unchanged) */
@media (min-width: 769px) and (max-width: 992px) {
    .logo {
        margin-left: 0;
    }
}

/* ~603px–670px viewport: logo fully visible without changing mobile/tablet/desktop */
@media (min-width: 600px) and (max-width: 670px) {
    .logo {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-tag {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-grid,
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px 0 5px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 30px;
    }
    
    .nav-links.active {
        right: 0;
    }

    /* When mobile menu is open on white background, use dark nav text */
    .nav-links.active a {
        color: var(--text-dark);
    }

    .nav-links.active a::after {
        background: var(--primary-blue);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-cards-row {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid,
    .products-hidden {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .product-card.carousel-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .product-carousel {
        width: 888px; /* 3 × 280 + 2 × 24 */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .contact-form-heading {
        font-size: 32px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
        scroll-margin-top: 70px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-tag {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .globe-container {
        height: 460px;
    }

    .about-image {
        height: 460px;
        /* Allow touch drag gestures to go to the 3D iframe instead of scrolling the page */
        touch-action: none;
    }

    /* Make About Us card and text smaller on mobile only */
    #about .about-card {
        padding: 18px 20px;
        max-width: 90%;
        margin: 0 auto;
    }

    #about .about-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Make About Us heading look like other section headings on mobile */
    #about .section-header {
        text-align: center;
        margin-top: 0;
    }

    #about .section-tag {
        display: inline-block;
        font-size: 22px;
    }

    #about .section-tag::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 280px;
    }

    /* Make Our Business/Purpose/Vision cards smaller on mobile */
    .about-info-card {
        padding: 20px 18px;
    }

    .about-info-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .about-info-card-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .products-grid,
    .products-hidden {
        grid-template-columns: 1fr;
    }
    
    .product-card.carousel-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .product-carousel {
        width: 828px; /* 3 × 260 + 2 × 24 */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .product-carousel-wrapper {
        gap: 8px;
    }
    
    .video-controls {
        bottom: 96px;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
    
    .map-container {
        height: 420px;
    }

    .footer-logo-img {
        height: 56px;
    }

    .footer-company-name {
        font-size: 16px;
    }

    .footer-text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Center product name text inside cards on mobile and make it slightly smaller */
    .product-name {
        text-align: center;
        font-size: 16px;
    }

    /* Make contact cards text smaller on mobile */
    .contact-label {
        font-size: 12px;
    }

    .contact-value {
        font-size: 14px;
    }

    .copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px 0 5px;
    }
    
    .hero-title {
        font-size: 28px;
    }

    /* Header/logo alignment for narrow screens */
    .logo {
        margin-left: 0;
    }

    .logo-img {
        height: 48px;
    }
    
    .section-tag {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }

    /* Products: show one full card at a time on mobile */
    .product-carousel {
        width: 100%;
    }

    .product-card.carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 24px 18px;
    }
    
    .contact-form-heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}
