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

:root {
    --primary: #0f5e40;
    --primary-dark: #0a4a32;
    --primary-light: #e6f3ec;
    --text: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-light: #8a8aa0;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-dark: #0f1119;
    --border: #e5e7eb;
    --border-light: #f0f1f3;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Firefox smooth scroll support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    padding: 12px 28px;
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 94, 64, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15, 94, 64, 0.4);
    transform: translateY(-1px);
}

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

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

.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

/* ===========================
   HEADER
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    height: 72px;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.header-inner > .nav {
    order: 1;
}

.header-inner > .logo {
    order: 2;
    margin-left: auto;
}

@media (min-width: 769px) {
    .header-inner {
        position: relative;
        left: -12px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 66px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-cta {
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: var(--primary-light);
    padding: 8px 18px;
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -1px;
}

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

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Vertical Scrolling Gallery */
.hero-gallery {
    display: flex;
    gap: 16px;
    height: 440px;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-col {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-col-left {
    flex: 1.2;
}

.gallery-col-right {
    flex: 1;
    padding-top: 40px;
}

.gallery-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scrollUp 28s linear infinite;
}

.gallery-track-reverse {
    animation: scrollDown 32s linear infinite;
}

.hero-gallery:hover .gallery-track,
.hero-gallery:hover .gallery-track-reverse {
    animation-play-state: paused;
}

.gallery-item {
    width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-col-left .gallery-item img {
    height: 280px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===========================
   STATISTICS
   =========================== */
.stats-section {
    padding: 72px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

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

.stat-item {
    position: relative;
    padding: 24px 16px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: inline;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* ===========================
   CAPABILITIES
   =========================== */
.capabilities-section {
    padding: 96px 0;
}

.capabilities-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 64px;
}

.capabilities-header-left {
    flex: 1;
}

.capabilities-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.capabilities-header-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.capabilities-view-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--text);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.capabilities-view-all:hover {
    color: var(--primary);
    border-color: var(--primary);
}

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

.capability-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.capability-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.capability-card:hover .capability-icon svg {
    transform: scale(1.1);
}

.capability-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-icon svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.capability-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.capability-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.capability-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.capability-link:hover {
    gap: 8px;
}

/* ===========================
   FEATURED CAPABILITY CARD — INDUSTRIAL ENGINEERING FOCUS
   =========================== */

/* --- Card base --- */
.capability-card-featured {
    padding: 0;
    overflow: visible;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* --- Smart border (responsive SVG rounded-rectangle path) --- */
.cap-smart-border {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: 10;
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Fallback for browsers that don't support the animation */
@supports not (animation: test 1s linear) {
    .cap-smart-border.animate rect {
        animation: none;
    }
}

.capability-card-featured.in-view .cap-smart-border {
    opacity: 1;
}

.cap-smart-border rect {
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 1px rgba(15,94,64,0.15));
    transition: stroke-width 0.4s ease, filter 0.4s ease;
}

.capability-card-featured:hover .cap-smart-border rect {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(15,94,64,0.25));
}

/* SVG animation applied via JS — uses stroke-dasharray + dashoffset.
   The animation loops the SVG border path. The starting dashoffset is set
   by JS (initSmartBorder), and this keyframe animates it continuously.
   Uses a large negative value for compatibility across browsers. */
.cap-smart-border.animate rect {
    animation: borderPathTravel var(--border-duration, 5s) linear infinite;
}

@keyframes borderPathTravel {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -10000; }
}

/* --- Image area --- */
.cap-featured-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Corner-mask reveal shape */
.cap-img-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: var(--bg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 1.4s cubic-bezier(0.77,0,0.175,1) 0.1s;
    pointer-events: none;
}

.capability-card-featured.in-view .cap-img-mask {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.cap-featured-img-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image: soft → sharp */
.cap-featured-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(1.04) saturate(0.9);
    transform: scale(1.15);
    transition: filter 1.4s cubic-bezier(0.4,0,0.2,1), transform 1.4s cubic-bezier(0.4,0,0.2,1);
    will-change: transform, filter;
}

.capability-card-featured.in-view .cap-featured-img-inner img {
    filter: blur(0) brightness(1) saturate(1);
    transform: scale(1.0);
}

/* Cinematic drift after reveal */
.capability-card-featured.revealed .cap-featured-img-inner img {
    animation: capCinematic 16s ease-in-out infinite alternate;
    transition: none;
}

@keyframes capCinematic {
    0%   { transform: scale(1.0) translate(0, 0); }
    33%  { transform: scale(1.03) translate(-0.4%, -0.25%); }
    66%  { transform: scale(1.015) translate(0.3%, 0.15%); }
    100% { transform: scale(1.0) translate(0.1%, -0.1%); }
}

/* --- HUD overlay (engineering interface) --- */
.cap-hud-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}

.capability-card-featured.in-view .cap-hud-overlay {
    opacity: 1;
}

.capability-card-featured:hover .cap-hud-overlay {
    opacity: 1;
}

/* Corner brackets */
.cap-hud-bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.capability-card-featured.in-view .cap-hud-bracket {
    opacity: 0.4;
}

.capability-card-featured:hover .cap-hud-bracket {
    opacity: 0.65;
    transform: translate(var(--hud-tx, 0), var(--hud-ty, 0));
}

.cap-hud-tl { top: 10px; left: 10px; --hud-tx: -1px; --hud-ty: -1px; border-top: 1px solid var(--primary); border-left: 1px solid var(--primary); }
.cap-hud-tr { top: 10px; right: 10px; --hud-tx: 1px; --hud-ty: -1px; border-top: 1px solid var(--primary); border-right: 1px solid var(--primary); }
.cap-hud-bl { bottom: 10px; left: 10px; --hud-tx: -1px; --hud-ty: 1px; border-bottom: 1px solid var(--primary); border-left: 1px solid var(--primary); }
.cap-hud-br { bottom: 10px; right: 10px; --hud-tx: 1px; --hud-ty: 1px; border-bottom: 1px solid var(--primary); border-right: 1px solid var(--primary); }

/* Coordinate marks */
.cap-hud-coord {
    position: absolute;
    font-size: 8px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    opacity: 0;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
}

.capability-card-featured.in-view .cap-hud-coord {
    opacity: 0.35;
}

.capability-card-featured:hover .cap-hud-coord {
    opacity: 0.55;
    transform: translate(var(--coord-tx, 0), 0);
}

.cap-hud-coord-tl { top: 12px; left: 30px; --coord-tx: -1px; }
.cap-hud-coord-br { bottom: 12px; right: 30px; --coord-tx: 1px; }

/* Technical index */
.cap-hud-index {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    border: 1px solid var(--primary);
    padding: 1px 4px;
    border-radius: 2px;
    transition: opacity 0.4s ease 0.5s;
}

.capability-card-featured.in-view .cap-hud-index {
    opacity: 0.4;
}

.capability-card-featured:hover .cap-hud-index {
    opacity: 0.65;
}

/* Focus ring */
.cap-hud-focus-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
    transition: opacity 0.5s ease 0.5s, transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.5s;
}

