/* ========================================
   K-MKT.COM - กาญจน์ตลาด
   Custom Styles + GSAP Animation Support
   ======================================== */

/* ---- CSS Variables — Light Theme ---- */
:root {
  --navy: #0B1F3A;
  --navy-light: #1E3A5F;
  --gold: #C9A227;
  --gold-light: #E8C547;
  --white: #FFFFFF;
  --blue: #3B82F6;
  --dark: #111827;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-soft: #F1F5F9;
  --bg-warm: #FFFBF5;
  --bg-navy-tint: #EFF6FF;
  --text: #111827;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(201, 162, 39, 0.28);
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --card-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.12);
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --font-th: 'Sarabun', 'Prompt', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 8px 32px rgba(201, 162, 39, 0.18);
  --shadow-blue: 0 8px 32px rgba(59, 130, 246, 0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-th);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

body.lenis { height: auto; }

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

a { text-decoration: none; color: inherit; }

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loading-logo {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  opacity: 0;
}

.loading-bar-wrap {
  width: 240px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 999px;
  transition: width 0.05s linear;
}

.loading-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- Custom Cursor ---- */
#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

#cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,175,55,0.6);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.15s ease;
}

body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot { transform: translate(-50%,-50%) scale(2.5); }

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  z-index: 9997;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

/* ---- Sticky Header ---- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

#main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* ---- Mobile Menu ---- */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover { color: var(--gold); }

/* ---- Hamburger ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

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

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Floating Contact Bar ---- */
#floating-bar {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.float-btn:hover { transform: scale(1.15) translateX(-4px); }

.float-btn .tooltip {
  position: absolute;
  right: 64px;
  background: var(--navy);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(212,175,55,0.2);
}

.float-btn:hover .tooltip { opacity: 1; }

.float-phone { background: linear-gradient(135deg, #0B1F3A, #1a3a6b); border: 2px solid var(--gold); }
.float-line { background: #06C755; }
.float-fb { background: #1877F2; }
.float-msg { background: #0084ff; }

/* ---- Section Base ---- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

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

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

/* ---- Section Tags ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---- Typography ---- */
.headline-xl {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.headline-md {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
}

.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-body { color: var(--text); line-height: 1.8; opacity: 0.85; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8960c);
  color: var(--dark);
}

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

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border-gold);
  box-shadow: var(--card-shadow);
}

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

.btn-blue {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: white;
}

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

/* Magnetic Button */
.magnetic { display: inline-block; }

/* ---- Hero Section ---- */
#hero {
  min-height: 100vh;
  background: var(--bg-warm);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: var(--card-shadow);
}

.stat-item {
  background: var(--white);
  padding: 24px;
  text-align: center;
  transition: background 0.3s ease;
}

.stat-item:hover { background: var(--bg-warm); }

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Cards ---- */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  color: var(--text);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--shadow-gold);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(59,130,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(212,175,55,0.2);
}

/* ---- Industry Cards ---- */
.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.industry-card:hover {
  border-color: rgba(212,175,55,0.25);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.industry-card:hover::after { transform: scaleX(1); }

.industry-icon { font-size: 3rem; margin-bottom: 16px; }

/* ---- AI Node Diagram ---- */
.ai-ecosystem {
  background: rgba(11,31,58,0.6);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.ai-center-node {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  box-shadow: 0 0 40px rgba(212,175,55,0.4), 0 0 80px rgba(59,130,246,0.2);
  animation: pulse-node 3s infinite;
}

@keyframes pulse-node {
  0%, 100% { box-shadow: 0 0 40px rgba(212,175,55,0.4), 0 0 80px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 60px rgba(212,175,55,0.6), 0 0 100px rgba(59,130,246,0.3); }
}

.ai-node {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
}

.ai-node:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
  transform: scale(1.05);
}

/* ---- Horizontal Scroll ---- */
.h-scroll-container {
  overflow: hidden;
  position: relative;
}

.h-scroll-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.case-card {
  flex-shrink: 0;
  width: 360px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.case-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

/* ---- Counter Section ---- */
.counter-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

/* ---- Kanchanaburi Map Cards ---- */
.zone-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.zone-card:hover {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.03);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.zone-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.zone-card:hover .zone-info {
  max-height: 200px;
  opacity: 1;
}

/* ---- Audit Form ---- */
.audit-form {
  background: rgba(11,31,58,0.8);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 24px;
  padding: 48px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 20px;
  color: white;
  font-family: var(--font-th);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.form-input::placeholder { color: rgba(255,255,255,0.35); }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}

.faq-item.open { border-color: rgba(212,175,55,0.25); }

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(255,255,255,0.01);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 0.9rem;
}

.faq-icon { transition: transform 0.3s ease; font-size: 1.2rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--dark);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}

/* ---- Blog Cards ---- */
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.blog-img-wrap {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-category {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Footer ---- */
#main-footer {
  background: #060F1C;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 32px;
}

.footer-logo { font-size: 2rem; font-weight: 800; color: var(--gold); }
.footer-link { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.3s ease; display: block; margin-bottom: 12px; }
.footer-link:hover { color: var(--gold); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 40px 0 24px; }

/* ---- Score Bars ---- */
.score-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--white); }

