/* ==================== IMPORT FONT ==================== */
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700;800&family=Dancing+Script:wght@400;500;600;700&display=swap");

/* ==================== THEME PREMIUM PMII - CINEMATIC WEDDING ==================== */
:root {
  --pmi-royal: #0a2b5e;
  --pmi-gold: #d4af7a;
  --pmi-gold-light: #e8d5a3;
  --pmi-white: #fefefe;
  --pmi-black-soft: rgba(0, 0, 0, 0.6);
  --pmi-black-deep: rgba(0, 0, 0, 0.85);
  --gradient-royal: linear-gradient(135deg, #0a2b5e, #1a4a8a);
  --gradient-gold: linear-gradient(135deg, #d4af7a, #e8d5a3);
  --gradient-dark: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.4)
  );
  --cinematic-blur: blur(8px);
  --cinematic-glow: 0 0 20px rgba(212, 175, 122, 0.3);
  --cinematic-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --cinematic-border: 1px solid rgba(212, 175, 122, 0.3);
}

/* ==================== ANIMASI CINEMATIC ==================== */
@keyframes cinematicFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.05) translateY(20px);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
@keyframes floatingGlow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(212, 175, 122, 0.3);
    transform: translateY(0);
  }
  50% {
    text-shadow: 0 0 20px rgba(212, 175, 122, 0.6);
    transform: translateY(-3px);
  }
}
@keyframes goldReveal {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 60px;
    opacity: 1;
  }
}
@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoomFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes galleryFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes btnPop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes guestGlow {
  0%,
  100% {
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.4);
  }
  50% {
    text-shadow: 0 2px 25px rgba(255, 215, 0, 0.8);
  }
}
@keyframes titleGlowPulse {
  0%,
  100% {
    text-shadow:
      0 0 15px rgba(255, 215, 0, 0.4),
      0 2px 10px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255, 215, 0, 0.7),
      0 2px 15px rgba(0, 0, 0, 0.6);
  }
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}
@keyframes cinematicZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes exitBtnFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESET & GLOBAL ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  width: 100%;
  height: 100%;
}
body {
  font-family: "Cormorant Garamond", serif;
  background: var(--gradient-royal);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 40%,
    rgba(212, 175, 122, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

/* ==================== FRAME UTAMA ==================== */
.frame-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-royal);
}
.frame-container {
  position: relative;
  width: 100%;
  height: auto;
  background: url("../images/frame/bingkai.png") no-repeat center center;
  background-size: 100% 100%;
  aspect-ratio: 926 / 1698;
}
.content-layer {
  position: absolute;
  top: 7%;
  left: 8%;
  right: 8%;
  bottom: 7%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0;
}
.content-layer::-webkit-scrollbar {
  width: 3px;
}
.content-layer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.content-layer::-webkit-scrollbar-thumb {
  background: var(--pmi-gold);
  border-radius: 10px;
}

/* ==================== OVERLAY COVER - CLEAN VERSION ==================== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-royal);
  color: white;
  z-index: 9999;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.cover-content {
  max-width: 340px;
  width: 90%;
  margin: 0 auto;
  padding: 45px 30px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  position: relative;
  border-radius: 0;
  border: 1px solid rgba(212, 175, 122, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: cinematicFadeIn 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}
.cover-content::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: url("../images/frame/bingkai.png") no-repeat center center;
  background-size: 100% 100%;
  z-index: 0;
  pointer-events: none;
}
.cover-content .undangan-text,
.cover-content .monogram,
.cover-content .couple-names,
.cover-content .guest-label,
.cover-content .guest-name,
.cover-content #bukaBtn {
  position: relative;
  z-index: 1;
}

/* SEMBUNYIKAN FORM UBAH NAMA & HELPER */
.form-ubah-nama,
.link-info {
  display: none !important;
}

