/* Material 3 Adapted Style */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #121212; /* Dark theme for Material 3 */
  color: #E8EAF6; /* Primary text color for dark theme */
}

header {
  background-color: rgba(255, 255, 255, 0.05); /* Material 3 surface tint */
  color: #E8EAF6;
  text-align: center;
  padding: 16px;
  animation: fadeInDown 1s ease-out;
  z-index: 1;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* Divider effect */
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  color: #BB86FC; /* Primary color */
}

main {
  padding: 32px;
  text-align: center;
  animation: fadeIn 1.5s ease-in;
  z-index: 1;
  position: relative;
  background-color: #121212; /* Background to keep contrast */
}

footer {
  background-color: rgba(255, 255, 255, 0.05);
  color: #E8EAF6;
  text-align: center;
  padding: 16px;
  position: fixed;
  width: 100%;
  bottom: 0;
  animation: fadeInUp 1s ease-out;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12); /* Divider effect */
}

a {
  color: #BB86FC; /* Primary color for Material 3 links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.social-links {
  margin: 16px 0;
}

/* Button Styles with Material 3 Colors and Elevation */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 16px;
  margin: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25); /* Material 3 elevation */
  font-weight: 500;
}

.twitter {
  background-color: #1F2933;
  color: #FFFFFF;
}

.twitter:hover {
  background-color: #162027;
  transform: scale(1.05);
}

.instagram {
  background-color: #8B2D39;
  color: #FFFFFF;
}

.instagram:hover {
  background-color: #611C28;
  transform: scale(1.05);
}

.main-btn {
  background-color: #03DAC6; /* Secondary color in Material 3 */
  color: #121212; /* Contrast color */
}

.main-btn:hover {
  background-color: #02B2A4;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Background stars effect */
#stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  background-color: #121212;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #E8EAF6; /* Use the primary text color for the stars */
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}