/* ============================================
   HEAVY DUTY DIESELS - CREATIVE EDITION
   ============================================ */

:root {
    --amber: #F59E0B;
    --amber-dark: #D97706;
    --amber-glow: rgba(245, 158, 11, 0.25);
    --cyan: #0891b2;
    --purple: #7c3aed;
    --red: #ef4444;
    --bg: #0a0a0a;
    --bg-light: #f8f7f4;
    --bg-light2: #f0eeeb;
    --bg-card: #111118;
    --bg-card2: #16161f;
    --bg-card-light: #ffffff;
    --bg-card-light2: #f4f3f0;
    --text: #e2e8f0;
    --text-dark: #1a1a2e;
    --text-dark-dim: #555566;
    --text-dim: #64748b;
    --text-dimmer: #334155;
    --border-light: rgba(0,0,0,0.07);
    --font: 'Space Grotesk', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    cursor: none;
}

a { text-decoration: none; color: inherit; transition: 0.3s var(--ease); }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

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

/* ===== CUSTOM CURSOR ===== */
.cursor, .cursor-follower {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    z-index: 99999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor {
    width: 8px; height: 8px;
    background: #fff;
    transition: transform 0.1s;
}
.cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: transform 0.3s var(--ease), width 0.3s, height 0.3s;
}
body:hover .cursor-follower { opacity: 1; }

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-engine { text-align: center; }
.loader-gear {
    width: 80px; height: 80px;
    animation: gearSpin 2s linear infinite;
}
@keyframes gearSpin { to { transform: rotate(360deg); } }
.loader-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--amber);
    margin-top: 20px;
}
.loader-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 16px auto 0;
    border-radius: 2px;
    overflow: hidden;
}
.loader-fill {
    width: 0%; height: 100%;
    background: var(--amber);
    border-radius: 2px;
    animation: loaderFill 2s var(--ease) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: 0.4s var(--ease);
}
.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo-gear { width: 40px; height: 40px; }
.logo-gear svg { width: 100%; height: 100%; }
.gear-path { transition: 0.3s; }
.logo:hover .gear-path { transform-origin: center; animation: gearSpin 3s linear infinite; }
.logo-main {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 4px;
    color: #fff;
    line-height: 1;
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--amber);
    display: block;
}

/* Nav */
.nav-list { display: flex; gap: 4px; }
.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--amber);
    transition: 0.3s var(--ease);
    transform: translateX(-50%);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::before, .nav-link.active::before { width: 20px; }

/* CTA Button */
.btn-cta {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--amber);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s var(--ease);
}
.btn-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px var(--amber-glow); }
.btn-cta-arrow { display: flex; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 10px; z-index: 1001;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: 0.3s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 100vw;
}

/* Video Background */
.hero-video-wrap {
    position: absolute; inset: 0; z-index: 0;
}
.hero-video-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.8) contrast(1.1);
}
.hero-video-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.2) 100%);
}

/* Animated Gears */
.hero-gears { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; max-width: 100vw; }
.gear { position: absolute; }
.gear-1 { width: 400px; top: -100px; right: -100px; animation: gearSpin 30s linear infinite; }
.gear-2 { width: 250px; bottom: 10%; left: -60px; animation: gearSpin 20s linear infinite reverse; }
.gear-3 { width: 180px; top: 40%; right: 20%; animation: gearSpin 40s linear infinite; }

/* Hero Layout */
.hero-container {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    flex: 1;
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--amber);
    margin-bottom: 24px;
}
.tag-dot {
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(50px, 7vw, 100px);
    line-height: 0.95;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.title-line { display: block; overflow: hidden; }
.title-outline { -webkit-text-stroke: 2px var(--amber); color: transparent; filter: drop-shadow(0 2px 10px rgba(245,158,11,0.3)); }
.title-word {
    display: inline-block;
    animation: slideUp 0.8s var(--ease) both;
}
.title-word[data-delay="1"] { animation-delay: 0.1s; }
.title-word[data-delay="2"] { animation-delay: 0.2s; }
.title-word[data-delay="3"] { animation-delay: 0.3s; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    max-width: 460px;
    margin-bottom: 32px;
    line-height: 1.8;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--amber);
    padding: 16px 32px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--amber-glow); }
