@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

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

/* ── DARK THEME (default) ── */
:root {
  --bg: #151F28;
  --bg-card: #151F28;
  --bg-card2: #151F28;
  --border: rgb(255, 255, 255);
  --border-light: rgba(255, 255, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #39d8a5;
  --accent-orange: #e06c40;
  --font-sans: 'Outfit', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --radius: 12px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
  --container: 1250px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --navbar-scrolled-bg: #151F28;
  --hover-highlight: rgba(255, 255, 255, 0.05);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --bg-card2: #ececea;
  --border: #d8d8d4;
  --border-light: #b8b8b4;
  --text-primary: #111110;
  --text-secondary: #555550;
  --text-muted: #999994;
  --accent: #059669;
  --accent-orange: #e06c40;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  --hero-grid: rgba(0, 0, 0, 0.05);
  --screen-bg: #e4e4e0;
  --screen-inner: radial-gradient(#d8d8d4 0%, #c8c8c4 100%);
  --navbar-scrolled-bg: rgba(245, 245, 240, 0.88);
  --process-mid-bg: #eeeee9;
  --hover-highlight: rgba(0, 0, 0, 0.04);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

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

/* ─── SECTION TITLE ─── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* ─── ANIMATIONS ─── */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

@keyframes pulse-border {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* ─── PARALLAX GLOWS ─── */

/* About section — vivid teal glow behind the text */
.about-parallax-glow {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
      rgba(57, 216, 165, 0.13) 0%,
      rgba(57, 216, 165, 0.04) 45%,
      transparent 70%);
  will-change: transform;
}

/* Footer CTA — warm orange glow rising from below */
.footer-cta-glow {
  position: absolute;
  bottom: -120px;
  left: 50%;
  translate: -50% 0;
  width: 900px;
  height: 500px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 85%,
      rgba(224, 108, 64, 0.18) 0%,
      rgba(224, 108, 64, 0.05) 55%,
      transparent 70%);
  will-change: transform;
  filter: blur(4px);
}

/* Ensure parallax transforms are GPU-accelerated site-wide */
.hero-bg-grid,
.hero-corner,
.hero-screen,
.about-parallax-glow,
.footer-cta-glow,
.process-left,
.process-vline,
.footer-right {
  will-change: transform;
}

/* ─── RESPONSIVE ─── */
/* Component-specific media queries have been moved to their respective .css files */

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* On mobile: always visible, animate with CSS only (no JS dependency) */
/* Excludes .mobile-step which has its own IntersectionObserver in Process.jsx */
@media (max-width: 900px) {
  .reveal:not(.mobile-step):not(.mobile-process-header) {
    opacity: 0;
    transform: translateY(24px);
    animation: revealFadeUp 0.7s ease forwards;
  }

  .reveal.visible:not(.mobile-step):not(.mobile-process-header) {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }
}

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

/* ─── THEME TRANSITION ─── */
html {
  transition: background-color 0.35s ease, color 0.35s ease;
}

body,
.navbar,
.niche-card,
.case-card,
.td-card,
.footer-box,
.process-title-block,
.testimonial-arrow {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

/* ─── LIGHT MODE LOGO ─── */
[data-theme="light"] .logo-circle {
  background: conic-gradient(var(--accent), #d0d0d0 60%, var(--accent));
}

/* ─── LIGHT MODE TOGGLE ICON ─── */
.theme-icon-sun,
.theme-icon-moon {
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: inline;
}

[data-theme="light"] .theme-icon-sun {
  display: inline;
}

[data-theme="light"] .theme-icon-moon {
  display: none;
}