:root {
  --bg: #151d31;
  --bg-alt: #1a2338;
  --surface: #1d273f;
  --surface-2: #222d49;
  --border: #35426e;
  --text: #f0f2f8;
  --text-dim: #b3bbd1;
  --text-faint: #7c88a8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --azure: #0ea5e9;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(21, 29, 49, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}
.brand span.tag {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(59,130,246,0.6); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(600px 300px at 30% 0%, rgba(59,130,246,0.25), transparent 60%),
              radial-gradient(500px 260px at 80% 10%, rgba(34,211,238,0.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

/* Badges strip */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.badge {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.about-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--accent-2); }
.about-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.freelance-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-faint);
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.about-body p { color: var(--text-dim); margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }

/* Services */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,211,238,0.14));
  margin-bottom: 18px;
  font-size: 20px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* Work */
.work-note {
  font-size: 13px;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  display: inline-block;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.work-card img { width: 100%; height: auto; }
.work-card .work-info { padding: 20px 22px; }
.work-card h3 { font-size: 16px; margin-bottom: 6px; }
.work-card p { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.work-tags span {
  font-size: 11px;
  color: var(--accent-2);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Process */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.timeline .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
}
.timeline .step .num {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.timeline .step h3 { font-size: 15px; margin-bottom: 8px; }
.timeline .step p { font-size: 13px; color: var(--text-dim); margin: 0; }

/* Tech */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-chips span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-card h3 { font-size: 22px; margin-bottom: 14px; }
.contact-card p { color: var(--text-dim); margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.contact-list a:hover { border-color: var(--accent); color: var(--accent-2); }
.availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #86efac;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 8px 14px; border-radius: 999px;
}
.availability .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand .tag { display: none; }
  .nav-cta .btn-primary { display: none; }
}
