/* JaDeLab — master stylesheet */

/* ============================================================
   BASE
   ============================================================ */
:root {
  --bg: #0b0d11;
  --bg2: #111318;
  --bg3: #181b22;
  --border: #1f2330;
  --text: #e8eaf0;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: 0.04em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent2); }

/* ============================================================
   SHARED — SECTIONS, HEADINGS, BUTTONS, TAGS
   ============================================================ */
section { padding: 96px clamp(1.5rem, 8vw, 8rem); }
section[id] { scroll-margin-top: 64px; }

.section-label {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: '//'; color: var(--muted); }

h1 {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #f0f2f8;
}
h1 .accent { color: var(--accent); }
h1 .dim { color: var(--muted); font-weight: 400; }

h2 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #f0f2f8;
  line-height: 1.15; margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--muted); font-size: 1rem;
  max-width: 500px; margin-bottom: 3.5rem; line-height: 1.7;
}

.btn-primary {
  font-family: var(--mono); font-size: 0.88rem;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 6px;
  text-decoration: none; letter-spacing: 0.03em;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--mono); font-size: 0.88rem;
  color: var(--muted); border: 1px solid var(--border);
  padding: 14px 28px; border-radius: 6px;
  text-decoration: none; letter-spacing: 0.03em;
  transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { color: var(--text); border-color: #3a3f50; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted); padding: 3px 10px; border-radius: 3px;
  letter-spacing: 0.03em;
}

/* ============================================================
   INDEX — HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px clamp(1.5rem, 8vw, 8rem) 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 860px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.hero-sub {
  font-size: 1.15rem;
  color: #8b92a8;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* ============================================================
   INDEX — SERVICES
   ============================================================ */
#services { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; background: var(--border); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.service-card {
  background: var(--bg2); padding: 2.5rem;
  transition: background .2s;
}
.service-card:hover { background: var(--bg3); }
.service-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.1rem;
}
.service-card h3 {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 600; color: var(--text); margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.service-link {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.service-link:hover { gap: 10px; }

/* ============================================================
   INDEX — WORK
   ============================================================ */
#work { background: var(--bg); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.work-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: border-color .2s, transform .2s;
  background: var(--bg2);
}
.work-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-2px); }
.work-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.work-img {
  aspect-ratio: 16/10; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.work-card.featured .work-img {
  aspect-ratio: unset; border-bottom: none;
  border-right: 1px solid var(--border);
}
.work-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: 100%; height: 100%; padding: 2rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 12px,
    rgba(255,255,255,0.015) 12px, rgba(255,255,255,0.015) 24px
  );
}
.work-img-placeholder .placeholder-label {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--muted); text-align: center; letter-spacing: 0.08em;
  opacity: 0.6;
}
.work-img-placeholder .placeholder-icon {
  width: 48px; height: 48px; border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2); font-size: 1.4rem;
}
.work-info { padding: 1.75rem; }
.work-card.featured .work-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.work-info .tech-tags { margin-bottom: 1rem; }
.work-badge {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--accent); background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 3px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 1rem;
  letter-spacing: 0.06em;
}
.work-info h3 {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 600; color: var(--text); margin-bottom: 0.6rem;
}
.work-info p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.work-status {
  font-family: var(--mono); font-size: 0.7rem;
  color: #f59e0b; display: flex; align-items: center; gap: 6px;
}
.work-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #f59e0b; animation: pulse 2s infinite;
}

/* ============================================================
   INDEX — ABOUT
   ============================================================ */
