/* ========================================
   DESIGN TOKENS
   Theme: Warm Light — Cinematic
   Accent: Emerald
   Font: Satoshi + JetBrains Mono
   ======================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f3f0eb;
  --bg-tertiary: #e8e4dd;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #1a1816;
  --text-secondary: #5c5650;
  --text-tertiary: #8a8279;

  --accent: #0d9668;
  --accent-hover: #0a7d56;
  --accent-dim: rgba(13, 150, 104, 0.08);
  --accent-glow: rgba(13, 150, 104, 0.25);

  --border: #e8e4dd;
  --border-hover: #d6d1c9;

  --shadow-warm: rgba(26, 24, 22, 0.05);
  --shadow-accent: rgba(13, 150, 104, 0.1);

  --font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1280px;
  --nav-height: 72px;

  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-slow: 1000ms;
  --duration-medium: 600ms;
  --duration-fast: 300ms;
}

/* ========================================
   DARK THEME OVERRIDES
   ======================================== */
[data-theme="dark"] {
  --bg-primary: #0f0f11;
  --bg-secondary: #1a1a1e;
  --bg-tertiary: #252528;
  --bg-elevated: #1e1e22;
  --bg-card: #1a1a1e;

  --text-primary: #f0ede8;
  --text-secondary: #a8a29e;
  --text-tertiary: #6b6560;

  --accent: #10b981;
  --accent-hover: #059669;
  --accent-dim: rgba(16, 185, 129, 0.08);
  --accent-glow: rgba(16, 185, 129, 0.25);

  --border: #2a2a2e;
  --border-hover: #3a3a3e;

  --shadow-warm: rgba(0, 0, 0, 0.3);
  --shadow-accent: rgba(16, 185, 129, 0.1);
}

/* ========================================
   THEME TOGGLE COMPONENT
   ======================================== */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.theme-toggle i,
.theme-toggle svg {
  font-size: 1.2rem;
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  position: absolute;
}

/* Light mode states: show moon, hide/rotate sun */
.theme-toggle .ph-sun,
.theme-toggle .theme-icon-sun,
.theme-toggle [class*="ph-sun"] {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.theme-toggle .ph-moon,
.theme-toggle .theme-icon-moon,
.theme-toggle [class*="ph-moon"] {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Dark mode states: show sun, hide/rotate moon */
[data-theme="dark"] .theme-toggle .ph-sun,
[data-theme="dark"] .theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle [class*="ph-sun"] {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .ph-moon,
[data-theme="dark"] .theme-toggle .theme-icon-moon,
[data-theme="dark"] .theme-toggle [class*="ph-moon"] {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.mobile-theme-toggle-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

/* Transition classes to prevent flashing on load */
.no-transition,
.no-transition * {
  transition: none !important;
}


/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Grain overlay — procedural noise on entire page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] body::after {
  opacity: 0.015;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   LAYOUT
   ======================================== */

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

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 48px; }
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
  animation: loader-failsafe-hide 0.1s 1.0s forwards;
}

@keyframes loader-failsafe-hide {
  to {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
  }
}

.loader.loaded {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.loader-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  display: inline-block;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ========================================
   CURSOR GLOW
   ======================================== */

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow.active {
  opacity: 1;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #10b981);
  z-index: 10001;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}


/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 200;
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 248, 245, 0.95);
}

[data-theme="dark"] .nav {
  background: rgba(15, 15, 17, 0.8);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(15, 15, 17, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 12px 4px var(--accent-glow); }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.35s var(--ease-cinematic), transform 0.3s var(--ease-cinematic);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
}

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

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

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

.nav-link.active {
  color: var(--accent);
}

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

.nav-cta {
  display: none;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-cta { display: flex; }
}

/* ========================================
   CREATIVE LANGUAGE SWITCHER
   ======================================== */

.lang-switcher-wrap {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .lang-switcher-wrap {
    display: flex;
    margin-left: auto;
    margin-right: 24px;
  }
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 100px;
  box-shadow: inset 0 2px 4px rgba(26, 24, 22, 0.03);
  transition: border-color var(--duration-fast) var(--ease-smooth), background var(--duration-fast) var(--ease-smooth);
}

.lang-switcher:hover {
  border-color: var(--border-hover);
}

.lang-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-radius: 100px;
  z-index: 2;
  transition: color var(--duration-medium) var(--ease-smooth);
  cursor: pointer;
}

