*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050505;
  --surface: #0f0f11;
  --border: rgba(255,255,255,0.12);
  --accent: #ffffff;
  --accent2: #ffffff;
  --text: #ffffff;
  --muted: #c4c4c4;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── SECTIONS ── */
section {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 5% 80px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ── HOME ── */
#home {
  overflow: hidden;
}

.home-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  min-height: 600px;
}

.home-content {
  flex: 1;
  z-index: 2;
}

.home-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}

.home-headline .name-accent {
  color: var(--accent);
}

.home-desc {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  opacity: 0; animation: fadeUp 0.7s 0.35s ease forwards;
}

.home-cta {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.5s ease forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #eeeeee;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
}

/* decorative blob */
.blob {
  position: absolute; right: -10%; top: 10%;
  width: 520px; height: 520px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.blob2 {
  position: absolute; right: 15%; top: 30%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 8s 2s ease-in-out infinite;
}

.avatar-wrap {
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.9s 0.4s ease forwards, float 4s ease-in-out infinite;
}

.avatar-card {
  width: 360px;
  height: 380px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.delay-150 {
  animation-delay: 0.15s;
}

.section-label {
  margin-top: 1rem;
}

.divider {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 5%;
  margin-bottom: -30px;
}

.divider-line {
  flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}

.divider-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ── ABOUT ── */
#about {
  border-top: 1px solid var(--border);
}

.section-tag {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}

.section-tag::before {
  content: '';
  display: inline-block; width: 20px; height: 1px; background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.about-text p + p { margin-top: 1.2rem; }

.skills-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2rem;
}

.skill-pill {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.2s;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stats-col {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.25s;
}

.stat-card:hover { border-color: var(--accent2); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
}

.contact-wrap {
  max-width: 800px;
}

.contact-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 3rem;
}

.contact-headline em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.contact-card:hover::before { opacity: 1; }

.contact-icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.contact-type {
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

.contact-value {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.contact-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--muted); font-size: 0.9rem;
  transition: transform 0.25s, color 0.25s;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.social-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.65rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.22s;
}

.social-btn:hover {
  border-color: var(--accent2);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

footer span {
  font-size: 0.8rem; color: var(--muted);
}

footer a { color: var(--muted); text-decoration: none; font-size: 0.8rem; }
footer a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50% { transform: translateY(-50%) translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.7; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .avatar-wrap {
    right: -100px;
  }
  
  .avatar-card {
    width: 320px;
    height: 340px;
  }
}

@media (max-width: 900px) {
  .avatar-wrap {
    right: -60px;
  }
  
  .avatar-card {
    width: 300px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .home-grid {
    position: relative;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    gap: 2rem;
  }

  .home-content {
    flex: 1;
    width: 100%;
  }

  .avatar-wrap {
    position: static;
    transform: none;
    animation: fadeIn 0.9s 0.4s ease forwards;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .avatar-card {
    width: 280px;
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links { gap: 1.5rem; }

  .contact-cards { grid-template-columns: 1fr; }

  #home {
    min-height: auto;
    padding: calc(var(--nav-h) + 60px) 5% 60px;
  }
}