/* ============================================
   BYTOSTUDIO - Design System & Global Styles
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #080808;
  --bg-secondary: #0e0e0e;
  --bg-card: #131313;
  --bg-card-hover: #1a1a1a;

  --blue-400: #ff6b4a;
  --blue-500: #FF4A23;
  --blue-600: #cc2a0f;
  --electric: #FF4A23;
  --violet: #cc2a0f;
  --cyan: #ff7a5c;
  --green: #10b981;

  --gradient-primary: linear-gradient(135deg, #FF4A23 0%, #cc2a0f 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255,74,35,0.15), rgba(204,42,15,0.12));
  --gradient-card: linear-gradient(145deg, #131313, #0e0e0e);

  --text-primary: #f5f0ee;
  --text-secondary: #a89f9c;
  --text-muted: #6b6360;

  --border: rgba(255,74,35,0.12);
  --border-hover: rgba(255,74,35,0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 40px rgba(255,74,35,0.18);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.6);
  --shadow-cta: 0 8px 32px rgba(255,74,35,0.4);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bg-glass: rgba(8,8,8,0.92);
  --bg-glass-heavy: rgba(8,8,8,0.97);
  --bg-trusted: rgba(8,8,8,0.8);
  --grid-line: rgba(255,74,35,0.04);
  --portfolio-g1: linear-gradient(135deg, #0d1b3e 0%, #1a1040 60%, #0d2640 100%);
  --portfolio-g2: linear-gradient(135deg, #0d2a1f 0%, #0e1f38 60%, #1a1040 100%);
  --portfolio-g3: linear-gradient(135deg, #1a0d2e 0%, #0e2030 60%, #0d1b3e 100%);
  --portfolio-g4: linear-gradient(135deg, #1a1505 0%, #0d1b3e 60%, #1a0d20 100%);
  --portfolio-overlay: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.1) 55%, transparent 100%);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --border: rgba(0,0,0,0.1);
  --border-hover: rgba(255,74,35,0.4);
  --text-primary: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.06);
  --gradient-card: linear-gradient(145deg, #ffffff, #f4f4f5);
  --gradient-glow: linear-gradient(135deg, rgba(255,74,35,0.05), rgba(204,42,15,0.03));

  --bg-glass: rgba(255,255,255,0.92);
  --bg-glass-heavy: rgba(255,255,255,0.97);
  --bg-trusted: rgba(244,244,245,0.8);
  --grid-line: rgba(0,0,0,0.04);
  --portfolio-g1: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 60%, #e0e7ff 100%);
  --portfolio-g2: linear-gradient(135deg, #dcfce7 0%, #e0e7ff 60%, #ede9fe 100%);
  --portfolio-g3: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 60%, #e0e7ff 100%);
  --portfolio-g4: linear-gradient(135deg, #fef9c3 0%, #e0e7ff 60%, #fce7f3 100%);
  --portfolio-overlay: linear-gradient(to top, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.1) 55%, transparent 100%);
}

/* Invert Spline 3D background from black to white in light mode, preserving hues via rotate */
[data-theme="light"] spline-viewer {
  filter: invert(1) hue-rotate(180deg) contrast(1.4) brightness(0.85);
  opacity: 1;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== THEME TOGGLE (Vanilla) ===== */
.theme-toggle-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 64px; height: 32px; padding: 4px; border-radius: 100px;
  cursor: pointer; transition: all 0.3s ease; position: relative;
  background: #09090b; border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="light"] .theme-toggle-btn {
  background: #ffffff; border: 1px solid rgba(0,0,0,0.15);
}
.theme-toggle-orb {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  transition: transform 0.3s ease; position: absolute;
  top: 3px; left: 3px; background: #27272a;
}
[data-theme="light"] .theme-toggle-orb {
  transform: translateX(32px); background: #e4e4e7;
}
.theme-toggle-icons {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 4px; pointer-events: none; z-index: 1;
}
.theme-toggle-icons svg { width: 14px; height: 14px; transition: color 0.3s ease; }
.theme-icon-moon { color: #fff; }
[data-theme="light"] .theme-icon-moon { color: #a1a1aa; }
.theme-icon-sun { color: #71717a; }
[data-theme="light"] .theme-icon-sun { color: #18181b; }

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

img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Sections ---- */
section { padding: 100px 0; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(255,74,35,0.1);
  border: 1px solid rgba(255,74,35,0.22);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-label .dot {
  width: 6px; height: 6px;
  background: var(--electric);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,74,35,0.45);
}
.btn-outline {
  border: 1.5px solid var(--border-hover);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--electric);
  color: var(--electric);
  background: rgba(255,74,35,0.06);
  transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,74,35,0.4), transparent);
  opacity: 0;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

/* ---- Glow Orbs Background ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #FF4A23; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #cc2a0f; top: 200px; right: -150px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #ff7a5c; bottom: 100px; left: 30%; animation-delay: -6s; }

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg spline-viewer {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  display: block;
}
spline-viewer::part(logo) {
  display: none !important;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,74,35,0.1);
  border: 1px solid rgba(255,74,35,0.3);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--electric);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge .star { font-size: 0.9rem; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease 0.4s both;
}
.stat-item .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.8s both;
  z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::after {
  content: '';
  width: 3px; height: 8px;
  background: var(--electric);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ========== LOGOS / TRUSTED ========== */
.trusted {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-trusted);
  overflow: hidden;
}
.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.trusted-marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.trusted-logos:hover { animation-play-state: paused; }
.trusted-logo-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: var(--transition);
}
.trusted-logo-item:hover { opacity: 0.9; color: var(--text-secondary); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== SERVICES ========== */
.services { background: var(--bg-secondary); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-subtitle { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card .service-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,74,35,0.08);
  border: 1px solid rgba(255,74,35,0.18);
  color: var(--electric);
}

.si-blue   { background: rgba(255,74,35,0.10); }
.si-violet { background: rgba(204,42,15,0.10); }
.si-cyan   { background: rgba(255,122,92,0.10); }
.si-green  { background: rgba(16,185,129,0.10); }
.si-pink   { background: rgba(255,74,35,0.08); }
.si-amber  { background: rgba(255,122,92,0.08); }

/* ========== PROCESS ========== */
.process { background: var(--bg-primary); }
.process-header { text-align: center; margin-bottom: 64px; }
.process-header .section-subtitle { margin: 0 auto; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,74,35,0.4), #FF4A23, rgba(255,74,35,0.4), transparent);
}
.process-step {
  position: relative;
  padding: 0 24px;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 0 24px rgba(255,74,35,0.3);
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== PORTFOLIO ========== */
.portfolio { background: var(--bg-secondary); }
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-item:nth-child(1) { grid-column: span 7; background: var(--portfolio-g1); }
.portfolio-item:nth-child(2) { grid-column: span 5; background: var(--portfolio-g2); }
.portfolio-item:nth-child(3) { grid-column: span 5; background: var(--portfolio-g3); }
.portfolio-item:nth-child(4) { grid-column: span 7; background: var(--portfolio-g4); }
/* Image-based portfolio card */
.portfolio-img-wrap {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.portfolio-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
  filter: brightness(0.7);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: var(--portfolio-overlay);
  opacity: 1;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.portfolio-item:hover { border-color: var(--border-hover); box-shadow: 0 8px 40px rgba(255,74,35,0.15); }
.portfolio-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.portfolio-info span {
  font-size: 0.8rem;
  color: var(--electric);
}
/* View Project arrow on hover */
.portfolio-info::after {
  content: 'View Project →';
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
.portfolio-item:hover .portfolio-info::after {
  opacity: 1;
  transform: translateY(0);
}

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--bg-primary); }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .section-subtitle { margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.reviewer-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== PRICING ========== */
.pricing { background: var(--bg-secondary); }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-header .section-subtitle { margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}
.pricing-card.popular {
  border-color: var(--electric);
  box-shadow: 0 0 40px rgba(255,74,35,0.15);
}
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric);
  margin-bottom: 10px;
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.pricing-features li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--green);
  flex-shrink: 0;
}
.pricing-cta { margin-top: 32px; width: 100%; text-align: center; justify-content: center; }

