@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Kanit:wght@200;300;400;500;600&display=swap');

/* ==========================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
:root {
    /* Color Palette */
    --color-primary: #121824;      /* Deep Slate/Charcoal - Engineering & Premium base */
    --color-secondary: #0ea5e9;    /* Deep Ocean Blue/Sky - Water management & technology */
    --color-secondary-hover: #0284c7;
    --color-accent: #f59e0b;       /* Construction Gold/Amber - Welds, high quality, CTA */
    --color-accent-hover: #d97706;
    --color-dark-bg: #0b0f19;      /* Pure dark background for sections */
    --color-light-bg: #f8fafc;     /* Clean off-white background */
    --color-card-dark: #1e293b;    /* Dark mode cards */
    --color-card-light: #ffffff;   /* Light mode cards */
    --color-text-dark: #0f172a;    /* High contrast text for light bg */
    --color-text-light: #f1f5f9;   /* High contrast text for dark bg */
    --color-text-muted: #64748b;   /* Muted text */
    --color-border: #e2e8f0;       /* Soft borders */
    --color-border-dark: #334155;  /* Soft borders for dark */
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-thai: 'Kanit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.4);
    --shadow-glow-accent: 0 0 15px rgba(245, 158, 11, 0.4);
    
    /* Transition */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-thai);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light-bg);
    overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-thai);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

p {
    font-family: var(--font-thai);
    font-weight: 300;
    color: var(--color-text-muted);
}

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

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

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

.section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.section-dark h2, .section-dark h3 {
    color: var(--color-text-light);
}

.section-dark p {
    color: #94a3b8;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #0284c7);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
}

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

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

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ==========================================
   NAVIGATION BAR (Glassmorphism & Sticky)
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 24, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

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

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-img-container {
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 130px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo-img-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Shift nav menu leftwards (closer to logo) on desktop */
@media (min-width: 1025px) {
    .nav {
        margin-right: auto;
        margin-left: clamp(30px, 5vw, 80px);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 1.4vw, 24px);
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
}

.nav-menu .btn-sm {
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    padding: 8px 20px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-secondary);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition-smooth);
    background-color: #ffffff;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background:
        radial-gradient(ellipse 70% 60% at 18% 78%, rgba(14, 165, 233, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 88% 18%, rgba(245, 158, 11, 0.10) 0%, transparent 55%),
        linear-gradient(160deg, rgba(18, 24, 36, 0.92) 0%, rgba(11, 15, 25, 0.97) 60%, rgba(8, 11, 18, 0.99) 100%),
        url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

/* Engineering blueprint grid overlay with radial fade */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 35%, transparent 85%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 35%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}

/* Animated gradient line at the bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-accent), transparent);
    background-size: 200% 100%;
    animation: gradientSlide 4s ease-in-out infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    z-index: 10;
}

/* Staggered fade-in for hero child elements */
.hero-content .hero-badge {
    animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-content .hero-title {
    animation: fadeInUp 0.7s ease 0.25s both;
}
.hero-content .hero-desc {
    animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-content .hero-actions {
    animation: fadeInUp 0.7s ease 0.65s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: #7dd3fc;
    padding: 8px 18px 8px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
    animation: badgePulse 3s ease-in-out infinite;
    letter-spacing: 0.3px;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 9px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 22px;
    letter-spacing: -0.015em;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-title span {
    position: relative;
    background: linear-gradient(110deg, #38bdf8 0%, #0ea5e9 35%, #67e8f9 60%, var(--color-accent) 110%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 5s ease-in-out infinite;
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.08rem;
    color: #cbd5e1;
    margin-bottom: 28px;
    max-width: 580px;
    line-height: 1.85;
    font-weight: 300;
}

/* Feature pills row */
.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 36px;
    padding: 0;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #e2e8f0;
    padding: 9px 16px 9px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.hero-features li:hover {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.hero-features li svg { color: var(--color-secondary); flex-shrink: 0; }
.hero-features li:nth-child(3) svg { color: var(--color-accent); }

/* Highlighted feature pill (amber/gold) */
.hero-features li.hero-feature-hl {
    color: #fff;
    font-weight: 500;
    border-color: rgba(245, 158, 11, 0.75);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(217, 119, 6, 0.16));
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    animation: featureHlPulse 2.6s ease-in-out infinite;
}
.hero-features li.hero-feature-hl svg { color: #fbbf24; }
.hero-features li.hero-feature-hl:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(217, 119, 6, 0.22));
    transform: translateY(-2px);
}
@keyframes featureHlPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Enhance hero buttons */
.hero-actions .btn-primary {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.hero-actions .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.45);
    transform: translateY(-3px);
}
.hero-actions .btn-outline-white {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
}
.hero-actions .btn-outline-white:hover {
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-image-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 14px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

/* Animated gradient border around image card */
.hero-image-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--border-radius-lg) + 1px);
    background: linear-gradient(135deg, var(--color-secondary), transparent 38%, transparent 62%, var(--color-accent));
    z-index: -1;
    opacity: 0.55;
    animation: borderRotate 6s linear infinite;
    background-size: 300% 300%;
}

