*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --black: #111110;
  --gray-100: #f5f4f0;
  --gray-200: #e8e7e2;
  --gray-400: #a8a7a2;
  --gray-600: #6b6a66;
  --accent: #2a6df4;
  --accent-light: #e8f0fe;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  cursor: pointer;
}

#paint-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  width: 100%;
  height: 100%;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: "DM Serif Display", serif;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

/* HERO */
#hero {
  min-height: 100vh;
  padding: 60px 10% 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 40%,
    var(--accent-light) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: "DM Serif Display", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--black);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gray-200);
}

/* SECTION BASE */
section {
  padding: 7rem 10%;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.5rem;
}

/* ABOUT */
#about {
  background: var(--gray-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 1rem;
}

.about-text p {
  color: var(--gray-600);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-number {
  font-family: "DM Serif Display", serif;
  font-size: 2.5rem;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* SKILLS */
#skills {
}

.skills-intro {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.skills-intro p {
  color: var(--gray-600);
  font-weight: 300;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    border-color 0.2s,
    transform 0.2s;
  cursor: default;
}

.skill-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--black);
}

.skill-level {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* PROJECTS */
#projects {
  background: var(--gray-100);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

.project-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.project-thumb-1 {
  background: linear-gradient(135deg, #e8f0fe 0%, #c7d7fc 100%);
}

.project-thumb-2 {
  background: linear-gradient(135deg, #e1f5ee 0%, #9fe1cb 100%);
}

.project-thumb-3 {
  background: linear-gradient(135deg, #faeeda 0%, #fac775 100%);
}

.project-body {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.project-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    gap 0.2s,
    color 0.2s;
}

.project-link:hover {
  color: var(--accent);
  gap: 8px;
}

/* CONTACT */
#contact {
  text-align: center;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner p {
  color: var(--gray-600);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.contact-link:hover {
  border-color: var(--black);
  background: var(--gray-100);
  transform: translateY(-1px);
}

.contact-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

/* FOOTER */
footer {
  padding: 2rem 10%;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav {
    padding: 0 5%;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 5rem 5%;
  }

  #hero {
    padding: 80px 5% 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-scroll {
    left: 5%;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
