/* ============================================================
   JT SURVEY — Shared Stylesheet
   Used by index.html + all detail pages
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --primary: #0A2540;
    --primary-deep: #051A2E;
    --secondary: #0066CC;
    --secondary-dark: #0052A3;
    --accent: #00D4B2;
    --accent-glow: rgba(0, 212, 178, 0.35);
    --bg-light: #F4F7FB;
    --bg-white: #FFFFFF;
    --bg-soft: #EDF2F8;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --border: rgba(10, 37, 64, 0.08);

    --shadow-xs: 0 1px 3px rgba(10, 37, 64, 0.05);
    --shadow-sm: 0 4px 12px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 12px 28px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 24px 50px rgba(10, 37, 64, 0.13);
    --shadow-xl: 0 40px 80px rgba(10, 37, 64, 0.18);
    --shadow-glow: 0 8px 32px rgba(0, 102, 204, 0.3);

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease);
    --container: 1240px;
}

body.dark-theme {
    --bg-light: #0A1424;
    --bg-white: #111E33;
    --bg-soft: #0E1A2E;
    --text-dark: #E8EEF5;
    --text-muted: #94A8C2;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 90px; }
body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--primary); line-height: 1.25; letter-spacing: -0.01em; }
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4 { color: var(--text-light); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
::selection { background-color: var(--secondary); color: #fff; }

/* ---------- CONTAINER ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(1.25rem, 4vw); }

/* ---------- EYEBROW LABEL ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500;
    color: var(--secondary); text-transform: uppercase; letter-spacing: 0.12em;
    background: rgba(0, 102, 204, 0.08); padding: 7px 14px; border-radius: 100px;
    margin-bottom: 18px; border: 1px solid rgba(0, 102, 204, 0.12);
}
body.dark-theme .eyebrow { background: rgba(0, 212, 178, 0.1); color: var(--accent); border-color: rgba(0, 212, 178, 0.2); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- ANIMATIONS ---------- */
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* ============================================================
   HEADER — Glassmorphism Nav
   ============================================================ */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    transition: var(--transition);
}
body.dark-theme header { background: rgba(11, 20, 36, 0.78); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
header.shrink { background: var(--bg-white); box-shadow: var(--shadow-sm); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: clamp(0.7rem, 1.8vw, 1.1rem) 0; }

.brand { display: flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 0.9rem); min-width: 0; }
.logo-img { height: clamp(36px, 5vw, 46px); width: auto; object-fit: contain; flex-shrink: 0; transition: var(--transition); }
header.shrink .logo-img { height: clamp(32px, 4vw, 40px); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.15; color: var(--primary); white-space: nowrap; }
body.dark-theme .brand-name { color: var(--text-light); }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: clamp(0.58rem, 0.8vw, 0.66rem); color: var(--text-muted); letter-spacing: 0.06em; white-space: nowrap; }

.nav-right { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1rem); }
.nav-menu { display: flex; gap: clamp(0.6rem, 1.8vw, 1.6rem); align-items: center; }
.nav-item { font-size: 0.94rem; font-weight: 500; color: var(--text-dark); position: relative; padding: 6px 2px; }
.nav-item:hover, .nav-item.active { color: var(--secondary); }
.nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--secondary), var(--accent)); border-radius: 2px; transition: width 0.3s var(--ease); }
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

.nav-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--secondary); color: #fff !important; padding: 9px 18px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 102, 204, 0.28); }
.nav-cta:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4); }

.icon-btn {
    background: rgba(10, 37, 64, 0.05); border: none; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); font-size: 1.05rem; flex-shrink: 0; transition: var(--transition);
}
body.dark-theme .icon-btn { background: rgba(255, 255, 255, 0.08); }
.icon-btn:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
body.dark-theme .icon-btn .fa-moon { color: #FFD166; }
.nav-toggle { display: none; }

/* ============================================================
   HERO (homepage) — Immersive Surveyor HUD
   ============================================================ */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 102, 204, 0.25), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 212, 178, 0.18), transparent 50%),
        linear-gradient(160deg, #0A2540 0%, #051A2E 60%, #020C18 100%);
    color: var(--text-light);
    padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}
#lidar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: auto; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(0, 212, 178, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 178, 0.04) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }

.hero-content { max-width: 640px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(0, 212, 178, 0.12); border: 1px solid rgba(0, 212, 178, 0.3);
    padding: 7px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 500;
    margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2s infinite; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.3rem); font-weight: 600; line-height: 1.18; margin-bottom: 22px; word-break: keep-all; }
.hero h1 .highlight { background: linear-gradient(120deg, var(--accent), #4FE0C8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.hero p { font-size: clamp(1rem, 1.3vw, 1.13rem); color: rgba(255, 255, 255, 0.78); font-weight: 300; margin-bottom: 34px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero HUD Card */
.hero-visual { position: relative; }
.hero-hud {
    position: relative; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(11, 25, 45, 0.7), rgba(5, 12, 24, 0.85));
    border: 1px solid rgba(0, 212, 178, 0.18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    isolation: isolate;
}
.hero-hud::before {
    content: ''; position: absolute; inset: -50%; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent 60%);
    opacity: 0.25; animation: spin-slow 8s linear infinite; z-index: -1;
}
.hud-corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); opacity: 0.7; }
.hud-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed rgba(0, 212, 178, 0.2); }
.hud-title { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.hud-live { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.hud-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10E0A0; box-shadow: 0 0 8px #10E0A0; animation: blink 1.5s infinite; }

.coord-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.coord-row:last-of-type { border-bottom: none; }
.coord-label { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.coord-val { font-family: 'JetBrains Mono', monospace; font-size: 0.86rem; color: #fff; font-weight: 500; }
.coord-val .unit { color: var(--accent); font-size: 0.72rem; }

.hud-accuracy { margin-top: 18px; }
.hud-bar-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.hud-bar-head span:first-child { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.hud-bar-head span:last-child { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent); }
.hud-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.hud-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); border-radius: 100px; transition: width 1.8s var(--ease); box-shadow: 0 0 12px var(--accent-glow); }

/* Trust strip */
.trust-strip { position: relative; z-index: 3; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid rgba(255,255,255,0.1); }
.trust-label { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; text-align: center; }
.trust-logos { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.trust-item:hover { color: #fff; }
.trust-item i { color: var(--accent); font-size: 1.1rem; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 28px; border-radius: 100px; font-family: 'Kanit', sans-serif;
    font-size: 0.96rem; font-weight: 500; cursor: pointer; transition: var(--transition);
    position: relative; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--secondary), var(--secondary-dark)); color: #fff; border: none; box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35); }
.btn-primary::before { content: ''; position: absolute; inset: 0; border-radius: 100px; padding: 2px; background: linear-gradient(120deg, var(--accent), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 102, 204, 0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-3px); }
.btn-dark { background: var(--primary); color: #fff; border: none; box-shadow: 0 8px 24px rgba(10,37,64,0.3); }
.btn-dark:hover { background: var(--primary-deep); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10,37,64,0.45); }
.btn-light { background: var(--bg-white); color: var(--primary); border: 1px solid var(--border); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* ============================================================
   SECTION ENGINE
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-white { background: var(--bg-white); }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: clamp(0.98rem, 1.2vw, 1.08rem); }

/* ============================================================
   SERVICES — Numbered cards
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.service-card {
    position: relative; background: var(--bg-white);
    padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-xs); transition: var(--transition);
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-num { position: absolute; top: 18px; right: 22px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); opacity: 0.5; }
.service-icon {
    width: 60px; height: 60px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0,102,204,0.1), rgba(0,212,178,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--secondary); margin-bottom: 20px; transition: var(--transition);
}
body.dark-theme .service-icon { background: rgba(0, 212, 178, 0.12); color: var(--accent); }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; flex-grow: 1; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: 'Kanit', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--secondary); }
body.dark-theme .service-link { color: var(--accent); }
.service-card:hover .service-link { gap: 11px; }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
    position: relative; background: linear-gradient(135deg, #0A2540 0%, #051A2E 100%);
    color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; overflow: hidden;
}
.stats-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,212,178,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,178,0.05) 1px, transparent 1px);
    background-size: 50px 50px; mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.stat-item { padding: clamp(1rem, 2vw, 1.5rem); }
.stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.08); }
.stat-num { font-family: 'Kanit', sans-serif; font-size: clamp(2.4rem, 4.5vw, 3.2rem); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; text-shadow: 0 0 24px var(--accent-glow); }
.stat-item p { opacity: 0.75; font-size: 0.92rem; }

/* ============================================================
   PROCESS / WORKFLOW
   ============================================================ */
.process-wrap { position: relative; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2rem); position: relative; }
.process-step {
    position: relative; background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-xs); transition: var(--transition);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,212,178,0.2); }