@keyframes borderRotate {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Inner frame that crops the image */
.hero-image-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #0f172a;
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-card:hover .hero-image-frame img { transform: scale(1.05); }

/* Technical corner brackets */
.hero-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-secondary);
    z-index: 3;
    opacity: 0.85;
    pointer-events: none;
}
.hero-corner-tl { top: -3px; left: -3px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.hero-corner-tr { top: -3px; right: -3px; border-left: none; border-bottom: none; border-top-right-radius: 6px; border-color: var(--color-accent); }
.hero-corner-bl { bottom: -3px; left: -3px; border-right: none; border-top: none; border-bottom-left-radius: 6px; border-color: var(--color-accent); }
.hero-corner-br { bottom: -3px; right: -3px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

/* Floating certification chip */
.hero-cert-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px 8px 10px;
    border-radius: 12px;
    background: rgba(11, 15, 25, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 4;
    animation: chipFloat 5s ease-in-out infinite;
}
.hero-cert-chip svg { color: #22c55e; flex-shrink: 0; }
.hero-cert-chip strong { display: block; color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.hero-cert-chip span { display: block; color: #94a3b8; font-size: 0.68rem; letter-spacing: 0.2px; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Bottom image overlay */
.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.45) 65%, transparent);
    padding: 28px 22px 20px;
    text-align: left;
    z-index: 3;
}
.hero-image-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-image-overlay p {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hero-image-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-image-tags span {
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}
.hero-image-tags .tag-blue { background: rgba(14, 165, 233, 0.18); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.35); }
.hero-image-tags .tag-gold { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    opacity: 0.65;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.7s ease 1s both;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll-mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    position: relative;
}
.hero-scroll-mouse span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--color-secondary);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(0); }
    35% { opacity: 1; }
    70% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 0; }
}

.hero-glow-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-secondary), transparent 70%);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.12;
    top: -80px;
    right: -80px;
    z-index: 1;
    animation: blobPulse 5s ease-in-out infinite;
}

/* Second glow blob for depth */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -40px;
    left: -40px;
    z-index: 1;
    animation: blobPulse 7s ease-in-out infinite reverse;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.15); opacity: 0.18; }
}

/* ==========================================
   FEATURES / USP SECTION
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(14, 165, 233, 0.08);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card:hover .feature-icon-box {
    background-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* ==========================================
   PRODUCT PREVIEW / GRID SECTION
   ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.product-img-box {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #0b0f19;
}

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

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

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-specs-summary {
    list-style: none;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.product-specs-summary li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.product-specs-summary li svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* Specifications Table styling */
.spec-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: var(--color-card-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin: 40px 0;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.spec-table th {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 16px;
    font-weight: 500;
    font-size: 0.95rem;
}

.spec-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background-color: var(--color-light-bg);
}

/* ==========================================
   SERVICES SHOWCASE
   ========================================== */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-step-card {
    display: flex;
    gap: 20px;
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.service-step-card:hover {
    transform: translateX(8px);
    border-color: var(--color-secondary);
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary), #0284c7);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/* Welding / Testing techniques */
.technique-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.technique-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 30px;
}

.technique-card h3 {
    color: var(--color-secondary);
    margin-bottom: 12px;
}

/* ==========================================
   INTERACTIVE ESTIMATOR / CALCULATOR
   ========================================== */
.calculator-panel {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calc-inputs-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
}

.input-group input, .input-group select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-thai);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-light-bg);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.calc-results-section {
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.calc-results-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--color-accent);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.08;
    bottom: -50px;
    right: -50px;
}

