@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;800&family=Inter:wght@400;600&display=swap');

:root {
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  transition: var(--transition);
  color: #fff;
  cursor: none;
  /* Custom cursor */
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
  background: #ff4c00;
}

.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Page 1: The Void */
body.page-1 {
  background: radial-gradient(circle at center, #111, #000);
}

.page-1 .glow-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 0, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float 10s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translate(-10%, -10%) scale(1);
  }

  100% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.page-1 h1 {
  font-size: 6rem;
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.1;
}

/* Page 2: The Prism */
body.page-2 {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
}

.nav-bar.dark-text {
  mix-blend-mode: normal;
  color: #fff;
}

.page-2 .glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 5rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transform: translateY(0);
  transition: var(--transition);
}

.page-2 .glass-panel:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

.page-2 h1 {
  font-size: 5rem;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Page 3: The Grid */
body.page-3 {
  background-color: #0b0c10;
  background-image:
    linear-gradient(rgba(102, 252, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 252, 241, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #66fcf1;
}

.page-3 h1 {
  font-size: 7rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 10px rgba(102, 252, 241, 0.5), 0 0 30px rgba(102, 252, 241, 0.3);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(102, 252, 241, 0.8), 0 0 40px rgba(102, 252, 241, 0.5);
  }

  100% {
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
  }
}

.sub-text {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-top: 1.5rem;
  max-width: 600px;
  font-weight: 300;
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease;
  mix-blend-mode: difference;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-bar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .page-1 h1 {
    font-size: 4rem;
  }

  .page-2 h1 {
    font-size: 3rem;
  }

  .page-3 h1 {
    font-size: 4rem;
  }

  .page-2 .glass-panel {
    padding: 2rem;
  }
}