@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --accent: #00f0ff;
  --accent-2: #ff003c;
  --card: rgba(20, 20, 25, 0.6);
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text,
  .hero-photo,
  .about-card,
  .skill-group,
  .project-card,
  .exp-card,
  .achievement-card,
  .edu-card,
  .cert-card,
  .contact-card {
    animation: rise 0.7s ease both;
  }

  .about-card:nth-child(2),
  .skill-group:nth-child(2),
  .project-card:nth-child(2),
  .edu-card:nth-child(2),
  .cert-card:nth-child(2) {
    animation-delay: 0.08s;
  }

  .about-card:nth-child(3),
  .skill-group:nth-child(3),
  .project-card:nth-child(3),
  .edu-card:nth-child(3),
  .cert-card:nth-child(3) {
    animation-delay: 0.16s;
  }
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

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

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 5vw, 56px);
  margin: 12px 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.cta {
  margin: 24px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

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

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

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.hero-photo {
  position: relative;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section {
  padding: 64px 24px;
  scroll-margin-top: 90px;
}

.section-title {
  max-width: 1100px;
  margin: 0 auto 32px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
}

.about-grid,
.skills-grid,
.project-grid,
.education-grid,
.cert-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.about-card,
.skill-group,
.project-card,
.edu-card,
.cert-card,
.achievement-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover,
.skill-group:hover,
.project-card:hover,
.edu-card:hover,
.cert-card:hover,
.achievement-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}

.about-card h3,
.skill-group h3,
.project-card h3,
.edu-card h3 {
  margin-bottom: 12px;
}

.skill-group ul,
.project-card ul,
.edu-card ul,
.exp-body ul,
.achievement-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.skill-group ul li::before,
.project-card ul li::before,
.edu-card ul li::before,
.exp-body ul li::before,
.achievement-card ul li::before {
  content: "• ";
  color: var(--accent);
  font-weight: 700;
}

.experience {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.exp-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.exp-media img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-head h3 {
  margin-bottom: 4px;
}

.exp-head span {
  color: var(--muted);
  font-size: 14px;
}

.exp-meta {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.achievement-card {
  max-width: 1100px;
  margin: 0 auto;
}

.achievement-card h3 {
  margin-bottom: 8px;
}

.achievement-media img {
  border-radius: 16px;
  margin-bottom: 14px;
  width: 100%;
  object-fit: cover;
  max-height: 320px;
}

.achievement-project {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: rgba(0, 0, 0, 0.3);
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.achievement-project h4 {
  margin-bottom: 8px;
}

.achievement-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding-bottom: 90px;
}

.contact-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

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

.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
}

.video-card {
  max-width: 1100px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  align-items: center;
}

.video-content h3 {
  margin-bottom: 12px;
}

.video-content p {
  color: var(--muted);
}

.video-wrapper video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  display: block;
}

@media (max-width: 860px) {
  .exp-card,
  .video-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
  }

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