body {
  font-family: 'Poppins', 'Open Sans', 'Bastingbrush', sans-serif;
  color: #333;
  scroll-behavior: smooth;
}
section, header, footer {
  transform: none !important;
}


/* Navbar */
.navbar-brand span { color: #2E4A36; }
.nav-link { color: #555 !important; margin: 0 8px; font-weight: 600; }
.nav-link.active, .nav-link:hover { color: #2E4A36 !important; }

.navbar-brand img {
  max-height: 70px;
  width: auto;
  height: auto;
}


/* Hero */
/* Hero Slider */
#hero {
  position: relative;
}
#hero .carousel-item {
  height: 100vh;
  min-height: 600px;
}
#hero img {
  object-fit: cover;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.carousel-caption {
  /* ===== Frosted glass effect ===== */
  background: rgba(255, 255, 255, 0.25); /* Change the 0.25 value to adjust transparency (lower = more transparent) */
  backdrop-filter: blur(8px); /* Change 8px to adjust glass blur intensity */
  -webkit-backdrop-filter: blur(8px); /* Safari support */

  /* ===== Caption box appearance ===== */
  padding: 1.5rem 2rem; /* Increase padding to make the glass box wider */
  border-radius: 1rem; /* Adjust radius for sharper or rounder corners */
  display: inline-block; /* Keeps the box width based on text content */
  color: #fff; /* Text color */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Improves readability with a soft shadow */
}

/* Adjust caption position */
.carousel-caption {
  bottom: 20%; /* Move higher or lower from the bottom */
}

.carousel-caption h1 {
  font-size: 2.5rem;
}
.carousel-caption p {
  font-size: 1.1rem;
}

.text-highlight { color: #D4A373; }
.btn-main {
  background-color: #2E4A36;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}
.btn-main:hover { background-color: #85BDA6; color: #fff; }

@media (max-width: 768px) {
  .carousel-caption {
    width: 90%;
    padding: 25px 20px;
    border-radius: 15px;
  }
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
}



/* Section */
.section-padding { padding: 100px 0; }

/* Services */
.service-box {
  background: #fff;
  border-radius: 12px;
  transition: all 0.3s;
}
.service-box:hover {
  background: #F5EEDC;
  transform: translateY(-6px);
}

/* Footer */
footer {
  background-color: #2E4A36;
  font-size: 14px;
}





.custom-nav {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.custom-nav::after {
  font-size: 20px;
  color: #333;
}

.custom-nav:hover {
  background-color: #ffffff;
  transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next {
  right: 15px;
}

.swiper-button-prev {
  left: 15px;
}

@media (max-width: 768px) {
  .custom-nav {
    width: 35px;
    height: 35px;
  }
  .custom-nav::after {
    font-size: 16px;
  }
}

 #gallery .swiper-slide {
    position: relative;
    overflow: hidden;
  }

  /* Overlay text */
  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(101, 67, 33, 0.8); /* Brown transparent overlay */
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 20px;
  }

  .swiper-slide:hover .gallery-overlay {
    opacity: 1;
  }

  .gallery-overlay h5 {
    font-weight: 700;
    margin-bottom: 5px;
  }

  .gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
  }

  /* Swiper navigation buttons */
  .custom-nav {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .custom-nav::after {
    font-size: 20px;
    color: #000;
  }

  /* Adjust position */
  .swiper-button-next,
  .swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
  }

  .swiper-button-prev {
    left: -5px;
  }

  .swiper-button-next {
    right: -5px;
  }
  
  
/* Let's play section */
  /* Full-width background with fixed position */
  .contact-section {
    background: url("../images/bg/bg.png") center center / cover no-repeat;
    background-attachment: fixed; /* Keeps the background still while scrolling */
    position: relative;
    color: #fff;
    overflow: hidden;
  }

  /* Overlay layer */
  .contact-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.6); /* Slightly dark transparent overlay */
    z-index: 1;
  }

  /* Content stays above overlay */
  .contact-section .container {
    position: relative;
    z-index: 2;
  }

  /* Button style */
  .btn-main {
    background-color: #c59b6d; /* Elegant gold tone */
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
  }

  .btn-main:hover {
    background-color: #a87d50;
    color: #fff;
    transform: translateY(-2px);
  }  
  
    /* Instagram section styles */
  .instagram-section {
    background-color: #fff;
  }

  .btn-instagram {
    background-color: #e1306c;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
  }

  .btn-instagram:hover {
    background-color: #c3275b;
    color: #fff;
  }

  .insta-img {
    position: relative;
    overflow: hidden;
  }

  .insta-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
  }

  .insta-img:hover img {
    transform: scale(1.08);
  }

  .insta-img i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
  }

  .insta-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }

  .insta-img:hover::before,
  .insta-img:hover i {
    opacity: 1;
  }
  
  /* Service Box Styling */
