/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
    /* Fonts */
    --font-heading: 'Sora', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Colors (Light Theme Defaults) */
    --bg-white: #F6F5F2; /* Warm linen soft off-white */
    --bg-light: #EBEAE4; /* Darker warm stone gray panels */
    --color-primary: #121212; /* Brand Charcoal Black */
    --color-text: #1F2937; /* Dark Gray */
    --color-text-muted: #71717A; /* Zinc Slate */
    --color-orange: #F97316; /* Engineering Orange */
    --color-green: #10B981; /* Emerald Green */
    --color-border: #E2E8F0;

    /* Hero Theme-dependent Accents */
    --hero-overlay-start: rgba(255, 255, 255, 0.35);
    --hero-overlay-end: rgba(248, 249, 251, 0.95);
    --hero-text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    --hero-subtitle-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
    --hero-btn-sec-border: var(--color-primary);
    --hero-btn-sec-text: var(--color-primary);
    --hero-btn-sec-bg: transparent;
    --hero-btn-sec-hover-bg: var(--color-orange);
    --hero-btn-sec-hover-text: var(--bg-white);
    --hero-btn-sec-hover-border: var(--color-orange);
    --hero-btn-prim-hover-bg: var(--color-primary);
    --hero-btn-prim-hover-text: var(--bg-white);
    --hero-btn-prim-hover-box-shadow: rgba(18, 18, 18, 0.15);

    /* Split Screen Theme-dependent Accents */
    --split-bg-left: #ffffff;
    --split-bg-center: #ffffff;
    --split-bg-right: #ffffff;
    --split-overlay-left: rgba(249, 115, 22, 0.08);
    --split-overlay-center: rgba(234, 179, 8, 0.08);
    --split-overlay-right: rgba(37, 99, 235, 0.08);
    --split-desc-color: var(--color-text);
    --split-link-color: var(--color-primary);

    /* Final CTA Theme-dependent Accents */
    --final-cta-bg: var(--bg-light);
    --final-cta-color: var(--color-text);
    --final-cta-title: var(--color-primary);
    --final-cta-desc: var(--color-text-muted);
    --final-cta-overlay-start: rgba(249, 115, 22, 0.08);
    --final-cta-overlay-end: rgba(16, 185, 129, 0.08);
    --final-cta-btn-outline-text: var(--color-primary);
    --final-cta-btn-outline-border: rgba(18, 18, 18, 0.25);

    /* Spacing & Utilities */
    --container-max: 1280px;
    --navbar-height: 96px;
    --navbar-height-scrolled: 80px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.3s ease;
}

/* Dark Theme Variables override */
body[data-theme="dark"] {
    --bg-white: #1C1C1E; /* Softer, premium dark gray */
    --bg-light: #252528; /* Lighter panel dark gray */
    --color-primary: #FFFFFF;
    --color-text: #E4E4E7;
    --color-text-muted: #A1A1AA;
    --color-border: #3A3A3E; /* High-contrast border color */

    /* Hero Theme-dependent Accents */
    --hero-overlay-start: rgba(28, 28, 30, 0.4);
    --hero-overlay-end: rgba(28, 28, 30, 0.95);
    --hero-text-shadow: none;
    --hero-subtitle-shadow: none;
    --hero-btn-sec-border: rgba(255, 255, 255, 0.35);
    --hero-btn-sec-text: var(--color-primary);
    --hero-btn-sec-bg: rgba(255, 255, 255, 0.08);
    --hero-btn-sec-hover-bg: var(--bg-white);
    --hero-btn-sec-hover-text: var(--color-primary);
    --hero-btn-sec-hover-border: var(--bg-white);
    --hero-btn-prim-hover-bg: var(--bg-white);
    --hero-btn-prim-hover-text: var(--color-primary);
    --hero-btn-prim-hover-box-shadow: rgba(249, 115, 22, 0.3);

    /* Split Screen Theme-dependent Accents */
    --split-bg-left: #1C1C1E;
    --split-bg-center: #1C1C1E;
    --split-bg-right: #1C1C1E;
    --split-overlay-left: rgba(249, 115, 22, 0.12);
    --split-overlay-center: rgba(250, 204, 21, 0.12);
    --split-overlay-right: rgba(96, 165, 250, 0.12);
    --split-desc-color: rgba(255, 255, 255, 0.75);
    --split-link-color: var(--color-primary);

    /* Final CTA Theme-dependent Accents */
    --final-cta-bg: #222226;
    --final-cta-color: var(--color-text);
    --final-cta-title: var(--color-primary);
    --final-cta-desc: #A1A1AA;
    --final-cta-overlay-start: rgba(249, 115, 22, 0.08);
    --final-cta-overlay-end: rgba(16, 185, 129, 0.08);
    --final-cta-btn-outline-text: var(--color-primary);
    --final-cta-btn-outline-border: rgba(255, 255, 255, 0.35);
}

/* Reset */
html {
    scroll-padding-top: var(--navbar-height-scrolled);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px; /* Slightly increased for better readability */
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typographic Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.15;
}