.undangan-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.undangan-text::before,
.undangan-text::after {
  content: "✦";
  margin: 0 8px;
  font-size: 10px;
  color: #ffd700;
}
.monogram {
  font-family: "Dancing Script", cursive;
  font-size: 3.5rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 4px;
}
.couple-names {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
.guest-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}
.guest-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
#bukaBtn {
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #0a2b5e;
  border: none;
  padding: 12px 40px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#bukaBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 768px) {
  .cover-content {
    max-width: 320px;
    padding: 35px 25px;
  }
  .monogram {
    font-size: 3rem;
  }
  .couple-names {
    font-size: 1.8rem;
  }
  .guest-name {
    font-size: 0.95rem;
  }
  #bukaBtn {
    padding: 10px 35px;
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 480px) {
  .cover-content {
    max-width: 300px;
    padding: 30px 20px;
  }
  .monogram {
    font-size: 2.5rem;
  }
  .couple-names {
    font-size: 1.5rem;
  }
  .guest-name {
    font-size: 0.85rem;
  }
}

/* ==================== NAVBAR BOTTOM ==================== */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 65px;
  padding: 0;
  border-top: 1px solid var(--pmi-gold);
}
.nav-bottom::-webkit-scrollbar {
  display: none;
}
.nav-menu {
  display: inline-flex;
  gap: 2px;
  padding: 8px 12px;
  min-width: max-content;
  width: 100%;
  justify-content: center;
}
.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: 60px;
  color: #999;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border-radius: 12px;
}
.nav-item i {
  font-size: 1.05rem;
  margin-bottom: 3px;
  transition: all 0.3s;
}
.nav-item small {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-item.active {
  color: var(--pmi-gold);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 122, 0.15),
    rgba(10, 43, 94, 0.1)
  );
  transform: translateY(-2px);
}
.nav-item.active i {
  transform: scale(1.1);
  text-shadow: var(--cinematic-glow);
}

/* ==================== TAB SYSTEM ==================== */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.tab-content.active {
  display: block !important;
  animation: fadeInUp 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* ==================== SEMUA CONTAINER ==================== */
.home-card,
.quotes-container,
.couple-container,
.akad-container,
.resepsi-container,
.gallery-container,
.rsvp-container,
.gift-container,
.thanks-container {
  width: 100%;
  padding: 15px 10px;
  text-align: center;
  color: white;
}

/* ==================== SECTION TITLE - PREMIUM VISIBILITY ==================== */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: #ffd700;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5);
  animation: titleGlowPulse 3s ease-in-out infinite;
}
.section-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #ffd700,
    #e8d5a3,
    #ffd700,
    transparent
  );
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  border-radius: 2px;
}

/* ==================== HOME TAB ==================== */
#homeTab .save-the-date {
  font-size: clamp(0.7rem, 3.5vw, 0.8rem);
  color: #e8d5a3;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  letter-spacing: 5px;
}
#homeTab .couple-names-home {
  font-size: clamp(2rem, 7vw, 2.8rem);
  color: #ffffff;
  text-shadow:
    0 4px 20px rgba(255, 215, 0, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  letter-spacing: 4px;
}
.save-the-date {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 3px;
  color: var(--pmi-gold);
  margin-bottom: 15px;
}
.couple-names-home {
  font-family: "Great Vibes", cursive;
  color: #fff;
  margin-bottom: 15px;
  animation: floatingGlow 3s ease-in-out infinite;
}
.invitation-to {
  font-size: clamp(0.8rem, 3.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}
.guest-name-home {
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  font-weight: 700;
  color: var(--pmi-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(212, 175, 122, 0.5);
}
.btn-buka-home {
  background: var(--gradient-gold);
  color: #0a2b5e;
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  font-size: clamp(0.7rem, 3vw, 0.85rem);
}

/* ==================== QUOTES TAB ==================== */
.quotes-container {
  width: 100%;
  padding: 15px 12px;
  text-align: center;
  color: white;
}
.couple-photo-container {
  aspect-ratio: 3/4;
  max-width: 75%;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--pmi-gold);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: var(--cinematic-shadow);
}
.couple-together-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}
.couple-together-photo:hover {
  transform: scale(1.02);
}
.quote-card {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 20px !important;
  padding: 25px 20px !important;
  border-left: 3px solid var(--pmi-gold) !important;
  border-right: 3px solid var(--pmi-gold) !important;
  margin-top: 5px;
}
.quote-card i {
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--pmi-gold);
  margin-bottom: 15px;
  display: inline-block;
}
.quote-card p {
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 15px;
  font-style: italic;
  font-weight: 400;
}
.quote-card small {
  font-size: clamp(0.65rem, 3vw, 0.8rem);
  color: rgba(255, 215, 0, 0.9);
  display: block;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
}
@media screen and (max-width: 768px) {
  .couple-photo-container {
    max-width: 85%;
    border-radius: 14px;
  }
}
@media screen and (max-width: 480px) {
  .couple-photo-container {
    max-width: 90%;
    border-radius: 12px;
    margin-bottom: 15px;
  }
  .quote-card i {
    margin-bottom: 10px;
  }
  .quote-card p {
    line-height: 1.6;
  }
}