.cap-hud-focus-ring::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.capability-card-featured.in-view .cap-hud-focus-ring {
    opacity: 0.18;
    transform: scale(1) rotate(0deg);
}

.capability-card-featured:hover .cap-hud-focus-ring {
    opacity: 0.3;
    animation: focusRingSpin 24s linear infinite;
}

@keyframes focusRingSpin {
    to { transform: scale(1) rotate(360deg); }
}

/* Guide lines */
.cap-hud-guide {
    position: absolute;
    background: var(--primary);
    opacity: 0;
}

.cap-hud-guide-h {
    top: 50%; left: 10px;
    width: 0; height: 1px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1) 0.6s, opacity 0.3s ease 0.6s;
}

.cap-hud-guide-v {
    left: 50%; top: 10px;
    width: 1px; height: 0;
    transition: height 0.8s cubic-bezier(0.4,0,0.2,1) 0.7s, opacity 0.3s ease 0.7s;
}

.capability-card-featured.in-view .cap-hud-guide {
    opacity: 0.2;
}

.capability-card-featured.in-view .cap-hud-guide-h {
    width: 35px;
}

.capability-card-featured.in-view .cap-hud-guide-v {
    height: 30px;
}

.capability-card-featured:hover .cap-hud-guide {
    opacity: 0.35;
}