/* ---- Page Hero (Inner Pages) ---- */
.page-hero {
  padding: 160px 0 100px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ---- Reveal Animations (init state) ---- */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* Fallback: แสดงเนื้อหาเสมอถ้า JS ไม่ทำงาน */
.no-js .reveal-up, .no-js .reveal-scale,
.no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }

.service-card,
.industry-card,
.blog-card,
.zone-card,
.highlight-box {
  opacity: 1;
}

.service-card h3,
.industry-card h3,
.zone-card h3,
.faq-question,
.headline-lg,
.headline-md,
.headline-xl {
  color: var(--navy);
}

.highlight-box > div:not(.counter-value) {
  color: var(--text-muted) !important;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---- Floating AI Elements ---- */
.float-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11,31,58,0.9);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  animation: float-tag 4s ease-in-out infinite;
}

@keyframes float-tag {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-ai-tag:nth-child(2) { animation-delay: 0.8s; }
.float-ai-tag:nth-child(3) { animation-delay: 1.6s; }
.float-ai-tag:nth-child(4) { animation-delay: 2.4s; }

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* ---- Divider ---- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  margin: 20px 0;
}

/* ---- Highlight Box ---- */
.highlight-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(59,130,246,0.05));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  padding: 32px;
}

/* ---- Table styles ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.data-table th {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.data-table tr:hover td { background: var(--bg-warm); }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 0.7; }
}

/* ---- Badge / Tag Chips ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.chip-gold {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.25);
  color: var(--gold);
}

/* ---- Process Steps ---- */
.process-step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.process-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .ai-ecosystem { padding: 32px 20px; }
  .audit-form { padding: 28px 20px; }
  .case-card { width: 300px; }
  .hero-orb-1, .hero-orb-2 { display: none; }
  .nav-desktop { display: none !important; }
  #cursor-glow, #cursor-dot, #cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .grid-6 { grid-template-columns: 1fr 1fr; }
  .headline-xl { font-size: 1.9rem; }
  .counter-value { font-size: 2.2rem; }
  #floating-bar { bottom: 16px; right: 12px; }
  .float-btn { width: 46px; height: 46px; font-size: 1.1rem; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ---- SVG Lines for AI Nodes ---- */
.ai-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
  height: 1px;
  animation: ai-line-pulse 3s ease-in-out infinite;
}

@keyframes ai-line-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ---- Typewriter ---- */
.typewriter::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--gold);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- Success Toast ---- */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #0d2b12, #134e1a);
  border: 1px solid rgba(34,197,94,0.3);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  text-align: center;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   LIGHT THEME — Sections & Visual Layout
   ======================================== */

.section-light { background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-navy-tint { background: var(--bg-navy-tint); }

.page-hero {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-navy-tint) 50%, var(--bg-alt) 100%);
}

.page-hero::before {
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,251,245,0.94) 0%, rgba(255,255,255,0.82) 45%, rgba(239,246,255,0.75) 100%);
  z-index: 0;
}

#hero .hero-char { color: var(--navy); }
#hero .hero-sub { color: var(--text-muted) !important; }

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

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.visual-strip-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}

.visual-strip-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.visual-strip-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.visual-strip-item span {
  display: block;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.service-card.has-img { padding: 0; overflow: hidden; }
.service-card.has-img .card-body { padding: 24px 32px 32px; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.contact-card:hover {
  border-color: rgba(212,175,55,0.3);
  box-shadow: var(--card-shadow-hover);
}

.case-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--card-shadow);
}

.case-feature .case-content {
  padding: 48px;
  border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
  .case-feature .case-content {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.industry-card .industry-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.industry-card .industry-body {
  padding: 20px 24px 28px;
}

.industry-card p { color: var(--text-muted) !important; }

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

.split-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

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

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

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

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

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(11,31,58,0.75));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-ecosystem {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.ai-node {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.highlight-box {
  background: var(--white);
  border: 1px solid var(--border-gold);
  box-shadow: var(--card-shadow);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.zone-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.zone-card p { color: var(--text-muted) !important; }

.audit-form {
  background: var(--white);
  border: 1px solid var(--border-gold);
  box-shadow: var(--card-shadow-hover);
}

.form-input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-input:focus {
  background: var(--white);
  border-color: var(--gold);
}

.form-label { color: var(--text-muted); }

.form-input option {
  background: var(--white);
  color: var(--text);
}

.breadcrumb { color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--navy); font-weight: 600; }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.blog-img-wrap { height: 200px; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
}

.faq-question {
  background: var(--bg-alt);
  color: var(--text);
}

.faq-answer-inner { color: var(--text-muted); }

.float-ai-tag {
  background: var(--white);
  border: 1px solid var(--border-gold);
  color: var(--navy);
  box-shadow: var(--card-shadow);
}

#main-footer {
  background: var(--navy);
  color: var(--white);
}

#cursor-dot { mix-blend-mode: normal; background: var(--gold); }
#cursor-glow { background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%); }

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .visual-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .split-visual { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .visual-strip { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