/* ========== FAQ ========== */
.faq { background: var(--bg-primary); }
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-header .section-subtitle { margin: 0 auto; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  gap: 16px;
}
.faq-question h4 {
  font-size: 0.97rem;
  font-weight: 600;
  flex: 1;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,74,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--electric);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 28px 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.cta-box {
  background: linear-gradient(135deg, rgba(255,74,35,0.08), rgba(204,42,15,0.06));
  border: 1px solid rgba(255,74,35,0.22);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,74,35,0.18), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== CONTACT ========== */
.contact { background: var(--bg-primary); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-subtitle { margin-bottom: 40px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}
.contact-detail:hover { border-color: var(--border-hover); }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,74,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-detail-text .value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: #0e0e0e;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FF4A23' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color-scheme: dark;
}
.form-group select option,
.form-group select optgroup {
  background: #0e0e0e;
  color: #f5f0ee;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  padding: 10px 14px;
}
.form-group select option:checked,
.form-group select option:focus,
.form-group select option:hover {
  background: #FF4A23;
  color: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--electric);
  background: rgba(255,74,35,0.05);
  box-shadow: 0 0 0 3px rgba(255,74,35,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { align-self: flex-start; padding: 16px 40px; font-size: 1rem; }

/* ========== FOOTER ========== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--electric);
  color: var(--electric);
  background: rgba(255,74,35,0.06);
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--electric); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a:hover { color: var(--electric); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FLOATING CTA BUTTON ========== */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  padding: 14px 22px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(255,74,35,0.45);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  animation: float-bounce 3s ease-in-out infinite;
}
.float-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 40px rgba(255,74,35,0.6);
  animation: none;
}
.float-cta .fcta-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.float-cta-label { white-space: nowrap; }
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== STAT COUNTER ANIMATION ========== */
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ========== RESPONSIVE ========== */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Portfolio: go full-width stacked */
  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(2),
  .portfolio-item:nth-child(3),
  .portfolio-item:nth-child(4) { grid-column: span 12; }

  /* Hero: shrink spline viewer so text still fits */
  .hero-bg spline-viewer { width: 55%; }
  .hero-content { max-width: 520px; }
}

