/* Reset & basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll globally */
}

/* Scroll offset for anchor targets */
#about, #features, #provide, #gallery, #videos {
  scroll-margin-top: 80px; /* or exact header height */
}

/* Banner section */
.banner-container {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-slider .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.banner-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* removes bottom gap under images */
  max-width: 100%; /* Prevent image overflow */
}

.banner-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.banner-bars {
  position: absolute;
  display: flex;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  gap: 6px;
  z-index: 10;
}

.banner-bars .bar {
  margin: 0 6px;
  width: 30px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.banner-bars .bar.active {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  transform: scaleX(1.2);
}

/* Sections */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.feature-section, .provide-section{
  max-width: 100%;
}

.feature-section {
  background: linear-gradient(to bottom, #f4f4f4 0%, #8c8b8b 100%);
}

.provide-section{
  background: linear-gradient(to bottom, #8c8b8b 0%, #f4f4f4 100%);
}

.feature-section {
  background: linear-gradient(to bottom, #f4f4f4 0%, #8c8b8b 100%);
}

/* About section */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.about-left {
  flex: 1 1 50%;
  align-self: flex-start;
}

.about-left h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-left p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.about-right {
  flex: 1 1 45%;
}

.about-right img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* Features section */
.feature-wrapper{
  max-width: 1200px;
  margin: auto;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
}

.feature-box {
  flex: 1 1 30%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Provide section */
.provide-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
  max-width: 1200px;
  margin: auto;
}

.provide-left {
  flex: 1 1 40%;
}

.provide-left h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.provide-left p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.provide-right {
  position: relative;
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 400px;
}

.provide-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  width: 100%;
}

.provide-bars .bar {
  display: inline-block;
  width: 30px;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  vertical-align: middle;
}

.provide-bars .bar.active {
  background-color: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  transform: scaleX(1.2);
}

.provide-box {
  position: relative;
  perspective: 1000px;
  margin: 0 auto 30px;
  cursor: pointer;
  height: 400px;
  max-width: 100%;
}

.provide-box-inner {
  position: relative;
  width: 100%;
  height: 90%;
  margin: 20px 0 20px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.provide-box.flipped .provide-box-inner {
  transform: rotateY(180deg);
}

.provide-box-front,
.provide-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.provide-box-front {
  z-index: 3;
}

.provide-box-front h3 {
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
}

.provide-box-back {
  transform: rotateY(180deg);
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  text-align: center;
  overflow-y: auto;
  padding-top: 40px;
  pointer-events: auto;
  z-index: 2;
}

.provide-box-back h3,
.provide-box-back p {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.provide-swiper {
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 40px;
}

.provide-swiper .swiper-slide {
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (hover: hover) {
  .provide-box:hover .provide-box-inner {
    transform: rotateY(180deg);
  }
  .provide-box:hover .box-icon {
    opacity: 0;
  }
}

.provide-box.flipped .provide-box-back h3,
.provide-box.flipped .provide-box-back p,
.provide-box:hover .provide-box-back h3,
.provide-box:hover .provide-box-back p {
  opacity: 1;
}

.box-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Gallery */
.gallery-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #111827;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.glightbox-clean .gslide-image img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Video Section */
.video-section {
  padding: 60px 20px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.video-box {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social buttons */
.social-toggle {
  position: fixed;
  bottom: 20px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 5px;
  transition: transform 0.2s ease;
}

.social-toggle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-toggle.zoomed img {
  transform: scale(1.1);
}

.social-buttons {
  position: fixed;
  bottom: 80px;
  right: 21px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
}

.social-buttons.show {
  display: flex;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  padding: 5px;
}

.social-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-btn:hover img {
  transform: scale(1.1);
}

/* Platform colors */
.social-btn.whatsapp {
  background-color: #25d366;
}

.social-btn.instagram {
  background-color: #e1306c;
}

.social-btn.messenger {
  background-color: #0084ff;
}

/* Banner zoom on load */
@keyframes zoomOutOnLoad {
  to {
    transform: scale(1);
  }
}

.banner-slider .slide.active img {
  transform: scale(1.1);
  animation: zoomOutOnLoad 1.5s forwards;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #about, #features, #provide, #gallery, #videos {
    scroll-margin-top: 550px;
  }

  .banner-container {
    height: 300px;
  }

  .about-left,
  .about-right,
  .provide-left,
  .provide-right {
    flex: 1 1 100%;
  }

  .about-right img {
    max-height: 300px;
  }

  .features-grid {
    flex-direction: column;
  }

  .feature-box,
  .provide-box {
    flex: 1 1 100%;
  }

  .provide-wrapper {
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .provide-left,
  .provide-right {
    flex: none;
    width: 100%;
  }

  .provide-left {
    margin-bottom: 20px;
  }

  .provide-box-front .box-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .provide-box-back {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
  }

  .provide-box-back h3 {
    flex-shrink: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
  }

  .provide-box-back p {
    overflow-y: auto;
    flex-grow: 1;
    margin: 0;
    padding-right: 5px;
  }

  .provide-box-back h3,
  .provide-box-back p {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .about-wrapper,
  .provide-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .provide-box, .provide-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .provide-wrapper, .provide-swiper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    max-width: 100%;
    padding: 40px 15px;
  }

  .social-toggle, .social-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .social-toggle:active img,
  .social-btn:active img {
    transform: scale(1.1);
  }
}

/* Utility */
.fade-left {
  overflow-x: hidden !important;
}