.lang-btn.active {
  color: #ffffff;
}

.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-code {
  font-family: var(--font-display);
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  width: var(--slider-width, 58px);
  transform: translateX(var(--slider-x, 3px));
  background: var(--accent);
  border-radius: 100px;
  z-index: 1;
  box-shadow: 0 4px 12px var(--shadow-accent);
  transition: transform var(--duration-medium) var(--ease-spring), width var(--duration-medium) var(--ease-spring);
  pointer-events: none;
}

/* Mobile Lang Switcher style */
.mobile-lang-switcher-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0 8px;
}

.mobile-lang-switcher-wrap .lang-switcher {
  background: rgba(26, 24, 22, 0.04);
  border-color: rgba(26, 24, 22, 0.08);
}

[data-theme="dark"] .mobile-lang-switcher-wrap .lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Translation transition classes */
[data-i18n], [data-i18n-placeholder], [data-i18n-aria] {
  transition: opacity 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth);
}

.lang-changing {
  opacity: 0 !important;
  transform: translateY(3px);
}


/* Mobile Header Controls */
.mobile-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .mobile-nav-controls { display: none; }
}

.mobile-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0;
}

.mobile-theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.4s var(--ease-cinematic);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-cinematic);
}

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

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .mobile-menu { display: none; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: 8px;
  transition: all 0.4s var(--ease-cinematic);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97) translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px -4px var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 30px -4px rgba(13, 150, 104, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .btn-outline {
  background: rgba(26, 26, 30, 0.6);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ========================================
   HERO — CINEMATIC MULTI-LAYER
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Aurora gradient blobs */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.6;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.aurora-blob--1 {
  width: 600px;
  height: 600px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(13, 150, 104, 0.35), transparent 70%);
  animation: aurora-drift-1 16s ease-in-out infinite;
}

.aurora-blob--2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -5%;
  background: radial-gradient(circle, rgba(245, 208, 140, 0.3), transparent 70%);
  animation: aurora-drift-2 20s ease-in-out infinite;
}

.aurora-blob--3 {
  width: 450px;
  height: 450px;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(139, 180, 255, 0.25), transparent 70%);
  animation: aurora-drift-3 18s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 40px) scale(1.15); }
  66% { transform: translate(-30px, 60px) scale(0.9); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -30px) scale(1.1); }
  66% { transform: translate(40px, -50px) scale(0.95); }
}

@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.2); }
  66% { transform: translate(-40px, 30px) scale(0.85); }
}

/* Subtle grid pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(13, 150, 104, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 150, 104, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

/* Floating bokeh particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(13, 150, 104, 0.2);
  box-shadow: 0 0 calc(var(--s) * 3) calc(var(--s) * 0.5) rgba(13, 150, 104, 0.1);
  animation: particle-float var(--d) ease-in-out var(--del) infinite;
}

.particle:nth-child(even) {
  background: rgba(245, 208, 140, 0.2);
  box-shadow: 0 0 calc(var(--s) * 3) calc(var(--s) * 0.5) rgba(245, 208, 140, 0.1);
}

.particle:nth-child(3n) {
  background: rgba(199, 210, 254, 0.18);
  box-shadow: 0 0 calc(var(--s) * 3) calc(var(--s) * 0.5) rgba(199, 210, 254, 0.08);
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -60px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, -120px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(15px, -40px) scale(1.1);
    opacity: 0.7;
  }
}

/* Hero content — split layout */
.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.hero-text {
  max-width: 600px;
}

/* Availability badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(13, 150, 104, 0.08);
  border: 1px solid rgba(13, 150, 104, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-cinematic);
}

.hero-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 150, 104, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(13, 150, 104, 0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.2s var(--ease-cinematic), opacity 1s var(--ease-cinematic);
  margin-right: 0.2em;
}

.hero-word.visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-word.accent {
  background: linear-gradient(120deg, #0d9668 0%, #10b981 25%, #6ee7b7 50%, #10b981 75%, #0d9668 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 5s linear infinite;
  display: inline-block;
}

@keyframes shimmer-text {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease-cinematic) 0.8s;
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease-cinematic) 1.1s;
  margin-bottom: 48px;
}

.hero-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Primary CTA with arrow */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-cta-primary svg {
  transition: transform 0.3s var(--ease-spring);
}

