/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0A0A1A;
    /* Deep midnight - luxury */
    --color-primary-light: #1A1A2E;
    --color-accent: #C9A84C;
    /* Warm gold - premium */
    --color-accent-hover: #E8D5A3;
    --color-surface: #F8F6F2;
    /* Warm off-white */
    --color-text: #2D2D2D;
    --color-text-light: #7A7A7A;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

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

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

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

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

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

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.link-arrow {
    display: inline-block;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 1rem;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: #FFFFFF;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Removes white background on light navbar */
    filter: contrast(1.2) saturate(1.1);
    transition: filter 0.3s ease;
}

.nav-logo-img:hover {
    filter: contrast(1.3) saturate(1.2);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-left: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-text.footer-text {
    color: var(--color-white);
    margin-left: 0;
    font-size: 1.4rem;
    display: block;
}

.footer-logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    /* Subtle glow on dark background */
    filter: contrast(1.1) saturate(1.1);
}

.glowing-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(201, 168, 76, 0.6);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

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

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

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

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-links a {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(13, 27, 42, 0.45), rgba(13, 27, 42, 0.45)),
        url('images_videos/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        /* Fixed background is buggy on mobile Chrome */
        height: 80vh;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Stats Strip */
.stats-strip {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    padding: 3rem 0;
    border-bottom: 3px solid var(--color-accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Intro Section */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.intro-content p {
    margin-bottom: 1.5rem;
}

.intro-image-wrapper {
    position: relative;
}

.intro-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    z-index: 1;
}

.placeholder-img {
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    width: 100%;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center;
}

.intro-image {
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Intro section image slideshow */
.intro-image-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}

.intro-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

/* Products Section */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.product-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.product-img {
    height: 220px;
    overflow: hidden;
}


.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* R&D Process Section */
.rd-process-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e44 50%, #0f2336 100%);
}

.rd-process-section .section-title {
    color: var(--color-white);
}

.rd-process-section .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.rd-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem 0.5rem;
    /* Increased vertical gap to 3rem */
    margin-bottom: 3rem;
}

.rd-step {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    width: 200px;
    height: 280px;
    /* Changed to fixed height for perfect uniformity */
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
}

.rd-step:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.rd-step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #b8943a);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
}

.rd-step-content h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.rd-step-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.5;
}

.rd-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.rd-connector span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.3), 0 0 20px rgba(201, 168, 76, 0.15);
    color: var(--color-accent);
    font-size: 1.1rem;
    background: rgba(201, 168, 76, 0.08);
}

.rd-step-loop {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.rd-loop-badge {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.25rem 0.8rem;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 20px;
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rd-step-final {
    background: rgba(201, 168, 76, 0.12);
}

.rd-step-final .rd-step-number {
    background: var(--color-accent);
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
}



@media (max-width: 1100px) {
    .rd-timeline {
        flex-direction: column;
        align-items: center;
    }

    .rd-step {
        width: 100%;
        max-width: 400px;
    }

    .rd-connector {
        transform: rotate(90deg);
        width: auto;
        padding: 0.3rem 0;
    }
}

/* Representations Section */
.rep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.rep-card {
    padding: 3rem;
    background: var(--color-surface);
    border-radius: 8px;
    border-top: 4px solid var(--color-primary);
    transition: var(--transition-normal);
}

.rep-card:hover {
    border-top-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.rep-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-image {
        height: auto;
    }

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

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

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 1.15rem;
        margin-left: 0.6rem;
    }

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

    .navbar {
        padding: 0.8rem 0;
    }

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        color: var(--color-white);
        font-size: 3.5rem;
        line-height: 1;
        cursor: pointer;
        z-index: 1100;
        transition: transform 0.3s ease;
    }

    .mobile-menu-close:hover {
        transform: rotate(90deg);
        color: var(--color-accent);
    }

    /* Pop-up Box Style for Mobile Menu */
    .mobile-nav-overlay {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        transform: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .mobile-nav-links {
        background: var(--color-primary-light);
        padding: 5rem 2rem 3rem;
        border-radius: 16px;
        width: 85%;
        max-width: 320px;
        position: relative;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(201, 168, 76, 0.3);
        transform: translateY(30px) scale(0.9);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-nav-overlay.active .mobile-nav-links {
        transform: translateY(0) scale(1);
    }

    .mobile-menu-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 3rem;
    }

    .mobile-nav-links a {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

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

    .rd-step {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 200px;
    }

    .rd-connector {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-legal a {
        margin: 0;
    }
}

/* ==========================================================================
   ONLINE SHOP MODAL & NAVIGATION STYLE
   ========================================================================== */
.nav-shop-link {
    color: var(--color-accent) !important;
    font-weight: 600 !important;
    position: relative;
}

.nav-shop-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.nav-shop-link:hover::after {
    transform: scaleX(1);
}

/* Modal Overlay with Blur (No Dark Overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Near-transparent background */
    backdrop-filter: blur(12px); /* Pure blur backdrop */
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Card */
.modal-content {
    background: var(--color-white);
    border: 1px solid rgba(201, 168, 76, 0.35); /* Subtle gold border */
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(10, 10, 26, 0.12); /* Modern soft shadow */
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close cross button - Top Right */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

/* Modal Icon Container */
.modal-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.08); /* Gold background hint */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.25);
}

.modal-icon {
    font-size: 2rem;
    line-height: 1;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modal-message {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.modal-submessage {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.modal-cta-btn {
    display: inline-block;
    width: 100%;
}