html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #000000;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 52px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8rem;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #f5f5f7; }

/* ── SECTION BASE ── */
section {
  padding: 120px 2rem;
  max-width: 900px;
  margin: 0 auto;
}

section + section { border-top: 1px solid #2d2d2f; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2997ff;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}


#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 52px;
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(41, 151, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-content { position: relative; }

/* pfp */
.hero-pfp {
  margin-bottom: 2rem;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #2d2d2f;
}

.hero-pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pfp-placeholder {
  width: 100%;
  height: 100%;
  background: #1d1d1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #6e6e73;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tagline {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: #6e6e73;
  max-width: 540px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 1.4em;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover { opacity: 0.82; transform: scale(0.98); }

.btn-primary { background: #2997ff; color: #ffffff; }

.btn-secondary {
  background: transparent;
  color: #2997ff;
  border: 1px solid rgba(41, 151, 255, 0.4);
}

/* about */
.about-body {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #6e6e73;
  font-weight: 300;
}

.about-body p + p { margin-top: 1.2rem; }

/* skills */
.skills-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  border: 1px solid #2d2d2f;
  border-radius: 18px;
  overflow: hidden;
  gap: 1px;
  background: #2d2d2f;
}

.skill-item {
  background: #1d1d1f;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skill-icon { font-size: 1.4rem; line-height: 1; }

.skill-name { font-size: 0.88rem; font-weight: 500; color: #f5f5f7; }

.skill-tag { font-size: 0.68rem; color: #6e6e73; text-transform: uppercase; letter-spacing: 0.06em; }

/* projects */
.projects-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #1d1d1f;
  border: 1px solid #2d2d2f;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: rgba(41, 151, 255, 0.4);
  transform: translateY(-4px);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2a2a2c;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6e6e73;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.cover-placeholder svg { opacity: 0.35; }

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.6;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2997ff;
  background: rgba(41, 151, 255, 0.12);
  padding: 0.25em 0.65em;
  border-radius: 980px;
}

.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.project-link {
  font-size: 0.85rem;
  color: #2997ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.7; }

#contact { text-align: center; }

#contact h2 { margin-bottom: 0.75rem; }

.contact-sub {
  font-size: 1.1rem;
  color: #6e6e73;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  border-radius: 980px;
  background: #1d1d1f;
  border: 1px solid #2d2d2f;
  color: #f5f5f7;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: #2997ff;
  background: rgba(41, 151, 255, 0.12);
}

footer {
  border-top: 1px solid #2d2d2f;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6e6e73;
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-group.visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.00s; }
.reveal-group.visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.07s; }
.reveal-group.visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.14s; }
.reveal-group.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.21s; }
.reveal-group.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.28s; }
.reveal-group.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.35s; }
.reveal-group.visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 0.42s; }
.reveal-group.visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 0.49s; }
.reveal-group.visible > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: 0.56s; }
.reveal-group.visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: 0.63s; }
.reveal-group.visible > *:nth-child(11) { opacity: 1; transform: none; transition-delay: 0.70s; }
.reveal-group.visible > *:nth-child(12) { opacity: 1; transform: none; transition-delay: 0.77s; }
.reveal-group.visible > *:nth-child(13) { opacity: 1; transform: none; transition-delay: 0.84s; }


/* responsive */
@media (max-width: 680px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  section { padding: 80px 1.25rem; }
  .about-body { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}