/* Home page specific styles */

/* Override nav for home page - needs solid background over animation */
.nav {
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.9) 70%,
    rgba(0, 0, 0, 0.4) 90%,
    transparent 100%
  );
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 8rem 6rem 4rem;
  background: linear-gradient(to right,
    transparent,
    rgba(0, 0, 0, 0.92) 8%,
    rgba(0, 0, 0, 0.92) 92%,
    transparent
  );
}

.home-content-inner {
  max-width: 600px;
  margin: 0 auto;
}

.home-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.home-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.home-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 1.25rem;
}

#toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

#toggle-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

#toggle-btn:focus {
  outline: none;
  border-color: #fff;
}

/* Mobile: skip animation entirely */
@media (max-width: 768px) {
  .nav {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #canvas {
    display: none;
  }

  #toggle-btn {
    display: none;
  }

  .home-content {
    max-width: 100%;
    padding: 6rem 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.95);
  }

  .home-content-inner {
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 2rem;
  }
}

/* Fallback when WebGL unavailable */
body.no-webgl #canvas {
  display: none;
}

body.no-webgl #toggle-btn {
  display: none;
}

body.no-webgl .home-content {
  background: rgba(0, 0, 0, 0.95);
}