.process-num {
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 500;
    color: var(--accent); background: rgba(0, 212, 178, 0.1); width: 36px; height: 36px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; border: 1px solid rgba(0,212,178,0.2);
}
.process-step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }
.process-step i.step-icon { color: var(--secondary); font-size: 1.4rem; margin-bottom: 14px; }

/* ============================================================
   PORTFOLIO — Overlay cards
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.portfolio-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    cursor: pointer; transition: var(--transition); height: 380px;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-img { position: absolute; inset: 0; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.portfolio-card:hover .portfolio-img img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute; inset: 0; padding: clamp(1.5rem, 3vw, 2rem);
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 12, 24, 0.55) 60%, rgba(5, 12, 24, 0.95) 100%);
    color: #fff;
}
.portfolio-tag { align-self: flex-start; background: rgba(0, 212, 178, 0.2); border: 1px solid rgba(0, 212, 178, 0.4); color: var(--accent); padding: 5px 12px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500; margin-bottom: 12px; backdrop-filter: blur(6px); }
.portfolio-card h3 { color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin-bottom: 8px; }
.portfolio-card p { color: rgba(255,255,255,0.8); font-size: 0.88rem; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.portfolio-card:hover p { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT / WHY CHOOSE US
   ============================================================ */
.about-split { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.about-visual { position: relative; }
.about-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-img-wrap:hover img { transform: scale(1.05); }
.about-img-wrap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,12,24,0.4)); z-index: 1; pointer-events: none; }
.about-badge {
    position: absolute; bottom: -22px; right: -10px; z-index: 2;
    background: var(--bg-white); border-radius: var(--radius);
    padding: 18px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px; max-width: 230px;
}
.about-badge .badge-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--secondary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.about-badge h4 { font-size: 1.1rem; margin-bottom: 0; }
.about-badge p { font-size: 0.78rem; color: var(--text-muted); }

