/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(#fff, #4b0b0b);
  color: #fff;
}

/* ===== NAVBAR (MENU UTAMA) ===== */
.navbar,
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #FCF1DB;
  color: #690108;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  color: #5a0c0c;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  position: relative;
  color: #5a0c0c;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: #5a0c0c;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #5a0c0c;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: 700;
  color: #5a0c0c;
}

.nav-links a.active::after {
  width: 100%;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: #5a0c0c;
  user-select: none;
}
 
.desktop-only {
  display: block;
}

.logout-mobile {
  display: none;
}

/* ===== GALERI SECTION ===== */
.galeri {
  background: linear-gradient(#690108, #FCF1DB);
  text-align: center;
  padding: 80px 20px 60px;
  min-height: 100vh;
}

.galeri-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== TITLE ===== */
.galeri-title {
  font-family: "Playfair Display", serif;
  color: #FCF1DB;
  font-size: 46px;
  margin-bottom: 10px;
  animation: fadeInDown 0.8s ease;
}

.galeri-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #FCF1DB;
  border-radius: 4px;
  display: block;
  margin: 12px auto 0;
}

.galeri-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #fbe6d0;
  opacity: 0.9;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease;
}

/* ===== GRID LAYOUT ===== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
  width: 100%;
}

/* ===== GALERI CARD ===== */
.galeri-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: white;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.galeri-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(105, 1, 8, 0.4);
}

/* ===== GALERI IMAGE ===== */
.galeri-image {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.galeri-card:hover .galeri-image {
  transform: scale(1.08);
}

/* ===== GALERI INFO ===== */
.galeri-info {
  padding: 20px;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.galeri-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #690108;
  margin-bottom: 8px;
  line-height: 1.4;
}

.galeri-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== NO DATA STATE ===== */
.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #FCF1DB;
}

.no-data i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: rgba(252, 241, 219, 0.5);
}

.no-data p {
  font-size: 1.2rem;
  color: #FCF1DB;
  opacity: 0.8;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  flex-direction: column;
  padding: 20px;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease;
}

.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 45px;
  color: white;
  cursor: pointer;
  font-weight: 300;
  transition: all 0.3s ease;
  z-index: 100000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.close-lightbox:hover {
  color: #690108;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

#lightbox-caption {
  color: white;
  margin-top: 25px;
  font-size: 1.3rem;
  text-align: center;
  max-width: 80%;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to bottom, #6d1a1d, #4d2226);
  color: #fff;
  padding: 60px 10%;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-content div {
  flex: 1;
  min-width: 250px;
}

.footer-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffdada;
}

.footer-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 5px 0;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: #6d1a1d;
  font-size: 22px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.social-icons .whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.social-icons .instagram:hover {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}

.footer-bottom {
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  color: #f5f5f5;
}

/* ===== PAGE ANIMATIONS ===== */
.page-enter {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(40px);
  transition: opacity 0.9s ease, filter 1.1s ease, transform 0.9s ease;
}

.page-enter.page-show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ===== LOGOUT ANIMATION ===== */
.logout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99999;
}

.logout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.logout-box {
  background: #fff3e6;
  padding: 35px 55px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: pop 0.4s ease;
}

.logout-box p {
  margin-top: 15px;
  font-size: 20px;
  color: #7B0C14;
  font-weight: bold;
}

.logout-spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #f3d9bf;
  border-top-color: #7B0C14;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .galeri-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #FCF1DB;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    gap: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 0;
    text-align: right;
    width: 100%;
  }
  
  .menu-icon {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .logout-mobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(90, 12, 12, 0.2);
    color: #690108 !important;
    font-weight: 600;
  }
  
  .logout-mobile svg {
    width: 20px;
    height: 20px;
  }
  
  .galeri-title {
    font-size: 38px;
  }
  
  .galeri-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .galeri {
    padding: 60px 15px 50px;
  }
  
  .galeri-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .galeri-card {
    height: 360px;
  }
  
  .galeri-image {
    height: 240px;
  }
  
  .galeri-title {
    font-size: 34px;
  }
  
  .close-lightbox {
    top: 15px;
    right: 15px;
    font-size: 35px;
    width: 45px;
    height: 45px;
  }
  
  #lightbox-caption {
    font-size: 1.1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 15px 20px;
  }
  
  .galeri {
    padding: 50px 10px 40px;
  }
  
  .galeri-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .galeri-card {
    height: 380px;
    max-width: 100%;
  }
  
  .galeri-image {
    height: 260px;
  }
  
  .galeri-title {
    font-size: 28px;
  }
  
  .galeri-subtitle {
    font-size: 14px;
  }
  
  .lightbox img {
    max-width: 95%;
    max-height: 80vh;
  }
  
  .close-lightbox {
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  #lightbox-caption {
    font-size: 1rem;
    margin-top: 15px;
  }
  
  footer {
    padding: 40px 5%;
  }
}