* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #222;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(128, 128, 128, 0.8);
  display: flex;
  justify-content: center;
  gap: 8rem;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:visited {
  color: white;
}

nav a:hover {
  color: #004EF1;
}

#navigation {
  position: fixed;
  z-index: 1200;
}

header {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('index.files/background_head2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 10rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  font-style: italic;
}

section {
  padding: 100px 10%;
  min-height: 100vh;
}

section h2 {
  font-size: 4rem;
  color: #000000; 
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-style: italic;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #000000;
}

#nightlife .content {
  color: white;
}

#beaches .content {
  color: black;
  margin-top: 100px;
}

/* Section backgrounds */
#beaches { background-image: linear-gradient(to bottom,#E92228,#004EF1,#FFFFFF); }
#food { background-image: linear-gradient(to bottom,#FFFFFF,#004EF1,#E92228); }
#nightlife { background-image: linear-gradient(to bottom,#E92228,#004EF1,#000000); }

/* Food gallery */
.food-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 49px 0 20px 0;
}

.food-gallery img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.food-gallery img:nth-child(odd) { transform: translateY(-25px); }
.food-gallery img:nth-child(even) { transform: translateY(25px); }

.food-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.food-hover-text {
  text-align: center;
  font-size: 1.9rem;
  font-weight: bold;
  color: white;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 30px;
}

.food-hover-text.show { opacity: 1; }

@media (max-width: 700px) {
  .food-gallery { flex-direction: column; }
  .food-gallery img { transform: none; }
}

/* Slide images */
#slide {
  display: block;
  margin: 40px auto;
  width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#slideText {
  text-align: center;
  margin-top: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  transition: opacity 0.6s ease;
  opacity: 0;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nightlife layout */
.nightlife-layout {
  display: grid;
  grid-template-areas:
    "left video right"
    "bottom bottom bottom";
  grid-template-columns: auto 2fr auto;
  grid-template-rows: auto auto;
  gap: 20px 25px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.side-image {
  width: 100%;
  max-width: 500px;
  height: 560px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.nightlife-image-container:first-child { grid-area: left; }
.nightlife-image-container:nth-child(3) { grid-area: right; }
.bottom-container { grid-area: bottom; }

.bottom-image {
  width: 100%;
  max-width: 500px;
  height: 560px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Video */
.video-container {
  grid-area: video;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container video {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

/* Responsive layouts */
@media (max-width: 1200px) {
  .side-image, .bottom-image, .video-container video {
    width: 90%;
    max-width: none;
    height: auto;
  }
}

@media (max-width: 900px) {
  .nightlife-layout {
    grid-template-areas:
      "video"
      "left"
      "right"
      "bottom";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
}

/* Nightlife hover overlays */
.nightlife-image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.nightlife-image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nightlife-image-container:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  background-color: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
}

.nightlife-image-container:hover .image-overlay {
  opacity: 1;
}

.bottom-container .image-overlay {
  padding: 20px;
  font-size: 2rem;
}

/* Footer sources */
footer#sources {
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  text-align: center;
  padding: 15px 10%;
  font-size: 0.9rem;
  position: relative;
}

footer#sources a {
  color: #000000;
  text-decoration: underline;
}

footer#sources a:hover {
  color: #e52525;
}
