/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #0a223a 0%, #0a74da 100%);
  color: #eaf6fb;
  min-height: 100vh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

main, .navbar, .modal {
  position: relative;
  z-index: 2;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 34, 58, 0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 0 0 18px 18px;
  backdrop-filter: blur(8px);
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00e0ff;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px #0a74da99;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-link {
  text-decoration: none;
  color: #eaf6fb;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link.active, .nav-link:hover {
  color: #00e0ff;
}

main {
  width: 100%;
  max-width: 600px;
  margin: 3rem auto 0 auto;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-radius: 18px;
  background: rgba(10, 34, 58, 0.92);
  backdrop-filter: blur(6px);
}
.page { display: none; opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1); }
.page.active { display: block; opacity: 1; transform: translateY(0); }

.hero {
  text-align: center;
  margin-top: 3rem;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00e0ff 30%, #0a74da 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #00e0ff;
  filter: drop-shadow(0 2px 12px #0a74da99);
}
.hero p {
  font-size: 1.2rem;
  color: #b2f7ff;
}
.join-link {
  color: #00e0ff;
  cursor: pointer;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(10, 34, 58, 0.98);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,224,255,0.10);
  margin-top: 2rem;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}
.contact-form h2 {
  color: #00e0ff;
  margin-bottom: 1rem;
}
.contact-form input, .contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #0a74da;
  border-radius: 6px;
  font-size: 1rem;
  background: #0a223a;
  color: #eaf6fb;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid #00e0ff;
  background: #112b4a;
}
.contact-form button {
  background: linear-gradient(90deg, #00e0ff 30%, #0a74da 70%);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px #00e0ff33;
}
.contact-form button:hover {
  background: linear-gradient(90deg, #0a74da 30%, #00e0ff 70%);
  box-shadow: 0 4px 16px #00e0ff55;
}
.form-message {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #00e0ff;
  min-height: 1.2em;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 34, 58, 0.85);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #0a223a;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px #00e0ff33;
  text-align: center;
  position: relative;
  color: #eaf6fb;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #00e0ff;
  cursor: pointer;
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll-based animation */
.page.active { animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1); }

/* Responsive design */
@media (max-width: 700px) {
  main { max-width: 98vw; margin-top: 1.5rem; }
  .navbar { flex-direction: column; gap: 0.5rem; padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero h1 { font-size: 2rem; }
  .contact-form { padding: 1rem; }
  .modal-content { padding: 1rem 0.5rem; }
  #bg-canvas { width: 100vw; height: 100vh; }
}
