:root {
  --bg: #08111f;
  --bg-alt: #0f1b2e;
  --panel: rgba(15, 27, 46, 0.88);
  --panel-solid: #12233b;
  --text: #e8eef8;
  --muted: #9fb0c8;
  --accent: #5ab2ff;
  --accent-2: #8be9fd;
  --accent-warm: #f0b45d;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(90,178,255,0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(240,180,93,0.10), transparent 25%),
    linear-gradient(180deg, #07101d 0%, #0a1526 55%, #0d1b30 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(8, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: 1rem 0 1.5rem;
}

.hero-card,
.panel,
.card,
.timeline-item,
.project-card,
.contact-card,
.resume-section,
.photo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2.2rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 0;
}

.hero h1 span {
  color: var(--accent-2);
}

.hero .headline {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 64ch;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button {
  background: linear-gradient(135deg, var(--accent), #3c8dff);
  color: #07111e;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.2rem;
}

.metric {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.metric-label {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-2,
.projects-grid,
.contact-grid,
.resume-grid {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resume-grid { grid-template-columns: 1.2fr 0.8fr; }

.card,
.project-card,
.contact-card,
.resume-section,
.photo-card,
.timeline-item {
  padding: 1.2rem;
}

.card h3,
.project-card h3,
.resume-section h3,
.photo-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.card p,
.project-card p,
.resume-section p,
.resume-section li,
.timeline-item p,
.contact-card p {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(90,178,255,0.25);
  background: rgba(90,178,255,0.08);
  color: #dff0ff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
}

.badge.planned {
  border-color: rgba(240,180,93,0.24);
  background: rgba(240,180,93,0.09);
  color: #ffe7bf;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.tech-list span {
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-meta {
  color: var(--accent-2);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.timeline-item h3 {
  margin: 0;
}

.timeline-item .when {
  color: var(--accent-2);
  font-weight: 700;
  margin: 0.15rem 0 0.8rem;
}

.timeline-item ul,
.resume-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.resume-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}

.resume-section th,
.resume-section td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.75rem 0.35rem;
  vertical-align: top;
}

.resume-section th {
  color: var(--accent-2);
  font-size: 0.92rem;
}

.photo-card {
  overflow: hidden;
}

.photo-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.2rem 0 2.4rem;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.highlight {
  color: var(--accent-2);
}

@media (max-width: 980px) {
  .hero,
  .resume-grid,
  .grid-3,
  .grid-2,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .card,
  .project-card,
  .contact-card,
  .resume-section,
  .photo-card,
  .timeline-item {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .headline {
    font-size: 1rem;
  }

  main {
    padding-top: 1.2rem;
  }
}
