:root {
  --bg: #0a0a08;
  --ink: #f0ebe0;
  --accent: #c8ff00;
  --accent2: #ff6b35;
  --muted: #3a3a32;
  --subtle: #1a1a14;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* CURSOR */
.cursor,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease;
    /* We can keep transform scale transition */
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
  }
}

/* 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='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: 100;
  opacity: 0.5;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 500;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-decoration: none;
}

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

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

.nav-links a:hover {
  opacity: 1;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 501;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--ink);
  transition: all 0.3s ease;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 0;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-name {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero-name span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.hero-desc {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 36ch;
  color: rgba(240, 235, 224, 0.65);
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  cursor: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 235, 224, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(240, 235, 224, 0.3);
}

/* SECTIONS */
section {
  padding: 8rem 3rem;
}

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

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--muted);
  max-width: 60px;
}

/* SERVICES */
#services {
  background: var(--subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin-top: 4rem;
  background: var(--muted);
  border: 1px solid var(--muted);
}

.service-card {
  background: var(--subtle);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.service-card:hover::before {
  transform: translateY(0);
}

.service-card:hover {
  color: var(--bg);
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.3;
  margin-bottom: 2rem;
}

.service-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.service-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  opacity: 0.7;
}

.service-card:hover .service-desc {
  opacity: 0.85;
}

/* PROJECTS */
#projects {
  position: relative;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.projects-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  max-width: 12ch;
}

.project-item {
  border-top: 1px solid var(--muted);
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  cursor: none;
  transition: padding-left 0.3s ease;
}

.project-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.project-item:hover {
  padding-left: 1.5rem;
}

.project-item:hover::after {
  width: 100%;
}

.project-item:last-child {
  border-bottom: 1px solid var(--muted);
}

.project-name {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
}

.project-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(240, 235, 224, 0.55);
  margin-top: 0.5rem;
  max-width: 50ch;
}

.project-year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(240, 235, 224, 0.4);
}

.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(200, 255, 0, 0.3);
  justify-self: end;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* CONTACT */
#contact {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 10rem 3rem;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: 'CONTACT';
  position: absolute;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(6rem, 18vw, 20rem);
  font-weight: 900;
  color: rgba(10, 10, 8, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 2rem;
}

.contact-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
}

.contact-email {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bg);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid rgba(10, 10, 8, 0.2);
  transition: all 0.25s ease;
  cursor: none;
}

.contact-link:hover {
  background: var(--bg);
  color: var(--ink);
}

/* FOOTER */
footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(240, 235, 224, 0.3);
  text-transform: uppercase;
  border-top: 1px solid var(--muted);
}

/* MARQUEE */
.marquee-wrap {
  overflow: hidden;
  background: var(--accent);
  padding: 1rem 0;
}

.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
}

.marquee span {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--bg);
  opacity: 0.4;
}

/* ANIMATIONS */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(2deg);
  }

  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* REVEAL (Now handled by GSAP) */
.reveal,
.hero-tag,
.hero-name,
.hero-desc,
.hero-cta,
.hero-scroll,
.contact-label,
.contact-title,
.contact-link {
  opacity: 0;
  visibility: hidden;
}

/* FLOATING SHAPES */
.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 1px solid rgba(200, 255, 0, 0.12);
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 10%;
  right: 5%;
  animation-delay: -2s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation-delay: -4s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 30%;
  right: 35%;
  animation-delay: -1s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
    mix-blend-mode: normal;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 499;
    gap: 4rem;
  }

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

  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  #hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.85;
    pointer-events: none;
  }

  .hero-left {
    padding: 4rem 1.5rem 0;
  }

  section {
    padding: 5rem 1.5rem;
  }

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

  .project-tag {
    justify-self: start;
  }

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