body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 1.5s ease-in-out;
}

body.overlay {
  background-color: rgba(0,0,0,0.3);
}

/* ========================= Header =======================*/
.site-header {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 540px; /* Desktop height */
}

.header-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .site-header {
    height: 350px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header {
    height: 180px;  /* Adjust as needed for how small you want it */
  }

  .header-logo {
    max-width: 80%; /* Slightly shrink image to fit better */
  }
}

/* ========================= Images =======================*/
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 110%;      /* slightly larger to allow zoom without edges */
  height: 110%;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0;
  transform: scale(1);   /* initial scale */
  transition: 
    opacity 1.8s ease-in-out, 
    filter 1.8s ease-in-out, 
    transform 6s ease-in-out; /* slow zoom-in */
  z-index: -1;
}

/* bg1 starts visible */
#bg1 {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1.05); /* small initial zoom */
}

/* ========================= Hero text =======================*/
.hero-text {
  position: fixed;           /* stays in place, independent of sidebar */
  top: 50%;                  /* vertical center */
  left: 50%;                 /* horizontal center */
  transform: translate(-50%, -50%); /* center exactly */
  text-align: center;
  color: white;              /* white text */
  z-index: 10;               /* above background images */
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* optional: improve readability */
}

.hero-text p {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5); /* optional */
}

.hero-text h1 { font-size: clamp(2rem, 5vw, 4rem); }
.hero-text p { font-size: clamp(1rem, 2.5vw, 2rem); }

.hero-text {
  opacity: 0;
  animation: fadeIn 2s forwards 0.5s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ========================= Button =======================*/
.hero-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #7589d5, #43b0b3);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #ff5757, #ff914d);
}

.hero-button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.hero-button:hover {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: translateY(-3px) scale(1); }
  50% { transform: translateY(-3px) scale(1.05); }
  100% { transform: translateY(-3px) scale(1); }
}

.hero-button { font-size: clamp(1rem, 2vw, 1.25rem); }
