:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #e8ff47;
  --accent2: #ff5c3a;
  --text: #f0ede6;
  --muted: #6e6e8a;
  --card: #13131c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

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: 9000;
  opacity: 0.4;
}

.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: exclusion;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.18s ease, width 0.2s, height 0.2s;
  mix-blend-mode: exclusion;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #fff !important;
  color: var(--bg) !important;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 20vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 255, 71, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-52%) translateX(1.5%); }
}

.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}

.hero-name em {
  font-style: italic;
  font-family: 'DM Serif Display', serif;
  color: var(--accent);
}

.hero-desc {
  max-width: 480px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 2.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 255, 71, 0.3);
}

.btn-ghost {
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.btn-ghost:hover  { color: var(--accent); }
.btn-ghost::after { content: '→'; }

.hero-scroll {
  position: absolute;
  right: 4rem;
  bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

section {
  padding: 7rem 4rem;
}

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent2);
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 4rem;
}

.section-title em {
  color: var(--accent);
  font-style: italic;
}

#about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-card:hover {
  border-color: rgba(232, 255, 71, 0.2);
  transform: translateY(-4px);
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 255, 71, 0.25);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

#projects {
  background: var(--surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 255, 71, 0.25);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-card.featured .project-thumb {
  height: auto;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.5s;
}

.project-card:hover .project-thumb-inner {
  transform: scale(1.08);
}

.p1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.p2 { background: linear-gradient(135deg, #1a2e1a, #0f2010); }
.p3 { background: linear-gradient(135deg, #2e1a1a, #1a0f0f); }

.project-body {
  padding: 2rem;
}

.project-num {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-body p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-link {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.project-link:hover { gap: 0.7rem; }

#contact {
  text-align: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: 'CONTACT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 15vw, 14rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 255, 71, 0.04);
  pointer-events: none;
  white-space: nowrap;
}

.contact-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-headline em {
  color: var(--accent);
  font-style: italic;
}

.contact-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
  letter-spacing: 0.08em;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 255, 71, 0.05);
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 900px) {
  nav { padding: 1.25rem 2rem; }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 90;
  }

  .nav-links.open a { font-size: 1.2rem; }

  .hamburger { display: flex; z-index: 101; }

  section { padding: 5rem 2rem; }

  #hero { padding: 0 2rem 5rem; }

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

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

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

  .project-card.featured {
    grid-column: span 1;
    display: block;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-scroll { display: none; }
}