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

:root {
  --navy:   #0f172a;
  --navy2:  #1e293b;
  --navy3:  #334155;
  --accent: #3b82f6;
  --accent2:#60a5fa;
  --text:   #f1f5f9;
  --muted:  #94a3b8;
  --border: #1e293b;
  --card:   #1e293b;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

nav .logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.3px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

nav ul a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
#hero {
  padding: 96px 0 72px;
  border-top: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h1 span { color: var(--accent2); }

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

/* ── Section headings ── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.service-card:hover { border-color: var(--navy3); }

.service-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Tech stack ── */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.stack-group h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--navy2);
  border: 1px solid var(--navy3);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

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

.project-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1B2A4A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.project-platforms {
  display: flex;
  gap: 6px;
}

.platform-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.platform-badge.muted {
  background: rgba(100, 100, 100, 0.15);
  color: var(--muted);
  border-color: rgba(100, 100, 100, 0.2);
}

.project-body { padding: 16px 24px 24px; }

.project-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-body .tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.project-features li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ── Why me ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.why-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}

.why-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Contact ── */
#contact { text-align: center; }

#contact h2 { margin-bottom: 12px; }

#contact p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

#contact .cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul { display: none; }
  .hero-cta { flex-direction: column; }
  #contact .cta-row { flex-direction: column; align-items: center; }
}
