:root {
  --bg: #06060c;
  --bg-alt: #0c0c18;
  --surface: #12121f;
  --border: #23233a;
  --text: #e6e6f0;
  --text-muted: #9494ab;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --accent-soft: #fbbf24;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

/* BACKGROUND GLOWS */
.glow {
  display: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  left: -100px;
}

.glow-2 {
  width: 550px;
  height: 550px;
  background: var(--accent-strong);
  top: 20%;
  right: -200px;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-soft);
  bottom: -100px;
  left: 30%;
  opacity: 0.15;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 6, 12, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.brand-bracket {
  color: var(--accent);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.nav-cta) {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #06060c !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* SECTIONS */
main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head {
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
}

/* HERO */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  min-height: 80vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7ee787;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb950;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  color: #fff;
  margin-bottom: 8px;
}

.gradient-text {
  color: var(--accent);
}

.hero-role {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06060c;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-location {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.hero-email {
  font-size: 14px;
  margin: 0;
}

.hero-email a {
  color: var(--text-muted);
}

.hero-email a:hover {
  color: var(--accent);
}

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar-ring {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 6px;
  background: var(--accent);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.35);
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 4px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% 42%;
  display: block;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
}

.stack-cards {
  display: grid;
  gap: 14px;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stack-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.stack-icon {
  font-size: 24px;
}

.stack-card h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 2px;
}

.stack-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
}

.project-shot-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #010104;
  border-bottom: 1px solid var(--border);
}

.project-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-shot {
  transform: scale(1.05);
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-body h3 {
  font-size: 18px;
  color: #fff;
}

.project-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.project-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-top: 8px;
}

.project-link:hover {
  color: var(--accent-soft);
}

.project-card--cta {
  justify-content: center;
  background: rgba(245, 158, 11, 0.06);
  border-style: dashed;
}

.project-body--center {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.cta-icon {
  font-size: 32px;
  font-weight: 300;
  color: var(--accent);
}

/* CONTACT */
.contact-section {
  padding-bottom: 60px;
}

.contact-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.06;
  z-index: 0;
}

.contact-box > * {
  position: relative;
  z-index: 1;
}

.contact-box h2 {
  font-size: clamp(24px, 4vw, 34px);
  color: #fff;
  margin: 0 0 12px;
}

.contact-box p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-avatar-wrap {
    order: -1;
  }

  .avatar-ring {
    width: 230px;
    height: 230px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