/* ==================== MEMPELAI TAB ==================== */
.couple-card {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid rgba(212, 175, 122, 0.3);
  transition: all 0.4s ease;
}
.couple-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cinematic-shadow);
  border-color: var(--pmi-gold);
}
.photo-frame-34 {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.frame-photo-34 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.couple-info {
  padding: 12px;
}
.couple-info h3 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: var(--pmi-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.couple-info .the-label {
  font-size: clamp(0.55rem, 2.5vw, 0.7rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
}
.couple-info p {
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==================== AKAD & RESEPSI TAB ==================== */
.akad-info-item,
.resepsi-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 12px 15px;
  border-left: 2px solid var(--pmi-gold);
}
.akad-info-item i,
.resepsi-info-item i {
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  color: var(--pmi-gold);
  width: 35px;
}
.akad-info-title,
.resepsi-info-title {
  font-weight: bold;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: var(--pmi-gold);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.akad-info-sub,
.resepsi-info-sub {
  font-size: clamp(0.7rem, 3vw, 0.85rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.akad-btn-map,
.resepsi-btn-map {
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #0a2b5e;
  padding: 8px 12px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 12px;
  font-size: clamp(0.7rem, 3vw, 0.85rem);
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.akad-btn-map:hover,
.resepsi-btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ==================== COUNTDOWN ==================== */
.akad-countdown-box {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 12px;
  border-radius: 20px;
  margin-top: 15px;
  border: 1px solid rgba(212, 175, 122, 0.3);
}
.akad-countdown-title {
  color: var(--pmi-gold);
  font-size: clamp(0.8rem, 3.5vw, 0.95rem);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.akad-countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.akad-countdown-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 5px 8px;
  min-width: 48px;
  text-align: center;
}
.akad-countdown-number {
  font-size: clamp(1rem, 4.5vw, 1.3rem);
  font-weight: bold;
  color: var(--pmi-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.akad-countdown-label {
  font-size: clamp(0.45rem, 2.5vw, 0.55rem);
  color: rgba(255, 255, 255, 0.95);
}
.akad-countdown-separator {
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  color: var(--pmi-gold);
}

/* ==================== GALLERY TAB ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--pmi-gold);
  transition: all 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--cinematic-shadow);
  border-color: var(--pmi-gold);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 6px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item .overlay i {
  background: var(--pmi-gold);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a2b5e;
  font-size: 0.75rem;
}

/* ==================== RSVP TAB ==================== */
.rsvp-card {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 15px;
  border: 1px solid rgba(212, 175, 122, 0.3);
}
.form-label {
  font-size: clamp(0.7rem, 3vw, 0.8rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 5px;
  text-align: left;
  display: block;
  font-weight: 600;
}
.form-control,
.form-select {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(212, 175, 122, 0.3);
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.btn-gold {
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #0a2b5e;
  border: none;
  padding: 8px;
  border-radius: 40px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e6b800, #cca300);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ==================== GIFT TAB ==================== */
.bank-card {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid rgba(212, 175, 122, 0.3);
  transition: all 0.4s ease;
}
.bank-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cinematic-shadow);
  border-color: var(--pmi-gold);
}
.bank-card i {
  font-size: clamp(1.5rem, 6vw, 1.8rem);
  color: var(--pmi-gold);
}
.bank-card h5 {
  margin: 6px 0;
  font-size: clamp(0.8rem, 3.5vw, 0.95rem);
  color: var(--pmi-gold);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.bank-card p,
.bank-card small {
  font-size: clamp(0.65rem, 3vw, 0.8rem);
  color: rgba(255, 255, 255, 0.95);
}

/* ==================== THANKS TAB ==================== */
.thanks-card {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px 20px;
  border: 1px solid rgba(212, 175, 122, 0.3);
}
.thanks-text .lead {
  color: var(--pmi-gold);
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.thanks-text p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.couple-names-signature h3 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  display: inline-block;
  margin: 0 6px;
  color: var(--pmi-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.family-names p {
  color: rgba(255, 255, 255, 0.9);
}
.logo-ar {
  width: 50px;
  height: 50px;
  margin: 12px auto;
}
.social-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  text-decoration: none;
  color: white;
  margin: 4px;
  font-size: clamp(0.6rem, 2.5vw, 0.7rem);
  transition: all 0.3s;
  border: 1px solid rgba(212, 175, 122, 0.3);
}
.social-icon i {
  color: var(--pmi-gold);
}
.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(212, 175, 122, 0.3);
}

/* ==================== MUSIC PLAYER ==================== */
.music-player {
  position: fixed;
  bottom: 70px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
  z-index: 1000;
  border: 1px solid var(--pmi-gold);
}
.cassette {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #1a3a50, #0f2a3a);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cassette.spinning {
  animation: spin 2s linear infinite;
}
.play-pause-btn {
  background: var(--pmi-gold);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
}
.song-info {
  display: none;
}
#musicNotification {
  position: fixed;
  bottom: 70px;
  right: 10px;
  background: #0a2b5e;
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
#musicNotification.show {
  opacity: 1;
}

/* ==================== CINEMATIC ANIMATIONS UNTUK ELEMEN TAB ==================== */
.tab-content.active .home-card,
.tab-content.active .quotes-container,
.tab-content.active .couple-container,
.tab-content.active .akad-container,
.tab-content.active .resepsi-container,
.tab-content.active .gallery-container,
.tab-content.active .rsvp-container,
.tab-content.active .gift-container,
.tab-content.active .thanks-container {
  animation: cinematicFadeIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
  opacity: 0;
}
.tab-content.active .couple-photo-container {
  animation: slideUpFade 0.4s ease forwards 0.05s;
  opacity: 0;
  transform: translateY(15px);
}
.tab-content.active .quote-card {
  animation: slideUpFade 0.4s ease forwards 0.1s;
  opacity: 0;
  transform: translateY(15px);
}
.tab-content.active .couple-card {
  opacity: 0;
  animation: cinematicFadeIn 0.5s ease forwards;
}
.tab-content.active .couple-card:first-child {
  animation-delay: 0.1s;
}
.tab-content.active .couple-card:last-child {
  animation-delay: 0.2s;
}
.tab-content.active .akad-info-item,
.tab-content.active .resepsi-info-item {
  animation: slideInLeft 0.35s ease forwards;
  opacity: 0;
}
.tab-content.active .akad-info-item:first-child,
.tab-content.active .resepsi-info-item:first-child {
  animation-delay: 0.05s;
}
.tab-content.active .akad-info-item:last-child,
.tab-content.active .resepsi-info-item:last-child {
  animation-delay: 0.1s;
}
.tab-content.active .akad-countdown-card {
  animation: zoomFade 0.35s ease forwards;
  opacity: 0;
  transform: scale(0.9);
}
.tab-content.active .akad-countdown-card:nth-child(1) {
  animation-delay: 0.03s;
}
.tab-content.active .akad-countdown-card:nth-child(3) {
  animation-delay: 0.06s;
}
.tab-content.active .akad-countdown-card:nth-child(5) {
  animation-delay: 0.09s;
}
.tab-content.active .akad-countdown-card:nth-child(7) {
  animation-delay: 0.12s;
}
.tab-content.active .gallery-item {
  opacity: 0;
  animation: cinematicFadeIn 0.4s ease forwards;
}
.tab-content.active .gallery-item:nth-child(1) {
  animation-delay: 0.03s;
}
.tab-content.active .gallery-item:nth-child(2) {
  animation-delay: 0.06s;
}
.tab-content.active .gallery-item:nth-child(3) {
  animation-delay: 0.09s;
}
.tab-content.active .gallery-item:nth-child(4) {
  animation-delay: 0.12s;
}
.tab-content.active .gallery-item:nth-child(5) {
  animation-delay: 0.15s;
}
.tab-content.active .gallery-item:nth-child(6) {
  animation-delay: 0.18s;
}
.tab-content.active .save-the-date {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}
.tab-content.active .couple-names-home {
  animation: fadeInUp 0.35s ease forwards 0.05s;
  opacity: 0;
}
.tab-content.active .guest-name-home {
  animation: fadeInUp 0.35s ease forwards 0.1s;
  opacity: 0;
}
.tab-content.active .btn-buka-home {
  animation: btnPop 0.4s ease forwards 0.15s;
  opacity: 0;
  transform: scale(0.92);
}

/* ==================== PERBAIKAN POSISI KONTEN (HOME, AKAD, RESEPSI) ==================== */
#homeTab .home-card {
  padding-top: 25px !important;
  padding-bottom: 25px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
#homeTab .save-the-date {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}
#homeTab .couple-names-home {
  margin-bottom: 20px !important;
}
#homeTab .guest-name-home {
  margin-bottom: 30px !important;
}
#homeTab .btn-buka-home {
  margin-top: 10px !important;
  margin-bottom: 15px !important;
}
#akadTab .akad-container {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
#akadTab .section-title {
  margin-top: 5px !important;
  margin-bottom: 20px !important;
}
#akadTab .akad-btn-map {
  margin-top: 5px !important;
  margin-bottom: 10px !important;
}
#akadTab .akad-countdown-box {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}
#resepsiTab .resepsi-container {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
#resepsiTab .section-title {
  margin-top: 5px !important;
  margin-bottom: 20px !important;
}
#resepsiTab .resepsi-btn-map {
  margin-top: 5px !important;
  margin-bottom: 10px !important;
}

/* ==================== PERBAIKAN THANKS TAB READABILITY ==================== */
#thanksTab .thanks-container {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(15px) !important;
  border-radius: 25px !important;
}
#thanksTab .section-title {
  color: #ffd700 !important;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
  margin-bottom: 20px !important;
}
#thanksTab .thanks-text .lead {
  color: #ffd700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
  font-size: clamp(1rem, 4.5vw, 1.2rem) !important;
}
#thanksTab .thanks-text p {
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5) !important;
}
#thanksTab .couple-names-signature h3 {
  color: #ffd700 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
  margin: 0 10px !important;
}
#thanksTab .social-icon {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(212, 175, 122, 0.4) !important;
}
#thanksTab .social-icon:hover {
  background: rgba(212, 175, 122, 0.25) !important;
  border-color: #ffd700 !important;
}
#thanksTab .social-icon i {
  color: #ffd700 !important;
}

