:root {
  /* Color system — Aqua Biomimetic Fluid */
  --color-bg-deep: #030B1A;
  --color-bg-mid: #071428;
  --color-bg-card: #0C1E3A;
  --color-primary: #00E5FF;
  --color-primary-glow: #00BCD4;
  --color-secondary: #06D6A0;
  --color-accent: #7B61FF;
  --color-text: #F0F6FF;
  --color-text-secondary: #8BA4C4;
  --color-text-muted: #506882;
  --color-border: #1A3352;
  --color-wa: #25D366;
  --color-danger: #ef4444;

  /* Typography */
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding-y: 100px;
  --section-padding-y-mobile: 56px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --stagger-base: 600ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--color-bg-deep);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ============ NOISE GRAIN OVERLAY ============ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ WAVE DIVIDERS ============ */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  z-index: 2;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
.wave-divider path {
  transition: d 1.5s var(--ease-out-expo);
}

.wave-2-over {
  margin-top: 0;
  margin-bottom: -2px;
  position: relative;
  z-index: 3;
}
.wave-2-over svg { height: 70px; }
.wave-3 path { fill: var(--color-bg-mid); }
.wave-4 path { fill: var(--color-bg-deep); }
.wave-5 path { fill: var(--color-bg-mid); }
.wave-6-over {
  margin-top: 0;
  margin-bottom: -2px;
  position: relative;
  z-index: 3;
}
.wave-6-over svg { height: 70px; }

/* ============ BACKGROUND ORBS ============ */
.bg-orb {
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.bg-orb-hero {
  width: min(700px, 80vw);
  height: auto;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  opacity: 0.85;
  animation: orbFloat 16s ease-in-out infinite;
}
.bg-orb-hero-left {
  display: none;
  width: min(500px, 50vw);
  height: auto;
  bottom: 5%;
  left: 0%;
  top: auto;
  opacity: 0.65;
  animation: orbDrift 22s ease-in-out infinite;
}
@media (min-width: 769px) {
  .bg-orb-hero-left { display: block; }
}
.bg-orb-services-tl {
  width: min(500px, 45vw);
  height: auto;
  top: 0%;
  left: 12%;
  opacity: 0.55;
  animation: orbDrift 20s ease-in-out infinite reverse;
}
.bg-orb-services-br {
  width: min(350px, 45vw);
  height: auto;
  bottom: 5%;
  right: 10%;
  top: auto;
  opacity: 0.55;
  animation: orbDrift 22s ease-in-out infinite;
}
.bg-orb-contact {
  width: min(450px, 55vw);
  height: auto;
  bottom: -15%;
  right: -4%;
  opacity: 0.7;
  animation: orbDrift 18s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  33% { transform: translateY(-53%) rotate(3deg) scale(1.03); }
  66% { transform: translateY(-47%) rotate(-2deg) scale(0.97); }
}
@keyframes orbDrift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: translate(10px, -15px) rotate(3deg) scale(1.03); }
  66% { transform: translate(-8px, 10px) rotate(-2deg) scale(0.97); }
}
@media (max-width: 768px) {
  .bg-orb-hero {
    width: min(400px, 90vw);
    right: -15%;
    opacity: 0.6;
  }
  .bg-orb-services-tl,
  .bg-orb-services-br {
    width: min(250px, 60vw);
    opacity: 0.35;
  }
  .bg-orb-contact {
    width: min(280px, 65vw);
    opacity: 0.5;
  }
}

/* ============ FLOATING BLOBS ============ */
.floating-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: blobFloat 20s var(--ease-out-expo) infinite, blobFadeIn 2s ease forwards;
}
.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%);
  top: 10%; left: -5%;
  animation-duration: 22s;
  animation-delay: 0s;
}
.blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,214,160,0.10), transparent 70%);
  top: 30%; right: -8%;
  animation-duration: 18s;
  animation-delay: 0.5s;
}
.blob-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(123,97,255,0.08), transparent 70%);
  bottom: 20%; left: 15%;
  animation-duration: 25s;
  animation-delay: 1s;
}
.blob-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%);
  top: 60%; right: 20%;
  animation-duration: 20s;
  animation-delay: 1.5s;
}
.blob-5 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6,214,160,0.06), transparent 70%);
  bottom: -5%; left: 40%;
  animation-duration: 28s;
  animation-delay: 0.8s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}
@keyframes blobFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ SCROLL REVEAL — VARIED DIRECTIONS ============ */
.reveal {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg) !important;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.85); }
.reveal-rotate { transform: translateY(30px) rotate(-3deg); }