.hero-cta-primary:hover svg {
  transform: translateX(4px);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s var(--ease-cinematic) 1.4s;
}

.hero-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  opacity: 0.5;
}

/* Right side: interactive visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

/* Floating badges */
.hero-float-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: float-badge-in 0.8s var(--ease-cinematic) var(--fb-delay) forwards,
             float-badge-hover 6s ease-in-out 1.5s infinite;
  pointer-events: auto;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .float-badge {
  background: rgba(30, 30, 34, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 1px 4px rgba(0, 0, 0, 0.2);
}

.float-badge:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.float-badge-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.float-badge--1 {
  top: 10%;
  right: 5%;
}

.float-badge--2 {
  bottom: 20%;
  left: -5%;
}

.float-badge--3 {
  bottom: 10%;
  right: 10%;
}

@keyframes float-badge-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-badge-hover {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-in-up 1s var(--ease-cinematic) 1.5s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-line-move 2s ease-in-out infinite;
}

@keyframes scroll-line-move {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- Hero responsive ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 480px;
  }

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

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

  .hero-visual {
    min-height: 220px;
    order: 2; /* Hero text at top on mobile */
  }

  .float-badge--2 {
    left: 5%;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-stats {
    gap: 16px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-number {
    font-size: 1.25rem;
  }

  .hero-visual {
    min-height: 180px;
  }
}

/* ========================================
   WAVE DIVIDERS
   ======================================== */

.diagonal-divider {
  position: relative;
  height: 80px;
  background: var(--bg-primary);
  overflow: hidden;
  margin-top: -2px;
}

.diagonal-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

@media (min-width: 768px) {
  .diagonal-divider {
    height: 120px;
  }
}

/* ========================================
   SECTION UTILITIES
   ======================================== */

.section {
  padding: 100px 0;
  position: relative;
}

@media (min-width: 768px) {
  .section { padding: 140px 0; }
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ========================================
   PROJECTS — STICKY STACK
   ======================================== */
.projects {
  background: var(--bg-secondary);
}

/* ── Showcase layout ── */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 992px) {
  .showcase-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Stagger: second card sits lower for visual rhythm */
  .showcase-row .showcase-item:nth-child(2) {
    margin-top: 60px;
  }
}

/* ── Showcase item (wrapper) ── */
.showcase-item {
  position: relative;
}

/* ========================================
   ABOUT SECTION — COMPANY PROFILE
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.4s var(--ease-cinematic), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
}

.about-card:hover {
  border-color: rgba(13, 150, 104, 0.35);
  box-shadow: 0 16px 40px -12px rgba(13, 150, 104, 0.12);
  transform: translateY(-4px) translateZ(0);
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(13, 150, 104, 0.1);
  border: 1px solid rgba(13, 150, 104, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}

.about-card:hover .about-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(13, 150, 104, 0.2);
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Banner */
.about-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 992px) {
  .about-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
  }
}

.about-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-banner-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-banner-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 992px) {
  .about-banner-stats {
    padding-top: 0;
    padding-left: 48px;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.banner-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.banner-stat-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.banner-stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}


/* ── Large serif index number ── */
.showcase-index {
  position: absolute;
  top: -18px;
  left: -8px;
  z-index: 3;
  pointer-events: none;
}

.showcase-index span {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-hover);
  opacity: 0.5;
  transition: all 0.6s var(--ease-cinematic);
}

.showcase-item:hover .showcase-index span {
  -webkit-text-stroke-color: var(--accent);
  opacity: 0.8;
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .showcase-index {
    top: -28px;
    left: -16px;
  }

  .showcase-index span {
    font-size: 7rem;
  }
}

/* ── Browser mockup (the card itself) ── */
.showcase-browser {
  display: block;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 24px -4px var(--shadow-warm),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.4s var(--ease-cinematic),
    box-shadow 0.4s var(--ease-cinematic),
    transform 0.4s var(--ease-cinematic);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.showcase-browser:hover {
  border-color: rgba(13, 150, 104, 0.35);
  box-shadow:
    0 24px 64px -16px rgba(13, 150, 104, 0.14),
    0 8px 24px -4px var(--shadow-warm);
  transform: translateY(-6px) translateZ(0);
}

/* ── Browser toolbar (macOS chrome) ── */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .browser-toolbar {
    padding: 14px 20px;
  }
}

