:root {
  --bg: #050816;
  --bg-alt: #070b1e;
  --bg-elevated: #0b1025;
  --card: rgba(15, 23, 42, 0.9);
  --card-soft: rgba(15, 23, 42, 0.8);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-strong: #0ea5e9;
  --accent-pink: #f472b6;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --danger: #fb7185;
  --radius-xl: 1.5rem;
  --radius-lg: 1.1rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-focus: 0 0 0 1px rgba(148, 163, 184, 0.35),
    0 0 0 4px rgba(56, 189, 248, 0.25);
  --blur-strong: blur(24px);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 40%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(244, 114, 182, 0.16), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.1), transparent 55%);
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: -2;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0 4rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), transparent),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
  border-block: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0.15rem 0 0.75rem;
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.1), transparent 55%),
    var(--card);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--blur-strong);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.card p {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-soft);
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.card ul li + li {
  margin-top: 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 180ms ease,
    color 180ms ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: #0b1120;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.5);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--border-subtle);
  color: var(--text-soft);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent-soft);
  color: var(--text);
}

.btn.small {
  padding-inline: 1rem;
  padding-block: 0.55rem;
  font-size: 0.8rem;
}

.btn.full-width {
  width: 100%;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.85);
  margin-top: 0.35rem;
  margin-right: 0.4rem;
  backdrop-filter: blur(10px);
}

.pill-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.5), transparent),
    #020617;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.nav a {
  position: relative;
  color: var(--text-soft);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-pink));
  transition: width 180ms ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 4.2rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 2.9vw + 1.4rem, 3.1rem);
  margin: 0.4rem 0 0.9rem;
  letter-spacing: 0.01em;
}

.highlight {
  position: relative;
  display: inline-block;
  background: radial-gradient(
      circle at 0 100%,
      rgba(56, 189, 248, 0.35),
      transparent 60%
    ),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.4), transparent 60%);
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 34rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.7rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.hero-metrics > div {
  padding-left: 0.1rem;
}

.hero-metrics dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
}

.hero-metrics dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-panel {
  position: relative;
}

.hero-card {
  position: relative;
  padding: 1.7rem 1.9rem 1.6rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(244, 114, 182, 0.35), transparent 55%),
    rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur-strong);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 220deg,
    rgba(56, 189, 248, 0.1),
    transparent,
    rgba(244, 114, 182, 0.12),
    transparent,
    rgba(56, 189, 248, 0.15)
  );
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: spin 22s linear infinite;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.hero-badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316, #22c55e);
}

.hero-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-project-list li h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.hero-project-list li p {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 2.1rem;
  align-items: flex-start;
}

.experience-summary ul {
  margin: 0.5rem 0 0;
}

.timeline {
  display: grid;
  gap: 1.35rem;
}

.timeline-item {
  padding-left: 1.4rem;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

.timeline-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.timeline-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-item p {
  margin-top: 0.4rem;
  color: var(--text-soft);
}

.project {
  position: relative;
}

.project-media {
  margin: 0.5rem 0 0.75rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
}

.project-tag {
  display: inline-flex;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.project-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.project p {
  color: var(--text-soft);
}

.project-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: flex-start;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-details a {
  color: var(--accent-strong);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.55rem 0.7rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: var(--shadow-focus);
}

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

.contact-note {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.site-footer {
  padding: 2.4rem 0 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.site-footer span#year {
  font-variant-numeric: tabular-nums;
}

/* Reveal animation */
.pre-view {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(640px, 100% - 2rem);
  }

  .section {
    padding-block: 3.5rem;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .nav {
    font-size: 0.8rem;
    gap: 0.9rem;
  }

  .brand-name {
    display: none;
  }
}

@media (max-width: 540px) {
  .nav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    gap: 1rem;
  }
}

