* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-b: rgba(255, 255, 255, 0.11);
  --glass-h: rgba(255, 255, 255, 0.10);
  --muted: rgba(255, 255, 255, 0.45);
  --font: "Space Grotesk", sans-serif;
  --display: "Playfair Display", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-b);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5vw 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 8px #4ade80;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 18px;
}

.hero-name em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.hero-role {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-role strong {
  color: #fff;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.67rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-p {
  padding: 13px 30px;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-p:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-o {
  padding: 13px 30px;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--glass-b);
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-o:hover {
  background: var(--glass);
  transform: translateY(-2px);
}

/* Hero Right (Photo) */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrap {
  position: relative;
}

.glow-ring {
  position: absolute;
  width: 440px;
  height: 540px;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.deco-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.deco-dot.tl {
  top: -20px;
  left: -20px;
}

.deco-dot.tr {
  top: -20px;
  right: -20px;
}

.deco-dot.bl {
  bottom: -20px;
  left: -20px;
}

.deco-dot.br {
  bottom: -20px;
  right: -20px;
}

.photo-frame {
  position: relative;
  z-index: 1;
  width: 380px;
  height: 490px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-b);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.04), 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

.photo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.photo-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.38;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.38;
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 1;
  }
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 100px 5vw;
}

.s-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.s-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 54px;
}

.s-title span {
  color: rgba(255, 255, 255, 0.28);
}

/* Skills Section */
#skills {
  background: rgba(255, 255, 255, 0.01);
}

.skills-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.skill-glass {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 26px 22px;
  backdrop-filter: blur(20px);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.skill-glass:hover {
  background: var(--glass-h);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

.skill-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.s-icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.s-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.s-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.s-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.s-tag.pro {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.s-tag.learn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

/* Timeline Section */
#timeline {
  background: rgba(0, 0, 0, 0.25);
}

.timeline-wrap {
  position: relative;
  max-width: 680px;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--glass-b);
}

.t-item {
  display: flex;
  gap: 26px;
  margin-bottom: 36px;
  position: relative;
}

.t-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.t-dot.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.07);
}

.t-body {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 22px 26px;
  backdrop-filter: blur(16px);
  flex: 1;
  transition: border-color 0.2s;
}

.t-body:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.t-year {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.t-title {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.t-sub {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.65;
}

.t-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
}

/* Projects Section */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.proj-card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  backdrop-filter: blur(20px);
}

.proj-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.proj-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.proj-thumb-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50%, var(--tc, rgba(255, 255, 255, 0.05)), transparent 70%);
}

.proj-body {
  padding: 26px;
}

.proj-tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.proj-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 9px;
}

.proj-desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* Contact Section */
#contact {
  border-top: 1px solid var(--glass-b);
  text-align: center;
}

.contact-glass {
  display: inline-block;
  max-width: 540px;
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 24px;
  padding: 56px 40px;
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
}

.contact-glass::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.contact-email {
  display: block;
  font-family: var(--display);
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 22px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 6px;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.soc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.soc-link:hover {
  background: var(--glass-h);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px;
  border-top: 1px solid var(--glass-b);
  font-size: 0.7rem;
  color: var(--muted);
}

/* Typing Effect */
.typer {
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  animation: blink 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .nav-links {
    display: none;
  }
}