/* ============ RIPPLE EFFECT ============ */
.ripple-container {
  position: relative;
  overflow: hidden;
}
.ripple-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(0,229,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: none;
  pointer-events: none;
  border-radius: inherit;
}
.ripple-container.rippling::after {
  animation: rippleOut 600ms var(--ease-out-expo) forwards;
}
@keyframes rippleOut {
  0% { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* ============ PREFERS 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 !important;
    transform: none !important;
    transition: none !important;
  }
  .blob { display: none; }
  html { scroll-behavior: auto; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  background: transparent;
  transition: background 300ms var(--ease-out-expo), backdrop-filter 300ms var(--ease-out-expo);
}
.navbar.scrolled {
  background: rgba(3, 11, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--color-text);
}
.nav-logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
  flex: 1; justify-content: center; align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
  transition: color 200ms var(--ease-out-expo);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: left 300ms var(--ease-out-expo), right 300ms var(--ease-out-expo);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { left: 0; right: 0; }

.lang-toggle {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 200ms var(--ease-out-expo), border-radius 500ms var(--ease-out-expo);
}
.lang-toggle:hover {
  background: rgba(0, 229, 255, 0.08);
  border-radius: 70% 30% 30% 70% / 40% 60% 40% 60%;
}

.nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: space-around; align-items: center;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform 250ms var(--ease-out-expo), opacity 250ms var(--ease-out-expo);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-inner > .lang-toggle { display: none; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: 80%; max-width: 320px; height: 100vh;
    background: var(--color-bg-deep);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out-expo);
    border-left: 1px solid var(--color-border);
    z-index: 100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-links .lang-toggle-mobile {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 50px;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(170deg,
    var(--color-bg-deep) 0%,
    #071428 30%,
    #0C2D5A 60%,
    #064E6E 82%,
    var(--color-bg-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center bottom,
    rgba(0, 229, 255, 0.2) 0%,
    rgba(6, 214, 160, 0.08) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-bg-glow::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 250px;
  background: radial-gradient(ellipse at center bottom,
    rgba(123, 97, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

/* Water drop — SVG-style with ripple rings */
.hero-drop {
  font-size: 60px; margin-bottom: 24px;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.5))
          drop-shadow(0 0 80px rgba(6, 214, 160, 0.2));
  position: relative;
  display: inline-block;
}
.hero-drop::before,
.hero-drop::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  animation: rippleRing 3s ease-out infinite;
}
.hero-drop::after { animation-delay: 1.5s; }
@keyframes rippleRing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-title em {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--color-primary);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 16px;
}
.hero-body {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* CTA button — blob pill with glow breathing */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3),
              0 0 60px rgba(6, 214, 160, 0.15);
  transition: transform 300ms var(--ease-spring), box-shadow 300ms var(--ease-out-expo);
  position: relative;
  animation: glowBreathe 3s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 40px rgba(0, 229, 255, 0.5),
              0 0 80px rgba(6, 214, 160, 0.25);
}
@keyframes glowBreathe {
  0%, 100% { box-shadow: 0 0 30px rgba(0,229,255,0.3), 0 0 60px rgba(6,214,160,0.15); }
  50% { box-shadow: 0 0 40px rgba(0,229,255,0.45), 0 0 80px rgba(6,214,160,0.25); }
}

.hero-subnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Hero stagger reveal — varied animations */
.hero-drop, .hero-eyebrow, .hero-title, .hero-tagline,
.hero-body, .btn-primary, .hero-subnote {
  opacity: 0;
}
.hero-drop { animation: heroFloat 5s var(--ease-out-expo) infinite, heroRevealScale 800ms var(--ease-spring) 100ms forwards; }
.hero-eyebrow { animation: heroRevealLetterSpace 700ms var(--ease-out-expo) 200ms forwards; }
.hero-title { animation: heroRevealClip 800ms var(--ease-out-expo) 350ms forwards; }
.hero-tagline { animation: heroRevealFade 700ms var(--ease-out-expo) 550ms forwards; }
.hero-body { animation: fadeUp 700ms var(--ease-out-expo) 700ms forwards; }
.btn-primary { animation: heroRevealSpring 600ms var(--ease-spring) 900ms forwards, glowBreathe 3s ease-in-out 1.5s infinite; }
.hero-subnote { animation: fadeUp 600ms var(--ease-out-expo) 1100ms forwards; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes heroRevealScale {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heroRevealLetterSpace {
  from { opacity: 0; letter-spacing: 1em; }
  to { opacity: 0.9; letter-spacing: 0.5em; }
}
@keyframes heroRevealClip {
  from { opacity: 0; clip-path: inset(100% 0 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes heroRevealFade {
  from { opacity: 0; }
  to { opacity: 0.85; }
}
@keyframes heroRevealSpring {
  from { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SHARED SECTION ============ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.section-title em {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.section-body {
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

/* ============ STORY ============ */
.story {
  background: var(--color-bg-mid);
  padding: var(--section-padding-y) 24px;
  position: relative;
}
.journey {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
  margin-top: 56px;
}
.journey-step {
  max-width: 200px;
  background: rgba(12, 30, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  padding: 32px 24px;
  transition: transform 400ms var(--ease-out-expo), border-color 400ms var(--ease-out-expo);
}
.journey-step:nth-child(3) {
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}
.journey-step:nth-child(5) {
  border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
}
.journey-step:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 214, 160, 0.3);
}
.journey-icon {
  font-size: 36px; margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}
.journey-step h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--color-text); margin-bottom: 8px;
}
.journey-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Journey arrows */
.journey-arrow {
  color: var(--color-primary);
  font-size: 24px;
  opacity: 0.4;
  display: flex;
  align-items: center;
}

/* Journey stagger — each item fades in from left, one by one */
.journey-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.journey-item.revealed {
  opacity: 1;
  transform: translateX(0);
}
.journey-item:nth-child(1) { transition-delay: 0ms; }
.journey-item:nth-child(2) { transition-delay: 400ms; }
.journey-item:nth-child(3) { transition-delay: 800ms; }
.journey-item:nth-child(4) { transition-delay: 1200ms; }
.journey-item:nth-child(5) { transition-delay: 1600ms; }

@media (max-width: 768px) {
  .story, .pain, .services, .portfolio, .faq, .contact {
    padding: var(--section-padding-y-mobile) 20px;
  }
  .journey { flex-direction: column; gap: 24px; }
  .journey-arrow { transform: rotate(90deg); }
  .journey-item { transform: translateY(-20px); }
  .journey-item.revealed { transform: translateY(0) rotate(0deg); }
  .journey-arrow.revealed { transform: rotate(90deg); }
}

/* ============ PAIN POINT ============ */
.pain {
  background: var(--color-bg-deep);
  padding: var(--section-padding-y) 24px;
  position: relative;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 48px auto 32px;
  text-align: left;
}
/* Pain cards — organic glassmorphism with 3D tilt */
.pain-card {
  background: rgba(12, 30, 58, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px 28px 28px 4px;
  padding: 28px 28px 28px 28px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform 400ms var(--ease-out-expo), box-shadow 400ms var(--ease-out-expo), border-color 400ms var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
}
.pain-card:hover {
  border-color: rgba(6, 214, 160, 0.4);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08),
              0 0 0 1px rgba(6, 214, 160, 0.1);
}
.pain-icon { font-size: 28px; flex-shrink: 0; }
.pain-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.pain-closing {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-secondary);
  font-style: italic;
  margin-top: 32px;
}

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

/* ============ SERVICES ============ */
.services {
  background: var(--color-bg-mid);
  padding: var(--section-padding-y) 24px;
  position: relative;
}
.services .section-body { margin-bottom: 56px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
  perspective: 1000px;
}
.service-card {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 400ms var(--ease-out-expo), box-shadow 400ms var(--ease-out-expo), border-color 400ms var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
/* Alternating organic border-radius */
.service-card:nth-child(1) { border-radius: 24px 48px 24px 48px; }
.service-card:nth-child(2) { border-radius: 48px 24px 48px 24px; }
.service-card:nth-child(3) { border-radius: 32px 40px 32px 40px; }

/* Service card top bar — flowing gradient */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
  background-size: 300% 100%;
  opacity: 0.6;
  transition: opacity 400ms var(--ease-out-expo);
  animation: gradientFlow 4s linear infinite;
}
@keyframes gradientFlow {
  to { background-position: -300% 0; }
}

/* Glossy light reflection overlay */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out-expo);
  border-radius: inherit;
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1),
              0 0 0 1px rgba(6, 214, 160, 0.08);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 80px; height: 80px;
  margin-bottom: 20px;
  position: relative;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.25));
  transition: filter 400ms var(--ease-out-expo), transform 400ms var(--ease-out-expo);
}
.service-card:hover .service-icon svg {
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4))
          drop-shadow(0 0 40px rgba(6, 214, 160, 0.15));
  transform: scale(1.08);
}
/* Glow ring behind icon */
.service-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out-expo);
}
.service-card:hover .service-icon::before { opacity: 1; }
.service-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}
.service-tagline {
  font-size: 13px;
  color: var(--color-secondary);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
}
.service-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.service-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.badge {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-yes {
  background: rgba(6, 214, 160, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(6, 214, 160, 0.25);
}
.badge-no {
  background: rgba(80, 104, 130, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(80, 104, 130, 0.2);
}
.service-warning {
  font-size: 12px;
  color: var(--color-danger);
  opacity: 0.85;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 12px;
}
.service-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: baseline; gap: 8px;
}
.service-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ============ PORTFOLIO ============ */
.portfolio {
  background: var(--color-bg-deep);
  padding: var(--section-padding-y) 24px;
  position: relative;
}
.portfolio-placeholder {
  background: rgba(12, 30, 58, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px dashed rgba(0, 229, 255, 0.15);
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  padding: 72px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-muted);
  position: relative;
  overflow: hidden;
  animation: blobMorph 8s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  33% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
  66% { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
}

/* Floating bubbles inside portfolio */
.portfolio-placeholder::before,
.portfolio-placeholder::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.06);
  animation: bubbleUp 6s ease-in-out infinite;
}
.portfolio-placeholder::before {
  width: 20px; height: 20px;
  bottom: 10%; left: 20%;
  animation-delay: 0s;
}
.portfolio-placeholder::after {
  width: 14px; height: 14px;
  bottom: 15%; right: 25%;
  animation-delay: 2s;
  background: rgba(6, 214, 160, 0.06);
}
@keyframes bubbleUp {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-40px) scale(1.2); opacity: 1; }
}