.service-box {
  background: #fff;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Icon Style */
.service-icon i {
  font-size: 48px;
  color: #ff6b00;
  transition: transform 0.6s ease;
}

/* Rotate icon on hover */
.service-box:hover .service-icon i {
  transform: rotate(360deg);
}

/* Headings and text */
.service-box h5 {
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}
.service-box p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== Footer Base ===== */
.footer {
  background-color: #121212;
  color: #dcdcdc;
  font-size: 0.95rem;
}

.footer h6 {
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ===== Footer Links ===== */
.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

/* Modern hover effect: underline glow */
.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #0dcaf0;
  transition: width 0.3s ease;
}

/* On hover: color & underline glow */
.footer-links a:hover {
  color: #ffffff;
}
.footer-links a:hover::after {
  width: 100%;
}

/* ===== Social Links ===== */
.social-links .social-link {
  color: #b0b0b0;
  font-size: 1.25rem;
  margin-right: 15px;
  transition: all 0.3s ease;
}
.social-links .social-link:hover {
  color: #0dcaf0;
  transform: translateY(-3px);
}

/* ===== Responsive Fine-Tuning ===== */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  .footer-links li {
    display: inline-block;
    margin-right: 12px;
  }
}

/* ===============================
   Navbar Scroll Effect
================================= */
.navbar.scrolled {
  background-color: rgba(46, 74, 54, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===============================
   Footer Hover Links
================================= */
footer .footer-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* ===============================
   Footer Background
================================= */
footer {
  background-color: #2e4a36;
}

/* ===============================
   Navbar Hover Links
================================= */
.navbar-nav .nav-link {
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #c0ffb3 !important;
  transform: translateY(-2px);
}

/* ===============================
   Back to Top Button 
================================= */
#btnToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #2e4a36;
  color: #fff;
  display: flex;              
  justify-content: center;
  align-items: center;
  opacity: 0;                
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  z-index: 999;
}

#btnToTop.show {
  opacity: 1;
  visibility: visible;
}

#btnToTop:hover {
  background-color: #3e614b;
  transform: scale(1.1);
}


/* Mission & Vision Card */
.mission-card {
  background: #fff;
  border-radius: 16px;
  transition: all 0.35s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mission-card h3 {
  color: #2e4a36;
}

.mission-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.team-image {
  overflow: hidden;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 69, 19, 0.6); /* coklat transparan */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-card img {
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}



.team-card:hover .social-icons a {
  opacity: 1;
  transform: translateY(0);
}

/* Delay bertahap tiap ikon */
.social-icons a:nth-child(1) {
  transition-delay: 0.1s;
}
.social-icons a:nth-child(2) {
  transition-delay: 0.25s;
}
.social-icons a:nth-child(3) {
  transition-delay: 0.4s;
}
.social-icons a {
  display: inline-flex;                /* bikin ikon center */
  justify-content: center;
  align-items: center;
  width: 40px;                         /* tinggi & lebar sama */
  height: 40px;
  background: rgba(255, 255, 255, 0.2); /* warna awal transparan */
  border-radius: 50%;                  /* biar bulat sempurna */
  color: #fff;
  font-size: 18px;
  margin: 0 5px;
  transition:
    transform 0.4s ease,
    background 0.3s ease,
    color 0.3s ease,
    opacity 0.4s ease;
}

/* Hover efek */
.social-icons a:hover {
  transform: translateY(-5px) scale(1.2);
  color: #fff;
}

/* Warna khas tiap platform */
.social-icons a[href*="facebook.com"]:hover {
  background: #1877F2;
}

.social-icons a[href*="twitter.com"]:hover {
  background: #1DA1F2;
}

.social-icons a[href*="instagram.com"]:hover {
  background: #E4405F;
}

.social-icons a[href*="linkedin.com"]:hover {
  background: #0A66C2;
}


/* Floating effect for mission cards */
.mission-section .card {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.mission-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===============================
   Gallery Section
================================= */
.gallery-section {
  padding: 80px 0;
  background-color: #fafafa;
}

.gallery-section h2 {
  font-weight: 700;
  color: #2E4A36;
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 74, 54, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: #fff;
}

/* Modal image */
.modal-img {
  width: 100%;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 60px 0;
  }
  .gallery-item {
    border-radius: 10px;
  }
}

/* ===============================
   Footer Styling
================================= */
.footer {
  font-size: 0.95rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer h6 {
  color: #fff;
  font-weight: 600;
}

.footer hr {
  opacity: 0.2;
}

/* Responsiveness */
@media (max-width: 992px) {
  .footer .col-md-6 {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  .footer img {
    margin: 0 auto 1rem;
  }
  .footer h6 {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding-top: 60px;
    padding-bottom: 40px;
  }
  .footer p {
    font-size: 0.9rem;
  }
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.875rem;
  line-height: 1.2;
}

.footer-logo {
  height: 1em;
  width: auto;
  object-fit: contain;
}

/* Mobile specific fix */
@media (max-width: 768px) {
  .footer-bottom {
    align-items: baseline;
  }
  
  .footer-logo {
    height: 1em;
    position: relative;
    top: 0.6em; /* Adjust nilai ini sampai pas */
  }
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2E4A36; /* Primary green */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide preloader when loaded */
.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}