:root {
  --bg: #0a0c0f;
  --surface: #111418;
  --surface2: #181c22;
  --border: #22282f;
  --ink: #e8eaf0;
  --muted: #6b7588;
  --accent: #00e5a0;
  --accent2: #0066ff;
  --accent3: #ff6b35;
  --gold: #f5c842;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 8px 20px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 48px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

/* animated grid bg */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .name {
  color: var(--accent);
}
.hero h1 .role {
  display: block;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--muted);
  font-family: "Lora", serif;
  font-style: italic;
  margin-top: 8px;
}

.hero-desc {
  font-size: 17px;
  color: #a0aabb;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.25s;
  display: inline-block;
}
.btn-primary:hover {
  background: #00ffb3;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 229, 160, 0.25);
}
.btn-ghost {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 14px 32px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.25s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* photo container */
.hero-photo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.photo-frame {
  position: relative;
  width: 340px;
  height: 420px;
}
.photo-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--accent);
  z-index: 0;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg));
  z-index: 2;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(20%) contrast(1.05);
}
.photo-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  z-index: 3;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 12px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
}

/* stats row */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
/* .stat-item {} */
.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SECTION BASE ── */
section {
  padding: 100px 48px;
}
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ── ABOUT ── */
#about {
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text p {
  color: #a0aabb;
  font-size: 16px;
  margin-bottom: 16px;
}
.about-text p strong {
  color: var(--ink);
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.skill-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}
.skill-chip:hover {
  border-color: var(--accent);
}
.skill-chip .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PROJECTS ── */
#projects {
  max-width: 1200px;
  margin: 0 auto;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
  transform: translateY(-4px);
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.project-card h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.project-card p {
  color: #8090a8;
  font-size: 15px;
  margin-bottom: 20px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.project-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.project-link:hover {
  gap: 10px;
}

/* ── ACHIEVEMENTS ── */
#achievements {
  background: var(--surface);
}
.achievements-inner {
  max-width: 900px;
  margin: 0 auto;
}
.timeline {
  margin-top: 48px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}
.tl-dot {
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  z-index: 1;
}
/* .tl-body {} */
.tl-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.tl-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.tl-desc {
  color: #8090a8;
  font-size: 15px;
}

/* ── NEWSLETTER ── */
#newsletter {
  background: linear-gradient(135deg, var(--surface2) 0%, #0d1520 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.newsletter-inner .section-label {
  justify-content: center;
}
.newsletter-inner .section-label::after {
  display: none;
}
.newsletter-inner .section-title {
  margin-bottom: 12px;
}
.newsletter-desc {
  color: #8090a8;
  font-size: 16px;
  margin-bottom: 36px;
}
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--ink);
  font-family: "Lora", serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--muted);
}
.subscribe-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.subscribe-form button:hover {
  background: #00ffb3;
}
.subscribe-form button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}
#subscribe-msg {
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  min-height: 20px;
}
.msg-success {
  color: var(--accent);
}
.msg-error {
  color: #ff6b6b;
}

/* ── CONTACT ── */
#contact {
  max-width: 900px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}
.contact-info h3 {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  margin-bottom: 16px;
}
.contact-info p {
  color: #8090a8;
  font-size: 15px;
  margin-bottom: 28px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.contact-link:hover {
  color: var(--accent);
  border-color: var(--border);
}
.contact-link .icon {
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: "Lora", serif;
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form textarea {
  min-height: 120px;
}
#contact-msg {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

/* ── FOOTER ── */
footer {
  padding: 32px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}
.footer-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 12, 15, 0.95);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-menu a {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 36px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1001;
  transition: color 0.2s;
  padding: 10px;
  display: none;
}
.mobile-close:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-photo {
    order: -1;
  }
  .photo-frame {
    width: 240px;
    height: 300px;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  section {
    padding: 70px 24px;
  }
  footer {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form input[type="email"] {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
}
