/* ========================================
   CSS Variables & Reset
======================================== */
:root {
  /* Colors - Light Mode */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --bg-card: rgba(0, 0, 0, 0.02);
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #a1a1a1;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --accent: #10b981;
  --accent-hover: #047857;
  --gradient-start: #047857;
  --gradient-mid: #10b981;
  --gradient-end: #34d399;

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --section-padding: 160px;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Effects */
  --glow: 0 0 80px rgba(16, 185, 129, 0.4);
}

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

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

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

/* ========================================
   Grain Overlay
======================================== */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========================================
   Animated Gradient Orbs (hidden - using hero pseudo-elements instead)
======================================== */
.orb {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* ========================================
   Layout
======================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ========================================
   Navigation
======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-color);
}

.nav.hidden {
  transform: translateY(-100%);
}

/* Nav colors in hero (dark) */
.nav:not(.scrolled) .nav-logo {
  color: white;
}

.nav:not(.scrolled) .nav-cta {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.nav:not(.scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(16, 185, 129, 0.4);
  transition: border-color var(--transition-fast);
}

.nav-logo:hover .nav-avatar {
  border-color: rgba(16, 185, 129, 0.7);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-cta::after {
  content: "→";
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.nav-cta:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.nav-cta:hover::after {
  transform: translateX(2px);
}

/* ========================================
   Hero Section
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  color: white;
}

/* Animated ambient gradient glow */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(
      ellipse 40% 30% at 30% 30%,
      rgba(255, 255, 255, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse 35% 35% at 70% 70%,
      rgba(255, 255, 255, 0.06),
      transparent 50%
    ),
    radial-gradient(
      ellipse 30% 25% at 80% 20%,
      rgba(255, 255, 255, 0.04),
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
  animation: gradientFlow 15s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5%, 5%) rotate(2deg);
  }
  50% {
    transform: translate(-3%, 8%) rotate(-1deg);
  }
  75% {
    transform: translate(8%, -3%) rotate(1deg);
  }
}

/* Subtle noise texture overlay */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-container {
    padding-left: 80px;
  }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-wrap: balance;
  max-width: 800px;
}

.hero-title-line {
  display: block;
}

.hero-title-gradient {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 12px;
  line-height: 1.6;
  text-wrap: balance;
}

.hero-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.btn-primary {
  padding: 10px 16px 10px 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  gap: 6px;
}

.btn-primary::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::after {
  transform: translateX(3px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary span {
  position: relative;
}

/* Hero CTA button - Stripe-style */
.btn-glow {
  padding: 10px 16px 10px 20px;
  background: white;
  color: #0a0a0a;
  border-radius: 50px;
  position: relative;
  font-weight: 500;
  font-size: 15px;
  gap: 6px;
}

.btn-glow::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.btn-glow:hover::after {
  transform: translateX(3px);
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-submit {
  width: 100%;
  padding: 16px 28px;
  font-size: 15px;
  position: relative;
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline;
}

/* ========================================
   Section Titles
======================================== */
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  text-wrap: balance;
}

.section-intro {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 72px;
  text-wrap: balance;
}

/* ========================================
   What I Do Section
======================================== */
.what-i-do {
  position: relative;
  padding-top: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature {
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: balance;
}

/* ========================================
   What You Get Section
======================================== */
.what-you-get {
  border-top: 1px solid var(--border-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.benefits-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.benefit-card-large {
  background: linear-gradient(
    135deg,
    rgba(4, 120, 87, 0.08) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  border-color: rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
}

.benefit-card-large:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--gradient-mid);
}

.benefit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: balance;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  font-size: 17px;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.benefit-list li:last-child {
  border-bottom: none;
}

.benefit-list li:hover {
  color: var(--text-primary);
}

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

  .benefits-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .benefits-right {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.process-step {
  padding: 40px 32px;
  background: var(--bg-secondary);
  position: relative;
  transition: background var(--transition-base);
}

.process-step:hover {
  background: var(--bg-tertiary);
}

.process-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--gradient-mid);
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.process-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: balance;
}

/* ========================================
   Portfolio Section
======================================== */
.portfolio {
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

.portfolio-item {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-slow);
  position: relative;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.03);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e5e5, #f5f5f5);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--transition-base);
}

.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 4px;
}

.portfolio-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: white;
}

.portfolio-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

/* Show info by default on mobile/touch */
@media (hover: none) {
  .portfolio-item::before {
    opacity: 1;
  }
  .portfolio-info {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   About Section
======================================== */
.about {
  border-top: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all var(--transition-base);
}

.about-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.about-content {
  max-width: 600px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 250px;
    aspect-ratio: 1;
  }
}

.about-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.about-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.about-text a:hover {
  opacity: 0.8;
}

.about-text.muted {
  color: var(--text-muted);
  font-style: italic;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
  transition: opacity var(--transition-fast);
}

.about-link:hover {
  opacity: 0.8;
}

.about-link svg {
  transition: transform var(--transition-fast);
}

.about-link:hover svg {
  transform: translate(2px, -2px);
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.testimonial {
  padding: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  margin: 0;
  transition: border-color var(--transition-base);
}

.testimonial:nth-child(2) {
  margin-top: 80px;
}

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

.testimonial-text {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

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

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

  .testimonial {
    padding: 32px;
  }

  .testimonial:nth-child(2) {
    margin-top: 0;
  }

  .testimonial-text {
    font-size: 16px;
  }
}

/* ========================================
   FAQ Section
======================================== */
.faq {
  border-top: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 24px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

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

  .faq-question {
    padding: 20px 24px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 24px 20px;
  }
}

/* ========================================
   Contact Section
======================================== */
.contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(16, 185, 129, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header .section-title {
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-wrap: balance;
  max-width: 480px;
  margin: 0 auto;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gradient-mid);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: var(--bg-secondary);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23525252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 64px 24px;
}

.form-success.show {
  display: block;
}

.contact-form.hidden {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.success-icon svg {
  color: white;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========================================
   Footer
======================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

/* ========================================
   Animation Classes
======================================== */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles fade in */
.revealed .section-title,
.section-title.revealed {
  opacity: 1;
}

/* Section intro fades in */
.revealed .section-intro {
  opacity: 1;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Hero Cursor Orb - disabled for cleaner look */
.hero-cursor-orb {
  display: none;
}

/* Smooth transitions for magnetic buttons */
.btn-glow,
.nav-cta {
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    color 0.3s ease;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .stagger-item,
  .section-title,
  .section-intro {
    transition: opacity 0.4s ease;
    transform: none !important;
  }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

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

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

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 100px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-title {
    margin-bottom: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    gap: 16px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 16px;
  }

  .process-step {
    padding: 28px 24px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .orb {
    opacity: 0.3;
  }

  .orb-1 {
    width: 400px;
    height: 400px;
  }

  .orb-2 {
    width: 300px;
    height: 300px;
  }

  .orb-3 {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 80px;
  }

  .nav-logo {
    font-size: 14px;
  }

  .nav-cta {
    font-size: 12px;
    padding: 6px 12px 6px 14px;
  }

  .hero-tagline {
    margin-bottom: 28px;
  }

  .btn-glow,
  .btn-primary {
    padding: 12px 20px 12px 24px;
    width: 100%;
    justify-content: center;
  }

  .feature {
    padding: 24px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-intro {
    margin-bottom: 48px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .portfolio-item {
    border-radius: 16px;
  }

  .portfolio-info {
    padding: 24px;
  }

  .portfolio-title {
    font-size: 22px;
  }
}

/* ========================================
   Legal Pages (Terms & Privacy)
   ======================================== */

.legal-page {
  padding: 160px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--accent-pink);
}

/* Footer Links */
.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ========================================
   Case Study Pages
======================================== */
.case-study {
  padding-top: 120px;
}

.case-study-hero {
  padding-bottom: 64px;
}

.case-study-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.case-study-back:hover {
  color: var(--text-primary);
}

.case-study-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.case-study-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.case-study-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.case-study-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study-meta-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.case-study-meta-value {
  font-size: 15px;
  color: var(--text-primary);
}

.case-study-featured {
  margin-bottom: 80px;
}

.case-study-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.case-study-image img {
  width: 100%;
  height: auto;
  display: block;
}

.container-narrow {
  max-width: 720px;
}

.case-study-section {
  padding: 48px 0;
}

.case-study-section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.case-study-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.case-study-section p:last-child {
  margin-bottom: 0;
}

.case-study-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.case-study-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.case-study-list li:last-child {
  border-bottom: none;
}

.case-study-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--gradient-mid);
  border-radius: 50%;
}

.case-study-gallery {
  padding: 48px 0;
}

.case-study-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.case-study-stat {
  text-align: center;
}

.case-study-stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.case-study-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.case-study-cta {
  text-align: center;
  padding: 64px 0;
}

.case-study-cta .btn {
  display: inline-flex;
  gap: 8px;
}

.case-study-cta .btn svg {
  transition: transform var(--transition-fast);
}

.case-study-cta .btn:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .case-study {
    padding-top: 100px;
  }

  .case-study-meta {
    gap: 24px;
  }

  .case-study-gallery-grid {
    grid-template-columns: 1fr;
  }

  .case-study-section h2 {
    font-size: 24px;
  }
}