.calc-results-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.result-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.result-val {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.result-val span {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 300;
    margin-left: 4px;
}

.result-recommendation {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.recommend-title {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.recommend-text {
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* ==========================================
   CALCULATOR — COMPACT REDESIGN
   ========================================== */
/* Tighter 2-column input form */
.calc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 16px;
    align-items: start;
}
.calc-inputs-section { gap: 16px; }
.calc-inputs-section .input-group { margin-bottom: 0 !important; min-width: 0; }
.calc-inputs-section .input-group label { font-size: 0.9rem; }
.calc-inputs-section .input-group input,
.calc-inputs-section .input-group select { padding: 10px 14px; font-size: 0.95rem; width: 100%; max-width: 100%; min-width: 0; }
.calc-form-grid > .input-group { min-width: 0; }

/* Step badge on the first field */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 7px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}
/* Align number badge nicely within every calculator field label */
.calc-inputs-section .input-group > label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Flash highlight when thickness is auto-linked from application */
@keyframes thicknessFlash {
    0%   { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28); background-color: rgba(245, 158, 11, 0.14); }
    60%  { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16); background-color: rgba(245, 158, 11, 0.08); }
    100% { border-color: var(--color-border); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); background-color: var(--color-light-bg); }
}
.thickness-flash {
    animation: thicknessFlash 1.2s ease-out;
}

/* Results title with icon */
.calc-results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 18px;
}
.calc-results-title svg { flex-shrink: 0; }