.highlight-italic {
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.font-emerald {
    color: var(--color-green) !important;
}

.font-orange {
    color: var(--color-orange) !important;
}

.text-white {
    color: #FFFFFF !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px; /* Sleeker, normal padding */
    border-radius: 6px; /* More proportional border radius */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

.btn-primary {
    background-color: var(--color-orange); /* Orange by default for B2B vibrancy */
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--color-primary); /* Charcoal black on hover */
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18, 18, 18, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-orange); /* Orange on hover */
    color: var(--bg-white);
    border-color: var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--color-primary);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ----------------------------------------------------
   NAVBAR (GLASSMORPHISM)
   ---------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    --current-navbar-height: var(--navbar-height);
    height: var(--current-navbar-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    background-color: rgba(235, 234, 228, 0.65); /* Translucent warm stone tone (darker than page) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body[data-theme="dark"] .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(28, 28, 30, 0.65); /* Translucent dark gray in dark mode */
}

.navbar.scrolled {
    --current-navbar-height: var(--navbar-height-scrolled);
    background-color: rgba(235, 234, 228, 0.95); /* Warm stone tone scrolled background */
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: 64px; /* Spacious gap between brand logo and navigation menu */
    flex-shrink: 0;
}

.navbar-logo-img {
    height: 52px; /* Increased to improve visibility of thin paths */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo-img {
    height: 44px; /* Scale down slightly on scroll to fit tight bar */
}

.btn-cta-nav {
    padding: 10px 20px; /* Elegant, compact padding for the navbar */
    font-size: 13px;
    white-space: nowrap; /* Prevent text from wrapping into multiple lines */
    flex-shrink: 0; /* Prevent flexbox from squeezing the button */
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text); /* Theme-dependent link color */
    position: relative;
    padding: 8px 0;
    transition: var(--transition-quick);
}

.navbar.scrolled .nav-link {
    color: var(--color-text); /* Dark grey links on scrolled white bar */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: var(--transition-quick);
}

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

.navbar.scrolled .nav-link:hover {
    color: var(--color-orange);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary); /* Theme-dependent color */
    transition: var(--transition-quick);
}

.navbar.scrolled .mobile-toggle {
    color: var(--color-primary);
}

.theme-switch {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    width: 64px;
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    position: relative;
    transition: var(--transition-quick);
    margin-right: 12px;
    flex-shrink: 0; /* Prevent compression on mobile column layouts */
}

.navbar:not(.scrolled) .theme-switch {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .theme-switch {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-switch-pill {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-orange);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

body[data-theme="dark"] .theme-switch-pill {
    transform: translateX(30px);
}

.theme-switch i,
.theme-switch svg {
    width: 13px;
    height: 13px;
    z-index: 2;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Icons styling based on theme */
.theme-switch-icon-sun,
.theme-switch .lucide-sun {
    color: #FFFFFF; /* sits on orange pill in light mode */
}

.theme-toggle-icon-moon,
.theme-switch .lucide-moon {
    color: var(--color-text-muted);
}

.navbar:not(.scrolled) .theme-toggle-icon-moon,
.navbar:not(.scrolled) .theme-switch .lucide-moon {
    color: rgba(255, 255, 255, 0.6);
}

body[data-theme="dark"] .theme-switch-icon-sun,
body[data-theme="dark"] .theme-switch .lucide-sun {
    color: var(--color-text-muted);
}

body[data-theme="dark"] .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-switch .lucide-moon {
    color: #FFFFFF; /* sits on orange pill in dark mode */
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 60px;
    width: 100%;
    margin: auto; /* Standard vertical + horizontal centering with overflow safety */
}

.hero-left-col {
    position: relative;
    width: 100%;
    height: 580px;
    border-radius: 20px;
    overflow: hidden;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* Zoomed in */
    transform-origin: center;
}

.hero-image-blur-overlay {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    pointer-events: none;
    /* Inset shadow and radial gradient to blur edges and fade into theme background */
    box-shadow: inset 0 0 50px 30px var(--bg-white);
    background: radial-gradient(circle, transparent 40%, var(--bg-white) 95%);
    transition: var(--transition-smooth);
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    z-index: 10;
}

.hero-content {
    max-width: 540px;
    padding: 0;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-primary); /* Theme-dependent title color */
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-muted); /* Theme-dependent text color */
    font-weight: 500;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.bullet-dot {
    color: var(--color-orange);
    font-size: 14px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

/* Specific high-contrast button styles for Hero CTA */
.hero-ctas .btn-secondary {
    border-color: var(--hero-btn-sec-border) !important;
    color: var(--hero-btn-sec-text) !important;
    background-color: var(--hero-btn-sec-bg) !important;
    backdrop-filter: blur(5px);
}

.hero-ctas .btn-secondary:hover {
    background-color: var(--hero-btn-sec-hover-bg) !important;
    color: var(--hero-btn-sec-hover-text) !important;
    border-color: var(--hero-btn-sec-hover-border) !important;
}

.hero-ctas .btn-primary {
    background-color: var(--color-orange) !important;
    color: #FFFFFF !important;
}

.hero-ctas .btn-primary:hover {
    background-color: var(--hero-btn-prim-hover-bg) !important;
    color: var(--hero-btn-prim-hover-text) !important;
    box-shadow: 0 10px 20px var(--hero-btn-prim-hover-box-shadow) !important;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--color-orange);
    animation: scroll-dot-anim 2s infinite ease-in-out;
}

@keyframes scroll-dot-anim {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(50px); }
}

/* ----------------------------------------------------
   INTERACTIVE DIVISION SPLIT SCREEN
   ---------------------------------------------------- */
.division-split-section {
    display: flex;
    height: 70vh;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.split-side {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 80px;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.split-side:hover {
    flex: 1.4;
}

.split-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
    z-index: 1;
}

.left-side {
    background-color: var(--split-bg-left);
    border-right: 1px solid var(--color-border);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.left-side:hover {
    background-color: #FFF7ED;
}

body[data-theme="dark"] .left-side:hover {
    background-color: #201814;
}

.left-side .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, var(--split-overlay-left) 0%, transparent 60%);
}

.center-side {
    background-color: var(--split-bg-center);
    border-right: 1px solid var(--color-border);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-side:hover {
    background-color: #FFFBEB;
}

body[data-theme="dark"] .center-side:hover {
    background-color: #221E14;
}

.center-side .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, var(--split-overlay-center) 0%, transparent 60%);
}