.portfolio-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.6; }
.portfolio-placeholder p {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
}

/* ============ FAQ ============ */
.faq {
  background: var(--color-bg-mid);
  padding: var(--section-padding-y) 24px;
  position: relative;
}
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}
.faq-item {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 300ms var(--ease-out-expo), box-shadow 300ms var(--ease-out-expo);
}
.faq-item[open] {
  border-color: var(--color-secondary);
  border-left-width: 3px;
  box-shadow: 0 4px 24px rgba(6, 214, 160, 0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  font-size: 22px;
  color: var(--color-secondary);
  transition: transform 350ms var(--ease-spring);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--color-bg-deep);
  padding: var(--section-padding-y) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Ambient glow orbs at bottom */
.contact::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center,
    rgba(0, 229, 255, 0.12) 0%,
    rgba(6, 214, 160, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.contact .section-title { margin-bottom: 16px; }
.contact-buttons {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.btn-wa, .btn-email {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 50px;
  transition: transform 300ms var(--ease-spring), box-shadow 300ms var(--ease-out-expo);
  position: relative;
}
.btn-wa {
  background: linear-gradient(135deg, var(--color-wa), #20c55e);
  color: white;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
}
.btn-email {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(0, 229, 255, 0.4);
}
.btn-email:hover {
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer a:hover { color: var(--color-secondary); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .btn-wa, .btn-email { text-align: center; }
}

/* Language toggle active state */
.lang-toggle .lang-en,
.lang-toggle .lang-cn {
  opacity: 0.5;
  transition: opacity 200ms var(--ease-out-expo);
}
.lang-toggle .active { opacity: 1; }

/* ============ MOBILE REFINEMENTS ============ */
@media (max-width: 768px) {
  .nav-links { gap: 32px; }
  .hero { padding: 120px 20px 60px; }
  .hero-drop { font-size: 48px; }
  .hero-eyebrow { letter-spacing: 0.3em; font-size: 10px; }
  .hero-body { font-size: 15px; }
  .btn-primary { font-size: 14px; padding: 14px 28px; }

  .section-title { letter-spacing: -0.01em; }
  .service-card { padding: 28px 22px; }
  .service-price { font-size: 18px; }

  .pain-card { padding: 22px 20px 22px 24px; }
  .pain-card p { font-size: 14px; }

  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-answer { padding: 0 18px 16px; font-size: 13px; }

  .wave-divider svg { height: 40px; }

  .blob-1 { width: 250px; height: 250px; }
  .blob-2 { width: 200px; height: 200px; }
  .blob-3 { width: 150px; height: 150px; }
  .blob-4 { display: none; }
  .blob-5 { display: none; }
}

@media (max-width: 480px) {
  :root { --section-padding-y-mobile: 40px; }
  .nav-logo { font-size: 16px; }
  .wave-divider svg { height: 30px; }
}