/* Traffic light dots */
.browser-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.browser-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

/* URL bar */
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-url i {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.browser-actions {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.4s var(--ease-spring);
}

.showcase-browser:hover .browser-actions {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ── Browser viewport (screenshot area) ── */
.browser-viewport {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.browser-viewport img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic), filter 0.5s ease;
  will-change: transform;
}

/* Featured card gets taller viewport on desktop */
@media (min-width: 992px) {
  .showcase-featured .browser-viewport {
    max-height: 520px;
  }

  .showcase-featured .browser-viewport img {
    height: 520px;
    object-fit: cover;
  }

  .showcase-half .browser-viewport {
    max-height: 360px;
  }

  .showcase-half .browser-viewport img {
    height: 360px;
    object-fit: cover;
  }
}

.showcase-browser:hover .browser-viewport img {
  transform: scale(1.03);
  filter: brightness(0.7);
}

/* ── Hover overlay (slides up from bottom) ── */
.browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-cinematic);
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.4) 60%, transparent 100%);
}

.showcase-browser:hover .browser-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-cinematic);
  max-width: 500px;
}

.showcase-browser:hover .overlay-content {
  transform: translateY(0);
}

.overlay-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  background: rgba(13, 150, 104, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.overlay-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.overlay-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #ffffff;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  background: rgba(20, 20, 28, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.overlay-cta i {
  transition: transform 0.4s var(--ease-spring);
}

.showcase-browser:hover .overlay-cta i {
  transform: translateX(4px);
}

/* ── Live badge ── */
.live-badge {
  position: absolute;
  top: 56px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: #28c840;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.2);
  padding: 4px 12px 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .live-badge {
    top: 60px;
    right: 20px;
  }
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(40, 200, 64, 0); }
}

/* ========================================
   TECH STACK — SCROLL MARQUEE
   ======================================== */

.tech-scroll-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.tech-scroll-wrapper::before,
.tech-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tech-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.tech-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.tech-scroll {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-scroll {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 80px;
  transition: transform 0.4s var(--ease-cinematic);
}

.tech-icon:hover {
  transform: translateY(-4px);
}

.tech-icon img {
  width: 36px;
  height: 36px;
  opacity: 0.5;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s var(--ease-spring);
  filter: grayscale(100%) brightness(0.3);
}

.tech-icon:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.15);
}

[data-theme="dark"] .tech-icon img {
  filter: grayscale(100%) brightness(0.8);
}

[data-theme="dark"] .tech-icon img[src*="/1a1816"] {
  filter: grayscale(100%) invert(1) brightness(0.8);
}

[data-theme="dark"] .tech-icon:hover img {
  filter: none;
}

[data-theme="dark"] .tech-icon:hover img[src*="/1a1816"] {
  filter: invert(1);
}

.tech-icon span {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ========================================
   SERVICES — BENTO GRID
   ======================================== */

.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-bento .service-item:first-child {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
  }

  .services-bento .service-item:first-child {
    grid-row: span 2;
    grid-column: span 2;
  }
}

.service-item {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.5s var(--ease-cinematic),
    box-shadow 0.5s var(--ease-cinematic),
    transform 0.5s var(--ease-cinematic);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .service-item {
    padding: 36px;
  }
}

/* Service Hero unique styling */
.service-item.service-hero {
  background: radial-gradient(circle at 10% 10%, rgba(13, 150, 104, 0.08), var(--bg-card) 60%);
  border-color: rgba(13, 150, 104, 0.2);
  justify-content: center;
}

.service-item.service-hero .service-icon {
  width: 56px;
  height: 56px;
  font-size: 2rem;
}

.service-item.service-hero .service-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 10px;
}

.service-item.service-hero .service-desc {
  font-size: 1rem;
}

/* Alternating card designs (some borderless & tinted) */
.services-bento .service-item:nth-child(2),
.services-bento .service-item:nth-child(5) {
  background: var(--bg-secondary);
  border-color: transparent;
}

.services-bento .service-item:nth-child(2):hover,
.services-bento .service-item:nth-child(5):hover {
  background: var(--bg-tertiary);
  border-color: rgba(13, 150, 104, 0.15);
}

