html {
  scroll-behavior: smooth;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-card {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark .header-glass {
  background: rgba(17, 24, 39, 0.8);
}

.menu-btn {
  width: 30px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #0F766E;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.dark .menu-btn span {
  background: #10B981;
}

.menu-btn span:nth-child(1) {
  top: 0px;
}

.menu-btn span:nth-child(2),
.menu-btn span:nth-child(3) {
  top: 10px;
}

.menu-btn span:nth-child(4) {
  top: 20px;
}

.menu-btn.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.menu-btn.open span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-btn.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.tab-button.active {
  border-bottom: 3px solid #10B981;
  color: #10B981;
}

.dark .tab-button.active {
  border-bottom: 3px solid #D97706;
  color: #D97706;
}

.prayer-time {
  transition: all 0.3s ease;
}

.prayer-time:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  line-height: 2.5rem;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  height: 100%;
  width: 2px;
  background: #10B981;
}

.dark .timeline-item:not(:last-child)::after {
  background: #D97706;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 118, 110, 0.4) 100%);
}

.dark .hero-overlay {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(15, 118, 110, 0.6) 100%);
}

.hero-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  backdrop-filter: blur(10px);
}

.dark .hero-content {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
}

/* Optimasi overlay untuk light mode */
.hero-overlay-light {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 70%,
      rgba(255, 255, 255, 0.9) 100%);
}

/* Overlay untuk dark mode */
.hero-overlay-dark {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0.9) 100%);
}

/* Efek glass card yang lebih baik untuk light mode */
.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-card-light {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slideshow styles */
.slideshow-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.slideshow-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.slideshow-image {
  max-height: 80vh;
  max-width: 100%;
}

.slideshow-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slideshow-prev,
.slideshow-next {
  color: white;
  font-size: 30px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.page-link.active {
  background-color: #10b981;
  color: white;
  border-color: #10b981;
}