.btn-shine {
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
.btn-primary:hover .btn-shine { left: 100%; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    padding: 16px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    transition: 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-lg { padding: 18px 36px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* 3D Engine Canvas */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#engine3D {
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    border-radius: 20px;
    cursor: grab;
}
#engine3D:active { cursor: grabbing; }
.engine-label {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.label-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--amber);
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.label-hint {
    font-size: 11px;
    color: var(--text-dim);
}

/* Stats Bar */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(12px);
    max-width: 100vw;
}
.stats-track {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.stat-item { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.stat-num {
    font-family: var(--font-display);
    font-size: 36px;
    color: #fff;
    line-height: 1;
}
.stat-unit {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--amber);
    letter-spacing: 1px;
}
.stat-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 8px;
}
.stat-sep {
    font-family: var(--font-mono);
    font-size: 16px;
    color: rgba(245,158,11,0.3);
}

/* ===== SECTION TAGS ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
}

/* ===== ABOUT (Light Section) ===== */
.about {
    padding: 120px 0;
    position: relative;
    overflow: clip;
    background: var(--bg-light);
}
.about .section-tag { color: var(--amber-dark); }
.about .section-tag span { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.about .section-title { color: var(--text-dark); }
.about .text-accent { color: var(--amber-dark); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Engine Diagram */
.engine-diagram {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    border: 1px solid rgba(245,158,11,0.15);
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
.engine-diagram::before {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(245,158,11,0.03) 20px, rgba(245,158,11,0.03) 21px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(245,158,11,0.03) 20px, rgba(245,158,11,0.03) 21px);
    pointer-events: none;
}
.engine-svg { width: 100%; display: block; position: relative; z-index: 1; }

/* Engine animations driven by JS for realistic physics */
.piston-group, .crank-arm, .combustion-flash, .coolant-flow {
    /* Animations handled in main.js for physical accuracy */
}
.coolant-flow { stroke-dashoffset: 0; }

.diagram-data {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(245,158,11,0.1);
}
.data-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.data-key {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
}
.data-val {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}
.data-val--green { color: #4ade80; }

/* About Content */
.about-lead {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 12px;
}
.about-content p {
    color: var(--text-dark-dim);
    margin-bottom: 32px;
    font-size: 15px;
}
.about-metrics {
    display: flex;
    gap: 32px;
}
.metric {
    text-align: center;
}
.metric-ring {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 8px;
}
.metric-ring svg { width: 100%; height: 100%; }
.metric-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-dark);
}
.metric-name {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dark-dim);
    text-transform: uppercase;
}

/* ===== SERVICES (Dark Section) ===== */
.services {
    padding: 120px 0;
    position: relative;
    overflow: clip;
    background: var(--bg);
    color: var(--text);
}
.services .section-title { margin-bottom: 60px; color: #fff; }
.services .section-tag { color: var(--amber); }

.services-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: 0.5s var(--ease);
}
.service-item:hover { transform: translateY(-8px); }
.service-item:hover .service-video-bg video { transform: scale(1.1); filter: brightness(0.4); }
.service-item:hover .service-expand { opacity: 1; transform: translate(-16px, 16px); }

.service-video-bg {
    position: absolute; inset: 0; z-index: 0;
}
.service-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.5);
    transition: 0.6s var(--ease);
}
.service-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
.service-content {
    position: relative; z-index: 2;
    padding: 32px;
}
.service-num {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--amber);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 8px;
}
.service-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
}
.service-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 320px;
}
.service-tags {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.service-tags span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    padding: 4px 10px;
    border-radius: 20px;
}
.service-expand {
    position: absolute; top: 0; right: 0; z-index: 3;
    width: 48px; height: 48px;
    background: var(--amber);
    border-radius: 0 16px 0 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: 0.4s var(--ease);
}

/* ===== MACHINERY (Light Section) ===== */
.machinery {
    padding: 120px 0;
    position: relative;
    overflow: clip;
    background: var(--bg-light2);
}
.machinery .section-tag { color: var(--amber-dark); }
.machinery .section-tag span { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.machinery .section-title { color: var(--text-dark); }
.machinery .text-accent { color: var(--amber-dark); }
.machinery-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.grid-lines {
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(0,0,0,0.03) 60px, rgba(0,0,0,0.03) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(0,0,0,0.03) 60px, rgba(0,0,0,0.03) 61px);
}
.machinery .section-title { margin-bottom: 60px; }

.machine-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}
.machine-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s var(--ease);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.machine-card:hover {
    border-color: var(--amber);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(245,158,11,0.12);
}
.machine-visual {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}
.machine-3d-box {
    width: 150px;
    height: 150px;
    perspective: 400px;
}
.box-face {
    width: 100%; height: 100%;
    transition: 0.5s var(--ease);
}
.machine-card:hover .box-face {
    transform: rotateY(15deg) rotateX(-10deg);
}
.box-face svg { width: 100%; height: 100%; }
.machine-info { padding: 24px; }
.machine-type {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-dark);
}
.machine-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-dark);
    margin: 4px 0 16px;
}
.machine-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.machine-specs div {
    text-align: center;
    padding: 8px 0;
    background: var(--bg-light2);
    border-radius: 8px;
}
.machine-specs span {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-dark-dim);
    text-transform: uppercase;
}
.machine-specs strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-dark);
    margin-top: 2px;
}

/* Brand Marquee */
.brand-marquee {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    overflow: hidden;
    max-width: 100vw;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 4px;
    color: rgba(0,0,0,0.08);
    white-space: nowrap;
    transition: 0.3s;
}
.marquee-track span:hover { color: var(--amber-dark); }
.marquee-track .dot {
    width: 6px; height: 6px;
    background: rgba(245,158,11,0.4);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    text-align: center;
}
.cta-video-bg {
    position: absolute; inset: 0; z-index: 0;
}
.cta-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.2) saturate(0.5);
}
.cta-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.9) 100%);
}
.cta-container { position: relative; z-index: 2; }
.cta-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--red);
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: pulse 2s ease infinite;
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    color: #fff;
    line-height: 1;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 32px;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT (Light Section) ===== */