.service-item:hover {
  border-color: rgba(13, 150, 104, 0.25);
  box-shadow: 0 12px 40px -8px rgba(13, 150, 104, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  transition: transform 0.6s var(--ease-spring);
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Spotlight border effect */
.spotlight-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(13, 150, 104, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

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

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team {
  background: var(--bg-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 24px;
    padding-bottom: 40px; /* Space for stagger */
  }

  .team-member:nth-child(2) {
    transform: translateY(24px);
  }

  .team-member:nth-child(2):hover {
    transform: translateY(18px);
  }
}

.team-member {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 30px -10px var(--shadow-warm),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition:
    border-color 0.5s var(--ease-cinematic),
    box-shadow 0.5s var(--ease-cinematic),
    transform 0.5s var(--ease-cinematic),
    background-color 0.5s var(--ease-cinematic);
  position: relative;
  overflow: hidden;
}

.team-member:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(13, 150, 104, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 48px -8px rgba(13, 150, 104, 0.12),
    0 4px 20px -4px var(--shadow-warm);
  transform: translateY(-6px);
}

[data-theme="dark"] .team-member {
  background: rgba(26, 26, 30, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px -10px var(--shadow-warm),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .team-member:hover {
  background: rgba(26, 26, 30, 0.65);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 48px -8px rgba(16, 185, 129, 0.12),
    0 4px 20px -4px var(--shadow-warm);
}

.member-avatar-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 26px; /* Squircle */
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(13, 150, 104, 0.35) 100%);
  box-shadow: 0 0 16px rgba(13, 150, 104, 0.2);
  transition: all 0.4s var(--ease-cinematic);
  position: relative;
}

.team-member:hover .member-avatar-ring {
  box-shadow: 0 0 28px rgba(13, 150, 104, 0.5);
  background: linear-gradient(135deg, var(--accent) 0%, rgba(16, 185, 129, 0.85) 100%);
}

.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 23px; /* Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  overflow: hidden;
}

.member-avatar img,
.cv-avatar img,
.bcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.4s var(--ease-cinematic);
}

.team-member:hover .member-avatar img {
  transform: scale(1.06);
}

.member-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.member-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.member-bio {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-cinematic);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   MEMBER ACTION BUTTONS (CV + Card Visit)
   ======================================== */

.member-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.member-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-cinematic);
  font-weight: 500;
}

.member-action-btn i {
  font-size: 0.875rem;
}

.member-action-btn.btn-cv:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.member-action-btn.btn-card:hover {
  border-color: hsl(45, 80%, 55%);
  color: hsl(45, 80%, 42%);
  background: hsla(45, 80%, 55%, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .member-action-btn.btn-card:hover {
  color: hsl(45, 80%, 65%);
  background: hsla(45, 80%, 55%, 0.12);
}

/* ========================================
   CV MODAL
   ======================================== */

.cv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-cinematic), visibility 0.4s;
  padding: 20px;
}

.cv-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cv-modal {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow:
    0 32px 80px -12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--ease-cinematic), opacity 0.5s var(--ease-cinematic);
}

.cv-modal-overlay.active .cv-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

[data-theme="dark"] .cv-modal {
  background: rgba(20, 20, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cv-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
  font-size: 1.125rem;
}

.cv-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(90deg);
}

.cv-modal-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

@media (max-width: 700px) {
  .cv-modal-content {
    grid-template-columns: 1fr;
  }
}

/* CV Left Column: Profile */
.cv-profile-col {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 700px) {
  .cv-profile-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }
}

.cv-avatar-ring {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 28px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(13, 150, 104, 0.35) 100%);
  box-shadow: 0 0 20px rgba(13, 150, 104, 0.25);
}

.cv-avatar {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  overflow: hidden;
}

.cv-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.cv-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.cv-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.cv-location i {
  font-size: 0.875rem;
  color: var(--accent);
}

.cv-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--accent-dim);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--ease-cinematic);
}

.cv-contact-item:hover {
  background: var(--accent);
  color: white;
}

