/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family:  'PT Serif', serif;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* HERO / SLIDESHOW */
.hero, .slideshow {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 12s infinite;
}

.slideshow .slide:nth-child(1) {
  background-image: url("../media/1.jpg");
  animation-delay: 0s;
}
.slideshow .slide:nth-child(2) {
  background-image: url("../media/2.jpg");
  animation-delay: 4s;
}
.slideshow .slide:nth-child(3) {
  background-image: url("../media/3.jpg");
  animation-delay: 8s;
}


@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay for slideshow */
.slideshow::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 9, 59, 0.351); /* adjust opacity as needed */
  z-index: 0; /* stays above slides but below text */
}


/* Hero Text */
.hero-overlay, .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-overlay h1, .content h1 {
  font-family: "Sirivennela", sans-serif;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

.hero-overlay p, .content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.4);
}

.cta-btn, .content a {
  display: inline-block;
  background: #f1c40f;
  color: #030011;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}
.cta-btn:hover, .content a:hover {
  background: #d4ac0d;
  transform: scale(1.05);
}

/* CATEGORIES */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.category {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.category p {
  padding: 0.75rem;
  font-size: 1rem;
  color: #000;
}

/* GALLERY */
.gallery {
  background: #eaeaea;
  padding: 3rem 1rem;
  text-align: center;
  color: #000;
}
.gallery h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid img {
  border-radius: 10px;
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablets */
@media (max-width: 992px) {
  .hero-overlay h1, .content h1 {
    font-size: 2.8rem;
  }
  .hero-overlay p, .content p {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero, .slideshow {
    height: 80vh;
  }
  .hero-overlay h1, .content h1 {
    font-size: 2rem;
  }
  .hero-overlay p, .content p {
    font-size: 0.9rem;
  }
  .cta-btn, .content a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery h2 {
    font-size: 1.5rem;
  }
}