/* Crosshair center */
.cap-hud-crosshair {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

.cap-hud-crosshair span {
    position: absolute;
    background: var(--primary);
}

.cap-hud-crosshair span:first-child {
    width: 1px; height: 100%; left: 50%; margin-left: -0.5px;
}

.cap-hud-crosshair span:last-child {
    height: 1px; width: 100%; top: 50%; margin-top: -0.5px;
}

.capability-card-featured.in-view .cap-hud-crosshair {
    opacity: 0.25;
}

.capability-card-featured:hover .cap-hud-crosshair {
    opacity: 0.45;
}

/* Green accent */
.cap-featured-accent {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 6;
    transition: transform 0.9s cubic-bezier(0.4,0,0.2,1) 0.5s, box-shadow 0.4s ease;
}

.capability-card-featured.in-view .cap-featured-accent {
    transform: scaleX(1);
}

.capability-card-featured:hover .cap-featured-accent {
    box-shadow: 0 0 6px rgba(15,94,64,0.2);
    height: 2.5px;
}

/* --- Content area --- */
.cap-featured-content {
    padding: 18px 28px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Icon wrapper */
.capability-icon-wrap {
    position: relative;
    width: 48px; height: 48px;
    margin-bottom: 16px;
}

.capability-card-featured .capability-icon {
    width: 48px; height: 48px;
}

.cap-hud-ring {
    position: absolute;
    inset: -5px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.4,0,0.2,1) 0.1s;
}

.cap-hud-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.25;
}

.capability-card-featured.in-view .cap-hud-ring {
    opacity: 0.18;
    transform: scale(1);
}

.capability-card-featured:hover .cap-hud-ring {
    opacity: 0.3;
    animation: hudRingSpin 20s linear infinite;
}

@keyframes hudRingSpin {
    to { transform: scale(1) rotate(360deg); }
}

