:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-accent: #00ff95;
  --color-muted: #666666;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.cursor {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999;
  transition: transform 0.2s ease;
}

.main-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  mix-blend-mode: difference;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link-number {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.nav-link-text {
  position: relative;
  overflow: hidden;
}

.nav-link-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-link-text::after {
  transform: translateX(0);
}

.nav-indicator {
  position: absolute;
  left: -1rem;
  width: 3px;
  height: 20px;
  background-color: var(--color-accent);
  transition: transform 0.3s ease;
}

.nav-progress {
  position: absolute;
  right: -2rem;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255,255,255,0.1);
}

.nav-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-accent);
  transition: height 0.3s ease;
}

.menu-trigger {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 30px;
  height: 20px;
  cursor: pointer;
  display: none;
  mix-blend-mode: difference;
  z-index: 101;
}

.menu-trigger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.menu-trigger span:first-child {
  top: 0;
}

.menu-trigger span:last-child {
  bottom: 0;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .menu-trigger {
    display: block;
  }

  .menu-trigger.active span:first-child {
    top: 50%;
    transform: rotate(45deg);
  }

  .menu-trigger.active span:last-child {
    top: 50%;
    transform: rotate(-45deg);
  }
}

.floating-alias {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 1rem;
  z-index: 100;
  mix-blend-mode: difference;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.floating-alias:hover {
  opacity: 1;
  transform: scale(1.05);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  position: relative;
}

.hero__title {
  font-size: clamp(2.5rem, 12vw, 8rem);
  line-height: 0.9;
  margin: 0;
  font-weight: 700;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.8s ease forwards;
}

.hero__subtitle {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-top: 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.section {
  padding: 10vh 5vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.card__title {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 0.3s ease;
}

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

/* Ensure project card links inherit text color */
a.card {
  color: var(--color-text);
}

a.card p {
  color: var(--color-text);
  opacity: 0.8;
}

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

.smooth-scroll {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .section {
    padding: 5vh 5vw;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .section__title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }

  .floating-alias {
    top: 1rem;
    right: 1rem;
    font-size: 0.875rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .skills-list {
    justify-content: center;
  }

  .cursor {
    display: none; /* Hide custom cursor on mobile */
  }

  .main-nav {
    width: 100%;
    height: 100vh;
    padding: 5rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-links {
    gap: 2rem;
    align-items: center;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  /* Improved mobile menu button */
  .menu-trigger {
    width: 35px;
    height: 25px;
    top: 1.5rem;
    left: 1.5rem;
  }

  .menu-trigger span {
    height: 3px;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .card {
    padding: 1.25rem;
  }

  .section {
    padding: 4vh 4vw;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .menu-trigger {
    width: 30px;
    height: 20px;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    font-size: 0.9rem;
  }
}

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

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