/* ==================== FULLSCREEN IMMERSIVE MODE ==================== */
.fullscreen-active .frame-wrapper,
.fullscreen-active .frame-container,
.fullscreen-active .content-layer {
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
#exitFullscreenBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50px;
  padding: 10px 18px;
  border: 1px solid rgba(212, 175, 122, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: white;
  pointer-events: none;
  transform: translateY(-20px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
#exitFullscreenBtn .exit-icon-wrapper {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #e6b800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
#exitFullscreenBtn i {
  font-size: 20px;
  color: #0a2b5e;
  font-weight: bold;
}
#exitFullscreenBtn .exit-tooltip {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 500;
}
#exitFullscreenBtn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(2px);
  border-color: #ffd700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
#exitFullscreenBtn:hover .exit-icon-wrapper {
  transform: scale(1.08);
  background: linear-gradient(135deg, #e6b800, #cca300);
}
.fullscreen-mode {
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 768px) {
  #exitFullscreenBtn {
    top: 15px;
    right: 15px;
    padding: 8px 14px;
  }
  #exitFullscreenBtn .exit-icon-wrapper {
    width: 26px;
    height: 26px;
  }
  #exitFullscreenBtn i {
    font-size: 16px;
  }
  #exitFullscreenBtn .exit-tooltip {
    font-size: 10px;
  }
}
@media screen and (max-width: 480px) {
  #exitFullscreenBtn {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
  }
  #exitFullscreenBtn .exit-tooltip {
    display: none;
  }
  #exitFullscreenBtn .exit-icon-wrapper {
    width: 30px;
    height: 30px;
  }
}
@media screen and (min-width: 1024px) {
  #exitFullscreenBtn {
    top: 25px;
    right: 25px;
    padding: 12px 22px;
  }
  #exitFullscreenBtn .exit-icon-wrapper {
    width: 34px;
    height: 34px;
  }
  #exitFullscreenBtn i {
    font-size: 22px;
  }
}

