

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}
body {
  font-family: "Times New Roman", serif;
  overflow-x: hidden;
}

.opening {
  display: flex;
  min-height: 100vh;
}

.mobile-castle {
  display: none;
}

/* MUSIC */
#vinylControl {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  display: none; 
}

/* muter kalau musik jalan */
#vinylControl.playing {
  animation: spin 4s linear infinite;
}

/* mobile */
@media (max-width: 768px) {
  #vinylControl {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
}

/* LEFT */
.left {
  position: relative;
  flex: 1;
  background: url("../../images/glacier/glacierbg.webp") center/cover no-repeat;
  padding: 40px;
  overflow: hidden;
}

.frame {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
}

.title {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Tangerine", cursive;
  font-size: 42px;
  color: goldenrod;
  text-align: center;
}

.guest {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  color: #085c80;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 18px;
  border-radius: 20px;
  backdrop-filter: blur(1px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/* FAIRY */
.fairy {
  position: absolute;
  width: 80px;
}

.fairy-1 {
  top: 20%;
  right: 34%;
}

.fairy-2 {
  bottom: 55%;
  left: 32%;
}

.fairy-3 {
  bottom: 15%;
  right: 34%;
}

@keyframes fairyHover {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-6px, -8px) rotate(-2deg);
  }
  50% {
    transform: translate(0, -14px) rotate(0deg);
  }
  75% {
    transform: translate(6px, -8px) rotate(2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.fairy-anim {
  animation: fairyHover 4s ease-in-out infinite;
}

.fairy-anim.fast {
  animation-duration: 8s;
}

.fairy-anim.slow {
  animation-duration: 10s;
}

/* fairy mobile*/
@media (max-width: 480px) {
  .fairy {
  position: absolute;
  width: 60px;
    }

    .fairy-1 {
    top: 20%;
    right: 8%;
    }

    .fairy-2 {
    bottom: 50%;
    left: 1%;
    }

    .fairy-3 {
    bottom: 15%;
    right: 28%;
    }
}

/* CAP */
.cap-wrapper {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
}

.cap {
  width: 100%;
  animation: spin 20s linear infinite;
}

.cap-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Tangerine", cursive;
  font-size: 28px;
  color: #ffffff;
  pointer-events: none;
  text-shadow: 2px 2px 2px #085c80; 
}

/* RIGHT */
.right {
  width: 480px;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.right-text {
  font-family: "Tangerine", cursive;
  color: rgb(255, 255, 255);
  font-size: 35px;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.right-text .big {
  font-size: 46px;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

/* ROTATION */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .opening {
    flex-direction: column;
  }

  .right {
    display: none;
  }

  .right.show-mobile {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  }

  .title {
    font-size: 34px;
  }

  .guest {
    font-size: 16px;
  }


  .frame {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
}
}

@media (max-width: 480px) {
  .right-text {
    display: none;
  }

  .right.show-mobile .right-text {
    display: block;
  }
}

/* Background mobile */
@media (max-width: 480px) {
  .left {
    background: url("../../images/glacier/glacierbg.webp") center/cover no-repeat;
  }
}

/* MAIN WRAPPER */
.main-wrapper {
  display: none;
}

.main-hero {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
  padding-top: 120px;
}

.hero-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  transform: translateX(15px);
  animation: fadeIn 2s ease-out;
  z-index: 50;
}

.hero-frame {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  width: 90%;
  padding: 20px;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.hero-content .sub-title {
  font-family: "Tangerine", cursive;
  font-size: 38px;
}

.hero-content .couple-name {
  font-family: "Tangerine", cursive;
  font-size: 56px;
  line-height: 1.1;
  margin: 15px 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.name {
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.hero-content .wedding-date {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 25px;
  font-weight: 300;
}

.bible-verse {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.6;
}

.bible-verse span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-style: normal;
}

.deco-flower {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.pink-loc {
  top: 47%;
  left: 35%;
  width: 180px;
  animation: floatHorizontal 5s ease-in-out infinite;
  z-index: 5;
}

.purple-loc {
  bottom: 20%;
  right: 32%;
  width: 180px;
  animation: floatHorizontal 7s ease-in-out infinite;
  z-index: 100;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(15px, 30px); }
  to { opacity: 1; transform: translate(15px, 0); }
}

@keyframes floatHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

@media (max-width: 480px) {
  .hero-frame-wrapper {
    width: 98%;
    margin-top: -80px;
    transform: translateX(5px);
  }

  .hero-content .sub-title {
    font-size: 32px;
  }

  .hero-content .couple-name {
    font-size: 42px;
  }

  .hero-content .wedding-date {
    font-size: 16px;
  }

  .bible-verse {
    font-size: 13px;
    max-width: 240px;
  }

  .pink-loc { 
    width: 120px; 
    top: 47%;
    left: -2%;
  }

  .purple-loc { 
    width: 100px; 
    bottom: 30%;
    right: -2%; 
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translate(5px, 30px); }
    to { opacity: 1; transform: translate(5px, 0); }
  }

  @keyframes floatHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
  }
}


.bride-groom {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  padding: 20px 20px;
  display: flex;
  align-items: center;
}

.bride-groom .container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.profile-box {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.photo-frame {
  width: 220px;
  height: 300px;
  margin: 0 auto 25px;
  border: 4px solid rgb(221, 221, 221);
  border-radius: 120px 120px 0 0; 
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-frame:hover img {
  transform: scale(1.1);
}

.profile-box .name {
  font-family: "Tangerine", cursive;
  font-size: 45px;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.profile-box .parents {
  font-size: 15px;
  line-height: 1.6;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-bottom: 15px;
}

.and-symbol {
  font-family: "Tangerine", cursive;
  font-size: 60px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin: 0 20px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s;
}

.ig-link:hover {
  opacity: 0.7;
}

/* Responsif Mobile */
@media (max-width: 768px) {
  .bride-groom .container {
    flex-direction: column;
  }
  
  .and-symbol {
    margin: 10px 0;
    font-size: 50px;
  }

  .photo-frame {
    width: 200px;
    height: 270px;
  }
}

.floating-tree {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 420px;
  z-index: 99;
  pointer-events: none;
  animation: treeSway 5s ease-in-out infinite;
  transform-origin: right center;
}

@keyframes treeSway {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-3deg);
  }
}

@media (max-width: 480px) {
  .floating-tree {
    width: 280px;
    bottom: 50px;
    right: -10px;
  }
}

.love-story-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 80px auto 0;
  padding: 40px 20px;
}

/* Header & Fairy */
.story-header {
  position: relative; 
  text-align: center;
  margin-bottom: 60px;
  display: block; 
}

.story-fairy {
  position: absolute;
  width: 50px;
  top: -20px; 
  left: 25%;
  transform: translateX(-120px);
  animation: fairyHover 4s ease-in-out infinite;
  z-index: 10;
}

.love-story-wrapper .section-title {
  font-family: "Tangerine", cursive;
  font-size: 50px;
  display: inline-block;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}


.timeline {
  position: relative;
  width: fit-content; 
  margin: 0 auto; 
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: white;
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: -45px;
  top: 12px;
  width: 10px;
  height: 10px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.timeline-content .year {
  font-family: "Tangerine", cursive;
  font-size: 36px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  line-height: 0.8;
}

.timeline-content .desc {
  font-size: 15px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  font-weight: 500;
  margin-top: 8px;
  white-space: nowrap; 
}

/* Responsif Mobile */
@media (max-width: 480px) {
  .story-fairy {
    width: 50px;
    top: -10px; 
    left: -6%;
  }
  
  .timeline-content .desc {
    white-space: normal; 
    max-width: 250px;
  }
  
  .love-story-wrapper .section-title {
    font-size: 40px;
  }
}

.countdown-section {
  width: 100%;
  padding: 80px 0;
  background: url("../../images/glacier/glacierbg.webp") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;

  border-top: 6px solid;
  border-bottom: 6px solid;
  border-image-source: linear-gradient(
    to right, 
    #bdbdbd, 
    #ffffff, 
    #ffffff, 
    #bdbdbd
  );
  border-image-slice: 1;
}

.countdown-container {
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}

.countdown-title {
  font-family: "Tangerine", cursive;
  font-size: 55px;
  margin-bottom: 30px;
  color: #3383a6;
  text-shadow: 
    0 0 5px #fff, 
    0 0 10px #fff, 
    0 0 20px rgba(149, 204, 241, 0.8);
}

.timer-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px; 
  flex-wrap: wrap;
}

.timer-card {
  min-width: 80px;
  min-height: 100px; 
  padding: 20px 10px; 
  border-radius: 12px;
  border: 1px solid rgba(192, 192, 192, 0.4);
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("../../images/glacier/bgblue.webp") center/cover no-repeat;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.2);
  
  transition: all 0.3s ease;
}


.timer-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 15px 30px rgba(100, 100, 100, 0.3);
}

.timer-card span {
  display: block;
  font-size: 22px; 
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.timer-card p {
  font-size: 10px;
  color: #3383a6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wedding-date-text {
  margin-top: 30px;
  font-size: 18px;
  color: #3383a6;
  text-shadow: 
    0 0 5px #fff, 
    0 0 10px #fff, 
    0 0 20px rgba(149, 204, 241, 0.8);
  letter-spacing: 2px;
  font-weight: 300;
}

@media (max-width: 480px) {
  .countdown-section {
    padding: 30px 0; 
    background-attachment: scroll !important;
    background-position: center center;
  }

  .countdown-title {
    font-size: 40px; 
    margin-bottom: 20px;
  }

  .timer-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px; 
    flex-wrap: nowrap; 
    padding: 0 10px;
  }

  .timer-card {
    flex: 1; 
    max-width: 75px; 
    min-width: 0; 
    min-height: 70px;
    padding: 10px 2px;
    margin: 0; 
  }

  .timer-card span {
    font-size: 18px; 
    margin-bottom: 2px;
  }

  .timer-card p {
    font-size: 8px; 
    letter-spacing: 0;
  }

  .wedding-date-text {
    font-size: 14px;
    margin-top: 20px;
  }
}

.event-details {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat fixed;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.event-container {
  width: 100%;
  max-width: 600px;
  z-index: 2;
}

.event-card {
  background: rgba(241, 241, 241, 0.1); 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 230, 230, 0.2);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.event-title {
  font-family: "Tangerine", cursive;
  font-size: 55px;
  margin-bottom: 40px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  text-align: center;
}

.event-box {
  margin-bottom: 40px;
}

.event-type {
  font-family: "Tangerine", cursive;
  font-size: 38px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-bottom: 10px;
}

.event-date, .event-time {
  font-weight: bold;
  letter-spacing: 1px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-bottom: 5px;
}

.event-venue {
  font-size: 18px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-top: 15px;
  font-weight: 600;
}

.event-address {
  font-size: 14px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  max-width: 300px;
  margin: 5px auto 25px;
  line-height: 1.5;
}

.event-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgb(199, 199, 199), transparent);
  margin: 0 auto 40px;
}