.right-side {
    background-color: var(--split-bg-right);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.right-side:hover {
    background-color: #EFF6FF;
}

body[data-theme="dark"] .right-side:hover {
    background-color: #141A24;
}

.right-side .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, var(--split-overlay-right) 0%, transparent 60%);
}

.split-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.split-side:hover .split-particles {
    opacity: 0.8;
}

.split-content {
    position: relative;
    z-index: 3;
    max-width: 480px;
}

/* Prevent GSAP reveal flash of unstyled content */
.split-side .vertical-highlight-badge,
.split-side .split-logo-img,
.split-side .split-desc,
.split-side .split-link {
    opacity: 0;
}

.split-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 16px;
}

.split-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary); /* Theme-dependent split title */
    margin-bottom: 16px;
    display: flex;
    align-items: center;
  }

.split-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.split-desc {
    font-size: 15px;
    color: var(--split-desc-color);
    margin-bottom: 32px;
}

.split-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--split-link-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.split-link i {
    width: 16px;
    height: 16px;
    transition: var(--transition-quick);
}

.split-side:hover .split-link i {
    transform: translateX(6px);
}

.left-side:hover .split-link {
    color: var(--color-orange);
}

.center-side:hover .split-link {
    color: #CA8A04;
}
body[data-theme="dark"] .center-side:hover .split-link {
    color: #FACC15;
}

.right-side:hover .split-link {
    color: #2563eb;
}
body[data-theme="dark"] .right-side:hover .split-link {
    color: #60a5fa;
}

/* Business Vertical Highlights & Scrolling Marquees */
.vertical-highlight-badge {
    display: inline-block;
    text-align: center;
    padding: 8px 18px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 18px;
    transition: var(--transition-smooth);
    max-width: 100%;
    line-height: 1.4;
}

/* Accent themes for Vertical highlight badges */
#split-ecovry .vertical-highlight-badge {
    background-color: rgba(249, 115, 22, 0.08);
    color: var(--color-orange);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

#split-duton .vertical-highlight-badge {
    background-color: rgba(234, 179, 8, 0.08);
    color: #CA8A04;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
body[data-theme="dark"] #split-duton .vertical-highlight-badge {
    background-color: rgba(250, 204, 21, 0.1);
    color: #FACC15;
    border-color: rgba(250, 204, 21, 0.3);
}

#split-coesc .vertical-highlight-badge {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

body[data-theme="dark"] #split-coesc .vertical-highlight-badge {
    background-color: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

/* Hover glowing gradient overlay enhancements */
/* Hover glowing gradient overlay enhancements */
.left-side:hover .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
}
.center-side:hover .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
}
.right-side:hover .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}
body[data-theme="dark"] .right-side:hover .split-bg-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
}

