:root {
  color-scheme: dark;
  --bg: #050816;
  --surface: rgba(18, 26, 48, 0.96);
  --surface-strong: #11182f;
  --surface-soft: #0f1832;
  --text: #f7f9ff;
  --muted: #9fb4d6;
  --primary: #6f7dff;
  --primary-strong: #4d5bff;
  --accent: #f6b74b;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(1, 10, 34, 0.25);
  --font-label-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --metric-toggle-thumb-size: 1.4rem;
  --metric-toggle-thumb-space: 0.25rem;
  --metric-toggle-icon-space: 0.4rem;
  --transition-snappy-duration: 500ms;
  --transition-silky-duration: 200ms;
  --transition-icon: opacity var(--transition-snappy-duration) ease, transform var(--transition-silky-duration) cubic-bezier(1, 0, 0.55, 0.85);
  --transition-delay-icon: 1000ms;
  --color-day-bg: #5048e5;
  --color-day-icon: #ffe4a1;
  --color-night-bg: #032b43;
  --color-night-icon: #b9c6d3;
  --color-light: #ffffff;
  --color-dark: #4a4a4a;
  --color-charcoal: #252525;
  --color-shadow-light: rgba(48, 48, 48, 0.15);
  --color-shadow-mid: rgba(0, 0, 0, 0.25);
  --color-shadow-dark: rgba(0, 0, 0, 0.9);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #f0f2f7;
  --surface-soft: #eef1f8;
  --text: #111827;
  --muted: #4b5563;
  --primary: #5048e5;
  --primary-strong: #4338ca;
  --accent: #f59e0b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(111, 125, 255, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(246, 183, 75, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

body.page-loading {
  overflow: hidden;
}

/* ── Site intro / opener ── */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050816;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.9s ease;
}

.site-intro.exit {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.intro-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: introOrbFloat 7s ease-in-out infinite alternate;
}

.intro-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(111, 125, 255, 0.22);
  top: -120px;
  right: -80px;
  animation-duration: 6s;
}

.intro-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(246, 183, 75, 0.16);
  bottom: -80px;
  left: -60px;
  animation-duration: 9s;
  animation-delay: -3s;
}

.intro-orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(168, 85, 247, 0.14);
  top: 40%;
  left: 15%;
  animation-duration: 8s;
  animation-delay: -5s;
}

@keyframes introOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28px, -32px) scale(1.1); }
}

.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.intro-welcome {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(159, 180, 214, 0.7);
  opacity: 0;
  transform: translateY(14px);
  animation: introSlideUp 0.4s ease forwards 0.1s;
}

.intro-logo-wrap {
  opacity: 0;
  transform: scale(0.45);
  animation: introPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.4s;
}

.intro-logo {
  width: auto;
  height: 120px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(111, 125, 255, 0.55));
  animation: introLogoGlow 2s ease-in-out infinite alternate 0.9s;
}

@keyframes introLogoGlow {
  from { filter: drop-shadow(0 0 14px rgba(111, 125, 255, 0.45)); }
  to   { filter: drop-shadow(0 0 38px rgba(111, 125, 255, 0.95)) drop-shadow(0 0 60px rgba(111, 125, 255, 0.3)); }
}

.intro-brand {
  margin: 0;
  padding-bottom: 0.18em;
  line-height: 1.25;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #6f7dff 0%, #a78bfa 50%, #f6b74b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(18px);
  animation: introSlideUp 0.45s ease forwards 0.75s;
}

.intro-tagline {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(159, 180, 214, 0.65);
  opacity: 0;
  transform: translateY(14px);
  animation: introSlideUp 0.4s ease forwards 1.1s;
}

.intro-bar-wrap {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  margin-top: 1.25rem;
  overflow: hidden;
  opacity: 0;
  animation: introFadeIn 0.3s ease forwards 1.3s;
}

.intro-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6f7dff, #f6b74b);
  border-radius: 2px;
  animation: introBarFill 1.8s linear forwards 0.3s;
}

.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(159, 180, 214, 0.6);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  opacity: 0;
  animation: introFadeIn 0.4s ease forwards 0.3s;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}

