/* style.css - Night to Day Theme */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0B1426, #87CEEB);
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Sun */
.sun {
  position: fixed;
  top: 50px;
  right: 100px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #FFD700, #FFA500);
  border-radius: 50%;
  box-shadow: 0 0 30px #FFD700, 0 0 60px rgba(255, 215, 0, 0.5);
  animation: sunGlow 3s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes sunGlow {
  0% { box-shadow: 0 0 30px #FFD700, 0 0 60px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 40px #FFD700, 0 0 80px rgba(255, 215, 0, 0.7); }
}

/* Moon */
.moon {
  position: fixed;
  top: 80px;
  left: 80px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #F5F5F5, #E0E0E0);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(245, 245, 245, 0.8);
  z-index: 1;
}

.moon::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 12px;
  height: 12px;
  background: #D0D0D0;
  border-radius: 50%;
}

.moon::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 35px;
  width: 8px;
  height: 8px;
  background: #D0D0D0;
  border-radius: 50%;
}

/* Stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 10%; width: 2px; height: 2px; animation-delay: 0s; }
.star:nth-child(2) { top: 15%; left: 20%; width: 1px; height: 1px; animation-delay: 0.5s; }
.star:nth-child(3) { top: 8%; left: 30%; width: 3px; height: 3px; animation-delay: 1s; }
.star:nth-child(4) { top: 25%; left: 15%; width: 2px; height: 2px; animation-delay: 1.5s; }
.star:nth-child(5) { top: 12%; left: 45%; width: 1px; height: 1px; animation-delay: 0.3s; }
.star:nth-child(6) { top: 18%; left: 60%; width: 2px; height: 2px; animation-delay: 0.8s; }
.star:nth-child(7) { top: 22%; left: 75%; width: 1px; height: 1px; animation-delay: 1.2s; }
.star:nth-child(8) { top: 16%; left: 85%; width: 3px; height: 3px; animation-delay: 0.7s; }
.star:nth-child(9) { top: 30%; left: 25%; width: 2px; height: 2px; animation-delay: 0.2s; }
.star:nth-child(10) { top: 28%; left: 55%; width: 1px; height: 1px; animation-delay: 1.3s; }
.star:nth-child(11) { top: 35%; left: 40%; width: 2px; height: 2px; animation-delay: 0.9s; }
.star:nth-child(12) { top: 32%; left: 70%; width: 1px; height: 1px; animation-delay: 0.4s; }
.star:nth-child(13) { top: 40%; left: 20%; width: 3px; height: 3px; animation-delay: 1.1s; }
.star:nth-child(14) { top: 38%; left: 50%; width: 2px; height: 2px; animation-delay: 0.6s; }
.star:nth-child(15) { top: 45%; left: 80%; width: 1px; height: 1px; animation-delay: 0.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

header {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #1E3A8A;
  font-weight: 700;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #3B82F6;
  transform: scale(1.1);
}

section {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
}

h2 {
  color: #1E3A8A;
  border-bottom: 2px solid #3B82F6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #E0F2FE;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

strong {
  color: #3B82F6;
}

a {
  color: #1E3A8A;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3B82F6;
}

pre {
  background-color: #1E3A8A;
  color: #E0F2FE;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  font-family: monospace;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  section {
    width: 90%;
    padding: 1.5rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    margin: 0.5rem 0;
  }
}