/* Scrolling Marquee Container */
/* Scrolling Marquee Container */
.split-side-marquee {
    position: absolute;
    right: 40px;
    top: 100px;
    bottom: 100px;
    width: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px); /* Start shifted to the right */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    pointer-events: none;
    display: none; /* Hidden on mobile/tablet default vertical stack */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.marquee-scroll-window {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.marquee-title {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-align: right;
    margin-bottom: 12px;
    opacity: 0.8;
    width: 100%;
}

.split-side-marquee .marquee-track {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end;
    width: 100%;
    gap: 12px;
    animation: scroll-vertical-marquee 15s linear infinite;
    padding: 8px 0;
}

@keyframes scroll-vertical-marquee {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 8px; /* smooth cornered rectangular button */
    white-space: nowrap;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: bubble-wobble 4s ease-in-out infinite alternate;
}

.marquee-item:nth-child(2n) {
    animation: bubble-wobble-alt 5s ease-in-out infinite alternate;
}
.marquee-item:nth-child(3n) {
    animation: bubble-wobble 6s ease-in-out infinite alternate;
}
.marquee-item:nth-child(5n) {
    animation: bubble-wobble-alt 3.5s ease-in-out infinite alternate;
}

@keyframes bubble-wobble {
    0% { transform: translateX(-3px) rotate(-0.5deg); }
    100% { transform: translateX(3px) rotate(0.5deg); }
}
@keyframes bubble-wobble-alt {
    0% { transform: translateX(3px) rotate(0.5deg); }
    100% { transform: translateX(-3px) rotate(-0.5deg); }
}

.micro-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Animations for inline marquee icons */
.drop-svg {
    animation: drop-pulse 1.8s ease-in-out infinite;
}

.gear-svg {
    animation: gear-spin 6s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.shield-svg {
    animation: shield-pulse 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes drop-pulse {
    0% { transform: scale(0.9) translateY(0.5px); opacity: 0.8; }
    50% { transform: scale(1.15) translateY(-0.5px); opacity: 1; }
    100% { transform: scale(0.9) translateY(0.5px); opacity: 0.8; }
}

@keyframes gear-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shield-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Glassmorphism accent styling for items */
#split-ecovry .marquee-item {
    background-color: rgba(249, 115, 22, 0.05);
    color: var(--color-orange);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

#split-duton .marquee-item {
    background-color: rgba(234, 179, 8, 0.05);
    color: #CA8A04;
    border: 1px solid rgba(234, 179, 8, 0.15);
}
body[data-theme="dark"] #split-duton .marquee-item {
    color: #FACC15;
    background-color: rgba(250, 204, 21, 0.05);
    border-color: rgba(250, 204, 21, 0.15);
}

#split-coesc .marquee-item {
    background-color: rgba(37, 99, 235, 0.05);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

body[data-theme="dark"] #split-coesc .marquee-item {
    background-color: rgba(96, 165, 250, 0.05);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

/* Responsive Desktop Hover Actions (Only enabled on screens > 992px where layout is horizontal) */
@media (min-width: 993px) {
    .split-content {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .split-side:hover .split-content {
        transform: translateX(-30px);
        max-width: 260px;
    }
    .split-side-marquee {
        display: flex; /* Shown only on desktop */
    }
    .split-side:hover .split-side-marquee {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----------------------------------------------------
   PINNED SCROLL STORYBOARD SECTIONS
   ---------------------------------------------------- */
.scroll-story-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-white);
}

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

.story-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.reversed-layout {
    flex-direction: row-reverse;
}

.story-visual-canvas {
    flex: 1.2;
    height: 100%;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-3d-wrapper {
    position: relative;
    width: 90%;
    height: 85%;
    border-radius: 16px;
    overflow: hidden;
    background-color: rgba(18, 18, 18, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme-story .canvas-3d-wrapper {
    background-color: var(--bg-light); /* Light background wrapper */
    border-color: var(--color-border);
}

.canvas-3d-wrapper canvas,
.canvas-3d-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-drag-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.canvas-drag-hint.visible {
    opacity: 1;
}

.light-theme-story .canvas-drag-hint {
    background-color: rgba(15, 23, 42, 0.8);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.story-content-scroll {
    flex: 0.8;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    position: relative;
}

.story-content-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.story-slide {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.slide-inner {
    max-width: 440px;
}

.slide-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 16px;
}

.slide-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.slide-text {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.slide-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.light-theme-story .slide-specs {
    border-color: rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.spec-val {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Light Theme overrides for scroll slide inside light-theme-story (forces visible dark text on light background) */
.light-theme-story .slide-title {
    color: var(--color-primary);
}

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

.light-theme-story .spec-val {
    color: var(--color-primary);
}

/* ----------------------------------------------------
   DUTON SCADA / PLC INTERACTIVE WIDGET
   ---------------------------------------------------- */
.dashboard-sim-container {
    width: 100%;
    height: 100%;
    background-color: #FFFFFF; /* White dashboard background */
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    color: var(--color-text); /* Dark gray text */
}

.dashboard-sim-header {
    height: 48px;
    border-bottom: 1px solid var(--color-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-light);
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.green-dot {
    background-color: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.dash-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.dash-status {
    margin-left: auto;
    font-size: 10px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
    padding: 2px 8px;
    border-radius: 4px;
}

.dashboard-sim-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    flex: 1;
}

.grid-card {
    background-color: #FFFFFF; /* White card */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.widget-label {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.twin-visualizer-box {
    flex: 1;
    position: relative;
    border-radius: 6px;
    background-color: var(--bg-light);
    border: 1px dashed var(--color-border);
    overflow: hidden;
}

.chart-canvas-box {
    flex: 1;
    position: relative;
    border-radius: 6px;
    background-color: var(--bg-light);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.dashboard-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-widget {
    background-color: var(--bg-light); /* Light card */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-label {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.m-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ----------------------------------------------------
   STATISTICS SECTION
   ---------------------------------------------------- */
.stats-section {
    background-color: var(--bg-light); /* Light gray background */
    color: var(--color-text);
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
    border-right: 1px solid var(--color-border); /* Light border */
    padding: 0 20px;
}

.stat-card:last-child {
    border-right: none;
}

.stat-number-wrapper {
    font-family: var(--font-mono);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--color-primary); /* Dark numbers */
}

.stat-number {
    display: inline-block;
}

.stat-suffix {
    color: var(--color-orange);
}

.stat-card:nth-child(even) .stat-suffix {
    color: var(--color-green);
}

.stat-label {
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ----------------------------------------------------
   SOLUTIONS SECTION
   ---------------------------------------------------- */
.solutions-section {
    padding: 160px 0;
    background-color: var(--bg-white);
}

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

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-orange);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.solution-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.solution-block:last-child {
    margin-bottom: 0;
}

.solution-block.reversed-block {
    grid-template-columns: 0.9fr 1.1fr;
}

.solution-block.reversed-block .solution-image-box {
    order: 2;
}

.solution-block.reversed-block .solution-text-box {
    order: 1;
}

.solution-image-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-light);
}

.solution-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.solution-text-box {
    display: flex;
    flex-direction: column;
}

.sol-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.sol-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.sol-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.sol-list {
    margin-bottom: 40px;
}

.sol-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.list-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.icon-green {
    color: var(--color-green);
}

.icon-orange {
    color: var(--color-orange);
}

/* ----------------------------------------------------
   INDUSTRIES SECTION
   ---------------------------------------------------- */
.industries-section {
    padding: 160px 0;
    background-color: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.industry-card {
    background-color: var(--bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 48px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border-color: rgba(249, 115, 22, 0.3);
}

.ind-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(249, 115, 22, 0.05);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-quick);
}

.industry-card:nth-child(even) .ind-icon-box {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--color-green);
}

.industry-card:hover .ind-icon-box {
    background-color: var(--color-orange);
    color: var(--bg-white);
}

.industry-card:nth-child(even):hover .ind-icon-box {
    background-color: var(--color-green);
}

.ind-icon {
    width: 24px;
    height: 24px;
}

.ind-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ind-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   PROCESS TIMELINE (ANIMATED SVG DRAWING)
   ---------------------------------------------------- */
.process-section {
    padding: 160px 0;
    background-color: var(--bg-white);
    overflow: hidden;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0 auto;
    padding-left: 100px; /* Space for the line on the left side */
}

.timeline-svg-container {
    position: absolute;
    top: 0;
    left: 48px; /* Match width centers */
    width: 4px;
    height: 100%;
}

.timeline-svg {
    width: 100%;
    height: 100%;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-node {
    position: relative;
}

.node-marker {
    position: absolute;
    left: -76px; /* align center with timeline line */
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--color-border);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    z-index: 5;
}

.timeline-node.active .node-marker {
    border-color: var(--color-orange);
    background-color: var(--color-orange);
    color: var(--bg-white);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.node-content {
    max-width: 700px;
    padding-top: 8px;
}

.node-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.node-desc {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ----------------------------------------------------
   SUSTAINABILITY SECTION (DARK SHADER STYLE)
   ---------------------------------------------------- */
.sustainability-section {
    background-color: var(--bg-white); /* Light white background */
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

.sustainability-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(18, 18, 18, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(18, 18, 18, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.sustainability-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sustainability-content {
    max-width: 580px;
}

.sub-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: 16px;
}

.sub-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.sub-text {
    font-size: 15px;
    color: var(--color-text); /* Dark grey text */
    margin-bottom: 48px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--color-border); /* Light border */
    padding-left: 20px;
}

.m-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary); /* Dark charcoal metrics */
}

.m-lbl {
    font-size: 11px;
    color: var(--color-text-muted); /* Slate text */
    line-height: 1.3;
}

.sustainability-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.earth-canvas-wrapper {
    position: relative;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background-color: transparent;
}

.earth-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
}

.rotating-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: glow-rotate 20s infinite linear;
}

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

/* ----------------------------------------------------
   CLIENT SHOWCASE (INFINITE MARQUEE)
   ---------------------------------------------------- */
.client-marquee-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--color-border);
}

.marquee-header {
    text-align: center;
    margin-bottom: 40px;
}

.marquee-subtitle {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: marquee-scroll 45s linear infinite;
}

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

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(85%) opacity(70%);
    transition: var(--transition-quick);
}

.client-logo-img:hover {
    filter: grayscale(0%) contrast(100%) opacity(100%);
}

/* ----------------------------------------------------
   CASE STUDIES SECTION
   ---------------------------------------------------- */
.case-studies-section {
    padding: 160px 0;
    background-color: var(--bg-light);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.case-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.case-image-box {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: var(--color-primary);
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
}

.case-card:hover .case-img {
    transform: scale(1.05);
    opacity: 1;
}

.case-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 3;
}

.case-body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.case-hover-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.hover-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.h-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.h-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
}

/* ----------------------------------------------------
   FINAL CTA SECTION (MESH BG)
   ---------------------------------------------------- */
.final-cta-section {
    position: relative;
    padding: 180px 0;
    background-color: var(--final-cta-bg);
    overflow: hidden;
    text-align: center;
    color: var(--final-cta-color);
}

.mesh-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--final-cta-overlay-start) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, var(--final-cta-overlay-end) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.final-cta-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.final-cta-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--final-cta-title);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.final-cta-desc {
    font-size: 16px;
    color: var(--final-cta-desc);
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Custom button styling for final CTA section */
.final-cta-section .btn-outline {
    color: var(--final-cta-btn-outline-text) !important;
    border-color: var(--final-cta-btn-outline-border) !important;
}

.final-cta-section .btn-outline:hover {
    background-color: var(--color-primary) !important;
    color: var(--bg-white) !important;
    border-color: var(--color-primary) !important;
}

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

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.main-footer {
    background-color: var(--bg-light); /* Light gray footer background */
    color: var(--color-text); /* Dark gray text */
    padding: 100px 0 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    height: 44px; /* Increased from 38px to make the thin text readable */
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    align-self: flex-start;
}

.f-brand-desc {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.main-footer strong {
    color: var(--color-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-col ul li a:hover {
    color: var(--color-orange);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright-text {
    font-size: 13px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-social-links a {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

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

.footer-social-links i,
.footer-social-links svg {
    width: 16px;
    height: 16px;
}

/* ----------------------------------------------------
   LEAD GENERATION MODAL
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 22, 0.5); /* Semitransparent gray overlay */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 680px;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    padding: 48px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: var(--bg-light);
    color: var(--color-primary);
    transition: var(--transition-quick);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.modal-success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--color-green);
    margin-bottom: 24px;
}

.modal-success-screen h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal-success-screen p {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 400px;
    margin-bottom: 32px;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (DESKTOP FIRST)
   ---------------------------------------------------- */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    .nav-logo {
        margin-right: 32px; /* Reduce spacing to fit viewport */
    }
    .navbar-logo-img {
        height: 46px; /* Slightly smaller to fit */
    }
    .nav-links-wrapper {
        gap: 20px; /* Tighter gaps */
    }
    .nav-links {
        gap: 16px; /* Tighter gaps between menu items */
    }
    .hero-title {
        font-size: 54px;
    }
    .split-side {
        padding: 0 40px;
    }
    .story-slide {
        padding: 0 40px;
    }
    .solutions-section {
        padding: 120px 0;
    }
    .solution-block {
        gap: 40px;
    }
    .industries-section, .process-section, .case-studies-section {
        padding: 120px 0;
    }
}

@media (max-width: 992px) {
    /* Navbar Hamburger */
    .mobile-toggle {
        display: block;
    }
    
    .nav-links-wrapper {
        position: fixed;
        top: var(--current-navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--current-navbar-height));
        background-color: var(--bg-white);
        border-top: 1px solid var(--color-border);
        padding: 40px;
        display: flex;
        flex-direction: column;
        gap: 40px;
        transform: translateY(-120%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        pointer-events: none;
    }
    
    .nav-links-wrapper.open {
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-right: 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .btn-cta-nav {
        width: 100%;
        white-space: normal; /* Allow text wrapping on narrow mobile viewports */
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 20px;
    }
    .hero-left-col {
        height: 320px;
        order: 2; /* Move image below text on mobile */
    }
    .hero-right-col {
        align-items: center;
        text-align: center;
        order: 1;
    }
    .hero-subtitle {
        font-size: 15px;
        gap: 8px;
        justify-content: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-title {
        font-size: 38px;
    }
    
    /* Division Split */
    .division-split-section {
        flex-direction: column;
        height: auto;
    }
    .split-side {
        flex: auto;
        height: 33vh; /* Optimized height for a 3-division stacked layout */
        padding: 60px 40px;
    }
    .split-side:hover {
        flex: auto;
    }
    
    /* Pinned Storyboards - Scroll fallback on tablets */
    .story-container {
        flex-direction: column;
        height: auto;
    }
    .story-container.reversed-layout {
        flex-direction: column;
    }
    .story-visual-canvas {
        flex: auto;
        height: 65vh;
        min-height: 380px;
        position: sticky;
        top: var(--navbar-height-scrolled);
        z-index: 10;
        background-color: var(--bg-white);
        padding: 20px 0;
    }
    .light-theme-story .story-visual-canvas {
        background-color: var(--bg-light);
    }
    .canvas-3d-wrapper {
        width: 100%;
        height: 100%;
    }
    .story-content-scroll {
        flex: auto;
        height: auto;
        position: relative;
        z-index: 5;
    }
    .story-slide {
        height: 80vh;
        padding: 40px 20px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        margin: 20px 0;
        border-radius: 12px;
        border: 1px solid var(--color-border);
    }
    body[data-theme="dark"] .story-slide {
        background-color: rgba(28, 28, 30, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }
    .light-theme-story .story-slide {
        background-color: rgba(255, 255, 255, 0.9);
        border-color: var(--color-border);
    }
    body[data-theme="dark"] .light-theme-story .story-slide {
        background-color: rgba(28, 28, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.05);
    }
    body[data-theme="dark"] .light-theme-story .slide-title {
        color: #FFFFFF !important;
    }
    body[data-theme="dark"] .light-theme-story .slide-text {
        color: #E4E4E7 !important;
    }
    body[data-theme="dark"] .light-theme-story .spec-val {
        color: #FFFFFF !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .stat-card {
        border-right: none;
    }
    .stat-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Solutions Block */
    .solution-block, .solution-block.reversed-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    .solution-block.reversed-block .solution-image-box,
    .solution-block.reversed-block .solution-text-box {
        order: unset;
    }
    .solution-img {
        height: 380px;
    }
    
    /* Industries Grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sustainability */
    .sustainability-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .sustainability-visual {
        order: 1;
    }
    .sustainability-content {
        order: 2;
        max-width: 100%;
    }
    
    /* Case Studies */
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .hero-title {
        font-size: 34px;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 24px;
    }
    .stat-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Industries */
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .industry-card {
        padding: 32px;
    }
    
    /* Timeline */
    .timeline-wrapper {
        padding-left: 60px;
    }
    .timeline-svg-container {
        left: 28px;
    }
    .node-marker {
        left: -48px;
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    /* Earth Canvas */
    .earth-canvas-wrapper {
        width: 320px;
        height: 320px;
    }
    
    /* Final CTA */
    .final-cta-title {
        font-size: 38px;
    }
    .final-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .final-cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Lead Capture Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-box {
        padding: 32px 24px;
    }
}

/* ----------------------------------------------------
   DARK THEME LEGIBILITY & CONTRAST OVERRIDES
   ---------------------------------------------------- */
body[data-theme="dark"] img[src*="logo_duton"] {
    filter: invert(1);
}

body[data-theme="dark"] .node-marker {
    background-color: var(--bg-light) !important;
    border-color: var(--color-border) !important;
    color: var(--color-primary) !important;
}

body[data-theme="dark"] .timeline-node.active .node-marker {
    border-color: var(--color-orange) !important;
    background-color: var(--color-orange) !important;
    color: var(--bg-white) !important;
}

body[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(28, 28, 30, 0.95) !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
}

/* =========================================================================
   ECOVRY INNOVATION HUB & ROI SIMULATOR
   ========================================================================= */
.ecovry-innovation-section {
    padding: 120px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

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

/* Cards & Containers */
.visualizer-card,
.simulator-card {
    background-color: var(--bg-light);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

body[data-theme="dark"] .visualizer-card,
body[data-theme="dark"] .simulator-card {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.visualizer-header,
.simulator-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
}

body[data-theme="dark"] .visualizer-header,
body[data-theme="dark"] .simulator-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.simulator-card-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.green-dot {
    background-color: var(--color-green);
    box-shadow: 0 0 12px var(--color-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; transform: scale(1.1); }
}

.visualizer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

/* Aeration Physics Simulator Canvas Styling */
.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0c1017;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .video-wrapper {
    background-color: #f3f6fa;
}

#aeration-physics-canvas {
    width: 100%;
    display: block;
    cursor: crosshair;
    touch-action: none; /* Prevents mobile page scroll when dragging on canvas */
}

.video-overlay-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(18, 18, 18, 0.03);
    font-size: 12px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

body[data-theme="dark"] .video-overlay-hint {
    background-color: rgba(255, 255, 255, 0.02);
}

.hint-icon {
    width: 14px;
    height: 14px;
    color: var(--color-orange);
    flex-shrink: 0;
}

/* Physics Cards */
.physics-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .physics-comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.physics-card {
    background-color: var(--bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--color-border);
    transition: var(--transition-smooth);
}

.physics-card.traditional {
    border-left-color: #3b82f6;
}

.physics-card.hybrid {
    border-left-color: var(--color-green);
}

.physics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

body[data-theme="dark"] .physics-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.physics-card-header {
    margin-bottom: 20px;
}

.physics-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.physics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.physics-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 10px;
}

body[data-theme="dark"] .physics-list li {
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

.physics-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.phys-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.phys-val {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.phys-val.text-blue {
    color: #3b82f6 !important;
}

.phys-val.text-green {
    color: var(--color-green) !important;
}

/* Slider Controls */
.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.sim-control-group {
    background-color: rgba(18, 18, 18, 0.015);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-quick);
}

body[data-theme="dark"] .sim-control-group {
    background-color: rgba(255, 255, 255, 0.01);
}

.sim-control-group:hover {
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.02);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.control-header label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.val-display {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-orange);
    background-color: rgba(249, 115, 22, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

/* Range input overrides */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
    margin: 12px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-orange);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
    border: 2px solid var(--bg-light);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--color-primary);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-orange);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
    border: 2px solid var(--bg-light);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--color-primary);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
}

/* Payback/Breakeven Alert */
.breakeven-badge {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-green);
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 32px;
    transition: var(--transition-quick);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.02);
}

.breakeven-badge.warning {
    color: #eab308;
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.02);
}

/* Metrics Comparison Grid */
.sim-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .sim-metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sim-metric-card {
    background-color: rgba(18, 18, 18, 0.01);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

body[data-theme="dark"] .sim-metric-card {
    background-color: rgba(255, 255, 255, 0.015);
}

.sim-metric-card.traditional {
    border-left-color: #3b82f6;
}

.sim-metric-card.hybrid {
    border-left-color: var(--color-green);
}

.metric-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.metric-value.text-blue {
    color: #3b82f6 !important;
}

.metric-value.text-green {
    color: var(--color-green) !important;
}

/* Chart Container styling */
.chart-wrapper {
    background-color: rgba(18, 18, 18, 0.015);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.01);
}

body[data-theme="dark"] .chart-wrapper {
    background-color: rgba(0, 0, 0, 0.15);
}

.header-icon {
    width: 20px;
    height: 20px;
    color: var(--color-orange);
}

/* Sketchfab English overlay branding */
.model-info-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 10px;
    pointer-events: none;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.model-info-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.model-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-info-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.model-info-author {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.2;
    margin-top: 1px;
}

/* SCADA Dashboard Dark Theme Overrides */
body[data-theme="dark"] .dashboard-sim-container {
    background-color: var(--bg-white) !important;
}

body[data-theme="dark"] .dashboard-sim-header {
    background-color: var(--bg-light) !important;
    border-bottom-color: var(--color-border) !important;
}

body[data-theme="dark"] .grid-card {
    background-color: var(--bg-light) !important;
    border-color: var(--color-border) !important;
}

body[data-theme="dark"] .twin-visualizer-box {
    background-color: var(--bg-white) !important;
    border-color: var(--color-border) !important;
}

/* =========================================================================
   SUBPAGE & MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================= */
.subpage-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    /* Hero section padding overlap fix */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--navbar-height) + 40px) !important;
        padding-bottom: 60px;
    }

    /* Division Split mobile stacked visual panel layout */
    .split-side {
        height: auto !important; /* Allow panels to grow based on contents */
        padding: 56px 32px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        border-bottom: 1px solid var(--color-border);
    }
    .split-side:not(:last-child) {
        border-bottom: 1px solid var(--color-border) !important;
    }
    
    /* Reveal and ensure opacity inside stacked panels */
    .split-side .vertical-highlight-badge,
    .split-side .split-logo-img,
    .split-side .split-desc,
    .split-side .split-link {
        opacity: 1 !important; /* Ensure visibility */
    }

    /* Soft brand background colors for Mobile stack panels */
    .left-side {
        background-color: #FFF7ED !important;
    }
    body[data-theme="dark"] .left-side {
        background-color: #201814 !important;
    }
    .center-side {
        background-color: #FFFBEB !important;
    }
    body[data-theme="dark"] .center-side {
        background-color: #221E14 !important;
    }
    .right-side {
        background-color: #EFF6FF !important;
    }
    body[data-theme="dark"] .right-side {
        background-color: #141A24 !important;
    }

    /* Brand-tinted links */
    .left-side .split-link {
        color: var(--color-orange) !important;
    }
    .center-side .split-link {
        color: #CA8A04 !important;
    }
    body[data-theme="dark"] .center-side .split-link {
        color: #FACC15 !important;
    }
    .right-side .split-link {
        color: #2563eb !important;
    }
    body[data-theme="dark"] .right-side .split-link {
        color: #60a5fa !important;
    }

    /* Subpage Footers grid layout responsiveness */
    .subpage-footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 36px;
        margin-bottom: 60px;
    }

    /* Interactive dashboard canvas widget scaling - Mobile Swipeable Cards Layout */
    .dashboard-sim-container {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .dashboard-sim-header {
        display: none !important; /* Hide dashboard header on mobile to maximize 3D model space */
    }
    .dashboard-sim-body {
        padding: 0 !important;
        gap: 12px !important;
    }
    .dashboard-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0 !important; /* Edge-to-edge layout like slide pages */
        scrollbar-width: none !important;
        width: 100% !important;
    }
    .dashboard-grid::-webkit-scrollbar {
        display: none !important;
    }
    .dashboard-grid .grid-card {
        min-width: 100% !important; /* Matches ECOVRY model width */
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        gap: 0 !important;
    }
    .dashboard-grid .widget-twin .widget-label {
        display: none !important; /* Hide label inside visualizer to match clean ECOVRY style */
    }
    .twin-visualizer-box {
        height: 350px !important; /* Matches visual size factor of ECOVRY model */
        border-radius: 12px !important;
        border: 1px solid var(--color-border) !important;
        background-color: var(--bg-light) !important;
    }
}

@media (max-width: 768px) {
    .subpage-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* 3D Canvas Box heights */
    .canvas-card-3d {
        height: 380px !important; /* Increased for better mobile visibility */
    }
    
    /* Modal responsive scrolling and layout */
    .modal-box {
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
        margin: 20px !important;
        padding: 32px 20px !important;
    }
    
    /* Mobile dashboard spacing and font sizes */
    .dashboard-metrics-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .dashboard-metrics-row .metric-widget {
        padding: 6px 8px !important;
        gap: 2px !important;
        border-radius: 6px !important;
    }
    .dashboard-metrics-row .m-label {
        font-size: 6px !important;
    }
    .dashboard-metrics-row .m-value {
        font-size: 8px !important;
    }
}

/* Explicit form select options styles */
.form-group select option {
    background-color: var(--bg-white);
    color: var(--color-primary);
}
body[data-theme="dark"] .form-group select option {
    background-color: #252528;
    color: #FFFFFF;
}