/* Content accent line (draws on hover) */
.cap-content-accent {
    width: 0;
    height: 1.5px;
    background: var(--primary);
    margin-bottom: 14px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.capability-card-featured:hover .cap-content-accent {
    width: 40px;
}

/* Content staggered reveal */
.cap-featured-content .capability-icon-wrap,
.cap-featured-content .capability-title,
.cap-featured-content .capability-desc,
.cap-featured-content .capability-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.capability-card-featured.in-view .cap-featured-content .capability-icon-wrap {
    opacity: 1; transform: translateY(0); transition-delay: 0.15s;
}
.capability-card-featured.in-view .cap-featured-content .capability-title {
    opacity: 1; transform: translateY(0); transition-delay: 0.28s;
}
.capability-card-featured.in-view .cap-featured-content .capability-desc {
    opacity: 1; transform: translateY(0); transition-delay: 0.4s;
}
.capability-card-featured.in-view .cap-featured-content .capability-link {
    opacity: 1; transform: translateY(0); transition-delay: 0.52s;
}

/* Hover content interaction */
.capability-card-featured:hover .capability-title {
    transform: translateY(-2px);
    transition-delay: 0s;
}

.capability-card-featured:hover .capability-desc {
    color: var(--text);
    transition-delay: 0s;
}

/* Arrow */
.cap-link-arrow {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.capability-card-featured:hover .cap-link-arrow {
    transform: translateX(5px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cap-featured-img-wrap { height: 140px; }
}

@media (max-width: 768px) {
    .cap-featured-img-wrap { height: 160px; }
    .cap-featured-content { padding: 16px 22px 20px; }
    .cap-hud-coord, .cap-hud-guide { display: none; }
}

@media (max-width: 480px) {
    .cap-featured-img-wrap { height: 150px; }
    .cap-featured-content { padding: 14px 18px 18px; }
    .cap-smart-border rect { stroke-width: 1.5; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .capability-card-featured.in-view .cap-img-mask { transition: none; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    .capability-card-featured .cap-featured-img-inner img { transition: none; filter: none; transform: scale(1); }
    .capability-card-featured.revealed .cap-featured-img-inner img { animation: none; }
    .capability-card-featured .cap-smart-border.animate rect { animation: none; }
    .capability-card-featured .cap-hud-focus-ring { animation: none; }
    .capability-card-featured .cap-hud-ring { animation: none; }
    .cap-featured-content .capability-icon-wrap,
    .cap-featured-content .capability-title,
    .cap-featured-content .capability-desc,
    .cap-featured-content .capability-link { transition: none; opacity: 1; transform: none; }
}

/* ===========================
   INDUSTRIES
   =========================== */
.industries-section {
    padding: 96px 0;
    background: var(--bg-alt);
}

/* --- Trusted Brands Section --- */
.brands-section {
    padding: 60px 0 70px;
    background: #f5f5f5;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.brands-header-left {
    flex: 0 0 auto;
}

.brands-header-right {
    flex: 1;
    max-width: 420px;
    text-align: right;
}

.brands-header-right .section-desc {
    margin-bottom: 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 90px;
}

.brand-item:nth-child(5n) {
    border-right: none;
}

.brand-item:nth-last-child(-n+5) {
    border-bottom: none;
}

.brand-text {
    display: inline-block;
    color: var(--brand-color, #888);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease;
    text-align: center;
    line-height: 1.3;
    user-select: none;
}

.brand-item:hover .brand-text {
    filter: grayscale(0%);
    opacity: 1;
}

/* Image-based brand logos */
.brand-logo {
    width: 100%;
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease;
    user-select: none;
    pointer-events: none;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .brands-header {
        flex-direction: column;
        gap: 16px;
    }
    .brands-header-right {
        text-align: left;
        max-width: 100%;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-item:nth-child(5n) {
        border-right: 1px solid #e0e0e0;
    }
    .brand-item:nth-child(3n) {
        border-right: none;
    }
    .brand-item:nth-last-child(-n+5) {
        border-bottom: 1px solid #e0e0e0;
    }
    .brand-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-item:nth-child(3n) {
        border-right: 1px solid #e0e0e0;
    }
    .brand-item:nth-child(2n) {
        border-right: none;
    }
    .brand-item:nth-last-child(-n+3) {
        border-bottom: 1px solid #e0e0e0;
    }
    .brand-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .brand-item {
        padding: 20px 12px;
        min-height: 70px;
    }
    .brand-logo {
        max-height: 40px;
    }
}

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

.industry-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.industry-card:hover .industry-img img {
    transform: scale(1.08);
}

.industry-img {
    height: 200px;
    overflow: hidden;
}

.industry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-content {
    padding: 24px;
}

.industry-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.industry-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.industry-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.industry-link:hover {
    letter-spacing: 1px;
}

/* ===========================
   15+ GLOBAL CLIENTELE MARQUEE
   =========================== */
.clientele-section {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg);
}

.clientele-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.clientele-label {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 130px;
}

.clientele-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
}

.clientele-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.clientele-marquee {
    flex: 1;
    overflow: hidden;
    /* Hide scrollbars across all browsers */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Hide scrollbar in WebKit browsers (Chrome, Edge, Safari) */
.clientele-marquee::-webkit-scrollbar {
    display: none;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marqueeScroll 35s linear infinite;
    width: max-content;
}

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

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.marquee-item img {
    height: 32px;
    width: auto;
    max-width: 120px;
    opacity: 1;
    transition: var(--transition);
    object-fit: contain;
}

.marquee-item:hover img {
    opacity: 1;
    filter: brightness(1.08);
}

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

/* Clientele responsive */
@media (max-width: 768px) {
    .clientele-section {
        padding: 20px 0;
    }

    .clientele-inner {
        gap: 20px;
    }

    .clientele-label {
        min-width: 110px;
    }

    .clientele-number {
        font-size: 1.5rem;
    }

    .clientele-text {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .marquee-item {
        padding: 0 18px;
    }

    .marquee-item img {
        height: 26px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .clientele-section {
        padding: 16px 0;
    }

    .clientele-inner {
        gap: 14px;
    }

    .clientele-label {
        min-width: 90px;
    }

    .clientele-number {
        font-size: 1.3rem;
    }

    .clientele-text {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    .marquee-item {
        padding: 0 14px;
    }

    .marquee-item img {
        height: 22px;
        max-width: 85px;
    }
}

@media (max-width: 360px) {
    .clientele-section {
        padding: 14px 0;
    }

    .clientele-inner {
        gap: 10px;
    }

    .clientele-label {
        min-width: 75px;
    }

    .clientele-number {
        font-size: 1.1rem;
    }

    .clientele-text {
        font-size: 0.45rem;
        letter-spacing: 0.8px;
    }

    .marquee-track {
        gap: 0;
    }

    .marquee-item {
        padding: 0 12px;
    }

    .marquee-item img {
        height: 20px;
        max-width: 75px;
    }
}

/* ===========================
   PRODUCTS
   =========================== */
.products-section {
    padding: 80px 0 96px;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 56px;
    gap: 40px;
}

.products-header-left {
    flex: 1;
}

.products-header-left .section-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.products-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
}

.products-header-right {
    flex: 0 0 420px;
    text-align: right;
    padding-top: 10px;
}

.products-header-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.products-view-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--text);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.products-view-all:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Product Detail Cards */
.products-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    min-height: 380px;
    transition: box-shadow 0.4s ease;
}

.product-detail-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.product-detail-card--highlight {
    border: 2px solid var(--primary);
}

/* Hydraulic-only compact sizing */
.product-detail-card--compact .product-detail-content {
    padding: 24px 32px;
}

.product-detail-card--compact .product-detail-title {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.product-detail-card--compact .product-detail-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.product-detail-card--compact .product-detail-divider {
    margin-bottom: 14px;
}

.product-detail-card--compact .product-apps-label {
    font-size: 0.65rem;
    margin-bottom: 8px;
}

.product-detail-card--compact .product-app-item {
    font-size: 0.82rem;
    padding: 5px 0;
}

/* Hydraulic image — dual-panel directional slide */
.product-detail-image--dual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    overflow: hidden;
    min-height: 300px;
}

.pd-dual-panel {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    min-height: 0;
}

.pd-dual-top {
    border-radius: 0 12px 0 0;
}

.pd-dual-bottom {
    border-radius: 0 0 12px 0;
}

.pd-dual-gap {
    height: 3px;
    background: var(--primary);
    flex-shrink: 0;
    opacity: 0.3;
}

.pd-dual-slide {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.pd-dual-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Default: off-screen left */
.pd-dual-enter-left {
    transform: translateX(-100%);
}

/* Default: off-screen right */
.pd-dual-enter-right {
    transform: translateX(100%);
}

/* Active: settled in center */
.pd-dual-active {
    transform: translateX(0);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Exiting: slide out */
.pd-dual-exit-right {
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-dual-exit-left {
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-content {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 16px;
}

.product-detail-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 28px;
    max-width: 520px;
}

.product-detail-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin-bottom: 24px;
}

.product-apps-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.product-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.product-app-item {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
    padding-left: 14px;
    position: relative;
}

.product-app-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.product-detail-image {
    padding: 32px 32px 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    min-height: 300px;
}

/* ===========================
   STRENGTH / QUALITY
   =========================== */
.strength-section {
    padding: 96px 0;
    background: var(--bg-alt);
}

.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.strength-content .section-tag {
    text-align: left;
}

.strength-content .section-title {
    text-align: left;
}

.strength-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.strength-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.strength-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.strength-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-feature-icon svg {
    width: 20px;
    height: 20px;
}

.strength-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.strength-feature p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.strength-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.strength-img {
    border-radius: var(--radius);
    overflow: hidden;
}

.strength-img:first-child {
    grid-row: 1 / 3;
}

.strength-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.strength-img:hover img {
    transform: scale(1.05);
}

/* ===========================
   ABOUT
   =========================== */
.about-section {
    padding: 80px 0;
}

/* New About Layout */
.about-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-new-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-new-heading {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 28px;
}

.about-new-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-new-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.about-new-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.about-new-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Image Slider */
.about-new-slider-wrap {
    position: relative;
    padding: 3px;
    border-radius: 18px;
}

/* Animated Gradient Border */
.about-new-border {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 3px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        #0a7c56,
        #00d4aa,
        #2196f3,
        #9c27b0,
        #0a7c56
    );
    animation: borderRotate 4s linear infinite;
    z-index: 0;
}

.about-new-border::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        #0a7c56,
        #00d4aa,
        #2196f3,
        #9c27b0,
        #0a7c56
    );
    filter: blur(16px);
    opacity: 0.6;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

.about-new-slider-wrap:hover .about-new-border {
    padding: 3.5px;
}

.about-new-slider-wrap:hover .about-new-border::after {
    opacity: 0.75;
    filter: blur(18px);
}

@keyframes borderRotate {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}

/*
 * CSS Houdini @property for conic-gradient rotation.
 * Supported in: Chrome 85+, Edge 85+, Opera 71+.
 * Not supported in Firefox, Safari — but the gradient still renders statically.
 * This is a progressive enhancement, not a breaking change.
 */
@supports (background: conic-gradient(from 0deg, red, blue)) {
    @property --border-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }
}

.about-new-slider {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
    background: #f0f0f0;
}

.about-new-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-new-slide.active {
    opacity: 1;
}

.about-new-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-new-slider-wrap:hover .about-new-slide.active img {
    transform: scale(1.04);
}

/* ===========================
   CTA
   =========================== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

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

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===========================
   CONTACT
   =========================== */
.contact-section {
    padding: 96px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    /* Focus ring with cross-browser support */
    box-shadow: 0 0 0 3px rgba(15, 94, 64, 0.12);
    outline: none;
}

/* Remove default focus outline for WebKit browsers but keep our custom one */
.form-group input::-webkit-focus-ring-color,
.form-group textarea::-webkit-focus-ring-color {
    opacity: 0;
}

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

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-dark);
    padding: 72px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo .logo-img {
    height: 66px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    width: auto;
}

.footer-brand .footer-logo {
    height: 66px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255,255,255,0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

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

.footer-contact ul li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   MOBILE MENU
   =========================== */
.nav.mobile-open .nav-list {
    transform: translateX(0);
    opacity: 1;
}

/* Ensure transform works consistently across browsers */
.nav {
    margin-left: auto;
    will-change: transform;
}

.nav-list {
    margin: 0;
    padding: 0;
}

/* ===========================
   RESPONSIVE: TABLET
   =========================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-gallery {
        height: 360px;
        max-width: 520px;
        margin: 0 auto;
    }

    .gallery-col-left .gallery-item img {
        height: 220px;
    }

    .gallery-col-right .gallery-item img {
        height: 200px;
    }

    .gallery-col-right {
        padding-top: 24px;
    }

    .capabilities-header {
        flex-direction: column;
        gap: 16px;
    }
    .capabilities-header-right {
        align-items: flex-start;
        text-align: left;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-header {
        flex-direction: column;
        gap: 20px;
    }

    .products-header-right {
        flex: none;
        text-align: left;
        padding-top: 0;
    }

    .products-main-title {
        font-size: 2.2rem;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-content {
        padding: 36px 32px 28px;
    }

    .product-detail-image {
        padding: 0 32px 32px;
    }

    .product-detail-image img {
        min-height: 240px;
    }

    .strength-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .strength-content .section-tag,
    .strength-content .section-title {
        text-align: center;
    }

    .about-new {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-new-heading {
        font-size: 1.8rem;
    }

    .about-new-slider {
        height: 340px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   RESPONSIVE: MOBILE
   =========================== */
@media (max-width: 768px) {
    .logo-img {
        height: 53px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: calc(100vh - 72px);
        background: var(--bg);
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 90px 24px 40px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav.mobile-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: auto;
    }

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

    .hero-gallery {
        height: 300px;
        gap: 10px;
    }

    .gallery-track {
        gap: 10px;
    }

    .gallery-col-left .gallery-item img {
        height: 180px;
    }

    .gallery-col-right .gallery-item img {
        height: 160px;
    }

    .gallery-col-right {
        padding-top: 16px;
    }

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

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

    .products-main-title {
        font-size: 1.8rem;
    }

    .product-detail-content {
        padding: 28px 24px 20px;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-apps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-detail-image {
        padding: 0 24px 24px;
    }

    .product-detail-image img {
        min-height: 200px;
    }

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

    .stat-item::after {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .about-new-heading {
        font-size: 1.5rem;
    }

    .about-new-slider {
        height: 280px;
    }

    .about-new-points li {
        font-size: 0.92rem;
    }

    .strength-img-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .capabilities-section,
    .industries-section,
    .products-section,
    .strength-section,
    .about-section,
    .contact-section {
        padding: 64px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-gallery {
        height: 260px;
        gap: 8px;
    }

    .gallery-track {
        gap: 8px;
    }

    .gallery-col-left .gallery-item img {
        height: 160px;
    }

    .gallery-col-right .gallery-item img {
        height: 140px;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .about-stat-num {
        font-size: 1.6rem;
    }

}

/* ===========================
   OVERLAY for mobile menu
   =========================== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
