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

:root {
  --bg: #090909;
  --bg2: #111111;
  --text: #EDEBE6;
  --muted: #5A5A5A;
  --accent: #C6FF47;
  --accent-dim: rgba(198,255,71,0.12);
  --border: rgba(237,235,230,0.1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Epilogue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.25s ease, height 0.25s ease, background 0.2s;
  mix-blend-mode: difference;
}
.cursor.hovering { width: 36px; height: 36px; }
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid rgba(198,255,71,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  mix-blend-mode: difference;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease, padding 0.35s ease,
              border-color 0.35s ease;
}
nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(9, 9, 9, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
  text-decoration: none; opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-lang {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent) !important;
  text-decoration: none; opacity: 1 !important;
  border: 1px solid rgba(198,255,71,0.4); padding: 4px 10px;
  transition: border-color 0.2s, background 0.2s !important;
}
.nav-lang:hover { border-color: var(--accent); background: rgba(198,255,71,0.08); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 64px;
  position: relative; overflow: hidden;
}
.hero-grid-line {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.hero-grid-line:nth-child(1) { left: 25%; }
.hero-grid-line:nth-child(2) { left: 50%; }
.hero-grid-line:nth-child(3) { left: 75%; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-name {
  font-family: var(--font-display); font-size: clamp(72px, 10vw, 160px);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.hero-name-line {
  display: block; opacity: 0; transform: translateY(100%);
}
.hero-name-line:nth-child(1) { animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
.hero-name-line:nth-child(2) {
  animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.hero-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 48px;
  opacity: 0; animation: fadeUp 0.8s ease 0.8s forwards;
}
.hero-role {
  font-family: var(--font-body); font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300; max-width: 420px; color: rgba(237,235,230,0.7);
}
.hero-role strong { color: var(--text); font-weight: 500; }
.hero-cta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  transition: gap 0.3s;
}
.hero-cta:hover { gap: 20px; }
.hero-cta-arrow {
  width: 32px; height: 1px; background: var(--accent);
  position: relative; transition: width 0.3s;
}
.hero-cta-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  border: 4px solid transparent; border-left: 6px solid var(--accent);
}
.hero-cta:hover .hero-cta-arrow { width: 48px; }

.hero-scroll-hint {
  position: absolute; right: 48px; bottom: 64px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
  animation: fadeUp 1s ease 1.2s both;
}

/* ── MARQUEE ── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--accent);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex; gap: 0;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg);
  padding: 0 32px;
}
.marquee-dot { color: var(--bg); opacity: 0.4; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
section { padding: 120px 48px; }
.section-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 64px; display: flex; align-items: center; gap: 20px;
}
.section-label::after {
  content: ''; flex: 1; max-width: 80px;
  height: 1px; background: var(--accent); opacity: 0.4;
}

/* ── ABOUT ── */
#about {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px;
  align-items: start; border-top: 1px solid var(--border);
}
.about-number {
  font-family: var(--font-display); font-size: 120px; font-weight: 800;
  color: var(--accent-dim); line-height: 1;
  -webkit-text-stroke: 1px rgba(198,255,71,0.25);
  color: transparent;
  margin-bottom: -20px;
}
.about-heading {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.about-heading em { font-style: italic; font-weight: 300; color: rgba(237,235,230,0.55); }
.about-right { padding-top: 8px; }
.about-text {
  font-size: 18px; font-weight: 300; line-height: 1.75;
  color: rgba(237,235,230,0.75); margin-bottom: 32px;
}
.about-text strong { color: var(--text); font-weight: 500; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--border); padding: 7px 14px;
  color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ── EXPERIENCE ── */
#experience { border-top: 1px solid var(--border); }
.exp-item {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-of-type { padding-top: 0; }
.exp-company {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.exp-period {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 4px;
}
.exp-location {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.exp-role {
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px);
  font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em;
}
.exp-promo {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 28px;
  display: inline-block;
}
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.exp-bullets li {
  padding-left: 20px; position: relative;
  font-size: 15px; color: rgba(237,235,230,0.72); line-height: 1.7;
}
.exp-bullets li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-family: var(--font-mono); font-size: 12px;
}
.exp-bullets strong { color: var(--text); font-weight: 500; }

/* ── PROJECTS ── */
#projects { border-top: 1px solid var(--border); }
.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin-top: 0;
}
.project-card {
  background: var(--bg2); padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
  border: 1px solid var(--border);
}
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-dim); opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { border-color: rgba(198,255,71,0.3); }

.project-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.project-stack-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
}
.project-title {
  font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 20px; line-height: 1.1;
  transition: color 0.2s;
}
.project-card:hover .project-title { color: var(--accent); }
.project-desc {
  font-size: 14px; color: rgba(237,235,230,0.6);
  line-height: 1.75; margin-bottom: 32px;
}
.project-desc strong { color: rgba(237,235,230,0.85); font-weight: 500; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 4px 10px;
}
.project-card:hover .project-tag { border-color: rgba(198,255,71,0.25); color: rgba(198,255,71,0.7); }

/* ── SKILLS ── */
#skills { border-top: 1px solid var(--border); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1px solid var(--border);
}
.skill-group {
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: background 0.3s;
}
.skill-group:hover { background: var(--bg2); }
.skill-group-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.skill-list {
  display: flex; flex-direction: column; gap: 8px; list-style: none;
}
.skill-list li {
  font-size: 14px; color: rgba(237,235,230,0.65);
  font-family: var(--font-body); font-weight: 300;
  transition: color 0.2s;
}
.skill-group:hover .skill-list li { color: rgba(237,235,230,0.85); }

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
  text-align: center; padding: 160px 48px 120px;
  position: relative;
}
.contact-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(80px, 15vw, 200px);
  font-weight: 800; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(198,255,71,0.07);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.contact-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px; display: block;
}
.contact-heading {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 88px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 0.95;
  margin-bottom: 48px; position: relative;
}
.contact-heading em {
  display: block; font-style: italic; font-weight: 300;
  color: rgba(237,235,230,0.45);
}
.contact-links {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  position: relative;
}
.contact-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-divider { width: 1px; height: 16px; background: var(--border); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.footer-built {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-built span { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { gap: 24px; }
  section { padding: 80px 24px; }
  #hero { padding: 0 24px 48px; }
  #about { grid-template-columns: 1fr; gap: 40px; }
  .about-number { font-size: 80px; }
  .exp-item { grid-template-columns: 1fr; gap: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 24px; align-items: flex-start; }
}