/* ==================== RESPONSIVE FULLSCREEN HP ==================== */
@media screen and (max-width: 768px) {
  .frame-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .frame-container {
    aspect-ratio: 926 / 1698;
    width: 100%;
    height: auto;
  }
  .content-layer {
    top: 6%;
    left: 7%;
    right: 7%;
    bottom: 6%;
    padding: 12px 10px;
  }
  .nav-item {
    min-width: 58px;
    padding: 8px 10px;
  }
  .nav-item i {
    font-size: 1rem;
  }
  .nav-item small {
    font-size: 0.52rem;
  }
  .quote-card {
    padding: 20px 15px;
  }
  #homeTab .home-card {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  #akadTab .akad-container,
  #resepsiTab .resepsi-container {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  #thanksTab .thanks-container {
    padding: 20px 15px !important;
  }
  #thanksTab .couple-names-signature h3 {
    font-size: 1.3rem !important;
    margin: 0 6px !important;
  }
}
@media screen and (max-width: 480px) {
  .content-layer {
    top: 5%;
    left: 6%;
    right: 6%;
    bottom: 5%;
    padding: 10px 8px;
  }
  .home-card,
  .quotes-container,
  .couple-container,
  .akad-container,
  .resepsi-container,
  .gallery-container,
  .rsvp-container,
  .gift-container,
  .thanks-container {
    padding: 10px 8px;
  }
  .section-title {
    margin-bottom: 12px;
  }
  .couple-photo-container {
    max-width: 85%;
  }
  .akad-countdown-card {
    min-width: 42px;
    padding: 4px 5px;
  }
  .akad-countdown-number {
    font-size: 0.9rem;
  }
  .gallery-grid {
    gap: 6px;
  }
  .quote-card p {
    font-size: 0.9rem;
  }
  #homeTab .home-card {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  #akadTab .akad-container,
  #resepsiTab .resepsi-container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  #thanksTab .thanks-text .lead {
    font-size: 1rem !important;
  }
  #thanksTab .thanks-text p {
    font-size: 0.8rem !important;
  }
}
@media screen and (min-width: 1024px) {
  .frame-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
  }
  .frame-container {
    aspect-ratio: 926 / 1698;
  }
  .content-layer {
    top: 7%;
    left: 8%;
    right: 8%;
    bottom: 7%;
    padding: 20px 15px;
  }
}