:root {
  --pink: #f14e95;
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgb(0 0 0 / 0.5);
  --white : #5B92E5;
}

html,
body {
  overflow-x: clip;
}

body {
  font-size: 1.2rem;
  font-family: 'Work Sans', sans-serif;
}

section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 4.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at center, rgba(10, 32, 70, 0.18) 0%, rgba(10, 32, 70, 0.05) 70%),
    url(img/preweding/Home.JPG);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-card {
  max-width: 760px;
  width: 100%;
  padding: 2rem 1.5rem;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-family: 'Sacramento', cursive;
  font-size: clamp(4.2rem, 8vw, 6rem);
  margin-bottom: 0.2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-date {
  font-size: 1.15rem !important;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.guest-box {
  max-width: 380px;
  background: rgba(15, 42, 85, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.guest-greeting {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.guest-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-open-invite {
  color: white !important;
  background: linear-gradient(135deg, var(--pink) 0%, #ff7597 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(241, 78, 149, 0.45);
  transition: all 0.3s ease;
}

.btn-open-invite:hover {
  transform: translateY(-2px);
  background: white !important;
  color: var(--pink) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.mynavbar {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(4px);
  min-height: 4.5rem;
}

.mynavbar .offcanvas {
  height: 100vh;
}

.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: 'Sacramento', cursive;
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1;
}

.mynavbar .nav-link {
  text-transform: uppercase;
}

.home {
  position: relative;
  background-color: #f8fcff;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  margin-top: 0;
  padding-top: 7rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
}

.home::before,
.home::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 3178 / 1123;
  max-height: 50%;
  background-image: url(img/preweding/Biru\ 1.png);
  background-size: 100% 200%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.home::before {
  top: 0;
  background-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
}

.home::after {
  bottom: 0;
  background-position: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
}

.home > .container {
  position: relative;
  z-index: 1;
}

.home h2,
.info h2,
.story h2,
.gallery h2,
.rsvp h2,
.gifts h2 {
  color: var(--pink);
  font-family: 'Sacramento';
  font-size: 5rem;
  font-weight: bold;
}

.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home h4 {
  color: #444;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.1rem;
  color: #666;
}

.home .couple {
  margin-top: 50px;
  position: relative;
}

.home .couple h3 {
  font-family: 'Sacramento';
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  color: var(--pink);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
}

.home .couple p {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.home .couple img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.home .heart {
  width: 50px;
  height: 50px;
  background-color: white;
  display: flex;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.home .heart i {
  margin: auto;
  color: var(--pink);
}

.info {
  background: linear-gradient(160deg, #4b82d6 0%, #3766b0 100%);
  color: white;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.info .section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.info h2 {
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.info .alamat {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.info .map-wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  line-height: 0;
}

.info .description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.btn-save-calendar {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  padding: 0.45rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-save-calendar:hover {
  background: #ffffff;
  color: #3766b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.info .event-card {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #334155 !important;
  border: none;
  border-radius: 22px;
  box-shadow: 0 15px 35px rgba(15, 35, 75, 0.22);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info .event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15, 35, 75, 0.28);
}

.info .event-card .card-header {
  background: linear-gradient(135deg, #fff5f9 0%, #eef6ff 100%);
  border-bottom: 1px solid rgba(241, 78, 149, 0.15);
  padding: 1.1rem 1rem 0.85rem;
}

.info .event-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #ff7eb3);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 6px 15px rgba(241, 78, 149, 0.3);
}

.info .event-title {
  font-family: 'Sacramento', cursive;
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--pink);
  margin: 0;
  line-height: 1.1;
}

.info .event-card .card-body {
  padding: 1.1rem 1rem;
}

.info .event-info-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info .event-info-box i {
  font-size: 1.4rem;
  color: #4b82d6;
  margin-bottom: 0.25rem;
}

.info .event-info-box small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.info .event-info-box span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.info .event-card .card-footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 400;
  color: #64748b;
  padding: 0.9rem 1.2rem;
}

.story {
  position: relative;
  background-color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 10rem;
  padding-bottom: 8rem;
  overflow: hidden;
}

.story::before,
.story::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 540;
  max-height: 50%;
  background-image: url(img/preweding/Biru\ 2.png);
  background-size: 100% 200%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.story::before {
  top: 0;
  background-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.story::after {
  bottom: 0;
  background-position: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.story > .container {
  position: relative;
  z-index: 1;
}

.gallery,
.rsvp,
.gifts {
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.story span,
.gallery span,
.gifts span,
.rsvp > .container > .row span {
  text-transform: uppercase;
  color: #64748b;
  font-size: 0.88rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.story p,
.gallery p,
.rsvp p,
.gifts p {
  font-size: 1rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.7;
}

.timeline {
  list-style: none;
  padding: 1.4rem 0;
  margin-top: 1rem;
  position: relative;
}

.timeline::before {
  content: '';
  top: 0;
  bottom: 0;
  position: absolute;
  width: 2px;
  background-color: #dbeafe;
  left: 50%;
}

.timeline li {
  margin-bottom: 1.8rem;
  position: relative;
}

.timeline li::before,
.timeline li::after {
  content: '';
  display: table;
}

.timeline li::after {
  clear: both;
}

.timeline li .timeline-image {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #eef6ff 0%, #fff0f6 100%);
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(75, 130, 214, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 2.2rem;
}

.timeline li .timeline-panel {
  width: 40%;
  float: left;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  position: relative;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.06);
}

.timeline li .timeline-panel h3 {
  color: var(--pink);
  font-family: 'Sacramento', cursive;
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.timeline li .timeline-panel::before {
  content: '';
  display: inline-block;
  position: absolute;
  border-top: 15px solid transparent;
  border-left: 15px solid #e2e8f0;
  border-right: 0 solid #e2e8f0;
  border-bottom: 15px solid transparent;
  top: 80px;
  right: -15px;
}

.timeline li .timeline-panel::after {
  content: '';
  position: absolute;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 14px solid transparent;
  top: 81px;
  right: -13px;
}

.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline li.timeline-inverted .timeline-panel::before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}

.timeline li.timeline-inverted .timeline-panel::after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -13px;
  right: auto;
}

.gallery {
  background: linear-gradient(180deg, #f4f9ff 0%, #eef5fc 100%);
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 35, 75, 0.1);
  border: 4px solid #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 35, 75, 0.16);
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gifts {
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
}

.gift-card {
  background: #ffffff;
  border: 1px solid rgba(241, 78, 149, 0.18);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 30px rgba(241, 78, 149, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(241, 78, 149, 0.14);
}

.gift-bank-badge {
  display: inline-block;
  background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 100%);
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.gift-number {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1.5px;
  margin-bottom: 0.35rem;
}

.gift-holder {
  font-size: 0.98rem;
  color: #64748b;
  font-weight: 500;
}

.btn-copy {
  background-color: #fff0f6;
  color: var(--pink);
  border: 1px solid rgba(241, 78, 149, 0.3);
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-copy:hover,
.btn-copy.copied {
  background-color: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
}

.rsvp {
  background: linear-gradient(160deg, #e8f2fc 0%, #f5f0f9 100%);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.rsvp h2 {
  font-size: 4.5rem;
}

.rsvp p {
  color: #475569;
}

.rsvp-card,
.disqus-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 35px rgba(15, 35, 75, 0.08);
}

.rsvp-card-header,
.disqus-card-header {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.rsvp-card-header i,
.disqus-card-header i {
  color: var(--pink);
}

.disqus-badge {
  background-color: #fff0f6;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.rsvp form label {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
}

.rsvp form label i {
  color: #4b82d6;
}

.rsvp .form-control,
.rsvp .form-select {
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background-color: #f8fafc;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp .form-control:focus,
.rsvp .form-select:focus {
  background-color: #ffffff;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(241, 78, 149, 0.15);
}

.btn-rsvp {
  background: linear-gradient(135deg, var(--pink) 0%, #ff7597 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(241, 78, 149, 0.3);
  transition: all 0.25s ease;
}

.btn-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(241, 78, 149, 0.4);
  color: white;
}

.disqus-scroll-box {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.4rem;
  border-radius: 12px;
}

.disqus-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.disqus-scroll-box::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.disqus-scroll-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.disqus-scroll-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

footer {
  padding: 3rem;
  background-color: var(--pink);
  color: white;
}

footer a {
  color: var(--bg);
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

footer li {
  list-style: none;
  display: inline;
  margin: 0.5rem;
}

.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  cursor: pointer;
  color: white;
  opacity: 0.5;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Media Query */
/* Extra large */
@media (max-width: 1200px) {
  .home .heart {
    transform: translate(-50%, -50%);
  }
}

/* laptop */
@media (max-width: 992px) {
  html {
    font-size: 75%;
  }

  .simply-countdown > .simply-section {
    width: 72px;
    height: 72px;
    padding: 0;
  }

  .home .heart {
    display: none;
  }

  .home .couple h3 {
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    white-space: nowrap;
  }

  .timeline::before {
    left: 50px;
  }

  .timeline li .timeline-image {
    width: 76px;
    height: 76px;
    font-size: 1.8rem;
    left: 5px;
    margin-left: 45px;
    top: 24px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 130px);
    float: right;
  }

  .timeline li .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }

  .timeline li .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -13px;
    right: auto;
  }
}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }

  .simply-countdown > .simply-section {
    width: 66px;
    height: 66px;
    padding: 0;
  }

  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }

  .sticky-top {
    overflow: hidden;
  }

  .home::before,
  .home::after {
    background-size: 140% 200%;
    aspect-ratio: 3178 / 1500;
  }

  .timeline li .timeline-image {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
  }
}

/* mobile phone */
@media (max-width: 576px) {
  html {
    font-size: 60%;
  }

  .simply-countdown > .simply-section {
    width: 62px;
    height: 62px;
    padding: 0;
  }

  .home {
    padding-top: 10rem;
    padding-bottom: 8rem;
  }

  .home::before,
  .home::after {
    background-size: 170% 200%;
    aspect-ratio: 3178 / 1800;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline li .timeline-image {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    left: 0;
    margin-left: 40px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 95px);
    float: right;
    transform: none;
    padding: 1.5rem;
  }

  .timeline li .timeline-panel::before {
    top: 30px;
  }

  .timeline li .timeline-panel::after {
    top: 31px;
  }
}
