/* Reset dan Variabel */
:root {
  --primary-color: #1e5128;
  --primary-light: #2d7a3d;
  --primary-dark: #0f3a17;
  --secondary-color: #f8c05a;
  --secondary-light: #ffd78a;
  --secondary-dark: #e6a732;
  --accent-color: #4caf50;
  --text-color: #333;
  --text-light: #666;
  --light-text: #fff;
  --dark-bg: #0a2614;
  --light-bg: #f9f9f9;
  --off-white: #f5f5f5;
  --border-radius: 10px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Amiri', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-family: var(--font-primary);
  overflow-x: hidden;
}

/* Utilitas */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transition: var(--transition);
  z-index: -1;
  border-radius: 50px;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 81, 40, 0.4);
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pattern-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23045a30' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

/* Header dan Navigasi */
header {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 28px;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: var(--transition);
  border-radius: 2px;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1920x600/?mosque,architecture') no-repeat center center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  margin-top: 70px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 81, 40, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb .separator {
  color: var(--secondary-color);
}

/* Gallery Styles */
.gallery-section {
  background-color: var(--light-bg);
  position: relative;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--light-text);
  border: 2px solid transparent;
  border-radius: 50px;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
}

.filter-btn:hover {
  background-color: var(--primary-light);
  color: var(--light-text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 300px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-text);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.gallery-item-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--light-text);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  color: var(--light-text);
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.lightbox-nav button {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav button:hover {
  color: var(--secondary-color);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
  color: var(--light-text);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
  border-radius: 2px;
}

.footer-about p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a i {
  color: var(--secondary-color);
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  color: var(--primary-dark);
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.newsletter-form button {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 192, 90, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(30, 81, 40, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light-text);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    text-align: center;
    flex: 1 1 calc(50% - 10px); /* Default: 2 per baris */
  }

  .filter-btn[data-filter='all'] {
    flex: 1 1 100%; /* Tombol "Semua" 1 baris sendiri */
  }

  .lightbox-caption {
    font-size: 0.7rem;
    bottom: 10px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 250px;
  }
}