/* ---- Mobile landscape / large phones (≤768px) ---- */
@media (max-width: 768px) {
  /* Global section padding */
  section { padding: 72px 0; }

  /* ---- Navbar ---- */
  .nav-links,
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  /* Make sure CTA button stays but shrinks */
  .nav-cta { gap: 10px; }
  .nav-cta .btn-primary {
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  /* ---- Hero ---- */
  .hero { min-height: 100svh; padding-top: 90px; align-items: flex-start; }
  .hero-content { max-width: 100%; text-align: center; padding-top: 24px; }

  /* Hide 3D spline viewer on mobile — too heavy & crops the text */
  .hero-bg spline-viewer { display: none; }

  .hero-badge { margin: 0 auto 20px; font-size: 0.75rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 16px; }
  .hero-desc { font-size: 1rem; margin: 0 auto 28px; text-align: center; }

  .hero-actions {
    justify-content: center;
    gap: 12px;
  }
  .hero-actions .btn { padding: 12px 22px; font-size: 0.9rem; }

  .hero-stats {
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
  }
  .stat-item { text-align: center; }
  .stat-item .stat-number { font-size: 1.7rem; }

  /* Scroll indicator */
  .scroll-indicator { display: none; }

  /* ---- Trusted ---- */
  .trusted { padding: 36px 0; }

  /* ---- Services ---- */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-header { margin-bottom: 40px; }

  /* ---- Process ---- */
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-step { padding: 0 8px; }
  .process-header { margin-bottom: 40px; }

  /* ---- Portfolio ---- */
  .portfolio-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .portfolio-item { aspect-ratio: 16/9; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* ---- Testimonials ---- */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-header { margin-bottom: 40px; }

  /* ---- Pricing ---- */
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pricing-header { margin-bottom: 40px; }

  /* ---- FAQ ---- */
  .faq-header { margin-bottom: 40px; }
  .faq-question { padding: 18px 20px; }
  .faq-answer p { padding: 0 20px 18px; }

  /* ---- CTA ---- */
  .cta-box { padding: 52px 24px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { text-align: center; justify-content: center; }

  /* ---- Contact ---- */
  .contact-inner { gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; justify-content: center; }

  /* ---- Footer ---- */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }

  /* ---- Float CTA ---- */
  .float-cta { bottom: 20px; right: 16px; padding: 12px 18px; font-size: 0.82rem; }
  .float-cta-label { display: none; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero h1 { font-size: 1.9rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 16px; }
  .stat-item .stat-number { font-size: 1.5rem; }

  /* Section headings */
  .section-title { font-size: 1.75rem; }

  /* Services */
  .card { padding: 24px 20px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 28px 22px; }

  /* FAQ */
  .faq-list { gap: 8px; }

  /* CTA */
  .cta-box { padding: 44px 18px; }

  /* Contact form */
  .contact-form { gap: 14px; }

  /* Footer */
  .footer-col ul { gap: 8px; }
}
