:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #eef6ff;
  --muted: #a9b7c8;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #5ed7ff;
  --green: #75f0b3;
  --purple: #bfa8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 215, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 20%, rgba(191, 168, 255, 0.20), transparent 28rem),
    linear-gradient(135deg, #07111f 0%, #091827 52%, #06101b 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 215, 255, 0.24), rgba(117, 240, 179, 0.16));
  font-weight: 800;
  letter-spacing: -0.05em;
}

nav { display: flex; gap: 20px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

.section-pad { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 42px; align-items: center; padding-top: 76px; }
.eyebrow { margin: 0 0 14px; color: var(--green); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; }
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; }
h1 { max-width: 850px; font-size: clamp(3.2rem, 8vw, 6.8rem); line-height: 0.91; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; }
h3 { font-size: 1.35rem; }
.hero-subtitle { max-width: 690px; font-size: 1.18rem; margin: 28px 0 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--blue), var(--green)); color: #03111d; border: 0; }
.ghost { background: rgba(255,255,255,0.05); }
.disabled { color: #6d7b8d; cursor: not-allowed; }
.disabled:hover { transform: none; }

.hero-card, .project-card, .resume-panel, .contact-section {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 30px;
}
.hero-card { position: relative; padding: 30px; overflow: hidden; }
.profile-card { padding-top: 18px; }
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% 10%;
  height: 190px;
  background: radial-gradient(circle, rgba(94, 215, 255, 0.26), transparent 65%);
}
.profile-photo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(94, 215, 255, 0.72), rgba(117, 240, 179, 0.52), rgba(191, 168, 255, 0.5));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 23px;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 26px var(--green); }
.card-label, .project-meta { color: var(--blue); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.13em; }
.hero-card .status-dot, .hero-card .card-label, .hero-card h2, .hero-card ul { position: relative; z-index: 1; }
.hero-card ul { margin: 22px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }

.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; border-top: 1px solid var(--line); }
.intro-grid p:last-child { margin: 34px 0 0; font-size: 1.1rem; }
.section-heading { margin-bottom: 30px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { padding: 26px; min-height: 290px; display: flex; flex-direction: column; }
.project-card.featured { background: linear-gradient(155deg, rgba(94, 215, 255, 0.16), rgba(255, 255, 255, 0.07)); }
.project-card h3 { margin-top: 18px; }
.project-card p { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }

.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.skill-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-columns > div { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,0.052); }
.skill-columns p { margin-bottom: 0; }

.resume-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; }
.resume-panel p { max-width: 720px; }
.contact-section { text-align: center; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-links a { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255,255,255,0.05); font-weight: 800; }
footer { max-width: 1180px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero, .intro-grid, .split-section { grid-template-columns: 1fr; }
  .project-grid, .skill-columns { grid-template-columns: 1fr; }
  .resume-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header { position: static; align-items: flex-start; gap: 16px; flex-direction: column; }
  nav { gap: 12px; flex-wrap: wrap; }
  .section-pad { padding: 54px 18px; }
  h1 { font-size: 3.15rem; }
}