.event-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-event {
  display: inline-block;
  padding: 12px 35px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #3383a6; 
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(159, 188, 214, 0.3);
  color: #2d7c9e; 
}

@media (max-width: 480px) {
  .event-card {
    padding: 40px 20px;
  }
  .event-title {
    font-size: 42px;
  }
  .event-type {
    font-size: 32px;
  }
}

/* Peri Biru Tetap Sama */
.fairy-event {
  position: absolute;
  width: 50px;
  top: 60px; 
  right: 750px; 
  z-index: 5; 
  opacity: 0.9; 
  animation: fairyHover 5s ease-in-out infinite; 
  animation-delay: 0.5s; 
}

@media (max-width: 480px) {
  .fairy-event {
    width: 60px; 
    top: 45px; 
    right: 35px; 
  }
}

/* --- BUNGA TRANSISI --- */
.transition-flower {
  position: absolute;
  width: 480px;
  left: 0;
  margin-top: -120px; 
  z-index: 10;
  pointer-events: none;
  animation: treeSway 5s ease-in-out infinite;
}

/* --- SECTION DRESSCODE --- */
.dresscode-section {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  padding: 100px 20px 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dresscode-container {
  text-align: center;
  width: 100%;
  max-width: 700px;
}

.dresscode-title {
  font-family: "Tangerine", cursive;
  font-size: 55px;
  margin-bottom: 40px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.dress-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-frame {
  width: 100%;
  height: auto;
}

.flower-side {
  position: absolute;
  width: 140px;
  z-index: 5;
}

.side-left {
  left: 10px;
  bottom: 200px;
  animation: slideSide 6s ease-in-out infinite;
}

.side-right {
  right: 20px;
  bottom: 140px;
  animation: slideSideRight 6s ease-in-out infinite;
  animation-delay: -3s;
}

@media (max-width: 480px) {
  
 .side-left {
    left: 5px;
    width: 140px;
    bottom: 140px;
    animation: slideSide 6s ease-in-out infinite;
  }

  .side-right {
    right: 10px;
    bottom: 100px;
    animation: slideSideRight 6s ease-in-out infinite;
    animation-delay: -3s;
  }
}

@keyframes slideSide {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-15px); 
  }
}

