/* ====================
   BASE STYLES
==================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-x: hidden; /* prevents horizontal scroll */
  overflow-y: auto;   /* allows vertical scroll */
  color: #fff;
}

body {
  position: relative;
  background-color: black; /* fallback, doesn't interfere with ::before fade */
}

/* ====================
   BACKGROUND OVERLAY
==================== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.8;
  filter: brightness(0.5) blur(3px);
  z-index: -1;
}

/* ====================
   LAYOUT CONTAINERS
==================== */
.overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 2rem 1rem 4rem 1rem; /* extra bottom padding for footer */
  backdrop-filter: brightness(0.8) blur(2px);
}

/* ====================
   HEADER
==================== */
header {
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* ====================
   SERVICES & GALLERY
==================== */
.services-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 2rem;
}

.info-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 2rem;
}

.services,
.contact-section {
  flex: 1 1 45%;
  padding-bottom: 2Srem;
}

.services {
  text-align: left;
}

.contact-section {
  text-align: center;
}

/* Headings */
.services h2,
.gallery h2,
.contact-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

/* ====================
   GALLERY STYLES
==================== */
.gallery {
  text-align: center;
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  justify-content: center;
}

.gallery-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 5px;
  transition: transform 0.2s ease;
}

.gallery-img {
  height: 150px;
  width: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
  display: block;
}

.gallery-item:hover .gallery-img,
.gallery-container img:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* ====================
   LIGHTBOX
==================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

/* ====================
   CONTACT & BUTTONS
==================== */
a {
  color: #00c6ff;
  text-decoration: none;
}

.contact-section i {
  color: #00c6ff;
  margin-right: 8px;
  font-size: 1.2rem;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.1), -1px -1px 0 rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.contact-section i:hover {
  transform: scale(1.2) translateY(-2px);
}

button#whatsappBtn {
  background-color: #25D366;
  color: white;
  padding: 10px 20px;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

button#whatsappBtn:hover {
  background-color: #1ebe5b;
}

/* ====================
   FOOTER
==================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  z-index: 1000;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 768px) {
  .info-section {
    flex-direction: column;
    align-items: center;
  }

  .services,
  .contact-section {
    flex: 1 1 100%;
    text-align: center;
  }

  .gallery-img {
    height: 120px;
    width: 160px;
  }
}

.logo {
  max-width: 200px; /* adjust size as needed */
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}