/* Basic resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #f0f0f0;
  background-color: #121212;
}

/* Background gradient with some animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1c1c1c, #4c4c4c); /* Lighter shades */
  background-size: 200% 200%;
  z-index: -1;
  animation: gradientAnimation 8s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 20px;
  opacity: 0; /* Start hidden */
  animation: fadeInContent 2s ease-in-out forwards; /* Animation for hero section */
  animation-delay: 0.5s; /* Slight delay */
}

/* Add missing keyframes */
@keyframes fadeInContent {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Individual fade-in for the logo */
.hero img {
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInLogo 1s ease-in-out forwards;
  animation-delay: 0.25s;
  width: 20vw;
  max-width: 300px;
  height: auto;
}

@keyframes fadeInLogo {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Text styling */
.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeInText 2s ease-in-out forwards;
  animation-delay: 1s; /* Delay after logo fades in */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #d1d1d1;
  text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInText 1s ease-in-out forwards;
  animation-delay: 1s; /* Delay after h1 fades in */
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInButtons 1s ease-in-out forwards;
  animation-delay: 1s; /* Delay after text fades in */
}

.cta-button {
  padding: 15px 30px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInButtons {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* MEDIA QUERIES */

/* For tablets and smaller screens */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem; /* Adjusted for smaller screens */
  }

  .hero p {
    font-size: 1rem; /* Adjust subtext size */
  }

  .cta-button {
    padding: 12px 25px; /* Adjust button padding */
    font-size: 1rem;
  }

  .hero img {
    width: 25vw; /* Slightly smaller on tablets */
  }
}

/* For mobile phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem; /* Further adjustment for mobile */
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-buttons {
    gap: 10px;
  }

  .cta-button {
    padding: 10px 20px; /* Adjust button padding for mobile */
    font-size: 0.9rem;
  }

  .hero img {
    width: 35vw; /* Smaller logo for mobile */
  }
}