/* 2x2 primary metric grid */
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.metric-card {
    border-radius: 14px;
    padding: 16px 16px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-card:hover { transform: translateY(-2px); }
.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.metric-val {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}
.metric-val span {
    font-size: 1rem;
    font-weight: 300;
    color: #cbd5e1;
    margin-left: 4px;
}
.metric-sub { font-size: 0.82rem; margin-top: 4px; font-weight: 400; }

/* Accent variants */
.metric-card.m-accent {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}
.metric-card.m-accent .metric-label,
.metric-card.m-accent .metric-val { color: var(--color-accent); }
.metric-card.m-accent .metric-sub {
    color: #fcd34d;
    font-weight: 400;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.metric-card.m-cyan {
    border-color: rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
}
.metric-card.m-cyan .metric-label,
.metric-card.m-cyan .metric-val { color: #22d3ee; }
.metric-card.m-cyan .metric-sub { color: #67e8f9; }
.metric-card.m-blue {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
}
.metric-card.m-blue .metric-label { color: #38bdf8; }

/* rolls + remainder rows inside one card */
.metric-rows { display: flex; flex-direction: column; gap: 6px; }
.metric-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.metric-rows > div:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 5px;
}
.metric-rows .k { font-size: 0.78rem; color: #94a3b8; }
.metric-rows .v { font-size: 1.35rem; font-weight: 700; color: #38bdf8; }
.metric-rows .v span { font-size: 0.82rem; color: #cbd5e1; font-weight: 300; margin-left: 3px; }

/* 4-up mini stat strip */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.mini-stat {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 11px 10px;
}
.mini-stat .mini-label { font-size: 0.72rem; color: #64748b; margin-bottom: 3px; line-height: 1.3; }
.mini-stat .mini-val { font-size: 1.15rem; font-weight: 600; color: #cbd5e1; }
.mini-stat .mini-val span { font-size: 0.72rem; color: #94a3b8; font-weight: 300; margin-left: 2px; }

/* Verdict banner */
.calc-verdict {
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}

/* Collapsible engineering details */
.calc-details {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    margin-bottom: 8px;
}
.calc-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
    user-select: none;
    transition: background 0.2s ease;
}
.calc-details > summary:hover { background: rgba(255, 255, 255, 0.03); }
.calc-details > summary::-webkit-details-marker { display: none; }
.calc-details > summary .chev {
    margin-left: auto;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: #94a3b8;
}
.calc-details[open] > summary .chev { transform: rotate(180deg); }
.calc-details-body { padding: 2px 16px 16px; }

.eng-note {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: #7dd3fc;
    line-height: 1.6;
}
.eng-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.eng-spec {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
}
.eng-spec .es-label { font-size: 0.73rem; color: #64748b; margin-bottom: 4px; }
.eng-spec .es-val { font-size: 1.3rem; font-weight: 700; }
.eng-spec .es-val span { font-size: 0.8rem; color: #94a3b8; font-weight: 300; }
.eng-spec .es-sub { font-size: 0.72rem; color: #64748b; margin-top: 3px; }

.calc-cta {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

/* 2D preview shown beside the form */
.calc-preview {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}
.calc-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 14px;
}
.calc-preview-head svg { color: var(--color-secondary); flex-shrink: 0; }
.calc-preview-link {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-secondary);
}
.calc-preview-link:hover { color: var(--color-secondary-hover); }

.calc-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.calc-preview figure { margin: 0; }
.calc-preview figcaption {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.calc-preview figcaption::before {
    content: '';
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background: var(--color-secondary);
}
.calc-preview canvas {
    width: 100%;
    height: auto;
    display: block;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .calc-form-grid { grid-template-columns: 1fr 1fr; }
    .mini-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .calc-form-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   GALLERY / PORTFOLIO
   ========================================== */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background-color: var(--color-card-light);
    color: var(--color-text-dark);
    font-family: var(--font-thai);
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-img-box {
    height: 240px;
    overflow: hidden;
}

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

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

.gallery-content {
    padding: 24px;
}

.gallery-category {
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gallery-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.gallery-desc {
    font-size: 0.9rem;
}

/* ==========================================
   BLOG / ARTICLES
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

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

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

.blog-card:hover .blog-img-box img {
    transform: scale(1.05);
}

.blog-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-more-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-more-btn:hover {
    color: var(--color-accent);
}

/* ==========================================
   CONTACT SECTION & FORM
   ========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

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

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(14, 165, 233, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.contact-info-text a:hover {
    color: var(--color-secondary);
}

.contact-form-card {
    background-color: var(--color-card-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-thai);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.map-wrapper {
    margin-top: 40px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 300px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-links-col h3, .footer-contact-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-links-col h3::after, .footer-contact-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 6px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer-contact-list li svg {
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ==========================================
   STAT COUNTER (Home Page)
   ========================================== */
.stats-bar {
    background-color: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0;
    text-align: center;
    position: relative;
}

/* Accent line at top of stats bar */
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-accent), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    position: relative;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1rem;
    color: #94a3b8;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 18px;
}
.about-eyebrow::before,
.about-eyebrow::after {
    content: '';
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary));
}
.about-eyebrow::after {
    background: linear-gradient(90deg, var(--color-secondary), transparent);
}

.about-head h2 {
    font-size: 2.6rem;
    color: var(--color-primary);
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.about-head h3 {
    font-size: 1.3rem;
    color: var(--color-secondary);
    font-weight: 600;
    line-height: 1.55;
}

.about-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.about-text p {
    color: #475569;
    font-size: 1.06rem;
    line-height: 1.95;
    margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--color-text-dark); font-weight: 600; }
.about-text .hl { color: var(--color-secondary-hover); font-weight: 500; }

.about-card {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #eef4f9 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 32px 30px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
}
.about-card h4 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 22px;
    font-weight: 600;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--color-text-dark);
    line-height: 1.5;
    font-weight: 400;
}
.about-list li svg {
    flex-shrink: 0;
    color: var(--color-secondary);
    margin-top: 1px;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px dashed #cbd5e1;
}
.about-badge .num {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}
.about-badge .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

@media (max-width: 992px) {
    .about-body { grid-template-columns: 1fr; gap: 30px; }
    .about-head h2 { font-size: 2.1rem; }
    .about-head h3 { font-size: 1.15rem; }
}

/* ==========================================
   APPLICATIONS OVERVIEW
   ========================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.app-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.4);
}
.app-card:hover::before { transform: scaleX(1); }
.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(6, 182, 212, 0.1));
    color: var(--color-secondary);
    transition: transform 0.35s ease;
}
.app-card:hover .app-icon { transform: scale(1.08) rotate(-4deg); }
.app-card h3 {
    font-size: 1.16rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}
.app-card p {
    font-size: 0.94rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.app-icon.ic-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.1)); color: var(--color-accent); }
.app-icon.ic-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)); color: #16a34a; }
.app-icon.ic-cyan  { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.1)); color: #0891b2; }

@media (max-width: 992px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .apps-grid { grid-template-columns: 1fr; } }

/* ==========================================
   PANORAMIC SHOWCASE IMAGE
   ========================================== */
.showcase-panorama {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: #0f172a;
}
.showcase-panorama__media {
    position: relative;
    overflow: hidden;
}
.showcase-panorama__media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-panorama:hover .showcase-panorama__media img { transform: scale(1.045); }
.showcase-panorama__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.5));
    pointer-events: none;
}
.showcase-panorama__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(11, 15, 25, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.showcase-panorama__badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}
.showcase-panorama__caption {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0b1220 100%);
    padding: 18px 24px;
    color: #e2e8f0;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}
.showcase-panorama__caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-accent), transparent);
}
.showcase-panorama__caption svg { color: var(--color-accent); flex-shrink: 0; }

@media (max-width: 576px) {
    .showcase-panorama__caption { font-size: 0.85rem; padding: 14px 16px; }
    .showcase-panorama__media img { max-height: 260px; }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll-triggered reveal animation for sections */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 8px;
    }

    .hero-image-card { margin: 0 auto; max-width: 440px; }

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

    .hero-title-break { display: none; }

    .hero-scroll { display: none; }
    
    .services-split {
        grid-template-columns: 1fr;
    }
    
    .calculator-panel {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-primary);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        padding-top: 40px;
        gap: 24px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .technique-grid {
        grid-template-columns: 1fr;
    }
}