@keyframes slideSideRight {
  0%, 100% { 
    transform: scaleX(-1) translateY(0); 
  }
  50% { 
    transform: scaleX(-1) translateY(-15px); 
  }
}

/* --- KONTEN TENGAH FRAME (FIXED CENTERING) --- */
.dress-content {
  position: absolute;
  top: 53%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  text-align: center;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #eeeeec; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dress-theme {
  font-weight: 600;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8); 
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 14px;
}

.dress-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, #f7f7f7, transparent);
  margin: 0 auto 15px;
}

.dress-note {
  font-family: "Tangerine", cursive;
  font-size: 36px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  line-height: 1;
}

/* --- MOBILE --- */
@media (max-width: 480px) {
  .transition-flower {
    width: 250px;
    margin-top: -50px;
  }
  .flower-side {
    width: 100px;
  }
 
  .dress-content { width: 80%; }
  .dress-note { font-size: 30px; }
  .dresscode-title { font-size: 45px; }
}

/* --- SECTION GALLERY --- */
.gallery-section {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: -20px;
}

.gallery-container {
  text-align: center;
  width: 100%;
  max-width: 900px; 
}

.gallery-title {
  font-family: "Tangerine", cursive;
  font-size: 55px;
  margin-bottom: 50px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 30px; 
  width: 100%;
}

