@import url(fonts/mnemion/Mnemion.css);

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.back-button {
  position: fixed;
  bottom: 8px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 14px;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #0056b3;
}

.back-button i {
  pointer-events: none;
}


.fullpage-container {
  height: 100dvh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding: 0; /* Ensures precise snapping */
  -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS */
}

.section {
  scroll-snap-align: start;
  scroll-snap-stop: always; /* Forces scrolling to stop at each section */
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Section 1 – Intro */
.intro-section {
  background-image: url('bgimg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4));
}

.hero-content {
  padding: 2rem;
  max-width: 1200px;
  width: 90%;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-family: 'Mnemion';
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Section 2 – Gallery */
.gallery-section {
  background-image: url('./webp/cement.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  /* background: rgba(68, 66, 64, 0.55); */
  z-index: 1;
}

.gallery-section h2 {
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #222;
  padding: 1rem 2rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 90%;
  max-width: 1000px;
  padding: 1rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  justify-items: center; /* Center items horizontally in their grid cells */
}

.gallery a {
  aspect-ratio: 1;
  display: block;
  width: 100%;
  max-width: 250px; /* Limit maximum width */
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery a:hover {
  transform: translateY(-5px);
}

.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.03);
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    max-height: 700px;
    max-width: 900px;
    gap: 1.6rem;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}



@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0.5rem;
        max-width: 100%;
        width: 100%;
      }

  .gallery-section h2 {
    font-size: 1.75rem;
  }
  
  .gallery a {
    width: 90%; /* Slightly larger on smaller screens */
    max-width: 350px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }


}

/* 🔧 UPDATED: Compact 3-column layout on small devices */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0.5rem;
    max-width: 100%;
    width: 100%;
  }

  .gallery a {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    box-shadow: none;
    width: 100%; /* Full width for the smaller grid cells */
    max-width: none;
  }

  .gallery-section {
    padding: 1rem 0.5rem;
  }

  .gallery-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 320px) {
  .gallery-section h2 {
    font-size: 1.3rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0.25rem;
  }
}

/* Section 3 – Map */
.map-section {
  background: #f4f4f4;
  height: 100dvh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 0;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.85);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.site-footer .social-links a {
  color: #ddd;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

.site-footer .social-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}