.cv-contact-item i {
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

.cv-contact-item:hover i {
  color: white;
}

/* CV Right Column: Details */
.cv-details-col {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 700px) {
  .cv-details-col {
    padding: 28px 24px;
    gap: 24px;
  }
}

.cv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cv-section-title i {
  font-size: 1.125rem;
  color: var(--accent);
}

.cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--accent-dim);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-cinematic);
}

.cv-skill-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cv-skill-pill img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.cv-projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.35s var(--ease-cinematic);
}

[data-theme="dark"] .cv-project-card {
  background: rgba(255, 255, 255, 0.03);
}

.cv-project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px -4px rgba(13, 150, 104, 0.12);
  transform: translateX(4px);
}

.cv-project-info {
  flex: 1;
}

.cv-project-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.cv-project-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.cv-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.cv-project-tech span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
}

.cv-project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.3s var(--ease-cinematic);
}

.cv-project-link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cv-project-link i {
  font-size: 0.75rem;
}

/* ========================================
   BUSINESS CARD MODAL
   ======================================== */

.card-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-cinematic), visibility 0.4s;
  padding: 20px;
}

.card-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.card-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--ease-cinematic), opacity 0.5s var(--ease-cinematic);
}

.card-modal-overlay.active .card-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.card-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
  font-size: 1rem;
}

.card-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
}

/* Business Card Design */
.business-card {
  display: grid;
  grid-template-columns: 1fr auto;
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(240,248,243,0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-height: 220px;
}

[data-theme="dark"] .business-card {
  background: linear-gradient(145deg, rgba(24,24,28,0.95) 0%, rgba(20,30,25,0.95) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .business-card {
    grid-template-columns: 1fr;
  }
}

.bcard-left {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.bcard-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.bcard-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.bcard-brand-name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bcard-avatar-wrap {
  margin-bottom: 12px;
}

.bcard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  border: 2px solid var(--accent);
  overflow: hidden;
}

.bcard-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.bcard-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.bcard-divider {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 12px;
  border-radius: 2px;
}

.bcard-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bcard-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.bcard-detail-row i {
  font-size: 0.8125rem;
  color: var(--accent);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.bcard-detail-row a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.bcard-detail-row a:hover {
  color: var(--accent);
}

.bcard-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: var(--accent-dim);
  border-left: 1px solid var(--border);
}

@media (max-width: 480px) {
  .bcard-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px;
  }
}

.bcard-qr-wrap {
  text-align: center;
}

.bcard-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bcard-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bcard-qr-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .card-actions {
    flex-direction: column;
  }
}

.card-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease-cinematic);
}

.card-download-btn {
  background: var(--accent);
  color: white;
}

.card-download-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(13, 150, 104, 0.3);
}

.card-share-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.card-share-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
}



/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Ambient background blob */
.contact-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 150, 104, 0.05), transparent 70%);
  right: -200px;
  top: -100px;
  pointer-events: none;
  animation: contact-blob-float 12s ease-in-out infinite;
}

@keyframes contact-blob-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

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

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

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
}

.contact-info-item:hover .info-icon {
  transform: scale(1.1);
}

.contact-info-item .info-icon svg {
  width: 18px;
  height: 18px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.info-value a {
  transition: color 0.3s ease;
}

.info-value a:hover {
  color: var(--accent);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  transition: border-color 0.4s var(--ease-cinematic), box-shadow 0.4s var(--ease-cinematic);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevent iOS Safari zoom */
  }
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  font-size: 0.875rem;
  padding: 14px 18px;
  border-radius: 10px;
  display: none;
}

.form-status.success {
  display: block;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(13, 150, 104, 0.2);
}

.form-status.error {
  display: block;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
  animation: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-cinematic);
  box-shadow: 0 4px 20px -4px var(--shadow-warm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px -4px var(--shadow-accent);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS — CINEMATIC
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slow) var(--ease-cinematic),
    transform var(--duration-slow) var(--ease-cinematic);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals using CSS custom property */