.gallery-item {
  display: block;
  text-decoration: none;
  border-radius: 15px; 
  overflow: hidden;
  border: 1px solid rgba(166, 221, 253, 0.2); 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 120%; 
  overflow: hidden;
}

.photo-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.6s ease;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(146, 215, 255, 0.4); 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: white;
  font-size: 24px;
}

/* Hover di Desktop */
@media (min-width: 768px) {
  .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.3);
  }
  
  .gallery-item:hover .photo-wrapper img {
    transform: scale(1.1); /* Zoom halus pada foto */
  }
  
  .gallery-item:hover .photo-overlay {
    opacity: 1;
  }
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
  .gallery-container {
    padding: 0 10px;
  }
  .gallery-grid {
    gap: 15px; /* Jarak lebih sempit di HP */
  }
  .photo-wrapper {
    padding-bottom: 110%; /* Sedikit kurang jenjang di mobile */
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 45px;
    margin-bottom: 30px;
  }
}

/* --- NATIVE LIGHTBOX OVERLAY --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  user-select: none;
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 80%; /* Batasi tinggi agar tidak luber */
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Foto akan menyesuaikan layar tanpa terpotong */
  border: 2px solid rgba(139, 228, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

/* Tombol Navigasi (Slide) */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 35px;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10001;
}

.lightbox-nav:hover { background: rgba(125, 237, 252, 0.5); }
.nav-prev { left: -50px; }
.nav-next { right: -50px; }

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsif Mobile untuk Tombol */
@media (max-width: 768px) {
  .nav-prev { left: 10px; }
  .nav-next { right: 10px; }
  .lightbox-nav { font-size: 25px; padding: 10px; }
}

@keyframes fadeIn { to { opacity: 1; } }

/* --- SECTION GIFT --- */
.gift-section {
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat fixed;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.gift-container {
  text-align: center;
  width: 100%;
  max-width: 700px;
  z-index: 5;
}

.gift-header {
  margin-bottom: 40px;
}

.gift-title {
  font-family: "Tangerine", cursive;
  font-size: 55px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-bottom: 10px;
}

.gift-subtitle {
  font-size: 14px;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  font-style: italic;
}

.gift-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.gift-frame {
  width: 100%;
  height: auto;
}

/* --- BUNGA GIFT & PERI --- */
.gift-flower {
  position: absolute;
  width: 150px;
  bottom: -40px;
  z-index: 6;
  animation: treeSway 6s ease-in-out infinite;
}

.gift-flower.side-left {
  left: -30px;
  top: 420px;
  animation: slideSide 6s ease-in-out infinite;
}

.gift-flower.side-right {
  right: 10px;
  bottom: 100px;
  animation: slideSideRight 6s ease-in-out infinite;
  animation-delay: -3s;
}


.fairy-gift {
  position: absolute;
  width: 40px;
  top: 10%;
  left: 57%;
  z-index: 4;
  animation: fairyHover 5s ease-in-out infinite;
}

/* --- KONTEN DALAM FRAME --- */
.gift-content {
  position: absolute;
  top: 48%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
}

.bank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; 
}

.bank-logo {
  width: 130px;
  margin-bottom: 5px;
}

