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

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --line: #222;
  --text: #e8e4dc;
  --muted: #666;
  --accent: #b8ff57;
  --accent2: #ff6b35;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Mono', monospace;
  --font-serif: 'Fraunces', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.18s ease, opacity 0.2s;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* Grain 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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

nav.scrolled {
  border-color: var(--line);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 48px 64px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-name span {
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  width: fit-content;
}

.hero-cta:hover {
  background: #d4ff7a;
  transform: translateX(4px);
}

.hero-cta svg {
  transition: transform 0.2s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 48px 64px;
  position: relative;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-meta-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-meta-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-meta-value {
  font-size: 14px;
  color: var(--text);
}

.hero-bg-number {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 280px;
  color: var(--line);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  to {
    left: 100%;
  }
}

/* SECTION BASE */
section {
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 40px 48px 24px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1;
}

.section-count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-text {
  padding: 48px;
  border-right: 1px solid var(--line);
}

.about-text p {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: #aaa;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 400;
}

.about-skills {
  padding: 48px;
}

.skill-category {
  margin-bottom: 32px;
}

.skill-cat-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 1px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 255, 87, 0.05);
}

/* EXPERIENCE */
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  cursor: default;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item:hover {
  background: var(--bg2);
}

.exp-period {
  padding: 28px 48px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-period .year {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

.exp-body {
  padding: 28px 40px;
}

.exp-company {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.exp-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.exp-tags {
  padding: 28px 40px 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  justify-content: flex-end;
  align-items: flex-start;
}

.exp-tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card:nth-child(3n) {
  border-right: none;
}

.project-card:hover {
  background: var(--bg2);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.project-card:hover::before {
  width: 100%;
}

.project-num {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--line);
  margin-bottom: 20px;
  font-weight: 500;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(184, 255, 87, 0.2);
  padding: 2px 8px;
}

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  padding: 64px 48px;
  border-right: 1px solid var(--line);
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.contact-headline span {
  color: var(--accent);
}

.contact-sub {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.contact-link:hover {
  color: var(--accent);
  padding-left: 8px;
}

.contact-link-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-right {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-right .big-text {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.85;
  color: var(--line);
  user-select: none;
}

/* FOOTER */
footer {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.footer-back {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-back:hover {
  color: var(--accent);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 120px 24px 40px;
    border-right: none;
  }

  .hero-right {
    padding: 0 24px 48px;
    border-top: 1px solid var(--line);
  }

  .hero-bg-number {
    display: none;
  }

  .section-header {
    padding: 32px 24px 16px;
  }

  .section-label {
    font-size: 36px;
  }

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

  .about-text {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-skills {
    padding: 32px 24px;
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .exp-period {
    padding: 24px 24px 0;
    border-right: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .exp-body {
    padding: 12px 24px 0;
  }

  .exp-tags {
    padding: 12px 24px 24px;
    justify-content: flex-start;
  }

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

  .project-card {
    border-right: none;
  }

  .project-card:nth-child(3n) {
    border-right: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-left {
    padding: 48px 24px;
    border-right: none;
  }

  .contact-right {
    display: none;
  }

  footer {
    padding: 20px 24px;
  }
}
