@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap");

* { 
  box-sizing: border-box; 
}

html, body {
  font-family: "Montserrat", Tahoma, sans-serif;
  width: 100%; 
  min-height: 100%; 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
  background-color: #f8fafc; 
}

/* --- UTILITIES --- */
.txt-navy { color: #1a365d !important; }
.txt-gold { color: #d4af37 !important; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.mt-4 { margin-top: 1.5rem; } 
.mt-5 { margin-top: 2rem; } 
.mt-6 { margin-top: 3rem; }
.mb-5 { margin-bottom: 2rem; } 
.p-2 { padding: 0.5rem; } 
.p-5 { padding: 2rem; } 
.p-6 { padding: 3rem; }
.mr-2 { margin-right: 0.5rem; }

/* --- PRELOADER --- */
.preloader-wrapper {
  height: 100vh; 
  width: 100vw; 
  background: #0a192f; 
  position: fixed; 
  top: 0; 
  left: 0; 
  z-index: 9999999;
  display: flex; 
  justify-content: center; 
  align-items: center;
}
.preloader img { 
  width: 150px; 
  animation: pulse 2s infinite; 
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.5)); 
}

/* --- HERO SECTION --- */
.hero {
  background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url("../image/gedungpesat3.png");
  background-attachment: fixed; 
  background-size: cover; 
  background-position: center;
  min-height: 100vh; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  padding-bottom: 4rem; 
}

.hero-body {
  padding-bottom: 5rem !important; 
}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; 
  margin-bottom: 25px;
}

/* KUNCI MENGHINDARI LOGO BESAR SEBELAH */
.hero-logo { 
  height: 120px; 
  width: 120px; 
  object-fit: contain; /* Memaksa rasio agar logo tidak gepeng, dan luas areanya persis sama */
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.3)); 
  transition: transform 0.3s ease;
}
.hero-logo:hover {
  transform: scale(1.1);
}

.school-name { 
  font-weight: 700; 
  font-size: 1.2rem; 
  letter-spacing: 3px; 
  color: #cbd5e0; 
  text-transform: uppercase; 
  margin-bottom: 15px; 
}
.main-title { 
  font-family: "Playfair Display", serif; 
  font-weight: 700; 
  font-size: 4.5rem; 
  color: #ffffff; 
  text-shadow: 2px 4px 8px rgba(0,0,0,0.5); 
  margin: 10px 0; 
}
.gold-text { 
  font-size: 1.8rem; 
  font-weight: 600; 
  color: #d4af37; 
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5); 
  margin-bottom: 30px; 
}

/* --- GLASSMORPHISM & CARDS --- */
.glass-box {
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  border-radius: 15px; 
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.date-box { 
  display: inline-block; 
  padding: 15px 30px; 
}
.date-box h4 { 
  font-size: 1.4rem; 
  font-weight: 700; 
  color: #d4af37; 
  margin-bottom: 5px; 
}
.date-box p { 
  font-size: 1.1rem; 
  color: #e2e8f0; 
}

.glass-card {
  background: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4); 
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(26, 54, 93, 0.1); 
  border-top: 5px solid #1a365d; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}
.glass-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 15px 50px rgba(26, 54, 93, 0.2); 
}

/* --- SECTIONS --- */
.section-dark { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); padding: 100px 20px; position: relative; }
.section-light { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); padding: 100px 20px; position: relative; }