.bank-name {
  font-family: "Tangerine", cursive; 
  font-size: 42px;
  line-height: 1;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  margin-bottom: 5px;
}

.account-wrapper {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 15px;
  border-radius: 50px;
  border: 1px solid rgba(176, 141, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
}

.account-number {
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(149, 204, 241, 0.8);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.btn-copy {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    color: #3383a6;
    border: 1px solid rgba(159, 188, 214, 0.3);
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(30deg);
    transition: all 0.5s;
    animation: crystalShine 4s infinite;
}

@keyframes crystalShine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.btn-copy.copied {
    background: #9fbcd6;
    color: white;
    box-shadow: 0 0 15px rgba(159, 188, 214, 0.6);
    transform: scale(1.05);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(159, 188, 214, 0.3);
  color: #2d7c9e; 
}


/* --- MOBILE --- */
@media (max-width: 480px) {
  .gift-content {
    top: 44%; 
  }
  .gift-title { font-size: 45px; }
  .gift-flower { width: 110px; }
  .gift-flower.side-left {
  left: -20px;
  top: 290px;
  animation: slideSide 6s ease-in-out infinite;
}

.gift-flower.side-right {
  right: -5px;
  bottom: 100px;
  animation: slideSideRight 6s ease-in-out infinite;
  animation-delay: -3s;
}
  .bank-logo { width: 110px; }
  .bank-name { font-size: 34px; }
  .account-number { font-size: 16px; }
  .fairy-gift {
  position: absolute;
  width: 40px;
  top: 10%;
  left: 75%;
  z-index: 4;
  animation: fairyHover 5s ease-in-out infinite;
}
}

/* ================= RESERVATION & WISHES SECTION ================= */
.reservation-wish-section {
  position: relative;
  width: 100%;
  background: url("../../images/glacier/bgblue.webp") center/cover no-repeat fixed;
  overflow-x: hidden;
}

.rsvp-sub-container {
  position: relative;
  padding: 80px 40px 100px;
  text-align: center;
}

.rsvp-flower {
  position: absolute;
  top: 30px;
  right: -10px; 
  width: 480px;
  animation: swayTree 6s ease-in-out infinite;
  transform-origin: bottom center;
  z-index: 999;
  pointer-events: none;
}

@keyframes swayTree {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

.rsvp-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 220px auto 0;
  font-family: "Times New Roman", serif;
}

.rsvp-title {
  font-family: "Tangerine", cursive;
  font-size: 46px;
  background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff, #d1d1d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.rsvp-subtitle {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 30px;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 10px 5px;
  margin-bottom: 24px;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  color: #ffffff;
  outline: none;
}

.rsvp-form select option {
  background-color: #3383a6;
  color: #ffffff;
}

.rsvp-choice {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

.rsvp-option input { display: none; }
.rsvp-option span {
  display: inline-block;
  padding: 9px 28px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.rsvp-option input:checked + span {
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  color: #3383a6;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.rsvp-submit {
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  color: #3383a6;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 25px;
  border-radius: 8px;
  font-family: "Times New Roman", serif;
  cursor: pointer;
  transition: 0.3s;
}

.wish-sub-container {
  position: relative;
  padding: 50px 30px 160px;
  text-align: center;
}

.wish-title {
  font-family: "Tangerine", cursive;
  font-size: 44px;
  background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff, #d1d1d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wish-subtitle {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 40px;
}

.wish-form {
  max-width: 420px;
  margin: auto;
}

.wish-input-name, .wish-input-text {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 12px 6px;
  font-size: 16px;
  margin-bottom: 30px;
  outline: none;
  font-family: "Times New Roman", serif;
  color: #ffffff;
}

.wish-input-name::placeholder, .wish-input-text::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.wish-btn-send {
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  color: #3383a6;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 25px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 40px;
}

.wish-list {
  max-height: 360px;
  overflow-y: auto;
  text-align: left;
  padding: 10px 15px;
  max-width: 500px;
  margin: 0 auto;
}

.wish-item {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wish-item-name { font-weight: bold; margin-bottom: 4px; color: #ffffff; }

.wish-list::-webkit-scrollbar { width: 5px; }
.wish-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

@media (max-width: 480px) {
  .rsvp-sub-container { padding: 10px 40px 30px; }
  .rsvp-flower { top: -20px; right: -40px; width: 300px; }
  .wish-title { font-size: 42px; }
  .wish-sub-container { padding: 80px 20px 40px; }
}

@media (max-width: 480px) {
  .rsvp-sub-container, 
  .wish-sub-container { 
    padding: 40px 20px; 
  }

  .rsvp-content, 
  .wish-form, 
  .wish-list { 
    max-width: 100%; 
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .rsvp-content { 
    margin-top: 120px; 
  }

  .rsvp-flower { 
    top: -10px; 
    right: -40px; 
    width: 280px; 
  }

  .wish-title { 
    font-size: 40px; 
  }

  .rsvp-form input, 
  .rsvp-form select, 
  .wish-input-name, 
  .wish-input-text {
    padding: 10px 8px; 
    font-size: 14px;
  }

  .rsvp-submit, 
  .wish-btn-send {
    width: 100%; 
    padding: 12px;
  }
}

.rsvp-form input::placeholder,
.rsvp-form select,
.rsvp-input-guest option:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.wish-input-name::placeholder,
.wish-input-text::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#rsvpFeedback {
  color: #ffffff !important;
}

/* --- CLOSING SECTION --- */
.closing-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("../../images/glacier/glacierbg.webp") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

.closing-container {
  z-index: 5;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; 
}

.closing-thanks {
  font-family: "Tangerine", cursive;
  font-size: 70px;
  background: linear-gradient(45deg, #15749c, #2085af, #15749c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.frame-la-wrapper {
  width: 100%;
  max-width: 320px;
}

.img-frame-la {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}


/* --- FOOTER --- */
/* --- FOOTER --- */
.main-footer {
  background: #fff;
  padding: 20px;
  text-align: center;
  /* Perbaikan: Border warna biru transparan, bukan cokelat */
  border-top: 1px solid rgba(139, 204, 241, 0.2);
}

.footer-link {
  text-decoration: none;
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.3s;
}

.footer-logo {
  width: 25px; 
  height: auto;
  opacity: 0.9;
}

.footer-link p {
  font-size: 11px;
  color: #8acaf5; 
  letter-spacing: 1px;
  margin: 0;
  font-family: sans-serif;
  font-weight: 500;
}

.footer-link:hover {
  opacity: 0.7;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 480px) {
  .closing-section {
    /* Fix Safari HD: Ubah fixed ke scroll */
    background-attachment: scroll !important;
    background-position: center center;
    padding: 60px 20px;
  }
  
  .closing-thanks {
    font-size: 55px;
    /* Perbaikan: Shadow biru lembut, bukan cokelat/emas */
    text-shadow: 1px 1px 3px rgba(149, 204, 241, 0.3);
  }
  
  .frame-la-wrapper {
    max-width: 260px;
  }
}


/* --- Animasi Hero Section --- */

/* State Awal (Hidden) */
.hero-frame {
    transform: scale(1.1);
    clip-path: inset(50% 50% 50% 50%); /* Tersembunyi di titik tengah */
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.8s; /* Delay muncul setelah frame */
}

.deco-flower {
    opacity: 0;
    transition: all 1.2s ease-out;
}

.pink-loc { transform: translateX(-50px) rotate(-20deg); }
.purple-loc { transform: translateX(50px) rotate(20deg); }

/* State Aktif (Saat Masuk Viewport) */
.main-hero.is-visible .hero-frame {
    clip-path: inset(0% 0% 0% 0%); /* Membuka penuh */
    transform: scale(1);
    opacity: 1;
}

.main-hero.is-visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.main-hero.is-visible .deco-flower {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

/* Efek Floating Mengambang Terus Menerus */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.main-hero.is-visible .deco-flower {
    animation: float 6s ease-in-out infinite;
}

.purple-loc { animation-delay: 1s !important; }

/* --- Bride & Groom Reveal --- */
.profile-box {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pengantin Pria geser dari kiri, Wanita dari kanan */
.profile-box:first-child { transform: translateX(-40px); }
.profile-box:last-child { transform: translateX(40px); }

.profile-box.is-active {
    opacity: 1;
    transform: translateX(0);
}

.photo-frame img {
    transform: scale(1.3);
    transition: transform 2s ease;
}

.profile-box.is-active .photo-frame img {
    transform: scale(1);
}

/* --- Love Story Timeline Animation --- */
.timeline-line {
    height: 0; /* Mulai dari nol */
    transition: height 2s cubic-bezier(0.45, 0, 0.55, 1);
}

.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

/* Garis akan memanjang saat section aktif */
.love-story-wrapper.is-active .timeline-line {
    height: 100%;
}

/* Item timeline muncul satu per satu (staggered) */
.love-story-wrapper.is-active .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delay untuk tiap item timeline */
.timeline-item:nth-child(2) { transition-delay: 0.3s; }
.timeline-item:nth-child(3) { transition-delay: 0.6s; }
.timeline-item:nth-child(4) { transition-delay: 0.9s; }
.timeline-item:nth-child(5) { transition-delay: 1.2s; }

/* Efek Fairy yang "Terbang" masuk */
.story-fairy {
    transform: translate(-30px, 30px) rotate(-15deg);
    opacity: 0;
    transition: all 1.5s ease;
}
.love-story-wrapper.is-active .story-fairy {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
}

/* --- Timer Card Glassmorphism --- */
.timer-card {
    position: relative;
    overflow: hidden;
    
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), 
                url("../../images/glacier/bgblue.webp") center/cover no-repeat;
    
    border: 1px solid rgba(255, 255, 255, 0.5); 
    
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.2);

    min-width: 80px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timer-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transform: skewX(-25deg);
}

/* Saat Section Aktif di Viewport */
.countdown-section.is-active .timer-card::after {
    animation: sweep 1.5s ease-in-out forwards;
}

/* Delay staggered agar kilauan muncul bergantian (Premium Feel) */
.timer-card:nth-child(1)::after { animation-delay: 0.2s; }
.timer-card:nth-child(2)::after { animation-delay: 0.4s; }
.timer-card:nth-child(3)::after { animation-delay: 0.6s; }
.timer-card:nth-child(4)::after { animation-delay: 0.8s; }

@keyframes sweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Efek tambahan: sedikit angkat kartu saat muncul */
.countdown-section .timer-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.countdown-section.is-active .timer-card {
    opacity: 1;
    transform: translateY(0);
}

/* --- State Awal (Hidden) --- */
.event-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

/* --- Animasi Saat Aktif --- */
.event-details.is-active .event-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Reveal untuk Box Acara */
.event-details.is-active .event-box:nth-child(1) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.event-details.is-active .event-divider { transition: all 1s ease 0.8s; opacity: 1; width: 120px; } 
.event-details.is-active .event-box:nth-child(3) { transition-delay: 1.1s; opacity: 1; transform: translateY(0); }

/* --- Efek Blue Fairy Entrance --- */
.fairy-event {
    opacity: 0;
    transform: translate(100px, -50px) rotate(20deg);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-details.is-active .fairy-event {
    opacity: 0.9;
    transform: translate(0, 0) rotate(0);
}

/* --- Efek Cahaya Bergerak pada Border (Premium) --- */
@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.3); 
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    }
    50% { 
        border-color: rgba(200, 200, 200, 0.8); 
        box-shadow: 0 0 20px rgba(159, 188, 214, 0.4);
    }
}

.event-details.is-active .event-card {
    animation: borderGlow 4s ease-in-out infinite;
}

/* --- State Awal (Hidden) --- */
.dress-frame {
    opacity: 0;
    clip-path: inset(0 50% 0 50%); /* Terpotong di tengah secara vertikal */
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.flower-side {
    opacity: 0;
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.side-left { transform: translateX(-50px) rotate(-45deg) scale(0.5); }
.side-right { transform: translateX(50px) rotate(45deg) scale(0.5); }

.color-circle {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dress-note {
    opacity: 0;
    letter-spacing: 10px; /* Teks merenggang saat mulai */
    transition: all 1s ease 1.2s;
}

/* --- State Aktif (Saat Masuk Viewport) --- */
.dresscode-section.is-active .dress-frame {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Membuka ke samping */
}

.dresscode-section.is-active .flower-side {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotate(0) scale(1);
    transition-delay: 0.5s; /* Muncul setelah frame mulai terbuka */
}

/* Muncul satu per satu dengan efek spin */
.dresscode-section.is-active .color-circle:nth-child(1) { transition-delay: 0.8s; opacity: 1; transform: rotate(0) scale(1); }
.dresscode-section.is-active .color-circle:nth-child(2) { transition-delay: 1.0s; opacity: 1; transform: rotate(0) scale(1); }
.dresscode-section.is-active .color-circle:nth-child(3) { transition-delay: 1.2s; opacity: 1; transform: rotate(0) scale(1); }

.dresscode-section.is-active .dress-note {
    opacity: 1;
    letter-spacing: 1px; /* Merapat ke posisi normal */
}

/* --- Setup Container Gallery --- */
.gallery-grid {
    perspective: 1000px; /* Memberikan efek 3D */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    opacity: 0;
    /* State Awal: Mundur jauh di sumbu Z dan miring */
    transform: translateZ(-300px) translateY(50px) rotateX(15deg);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

/* --- State Aktif (Saat Masuk Viewport) --- */
.gallery-section.is-active .gallery-item {
    opacity: 1;
    transform: translateZ(0) translateY(0) rotateX(0);
}

/* Staggered Delay: Agar foto muncul berurutan seperti air terjun */
.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.3s; }
.gallery-item:nth-child(3) { transition-delay: 0.2s; } /* Variasi urutan agar tidak kaku */
.gallery-item:nth-child(4) { transition-delay: 0.4s; }
.gallery-item:nth-child(5) { transition-delay: 0.5s; }
.gallery-item:nth-child(6) { transition-delay: 0.7s; }

/* --- Hover Effect Premium --- */
.photo-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.gallery-item:hover .photo-wrapper {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.3); /* Glow emas tipis */
}

.gallery-item img {
    transition: transform 1.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg); /* Zoom pelan saat hover */
}

/* --- State Awal (Hidden) --- */
.gift-frame {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-flower {
    opacity: 0;
    transition: all 1.2s ease-out 0.5s;
}
.gift-flower.side-left { transform: translateX(-30px) rotate(-10deg); }
.gift-flower.side-right { transform: translateX(30px) rotate(10deg); }

.bank-card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1s; /* Muncul paling akhir */
}

/* --- State Aktif (Saat Masuk Viewport) --- */
.gift-section.is-active .gift-frame {
    opacity: 1;
    transform: scale(1);
}

.gift-section.is-active .gift-flower {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.gift-section.is-active .bank-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Efek Fairy Hijau Terbang --- */
.fairy-gift {
    opacity: 0;
    transform: translateY(-50px) translateX(-20px);
    transition: all 2s ease;
}
.gift-section.is-active .fairy-gift {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- Animasi Tombol Copy (Premium Feedback) --- */
.btn-copy {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* Efek Berhasil Copy (Class ditambahkan via JS) */
.btn-copy.copied {
    background: linear-gradient(90deg, #dbdbdb, #d6d6d6);
    color: white;
}

/* --- State Awal (Hidden) --- */
.rsvp-sub-container {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.wish-sub-container {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.rsvp-input-name, .rsvp-input-guest, .rsvp-submit,
.wish-input-name, .wish-input-text, .wish-btn-send {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease-out;
}

/* Bunga RSVP mekar */
.rsvp-flower {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

/* --- State Aktif (Saat Masuk Viewport) --- */
.reservation-wish-section.is-active .rsvp-sub-container,
.reservation-wish-section.is-active .wish-sub-container {
    opacity: 1;
    transform: translateX(0);
}

.reservation-wish-section.is-active .rsvp-flower {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Staggered Reveal untuk Form (Sangat Elegan) */
.reservation-wish-section.is-active input,
.reservation-wish-section.is-active select,
.reservation-wish-section.is-active textarea,
.reservation-wish-section.is-active button {
    opacity: 1;
    transform: translateY(0);
}

/* Delay unik agar input muncul berurutan ke bawah */
.rsvp-input-name { transition-delay: 0.6s; }
.rsvp-input-guest { transition-delay: 0.7s; }
.rsvp-submit { transition-delay: 0.8s; }

.wish-input-name { transition-delay: 0.9s; }
.wish-input-text { transition-delay: 1.0s; }
.wish-btn-send { transition-delay: 1.1s; }


.closing-thanks {
    opacity: 0;
    transform: translateY(-30px);
    letter-spacing: 8px; 
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}


.img-frame-la {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s; 
}

.closing-section.is-active .closing-thanks {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0px; /* Merapat kembali ke normal */
}

.closing-section.is-active .img-frame-la {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Efek Floating Halus (Looping) agar section tidak mati */
@keyframes finalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.closing-section.is-active .closing-container {
    animation: finalFloat 5s ease-in-out infinite 2.5s; /* Mulai setelah animasi entrance selesai */
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  width: 200px; /* Lebar area loading */
  text-align: center;
}

/* Logo Favicon */
.loader-logo {
  width: 40px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 2px; /* Tipis biar elegan */
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Progress Bar Inner */
.progress-bar {
  width: 0%; /* Start dari 0 */
  height: 100%;
  background: #1a1a1a; /* Warna bar gelap premium */
  transition: width 0.4s ease; /* Transisi pas nambah % */
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888888;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}