
:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --highlight: #00bfff;
}

body.light {
  --bg-color: #f0f0f0;
  --text-color: #111;
  --highlight: #0077cc;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
}

#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--highlight);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 999;
}

header {
  text-align: center;
  padding: 2rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--highlight);
  font-weight: bold;
}

section {
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

h1, h2 {
  font-family: 'Orbitron', sans-serif;
}

.slider {
  overflow: hidden;
  position: relative;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.slides {
  display: flex;
  animation: scroll 10s linear infinite;
}

.slide {
  min-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-300%); }
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 6px;
}

button {
  background: var(--highlight);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

footer {
  text-align: center;
  margin: 3rem 0 1rem;
  color: #888;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