.intro-skip:hover {
  background: rgba(111, 125, 255, 0.15);
  border-color: rgba(111, 125, 255, 0.4);
  color: #fff;
}

@keyframes introSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introPopIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes introFadeIn {
  to { opacity: 1; }
}

@keyframes introBarFill {
  to { width: 100%; }
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 22, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.nav-overlay.open {
  opacity: 1;
}

html[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: auto;
  height: 40px;
  display: block;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  color: var(--text);
}

.brand-text span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-primary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-primary a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.toggle {
  font-family: var(--font-label-family);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
}

.toggle:not([hidden]) {
  display: flex;
  align-items: center;
}

.toggle__element {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: var(--metric-toggle-thumb-size);
  width: 1em;
  height: 1em;
}

.toggle__decor {
  --color-toggle-decor-bg: var(--color-day-bg);
  display: block;
  position: relative;
  overflow: hidden;
  width: calc((var(--metric-toggle-thumb-size) * 2) + (var(--metric-toggle-thumb-space) * 2));
  height: calc(var(--metric-toggle-thumb-size) + (var(--metric-toggle-thumb-space) * 2));
  background: var(--color-toggle-decor-bg);
  margin-left: 0.5rem;
  border-radius: var(--metric-toggle-thumb-size);
  transition: background var(--transition-snappy-duration);
  transition-delay: var(--transition-snappy-duration);
  box-sizing: content-box;
  border: 1px solid var(--color-light);
}

.toggle__thumb {
  display: grid;
  place-items: center;
  width: var(--metric-toggle-thumb-size);
  height: var(--metric-toggle-thumb-size);
  border-radius: var(--metric-toggle-thumb-size);
  background: linear-gradient(229.84deg, rgba(255, 255, 255, 0) 14.29%, rgba(48, 48, 48, 0.15) 81.82%), #ffffff;
  color: var(--color-day-icon);
  box-shadow: 0 0 var(--metric-toggle-thumb-space) var(--color-shadow-mid);
  position: absolute;
  top: var(--metric-toggle-thumb-space);
  left: var(--metric-toggle-thumb-space);
  transform: none;
  transition: transform var(--transition-silky-duration) cubic-bezier(1, 0, 0.55, 0.85);
  will-change: transform;
  z-index: 1;
}

.toggle__thumb::before {
  content: '';
  display: none;
  width: calc(var(--metric-toggle-thumb-size) - var(--metric-toggle-thumb-space));
  height: calc(var(--metric-toggle-thumb-size) - var(--metric-toggle-thumb-space));
  border: 2px solid var(--color-dark);
  border-radius: calc(var(--metric-toggle-thumb-size) - var(--metric-toggle-thumb-space));
}

.toggle__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
}

.toggle__icon[data-state='checked'] {
  left: var(--metric-toggle-icon-space);
  fill: var(--color-night-icon);
  opacity: 0;
  transform: translateY(-1rem);
}

.toggle__icon[data-state='un-checked'] {
  right: var(--metric-toggle-icon-space);
  fill: var(--color-day-icon);
  transition: var(--transition-icon);
  transition-delay: var(--transition-delay-icon);
}

.toggle__decor:hover .toggle__thumb {
  margin-left: 1px;
}

:checked + .toggle__decor:hover .toggle__thumb {
  margin-left: -1px;
}

:checked + .toggle__decor {
  --color-toggle-decor-bg: var(--color-night-bg);
}

:checked + .toggle__decor .toggle__thumb {
  transform: translateX(var(--metric-toggle-thumb-size)) rotate(270deg);
  box-shadow: 0 0 var(--metric-toggle-thumb-space) var(--color-shadow-dark);
}

:checked + .toggle__decor .toggle__icon[data-state='checked'] {
  opacity: 1;
  transform: translateY(-50%);
  transition: var(--transition-icon);
  transition-delay: var(--transition-delay-icon);
}

:checked + .toggle__decor .toggle__icon[data-state='un-checked'] {
  opacity: 0;
  transform: translateY(1rem);
  transition: none;
}

