:root {
  --bg: #0b0e14;
  --panel: #101725;
  --text: #e9eef9;
  --muted: #a9b4c7;
  --border: rgba(233, 238, 249, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  --accent: #6ee7ff;
  --accent-2: #a78bfa;

  --radius: 16px;
  --container: 1100px;
  --gap: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% 0%, rgba(110, 231, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 80% 15%, rgba(167, 139, 250, 0.11), transparent 55%), var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
}

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

.tiny {
  font-size: 0.85rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--text);
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(233, 238, 249, 0.05);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 255, 0.35);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.18), rgba(167, 139, 250, 0.12));
  color: var(--text);
  transition: transform 120ms ease, border-color 120ms ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.link {
  color: rgba(233, 238, 249, 0.92);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero-image {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.78);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 52px 0;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-summary {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

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

.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.hero-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-photo-caption {
  width: 100%;
  max-width: 320px;
  text-align: right;
}

/* Panels, cards */
.panel,
.project-card,
.hobby-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two.compact {
  margin-top: 16px;
}

.list,
.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.note {
  margin-top: 14px;
}

.mini-head {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* Quote */
.quote {
  margin: 16px 0 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(233, 238, 249, 0.12);
  background: rgba(233, 238, 249, 0.03);
}

.quote p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.quote footer {
  margin-top: 8px;
}

/* Timeline with parallax feel */
.timeline-section {
  background: radial-gradient(900px 520px at 50% 0%, rgba(110, 231, 255, 0.10), transparent 60%), var(--bg);
  background-attachment: fixed;
}

.timeline {
  display: grid;
  gap: 22px;
  max-width: 820px;
}

.timeline-item {
  padding: 20px 20px 20px 24px;
  border-left: 3px solid var(--border);
  border-radius: 12px;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.timeline-item h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-item.highlight {
  border-left-color: rgba(110, 231, 255, 0.7);
  background: rgba(110, 231, 255, 0.06);
}

.timeline-item.future {
  opacity: 0.88;
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  padding: 22px;
}

.project-top {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card p + p {
  margin-top: 10px;
}

.project-featured {
  border-color: rgba(110, 231, 255, 0.35);
  background: radial-gradient(600px 260px at 20% 0%, rgba(110, 231, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.project-points {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Hobbies */
.hobbies-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hobby-card h3 {
  margin: 0 0 8px;
}

.hobby-card p {
  margin: 0;
}

/* Contact */
.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(233, 238, 249, 0.03);
}

.contact-label {
  color: var(--muted);
  font-weight: 650;
}

.contact-value {
  color: var(--text);
  font-weight: 650;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
}

/* Footer */
.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.section-foot {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hobbies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    justify-items: center;
    order: -1;
  }

  .hero-photo-caption {
    text-align: center;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
  }
}