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

:root {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: dark;
  background-color: #0a0a0a;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
}

/* ── CUSTOM CLASSES ─────────────────────────────────── */

.font-kanit {
  font-family: "Kanit", sans-serif;
}

/* ── HERO SERVICE BEAM ───────────────────────────────── */

@keyframes beam-pulse {
  0%, 100% { opacity: 0.12; transform: scaleX(0.4); }
  50%       { opacity: 0.55; transform: scaleX(1); }
}

.hero-beam {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #fff;
  flex-shrink: 0;
  transform-origin: left center;
  animation: beam-pulse 3s ease-in-out infinite;
}

/* ── HERO ENTRANCE ANIMATIONS ───────────────────────── */

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-animate-1 { animation-delay: 0.06s; }
.hero-animate-2 { animation-delay: 0.22s; }
.hero-animate-3 { animation-delay: 0.38s; }
.hero-animate-4 { animation-delay: 0.52s; }

/* ── SECTION TRANSITION (dark → light) ──────────────── */

.section-light {
  background: #f2f2f2;
  color: #0a0a0a;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 2;
}

.section-light + .section-dark {
  border-radius: 0;
}

.section-dark {
  background: #0a0a0a;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ── PROCESS STEP ARROW ──────────────────────────────── */

@keyframes connector-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(-50%) translateX(0px); }
  50%       { opacity: 0.55; transform: translateY(-50%) translateX(2px); }
}

.process-step-arrow {
  animation: connector-pulse 2.6s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.35);
}

/* ── TESTIMONIALS ────────────────────────────────────── */

.testimonial-card {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.38s ease;
}

@media (min-width: 768px) {
  .testimonial-card:nth-child(2) { transform: translateY(-10px); }

  .testimonial-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  }
}

/* ── CONTACT ROW ────────────────────────────────────── */

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s;
}

.contact-row:hover {
  opacity: 0.65;
}

/* ── CTA LINK STYLE ─────────────────────────────────── */

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.25rem;
  transition: opacity 0.2s;
}

.cta-link:hover {
  opacity: 0.6;
}

/* ── MODAL ───────────────────────────────────────────── */

#contact-modal {
  display: none;
}

#contact-modal.open {
  display: flex;
}

/* ── DIAGNOSTIC MODAL ────────────────────────────────── */

#diagnostic-modal {
  display: none;
}

#diagnostic-modal.open {
  display: flex;
  animation: diag-fade-in 0.25s ease both;
}

@keyframes diag-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.diag-step {
  display: none;
}

.diag-step.active {
  display: block;
  animation: diag-step-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes diag-step-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.diag-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}

.diag-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.diag-option.selected {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.diag-opt-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
}

.diag-option.selected .diag-opt-num {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.diag-opt-indicator {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.18s, background 0.18s;
}

.diag-opt-checkbox-indicator {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diag-option.selected .diag-opt-indicator {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.diag-option.selected .diag-opt-checkbox-indicator::after {
  content: '';
  display: block;
  width: 5px;
  height: 8px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.diag-input:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

@keyframes diag-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

.diag-shake {
  animation: diag-shake 0.35s ease;
}

/* ── NAVBAR SCROLL STATE ────────────────────────────── */

#navbar {
  transition: background 0.3s, backdrop-filter 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