:focus + .toggle__decor:not(:hover) .toggle__thumb::before {
  display: block;
}

:disabled + .toggle__decor {
  filter: grayscale(1) brightness(1.5);
  cursor: not-allowed;
}

.nav-primary a:hover,
.nav-primary a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  flex-direction: column;
  gap: 6px;
  padding: 0.75rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-gradient {
  padding: 6rem 0 5rem;
}

.section-gradient-light {
  background: radial-gradient(circle at top left, rgba(111, 125, 255, 0.16), transparent 35%),
    rgba(9, 14, 33, 0.95);
  padding: 5rem 0;
}

html[data-theme='light'] .section-gradient-light {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 35%),
    rgba(249, 250, 252, 0.98);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 2.75vw, 3rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 35px rgba(111, 125, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-card {
  padding: 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.feature-chip {
  display: inline-grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(111, 125, 255, 0.12);
}

.feature-chip strong {
  display: block;
  color: var(--text);
}

.feature-chip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.hero-list li {
  padding: 1.2rem 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-list strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.service-grid,
.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.process-card,
.stat-card {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.service-card h3,
.process-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.service-card p,
.process-card p {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.about-list li {
  color: var(--text);
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-card span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-info strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.contact-info a {
  color: var(--muted);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  text-decoration: underline;
}

.whatsapp-widget {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.whatsapp-bubble {
  margin: 0;
  background: #25d366;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 14px 14px 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(18, 140, 126, 0.38);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.whatsapp-bubble.visible {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 8px 32px rgba(18, 140, 126, 0.42);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 40px rgba(18, 140, 126, 0.5);
}

@media (max-width: 680px) {
  .whatsapp-widget {
    right: 1rem;
    top: 62%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .whatsapp-bubble {
    font-size: 0.78rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 1rem 1.1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-note-success {
  color: #22c55e;
  font-weight: 600;
}

.form-note-error {
  color: #ef4444;
  font-weight: 600;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* Hero orbs */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -160px;
  right: -60px;
  animation-duration: 7s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--accent);
  bottom: -100px;
  left: -80px;
  animation-duration: 10s;
  animation-delay: -4s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  background: #a855f7;
  top: 45%;
  left: 38%;
  animation-duration: 9s;
  animation-delay: -6s;
}

@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(35px, -45px) scale(1.12); }
}

/* Typewriter */
.hero-speciality {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}

.typewriter-word {
  color: var(--accent);
  font-weight: 700;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Service card icon */
.service-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 8px rgba(111,125,255,0.2));
  transition: transform 0.3s ease;
}

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

/* Process step number */
.process-step {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

.process-card:hover .process-step {
  opacity: 0.55;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero card float animation */
.hero-card {
  animation: cardFloat 4s ease-in-out infinite alternate;
}

@keyframes cardFloat {
  from { transform: translateY(0px); }
  to   { transform: translateY(-10px); }
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 125, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: left, top;
  display: none;
}

@media (pointer: fine) {
  .cursor-glow { display: block; }
}

/* Ripple */
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Counter */
.counter { display: block; }

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(111, 125, 255, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(111, 125, 255, 0.12);
  position: relative;
  transition: transform 0.3s ease, background 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.25s ease;
  padding: 0 1.4rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
  margin: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-contact-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: opacity 0.2s;
}

.faq-contact-link:hover {
  opacity: 0.75;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(111, 125, 255, 0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.blog-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.68;
  margin: 0 0 0.6rem;
}

.blog-body h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.1rem 0 0.35rem;
}

.blog-body ul,
.blog-body ol {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.68;
  padding-left: 1.35rem;
  margin: 0 0 0.6rem;
}

.blog-body li {
  margin-bottom: 0.3rem;
}

.blog-full {
  display: none;
}

.blog-full.open {
  display: block;
}

.blog-toggle {
  margin-top: auto;
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0.5rem 0 0;
  transition: color 0.2s;
}

.blog-toggle:hover {
  color: var(--primary-strong);
}

.blog-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}

.blog-modal.open {
  display: flex;
  animation: blogModalFadeIn 0.2s ease-out;
}

.blog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.blog-modal-panel {
  position: relative;
  background: var(--surface-strong);
  color: var(--text);
  max-width: 860px;
  width: 100%;
  border-radius: 18px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: auto;
  animation: blogModalSlideUp 0.25s ease-out;
}

.blog-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}

.blog-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.blog-modal-body .blog-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  cursor: default;
  transform: none !important;
}

.blog-modal-body .blog-full {
  display: block;
}

.blog-modal-body .blog-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

body.modal-open {
  overflow: hidden;
}

@keyframes blogModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blogModalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .blog-modal-panel {
    padding: 2.5rem 1.25rem 1.5rem;
    border-radius: 14px;
  }
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link svg,
.social-link i {
  font-size: 1.1rem;
  display: block;
  line-height: 1;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme='light'] .social-link {
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .hero-grid,
  .service-grid,
  .process-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* Mobile drawer — sits outside the header so it can truly overlay it */
.nav-drawer {
  display: none;
}

@media (max-width: 680px) {
  /* Hide the desktop inline nav */
  .nav-primary {
    display: none;
  }

  /* Show the overlay backdrop */
  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  .nav-overlay.open {
    pointer-events: auto;
  }

  /* Left drawer */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: 72%;
    max-width: 300px;
    padding: 0;
    background: linear-gradient(160deg, #0d1433 0%, #090e22 100%);
    border-right: 1px solid rgba(111, 125, 255, 0.18);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
  }

  html[data-theme='light'] .nav-drawer {
    background: linear-gradient(160deg, #ffffff 0%, #f0f2f9 100%);
    border-right-color: rgba(80, 72, 229, 0.15);
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.2);
  }

  .nav-drawer.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Drawer brand strip at top */
  .nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(111, 125, 255, 0.15);
  }

  .nav-drawer-brand .brand-logo {
    width: auto;
    height: 32px;
    flex-shrink: 0;
  }

  .nav-drawer-brand span {
    color: #e8ecff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  html[data-theme='light'] .nav-drawer-brand {
    border-bottom-color: rgba(80, 72, 229, 0.1);
  }

  html[data-theme='light'] .nav-drawer-brand span {
    color: #111827;
  }

  /* Drawer links */
  .nav-drawer a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #c8d3f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  html[data-theme='light'] .nav-drawer a {
    color: #1e293b;
    border-bottom-color: rgba(15, 23, 42, 0.07);
  }

  .nav-drawer a:last-child {
    border-bottom: none;
  }

  .nav-drawer a:hover,
  .nav-drawer a:focus-visible {
    background: rgba(111, 125, 255, 0.1);
    color: #a5b4ff;
  }

  html[data-theme='light'] .nav-drawer a:hover,
  html[data-theme='light'] .nav-drawer a:focus-visible {
    background: rgba(80, 72, 229, 0.07);
    color: #4f46e5;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-card,
  .service-card,
  .process-card,
  .stat-card,
  .contact-form {
    border-radius: 24px;
  }
}

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

  .hero-card,
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Intro orbs — prevent horizontal overflow on small screens */
  .intro-orb-1 { width: 260px; height: 260px; }
  .intro-orb-2 { width: 200px; height: 200px; }
  .intro-orb-3 { width: 140px; height: 140px; }

  /* FAQ — tighter padding on small screens */
  .faq-question {
    padding: 1rem 1.1rem;
    font-size: 0.93rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.1rem 1rem;
  }

  .faq-list {
    margin-top: 2rem;
  }

  /* Blog toggle — larger tap target */
  .blog-toggle {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Section padding — breathe on very small screens */
  .section {
    padding: 3.5rem 0;
  }

  /* Blog grid cards — reduce padding */
  .blog-card {
    padding: 1.35rem;
  }

  /* Stat cards — tighter */
  .about-stats {
    gap: 0.75rem;
  }

  /* Footer — stack tightly */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* WhatsApp widget — smaller on tiny screens */
  .whatsapp-widget {
    right: 0.75rem;
    bottom: auto;
  }

  .whatsapp-float {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }
}