.section-title {
  font-family: "Montserrat", sans-serif; 
  font-weight: 900; 
  color: #1a365d; 
  text-transform: uppercase;
  font-size: 2.2rem; 
  letter-spacing: 2px; 
  position: relative; 
  display: table; 
  margin: 0 auto 50px auto; 
  text-align: center;
}
.section-title::after {
  content: ''; 
  position: absolute; 
  width: 80px; 
  height: 5px; 
  background: linear-gradient(90deg, #d4af37, #f6e07e);
  bottom: -15px; 
  left: 50%; 
  transform: translateX(-50%); 
  border-radius: 5px;
}

/* --- WAKTU & TEMPAT --- */
.custom-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.custom-grid-container > .glass-card {
  flex: 1 1 350px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.icon-circle {
  width: 75px; height: 75px; 
  background: linear-gradient(135deg, #1a365d, #2a4365); 
  color: #d4af37;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 2rem; 
  margin: 0 auto 20px auto; 
  box-shadow: 0 5px 15px rgba(26,54,93,0.3);
}
.waktu.tanggal-angka { font-size: 5.5rem; font-weight: 900; line-height: 1; color: #1a365d; margin: 10px 0; }
.waktu.tanggal-hari, .waktu.tanggal-bulan { font-size: 1.3rem; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 1px;}
.time-text { font-size: 3.5rem; font-weight: 900; color: #1a365d; margin: 15px 0; line-height: 1;}

/* --- LOKASI MAP --- */
.venue-title { font-size: 2rem; font-weight: 800; color: #1a365d; margin-bottom: 10px; }
.venue-address { font-size: 1.2rem; color: #4a5568; line-height: 1.6; }

.premium-map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.2);
  border: 8px solid #ffffff; 
  background-color: #e2e8f0;
  transform: translateY(0);
  transition: all 0.4s ease; 
}
.premium-map-wrapper:hover {
  transform: translateY(-10px); 
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.3); 
}
.premium-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.1) saturate(1.2) brightness(0.95); 
}

/* --- RSVP LIST --- */
.rsvp-box { margin-bottom: 2rem; }
.info-title { 
  text-align: center; 
  color: #1a365d; 
  font-size: 1.6rem; 
  font-weight: 800; 
  margin-bottom: 30px; 
  padding-bottom: 20px; 
  border-bottom: 2px dashed #cbd5e0; 
}
.custom-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  counter-reset: rsvp-counter; 
}
.custom-list li {
  position: relative; 
  padding-left: 65px; 
  margin-bottom: 25px; 
  line-height: 1.8; 
  color: #334155; 
  font-size: 1.15rem; 
  text-align: left;
}
.custom-list li::before {
  content: counter(rsvp-counter); 
  counter-increment: rsvp-counter;
  position: absolute; left: 0; top: 0; 
  width: 45px; height: 45px;
  background: linear-gradient(135deg, #1a365d, #2a4365); 
  color: #d4af37; 
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; 
  font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(26, 54, 93, 0.3); 
  border: 2px solid #ffffff;
}
.closing-text { 
  text-align: center; 
  font-weight: 700; 
  color: #1a365d; 
  font-size: 1.2rem; 
  background: rgba(212, 175, 55, 0.1); 
  padding: 15px; 
  border-radius: 10px; 
  border-left: 4px solid #d4af37; 
}

/* --- INSTAGRAM LINK --- */
.instagram-link { display: inline-block; margin-top: 10px; font-size: 1.8rem; color: #d4af37; transition: all 0.3s; }
.instagram-link:hover { color: #1a365d; transform: scale(1.1); }

/* --- SHIMMER BUTTONS --- */
.btn-shimmer {
  position: relative; 
  overflow: hidden; 
  padding: 20px 45px; 
  font-size: 1.2rem; 
  font-weight: bold;
  border-radius: 50px; 
  border: none; 
  transition: all 0.3s ease; 
  text-transform: uppercase; 
  letter-spacing: 1px;
}
.btn-shimmer::before {
  content: ''; 
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); 
  animation: shimmer 3s infinite;
}
.gold-theme { background: linear-gradient(135deg, #d4af37, #b8962e); color: #fff !important; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }
.gold-theme:hover { box-shadow: 0 15px 25px rgba(212, 175, 55, 0.5); transform: translateY(-3px); }

.navy-theme { background: linear-gradient(135deg, #1a365d, #0f2240); color: #fff !important; box-shadow: 0 10px 20px rgba(26, 54, 93, 0.3); }
.navy-theme:hover { box-shadow: 0 15px 25px rgba(26, 54, 93, 0.5); transform: translateY(-3px); }

/* --- COUNTDOWN --- */
.countdown-container { 
  margin: 40px auto 20px auto; 
  padding: 25px 40px; 
  max-width: 650px; 
  text-align: center; 
}
.countdown-title { 
  font-size: 1.3rem; 
  color: #d4af37; 
  text-transform: uppercase; 
  letter-spacing: 3px; 
  font-weight: 700; 
  margin-bottom: 20px; 
  text-align: center; 
  width: 100%;
}
ul#hitungmundur { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 15px; }
ul#hitungmundur li { display: flex; flex-direction: column; align-items: center; }
ul#hitungmundur li span { 
  font-size: 3.5rem; 
  font-weight: 800; 
  color: #ffffff; 
  text-shadow: 0 0 10px rgba(255,255,255,0.3); 
  background: rgba(0,0,0,0.4); 
  padding: 10px 20px; 
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.2); 
  min-width: 90px; 
}
ul#hitungmundur li p { color: #cbd5e0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; font-weight: 600; }
ul#hitungmundur li.separator { font-size: 3.5rem; color: #d4af37; padding-bottom: 35px; font-weight: bold; }

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.floating-anim { animation: float 6s ease-in-out infinite; }
.delay-1 { animation-delay: 2s; } 
.delay-2 { animation-delay: 4s; }

@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
.pulse-anim { animation: pulse 2s infinite; }

@keyframes shimmer { 100% { left: 200%; } }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(26, 54, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 54, 93, 0); }
}
.pulse-glow-navy { animation: pulse-glow 2s infinite; }

/* --- FOOTER --- */
.glass-footer { background: #0a192f; border-top: 2px solid rgba(212, 175, 55, 0.3); padding: 30px 10px; text-align: center; color: #cbd5e0; }

/* =========================================================
   CUSTOM SWEET ALERT (POP-UP DENGAN 2 LOGO SAMA BESAR)
========================================================= */

.premium-shadow {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,244,248,0.95)) !important;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 20px 50px rgba(0,0,0,0.5) !important;
  border: 3px solid rgba(212, 175, 55, 0.8) !important;
  border-radius: 25px !important;
  padding: 3em 2em !important;
  overflow: visible !important;
}

.custom-swal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* WADAH 2 LOGO POP-UP */
.swal-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* UKURAN IDENTIK UNTUK KEDUA LOGO POP-UP */
.swal-logo {
  width: 85px;
  height: 85px;
  object-fit: contain; /* Mengunci agar 100% presisi dan sama persis */
  filter: drop-shadow(0 5px 15px rgba(26,54,93,0.3));
}

.swal-title-custom {
  color: #1a365d;
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  line-height: 1.2;
}

.swal-subtitle {
  color: #4a5568;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}

.swal-year {
  color: #d4af37;
  font-weight: 800;
  font-size: 1.3rem;
  display: block;
  margin-top: 5px;
}

.swal2-actions { margin-top: 2.5em !important; }
.custom-btn-swal { padding: 18px 40px !important; font-size: 1.1rem !important; }

/* ANIMASI MASUK & KELUAR POP-UP */
@keyframes zoomBounceIn {
  0% { opacity: 0; transform: scale(0.5) translateY(-100px); }
  60% { opacity: 1; transform: scale(1.05) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.custom-zoom-in { animation: zoomBounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important; }
@keyframes zoomBounceOut {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(0.5) translateY(100px); }
}
.custom-zoom-out { animation: zoomBounceOut 0.5s ease-in forwards !important; }

/* --- RESPONSIVE FIXES (MOBILE) --- */
@media (max-width: 768px) {
  /* Pengaturan kunci di mobile agar logo tetap identik bentuknya */
  .hero-logo { height: 80px; width: 80px; }
  .swal-logo { width: 65px; height: 65px; }
  
  .logos-container { gap: 15px; }
  .main-title { font-size: 3rem; } 
  .gold-text { font-size: 1.4rem; }
  .school-name { font-size: 1rem; letter-spacing: 1px; }
  
  .countdown-container { padding: 15px 10px; margin-top: 20px; }
  ul#hitungmundur li span { font-size: 2rem; min-width: 60px; padding: 5px 10px; }
  ul#hitungmundur li.separator { font-size: 2rem; padding-bottom: 25px; }
  
  .section-title { font-size: 1.8rem; margin-bottom: 30px; }
  .custom-grid-container { gap: 20px; }
  
  .premium-map-wrapper { padding-bottom: 75%; }
  
  .p-6 { padding: 1.5rem; }
  .custom-list li { padding-left: 55px; font-size: 1rem; }
  .custom-list li::before { width: 35px; height: 35px; font-size: 1rem; }
  
  .premium-shadow { padding: 2em 1em !important; }
  .swal-title-custom { font-size: 2rem; }
}