.reveal[style*="--reveal-i: 0"] { transition-delay: 0.0s; }
.reveal[style*="--reveal-i:0"] { transition-delay: 0.0s; }
.reveal[style*="--reveal-i: 1"] { transition-delay: 0.12s; }
.reveal[style*="--reveal-i:1"] { transition-delay: 0.12s; }
.reveal[style*="--reveal-i: 2"] { transition-delay: 0.24s; }
.reveal[style*="--reveal-i:2"] { transition-delay: 0.24s; }
.reveal[style*="--reveal-i: 3"] { transition-delay: 0.36s; }
.reveal[style*="--reveal-i:3"] { transition-delay: 0.36s; }
.reveal[style*="--reveal-i: 4"] { transition-delay: 0.48s; }
.reveal[style*="--reveal-i:4"] { transition-delay: 0.48s; }
.reveal[style*="--reveal-i: 5"] { transition-delay: 0.60s; }
.reveal[style*="--reveal-i:5"] { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  .reveal,
  .hero-word,
  .hero-subtitle,
  .hero-actions,
  .hero-badge,
  .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-word { opacity: 1 !important; transform: none !important; }
  .particle { animation: none; }
  .aurora-blob { animation: none; }
  .float-badge { animation: none; opacity: 1 !important; transform: none !important; }
  .member-avatar-ring { animation: none; }
  .scroll-line::after { animation: none; }
  .loader-dot { animation: none; }
  .brand-dot { animation: none; }
}

@media (max-width: 768px) {
  .hero-aurora {
    display: none !important;
  }
  .nav,
  .mobile-menu,
  .team-member,
  .cv-modal-container,
  .card-modal-container,
  .about-card,
  .service-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ========================================
   SELECTION & SCROLLBAR
   ======================================== */

::selection {
  background: rgba(13, 150, 104, 0.15);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ========================================
   FOCUS VISIBLE
   ======================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========================================
   TILT CARD (3D perspective set by JS)
   ======================================== */

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ========================================
   MARQUEE TICKER & STATS STRIP
   ======================================== */

.marquee-wrapper {
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  position: relative;
  display: flex;
  user-select: none;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  min-width: 100%;
  padding-left: 30px;
}

.marquee-content span {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0.28;
  transition: color 0.4s var(--ease-cinematic), opacity 0.4s var(--ease-cinematic);
}

.marquee-content:hover span {
  opacity: 0.15;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content span:hover {
  color: var(--accent);
  opacity: 1 !important;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.4;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-strip {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  text-align: center;
}

.stat-divider {
  display: none;
}

@media (min-width: 992px) {
  .stats-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  
  .stat-divider {
    display: block;
    width: 1px;
    height: 60px;
    background: var(--border);
    opacity: 0.7;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 20px rgba(13, 150, 104, 0.3);
  z-index: 10005;
  transition: top 0.4s var(--ease-cinematic);
  font-family: var(--font-display);
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Legal Footer Links styling */
.footer-links .legal-link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  opacity: 0.8;
}

.footer-links .legal-link::before {
  content: '•';
  margin-right: 12px;
  color: var(--border);
  pointer-events: none;
}



/* ========================================
   BLOG SECTION
   ======================================== */
.blog {
  background: var(--bg-primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  flex-grow: 1;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: rgba(220, 38, 38, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}

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

.blog-read-more i {
  transition: transform 0.2s;
}

.blog-read-more:hover i {
  transform: translateX(4px);
}

/* Chatbot UI */
#chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font-primary, sans-serif);
}

#chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary, #007AFF);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.2s, background 0.2s;
}

#chatbot-toggle:hover {
  transform: scale(1.05);
}

#chatbot-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  height: 400px;
  background: var(--bg-primary, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color, #eaeaea);
  transition: opacity 0.3s, transform 0.3s;
  transform-origin: bottom right;
}

#chatbot-window.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.chatbot-header {
  background: var(--accent-primary, #007AFF);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 16px;
}

.chatbot-header button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
}

#chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-secondary, #f8f9fa);
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.bot {
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #333);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message.user {
  background: var(--accent-primary, #007AFF);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.loading {
  background: transparent;
  color: var(--text-secondary, #666);
  font-style: italic;
  box-shadow: none;
}

.chatbot-input-area {
  display: flex;
  padding: 12px;
  background: var(--bg-primary, #fff);
  border-top: 1px solid var(--border-color, #eaeaea);
  gap: 8px;
}

.chatbot-input-area input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 20px;
  outline: none;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #333);
}

.chatbot-input-area input:focus {
  border-color: var(--accent-primary, #007AFF);
}

.chatbot-input-area button {
  background: var(--accent-primary, #007AFF);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chatbot-input-area button:hover {
  opacity: 0.9;
}
