/* Reset defaults */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

/* Hero section */
.hero {
  width: 100vw;
  height: 100vh;
  background-image: url("../images/hero.png");
  background-size: cover; /* Slight zoom start */
  background-position: left;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  animation: bgZoom 20s ease-in-out infinite alternate;
}

/* Soft background zoom animation */
@keyframes bgZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 108%;
  }
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Content layer */
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headline */
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

/* Button container */
.button-group {
  display: flex;
  gap: 3.5rem; /* More space between buttons */
  justify-content: center;
}

/* Buttons */
.hero-btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border: 2px solid white;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 10px;
  background: transparent;
}

/* Hover effect */
.hero-btn:hover {
  background: white;
  color: black;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.35);
}

/* Ripple effect */
.hero-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-btn:active::after {
  width: 300px;
  height: 300px;
  transition: 0s;
}

/* Mobile-friendly */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .button-group {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }
}

/* Logo in top-left corner */
.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2; /* Above overlay and background */
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.3s;
}

.logo img {
  height: 150px;  /* Adjust size as needed */
  width: auto;
}

@media (max-width: 600px) {
  .logo img {
    width: 60vw;   /* 60% of screen width */
    height: auto; /* Keep proportions */
    max-width: 250px; /* Prevent it from getting too big */
  }

  .logo {
    top: 10px;
    left: 10px;
  }
}

/* Mobile LANDSCAPE fixes */
@media (max-width: 900px) and (orientation: landscape) {

  /* Make background zoom in more */
  .hero {
    background-size: 140%;
  }

  /* Shrink logo so it doesn't overlap buttons */
  .logo img {
    height: 80px;
  }

  /* Make buttons smaller and side-by-side */
  .button-group {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }

  /* Pull content down slightly */
  .hero-content {
    margin-top: 40px;
  }
}

/* Mobile PORTRAIT background fill */
@media (max-width: 600px) and (orientation: portrait) {
  .hero {
    background-size: cover !important;
    background-position: center;
    height: 100dvh;                       /* dynamic viewport height for mobile */
  }
}