.contact {
    padding: 120px 0;
    overflow: clip;
    background: var(--bg-light);
}
.contact .section-tag { color: var(--amber-dark); }
.contact .section-tag span { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.contact .section-title { color: var(--text-dark); }
.contact .text-accent { color: var(--amber-dark); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}
.contact-left p {
    color: var(--text-dark-dim);
    margin-bottom: 40px;
    font-size: 16px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: 0.3s var(--ease);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.contact-detail:hover { border-color: var(--amber); transform: translateX(4px); box-shadow: 0 8px 25px rgba(245,158,11,0.08); }
.detail-icon {
    width: 48px; height: 48px;
    background: rgba(245,158,11,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--amber-dark);
    flex-shrink: 0;
}
.detail-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dark-dim);
    margin-bottom: 2px;
}
.detail-val {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--amber-dark);
}
.form-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dark-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    outline: none;
    transition: 0.3s var(--ease);
    min-height: 48px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #aaa; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--amber);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
}
.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: var(--bg-light);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select option { background: #fff; color: var(--text-dark); }

/* ===== FOOTER (Dark) ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--bg);
    color: var(--text-dim);
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 24px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.footer-nav a:hover { color: var(--amber); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    flex-wrap: wrap;
    gap: 8px;
}
.footer-credit {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.krytal-brand {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 3px;
    color: var(--amber);
    transition: 0.3s var(--ease);
    position: relative;
}
.krytal-brand:hover {
    color: #fff;
    text-shadow: 0 0 20px var(--amber-glow);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--amber);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s var(--ease);
    z-index: 999;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 0.8s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 0.8s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-left { order: 1; }
    .hero-right { order: 0; max-width: 350px; margin: 0 auto; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-btns { justify-content: center; }
    .hero-tag { justify-content: center; }
    .services-showcase { grid-template-columns: repeat(2, 1fr); }
    .machine-carousel { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
    /* Cursor off on mobile */
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }

    .container { padding: 0 16px; }

    /* Reduce reveal distance on mobile */
    .reveal { transform: translateY(20px); }
    .reveal-left { transform: translateX(-20px); }
    .reveal-right { transform: translateX(20px); }

    /* Nav */
    .nav, .btn-cta { display: none; }
    .nav.active {
        display: flex;
        position: fixed; inset: 0;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
    .nav.active .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .nav.active .nav-link {
        font-size: 20px;
        padding: 14px 28px;
        min-height: 52px;
        display: flex;
        align-items: center;
    }
    .menu-toggle { display: flex; }

    /* Hero */
    .hero { min-height: auto; }
    .hero-video-overlay {
        background: linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.7) 100%);
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 20px;
    }
    .hero-left { order: 1; }
    .hero-right { order: 0; max-width: 260px; margin: 0 auto; }
    .hero-title { font-size: clamp(40px, 10vw, 60px); }
    .hero-desc { font-size: 15px; margin: 0 auto 28px; }
    .hero-tag { justify-content: center; }
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-ghost {
        justify-content: center;
        min-height: 52px;
    }
    .stat-num { font-size: 28px; }
    .stat-name { font-size: 10px; }
    .gear-1, .gear-2, .gear-3 { opacity: 0.5; }

    /* About */
    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-metrics { gap: 20px; }
    .metric-ring { width: 70px; height: 70px; }
    .metric-val { font-size: 18px; }
    .section-title { font-size: clamp(28px, 6vw, 44px); }

    /* Services */
    .services { padding: 80px 0; }
    .services-showcase { grid-template-columns: 1fr; }
    .service-item { min-height: 340px; }
    .service-content { padding: 24px; }
    .service-content h3 { font-size: 26px; }

    /* Machinery */
    .machinery { padding: 80px 0; }
    .machine-carousel { grid-template-columns: 1fr 1fr; gap: 12px; }
    .machine-info h3 { font-size: 20px; }
    .machine-specs strong { font-size: 14px; }
    .marquee-track span { font-size: 22px; }

    /* CTA */
    .cta-section { padding: 80px 0; }
    .cta-section h2 { font-size: clamp(32px, 8vw, 56px); }
    .cta-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
    .cta-btns .btn-primary,
    .cta-btns .btn-ghost {
        justify-content: center;
        min-height: 52px;
    }

    /* Contact */
    .contact { padding: 80px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .form-field input,
    .form-field select,
    .form-field textarea { font-size: 16px; }

    /* Footer */
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 4px; font-size: 12px; }
}

@media (max-width: 480px) {
    .machine-carousel { grid-template-columns: 1fr; }
    .machine-visual { padding: 20px; }
    .machine-3d-box { width: 120px; height: 120px; }
    .about-metrics { flex-wrap: wrap; justify-content: center; }
    .diagram-data { grid-template-columns: repeat(2, 1fr); }
    .logo-main { font-size: 22px; }
    .hero-title { font-size: clamp(34px, 10vw, 50px); }
    .contact-form { padding: 20px 16px; }
}
