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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --text: #e4e4e7;
  --text-dim: #9ca3af;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --border: #1e1e2e;
  --radius: 12px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #818cf8; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 60px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.5rem; }

/* ── Sections ── */
section { padding: 6rem 1.5rem; }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-top: 0.75rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 60px;
}
.hero-content { max-width: 640px; }
.hero-eyebrow { font-size: 1rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: var(--text-dim); max-width: 520px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4f46e5; color: #fff; box-shadow: 0 0 24px var(--accent-glow); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Services ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--accent); background: var(--bg-card-hover);
  transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center; position: relative; transition: all .3s ease;
}
.pricing-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.price { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.price-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-card ul {
  list-style: none; text-align: left; margin-bottom: 2rem;
}
.pricing-card ul li {
  padding: 0.5rem 0; color: var(--text-dim); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card ul li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center; margin-top: 2rem; color: var(--text-dim); font-size: 0.95rem;
}

/* ── Portfolio / Projects ── */
.projects-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s ease;
}
.project-card:hover {
  border-color: var(--accent); background: var(--bg-card-hover);
  transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.project-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.project-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tag {
  font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.7rem;
  background: rgba(99, 102, 241, 0.1); color: var(--accent); border-radius: 6px;
}
.project-links { display: flex; gap: 1rem; }
.project-links a {
  font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ── Why Me / Values ── */
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.value-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s ease;
}
.value-card:hover {
  border-color: var(--accent); background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }

/* ── Contact ── */
.contact-content { max-width: 540px; }
.contact-content p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  text-align: center; padding: 2rem 1.5rem; font-size: 0.8rem; color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }

/* ── Responsive ── */
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .services-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .values-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: rgba(10,10,15,0.95); padding: 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 4rem 1.25rem; }
  .section-title { font-size: 1.6rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
