/* ============================================
   IBRAHYM JAVAID — PORTFOLIO
   Design System: 3D Hyperrealism + Glassmorphism
   Palette: #050510 base, #6366F1 indigo, #22D3EE cyan
   Typography: Space Grotesk + DM Sans
   ============================================ */

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

:root {
  --bg: #050510;
  --bg-surface: #0a0a1a;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --primary: #6366F1;
  --primary-light: #818CF8;
  --accent: #22D3EE;
  --cta: #8B5CF6;
  --text: #F1F5F9;
  --text-muted: #64748B;
  --text-dim: #475569;
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6, #22D3EE);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(34,211,238,0.08));
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Cinematic Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  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.85' 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;
}

/* --- Cinematic Vignette --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader.hidden {
  pointer-events: none;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spin 1s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Custom Cursor --- */
.cursor, .cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  top: 0;
  left: 0;
  mix-blend-mode: difference;
}

.cursor {
  width: 8px;
  height: 8px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hovering {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
}

/* --- Three.js Canvas --- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Navbar --- */
#navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 16, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 5, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--text); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

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

.nav-cta {
  padding: 8px 20px;
  background: var(--primary);
  border-radius: var(--radius-full);
  color: #fff !important;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: rgba(5, 5, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.mobile-link:hover {
  color: var(--text);
  background: var(--glass);
}

/* --- Hero --- */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-badge.visible { opacity: 1; transform: translateY(0); }

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.title-line.visible { opacity: 1; transform: translateY(0); }

.title-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-subtitle.visible { opacity: 1; transform: translateY(0); }

.hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-desc.visible { opacity: 1; transform: translateY(0); }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-ctas.visible { opacity: 1; transform: translateY(0); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 12px 40px rgba(99, 102, 241, 0.35);
}

.btn-glass {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-glass:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-card {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  margin-top: auto;
}

.btn-card:not(.btn-primary) {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-card:not(.btn-primary):hover {
  background: var(--glass-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.scroll-indicator.visible { opacity: 0.55; }

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Section Styles --- */
section {
  position: relative;
  z-index: 1;
}

#services, #process, #about, #contact {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.06);
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(160deg, rgba(99,102,241,0.1), rgba(139,92,246,0.03), rgba(34,211,238,0.02));
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.08);
}

.pricing-card.featured:hover {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(99, 102, 241, 0.12);
}

.card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.pricing-card:hover .card-glow { opacity: 1; }
.pricing-card.featured .card-glow { opacity: 0.5; }

.card-content {
  position: relative;
  z-index: 1;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured .card-content {
  padding-top: 48px;
}

.card-header { margin-bottom: 24px; }

.tier-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.pricing-card.featured .tier-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.15));
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.card-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.card-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.pricing-card.featured .card-features li svg {
  color: var(--primary-light);
}

/* --- Projects Section --- */
#projects {
  padding: 120px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  perspective: 1200px;
  cursor: pointer;
  min-height: 340px;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  border-radius: 20px;
}

.project-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s ease;
  overflow: hidden;
}

.project-card:hover .project-content {
  border-color: rgba(99, 102, 241, 0.35);
}

.project-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.project-shine {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
  transition: opacity 0.4s ease;
}

.project-card:hover .project-shine { opacity: 1; }

.project-shadow {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  width: 90%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2), transparent 70%);
  filter: blur(8px);
  opacity: 0.4;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover .project-shadow {
  transform: translateX(-50%) scale(1);
  opacity: 0.7;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(34,211,238,0.1));
  border-radius: 12px;
  color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.2);
}

.project-number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-light);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.project-link:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}

.project-link svg {
  transition: transform 0.3s ease;
}
.project-link:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  #projects { padding: 80px 0; }
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.05);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-tag {
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.tech-tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

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

.stat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.06);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-light);
  display: inline;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Contact Section --- */
.contact-box {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  padding: 80px 40px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 80px rgba(99, 102, 241, 0.06);
}

.contact-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), rgba(139,92,246,0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-tagline { color: var(--text-muted); }

/* --- Background Gradient Overlays & Dividers --- */
#services::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08), rgba(139,92,246,0.03) 40%, transparent 70%);
  pointer-events: none;
}

/* Gradient divider lines between sections */
#services::after,
#projects::after,
#process::after,
#about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), rgba(34,211,238,0.1), transparent);
  pointer-events: none;
}

/* Hero ambient glow */
#hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.08), rgba(139,92,246,0.03) 40%, transparent 65%);
  pointer-events: none;
  animation: hero-glow 6s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { opacity: 0.5; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Tech tag hover glow */
.tech-tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
  background: rgba(99, 102, 241, 0.06);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  #hero { padding: 100px 20px 60px; min-height: 100svh; }

  .hero-title { letter-spacing: -1px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { order: -1; }

  .process-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-text { order: 1; }
  .about-stats { order: 2; }
  .tech-stack { justify-content: center; }

  .contact-box { padding: 60px 24px; }

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

  .scroll-indicator { display: none; }

  #services, #process, #about, #contact { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 32px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