.about-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.about-content > p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .f-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(0, 102, 204, 0.08); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
body.dark-theme .feature-item .f-icon { background: rgba(0, 212, 178, 0.12); color: var(--accent); }
.feature-item h4 { font-size: 1rem; margin-bottom: 3px; }
.feature-item p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.testi-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.2rem); box-shadow: var(--shadow-xs); transition: var(--transition); position: relative; }
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi-quote-mark { font-size: 3rem; line-height: 1; color: var(--secondary); opacity: 0.15; font-family: Georgia, serif; position: absolute; top: 12px; right: 22px; }
body.dark-theme .testi-quote-mark { color: var(--accent); }
.testi-stars { color: #FFB020; margin-bottom: 14px; font-size: 0.85rem; letter-spacing: 2px; }
.testi-text { color: var(--text-dark); font-size: 0.96rem; line-height: 1.7; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.testi-author h4 { font-size: 0.98rem; margin-bottom: 0; }
.testi-author p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-max { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-xs); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: rgba(0, 102, 204, 0.2); }
body.dark-theme .faq-item:hover { border-color: rgba(0, 212, 178, 0.25); }
.faq-trigger { width: 100%; text-align: left; padding: clamp(1.1rem, 2.2vw, 1.4rem) clamp(1.25rem, 2.5vw, 1.6rem); background: none; border: none; font-family: 'Kanit', sans-serif; font-size: clamp(0.98rem, 1.3vw, 1.08rem); font-weight: 500; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.faq-trigger .q-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(0, 102, 204, 0.08); color: var(--secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; transition: var(--transition); }
body.dark-theme .faq-trigger .q-icon { background: rgba(0, 212, 178, 0.12); color: var(--accent); }
.faq-item.faq-open .q-icon { transform: rotate(135deg); background: var(--secondary); color: #fff; }
body.dark-theme .faq-item.faq-open .q-icon { background: var(--accent); color: var(--primary); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-content p { padding: 0 clamp(1.25rem, 2.5vw, 1.6rem) clamp(1.1rem, 2.2vw, 1.4rem); color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-split { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2rem); }
.contact-info {
    background: linear-gradient(160deg, #0A2540 0%, #051A2E 100%);
    color: #fff; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
}
.contact-info::before { content: ''; position: absolute; top: -50%; right: -30%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none; }
.contact-info h3 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 8px; position: relative; }
.contact-info > p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 0.95rem; position: relative; }
.contact-method { display: flex; gap: 16px; margin-bottom: 22px; position: relative; }
.contact-method .cm-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 212, 178, 0.15); border: 1px solid rgba(0, 212, 178, 0.25); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-method .cm-text { font-size: 0.92rem; }
.contact-method .cm-text strong { display: block; color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 500; margin-bottom: 2px; }
.contact-method .cm-text a, .contact-method .cm-text span { color: #fff; }
.contact-method .cm-text a:hover { color: var(--accent); }

.contact-socials { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; }
.social-btn { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.social-btn:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); border-color: var(--accent); }

.contact-form { background: var(--bg-white); padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 0.88rem; color: var(--text-dark); }
.form-input, .form-input select, .form-input textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: 'Sarabun', sans-serif; font-size: 0.95rem; background: var(--bg-soft); color: var(--text-dark);
    transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--secondary); background: var(--bg-white); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.btn-submit { width: 100%; background: linear-gradient(120deg, var(--secondary), var(--secondary-dark)); color: #fff; border: none; padding: 16px; border-radius: var(--radius-sm); font-family: 'Kanit', sans-serif; font-size: 1.05rem; font-weight: 500; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3); transition: var(--transition); margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 102, 204, 0.45); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #04101F; color: rgba(255,255,255,0.6); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 11px; margin-bottom: 14px; font-size: 0.88rem; align-items: flex-start; }
.footer-contact-item i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 26px; font-size: 0.84rem; }

/* ---------- FLOATING BUTTONS ---------- */
.float-btns { position: fixed; bottom: 24px; right: 24px; z-index: 99; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; box-shadow: var(--shadow-md); transition: var(--transition); position: relative; }
.float-btn.wa { background: #25D366; }
.float-btn.wa:hover { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.2); }
.float-btn.line { background: #06C755; }
.float-btn.line:hover { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(6, 199, 85, 0.2); }
.btn-top { background: var(--secondary); opacity: 0; visibility: hidden; }
.btn-top.active { opacity: 1; visibility: visible; }
.btn-top:hover { background: var(--secondary-dark); transform: translateY(-3px); }
.float-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; animation: pulse-ring 2s infinite ease-out; opacity: 0; }
.float-btn.wa::before, .float-btn.line::before { opacity: 1; }

/* ---------- TOAST ---------- */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--primary); color: #fff; padding: 16px 26px; border-radius: 100px; box-shadow: var(--shadow-lg); z-index: 3000; display: flex; align-items: center; gap: 11px; font-size: 0.94rem; font-weight: 500; transition: transform 0.5s var(--ease); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--accent); font-size: 1.2rem; }

/* ---------- MOBILE MENU OVERLAY ---------- */
.menu-overlay { position: fixed; inset: 0; background: rgba(5, 12, 24, 0.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; }
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
    .about-split { grid-template-columns: 1fr 1fr; }
    .contact-split { grid-template-columns: 0.9fr 1.1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
@media (min-width: 992px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
    .nav-cta { display: none; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-menu {
        position: fixed; top: 0; right: 0; width: min(300px, 85vw); height: 100vh;
        background: var(--bg-white); flex-direction: column; align-items: stretch;
        padding: 90px 26px 30px; gap: 6px; box-shadow: -16px 0 50px rgba(0,0,0,0.18);
        transform: translateX(105%); transition: transform 0.45s var(--ease);
        z-index: 1100; overflow-y: auto;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-item { font-size: 1.05rem; padding: 13px 14px; border-radius: var(--radius-sm); }
    .nav-item:hover, .nav-item.active { background: rgba(0, 102, 204, 0.07); }
    .nav-item::after { display: none; }
    .nav-cta { display: inline-flex; margin-top: 12px; justify-content: center; }
    .menu-close { position: absolute; top: 22px; right: 22px; background: rgba(10,37,64,0.06); width: 40px; height: 40px; border-radius: 50%; border: none; color: var(--text-dark); font-size: 1.2rem; cursor: pointer; }
    body.dark-theme .menu-close { background: rgba(255,255,255,0.08); }
    header.shrink .brand-sub { display: none; }
}
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-btns .btn { width: 100%; }
    .float-btns { bottom: 18px; right: 18px; }
    .stat-item:not(:last-child) { border-right: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
