:root {
  --bg: #0b0d10;
  --bg-2: #0f1318;
  --ink: #f1f3f5;
  --muted: #9aa4b2;
  --accent: #2bf6ff;
  --accent-2: #4d7cff;
  --card: #141a22;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #121821 0%, #0b0d10 55%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: rgba(11, 13, 16, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.nav nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-2));
  color: #031317;
}

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

.btn.underline {
  color: var(--muted);
  border: none;
  padding: 12px 4px;
  border-bottom: 1px solid transparent;
}

.btn.underline:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 120px 6vw 80px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.hero h1 .light {
  color: var(--muted);
  font-weight: 300;
}

.tagline {
  margin: 20px 0 30px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 30px;
}

.stat {
  font-size: 20px;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-image {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-image img {
  width: min(360px, 80vw);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  object-fit: cover;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-image img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-glow {
  position: absolute;
  inset: 20% 10% auto 10%;
  height: 260px;
  background: radial-gradient(circle, rgba(43, 246, 255, 0.35), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

.hero-card {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  width: min(280px, 80vw);
  text-align: center;
}

.hero-card .card-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section {
  padding: 80px 6vw;
}

.section-title p {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.section-title h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-top: 12px;
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--muted);
}

.about-quote {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #101923, #141a22);
  border: 1px solid var(--stroke);
  font-size: 20px;
  font-family: "Playfair Display", serif;
}

.about-quote span {
  display: block;
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}

.skills-grid,
.project-grid,
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card,
.project-card,
.education-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.project-card:hover,
.education-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 246, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.skill-card h3 {
  margin-bottom: 12px;
}

.skill-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.project-card {
  display: grid;
  gap: 16px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(43, 246, 255, 0.1);
  color: var(--accent);
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-links .link {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.project-links .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.project-links .link:hover::after {
  width: 100%;
}

.project-links .status {
  color: var(--muted);
  font-size: 12px;
}

.education-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.edu-year {
  color: var(--accent);
  font-weight: 600;
}

.goals-grid .goal {
  background: linear-gradient(140deg, #111924, #0f151d);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--muted);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.goals-grid .goal:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 124, 255, 0.4);
  color: var(--ink);
}

.contact-card {
  display: grid;
  gap: 20px;
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.footer {
  text-align: center;
  padding: 40px 6vw 60px;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-card {
    position: static;
    transform: none;
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .btn.primary,
  .btn.ghost,
  .btn.underline {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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