#about { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.about-avatar {
  aspect-ratio: 1; border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-family: var(--mono); color: var(--muted); font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 12px,
    rgba(255,255,255,0.015) 12px, rgba(255,255,255,0.015) 24px
  );
}
.avatar-placeholder { font-size: 3rem; opacity: 0.15; }
.avatar-caption { font-size: 0.65rem; letter-spacing: 0.1em; opacity: 0.5; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: #8b92a8; line-height: 1.8; font-size: 0.97rem; margin-bottom: 1.25rem; }
.about-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.about-point {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.about-point-icon {
  width: 32px; height: 32px; min-width: 32px; border-radius: 6px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.about-point-text strong {
  display: block; font-family: var(--mono); font-size: 0.82rem;
  color: var(--text); margin-bottom: 3px;
}
.about-point-text span { font-size: 0.83rem; color: var(--muted); }

/* ============================================================
   INDEX — TECH STACK
   ============================================================ */
#tech-stack { background: var(--bg); }
.stack-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stack-group h3 {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.stack-items { display: flex; flex-direction: column; gap: 8px; }
.stack-item {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 5px;
  transition: background .15s, color .15s;
  cursor: default;
}
.stack-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.stack-item::before { content: '▸'; color: var(--accent); font-size: 0.9rem; }

/* ============================================================
   INDEX — PRICING
   ============================================================ */
#pricing { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.pricing-card {
  background: var(--bg2); padding: 2rem;
  transition: background .2s;
}
.pricing-card:hover { background: var(--bg3); }
.pricing-card.highlight {
  background: rgba(59,130,246,0.07);
  border-top: 2px solid var(--accent);
}
.price-label {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.price-title {
  font-family: var(--mono); font-size: 0.95rem;
  font-weight: 600; color: var(--text); margin-bottom: 0.5rem;
}
.price-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }
.price-amount {
  font-family: var(--mono); font-size: 1.4rem;
  font-weight: 700; color: var(--text); margin-bottom: 0.25rem;
}
.price-amount .currency { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.price-note { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }
.pricing-footer {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: rgba(255,255,255,0.02);
}
.pricing-footer p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.pricing-footer p strong { color: var(--text); }

/* ============================================================
   INDEX — CONTACT
   ============================================================ */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-meta { display: flex; flex-direction: column; gap: 1rem; }
.contact-meta-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.82rem;
}
.contact-meta-item span { color: var(--muted); }
.contact-meta-item a { color: var(--text); text-decoration: none; transition: color .2s; }
.contact-meta-item a:hover { color: var(--accent); }
.contact-meta-item .dot {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
form { display: flex; flex-direction: column; gap: 1rem; accent-color: var(--accent); }
label {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; display: block; margin-bottom: 5px;
}
input, textarea, select {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: var(--sans); font-size: 0.9rem;
  padding: 12px 14px; outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
button[type=submit] {
  font-family: var(--mono); font-size: 0.88rem;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 6px;
  border: none; cursor: pointer; letter-spacing: 0.03em;
  transition: background .2s, transform .15s;
  align-self: flex-start; margin-top: 0.5rem;
}
button[type=submit]:hover { background: var(--accent2); transform: translateY(-1px); }

/* ============================================================
   PORTFOLIO — PAGE HERO
   ============================================================ */
.page-hero {
  min-height: 40vh;
  display: flex; align-items: center;
  padding: 120px clamp(1.5rem, 8vw, 8rem) 72px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 40%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); margin-bottom: 0.75rem; }
.page-hero-sub {
  font-size: 1.05rem; color: #8b92a8;
  line-height: 1.7; font-weight: 300;
}

/* ============================================================
   PORTFOLIO — FILTER & CARDS
   ============================================================ */
.portfolio-section { padding: 96px clamp(1.5rem, 8vw, 8rem); background: var(--bg); }
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 4px;
  cursor: pointer; letter-spacing: 0.04em;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--text); border-color: #3a3f50; }
.filter-btn.active {
  color: var(--accent); border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.07);
}
.portfolio-list { display: flex; flex-direction: column; gap: 1.5rem; }
.portfolio-card {
  display: grid; grid-template-columns: 300px 1fr;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg2);
  transition: border-color .2s, transform .2s;
}
.portfolio-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-2px); }
.portfolio-img {
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 12px,
    rgba(255,255,255,0.015) 12px, rgba(255,255,255,0.015) 24px
  );
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 200px;
}
.portfolio-img--screenshot { background: #000; padding: 0; overflow: hidden; }
.portfolio-img--screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: object-position .4s ease; }
.portfolio-card:hover .portfolio-img--screenshot img { object-position: bottom; }
.work-img--screenshot { background: #000; overflow: hidden; }
.work-img--screenshot img { width: calc(100% + 16px); margin-left: -16px; height: 100%; object-fit: cover; object-position: left top; display: block; }
.portfolio-img-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 2rem; width: 100%;
}
.portfolio-img-icon {
  width: 52px; height: 52px; border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.portfolio-img-label {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--muted); text-align: center;
  letter-spacing: 0.08em; opacity: 0.6;
}
.portfolio-info { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.portfolio-badge {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--accent); background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 3px 10px; border-radius: 100px;
  display: inline-block; letter-spacing: 0.06em;
  align-self: flex-start;
}
.portfolio-info h3 {
  font-family: var(--mono); font-size: 1.05rem;
  font-weight: 600; color: var(--text);
}
.portfolio-info p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.portfolio-features { display: flex; flex-direction: column; gap: 6px; }
.portfolio-features h4 {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 4px;
}
.portfolio-features ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.portfolio-features li {
  font-size: 0.83rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.portfolio-features li::before { content: '▸'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }
.portfolio-info .tech-tags { margin-bottom: 0; }

/* ============================================================
   PORTFOLIO — CONTACT CTA
   ============================================================ */
.contact-cta {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 72px clamp(1.5rem, 8vw, 8rem);
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.contact-cta-text h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.contact-cta-text p { color: var(--muted); font-size: 0.95rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2.5rem clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  background: var(--bg);
}
.footer-logo { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); text-decoration: none; transition: color .2s;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-family: var(--mono); font-size: 0.7rem; color: #3a3f50; }

/* ============================================================
   NAV — BURGER BUTTON
   ============================================================ */
.nav-end { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 7px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* burger visible, nav links become overlay */
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    overscroll-behavior: contain;
    background: rgba(11, 13, 17, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    font-size: 0.88rem;
    color: var(--muted);
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text);
    background: rgba(255,255,255,0.025);
  }

  /* layout */
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-avatar { max-height: 220px; aspect-ratio: unset; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .work-card.featured .work-img { aspect-ratio: 16/9; border-right: none; border-bottom: 1px solid var(--border); }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-img { border-right: none; border-bottom: 1px solid var(--border); min-height: 140px; }
  .contact-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  section { padding: 56px 1.25rem; }
  #hero { padding: 88px 1.25rem 56px; min-height: 100svh; }
  .page-hero { padding: 96px 1.25rem 52px; }
  .portfolio-section { padding: 56px 1.25rem; }
  .contact-cta { padding: 48px 1.25rem; }

  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .section-desc { margin-bottom: 2.5rem; }

  /* hero */
  .hero-badge { font-size: 0.65rem; padding: 5px 12px; margin-bottom: 1.5rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  /* hide CTA button in nav — the burger menu has all links */
  .nav-cta { display: none; }

  /* pricing — single column */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-footer { flex-direction: column; align-items: stretch; }
  .pricing-footer .btn-primary { justify-content: center; }

  /* footer */
  footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem 1.25rem; }

  /* portfolio page CTA */
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; justify-content: center; }

  /* filter bar — horizontal scroll instead of wrapping */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  /* prevent iOS auto-zoom on input focus */
  input, select, textarea { font-size: 1rem; }

  /* ensure 44px touch targets */
  .btn-primary, .btn-ghost, button[type=submit], .filter-btn { min-height: 44px; }
  .nav-burger { width: 40px; height: 40px; }

  /* hide decorative elements that waste space */
  .hero-glow { display: none; }
  .about-avatar { display: none; }

  /* keep tech stack readable at 2 columns */
  .stack-sections { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TOUCH DEVICES — remove hover effects
   ============================================================ */
@media (hover: none) {
  .service-card:hover,
  .work-card:hover,
  .pricing-card:hover,
  .portfolio-card:hover {
    transform: none;
    box-shadow: none;
  }
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-glow { display: none; }
}
