:root {
    --black: #363636;
    --bg: #b99797;
    --shadow: 0 2px 2px rgba(0,0,0,0.5);
}

html{
    scroll-behavior: smooth;
}

body{
 font-size: 1.2rem;
 font-family: "Cormorant Garamond", serif;
 min-height: 4000px;
}

.hero::before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/IMG_6612.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero{
    position: relative;
    min-height: 100vh; 
}

.hero h1,
.hero h4,
.hero p{
    text-shadow: var(--shadow);
}

.hero h1{
    font-weight: bold;
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    text-shadow: 0px 1px 4px rgba(255, 255, 255, 0.6);
}

.hero h4{
    font-size: 1.4rem;
    text-shadow: 0px 1px 4px rgba(255, 255, 255, 0.6);
}

.hero a{
    color: white;
    background-color: rgb(57, 55, 55);
    box-shadow: var(--shadow);
}

.hero a:hover{
    background-color: white;
    color: var(--bg);
}
.mynavbar {
    background-color: rgba(255, 255, 255, 0.2)!important;
    backdrop-filter: blur(4px);
}

.mynavbar .offcanvas {
    height: 100vh;
}
.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    font-weight: bold;
}

.mynavbar .nav-link {
    text-transform: uppercase;
    text-align: center;
}

.home{
    position: relative;
    background-image: url(img/IMG_6579.JPG);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    margin-top: -6rem;
    padding-top: 15rem;   
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.home::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.473);
    z-index: -1;
}

.home h2 {
    color: rgb(255, 255, 255);
    text-shadow: 0px 1px 4px rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

.home h3 {
    color:rgb(255, 255, 255);
    text-shadow: 0px 1px 4px rgba(255, 255, 255, 0.6);
    font-family: 'Dancing Script';
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: inline-block;
}

.home p {
    font-size: 1.5rem;
    color:#ffffff;
}

.home .simply-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.home .simply-countdown > .simply-section {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 50px;
    height: 50px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.home .simply-countdown > .simply-section:hover {
    transform: scale(1.1);
}

.home .simply-countdown .simply-amount {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.home .simply-countdown .simply-word {
    font-size: 0.5rem;
    color: #666;
}

.home .countdown-wrapper {
    max-width: 100%;
    overflow: hidden;
    padding: 1rem;
}

.home .countdown-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.home .countdown-item {
    width: 80px;
    height: 80px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .countdown-item {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
}

.info h1 {
    font-size: 5rem;
    font-family: 'Dancing Script';
    font-weight: bold;
}

.info h2 {
    font-size: 3.5rem;
    font-weight: bold;
}

.info h4 {
    font-size: 1.5rem;
}

.info {
    position: relative;
    background-image: url(img/bg-info.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    margin-top: -6rem;
    padding-top: 6rem;   
    padding-bottom: 5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.info::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.info h5 {
    font-size: 2rem;
    font-family: 'Dancing Script';
    font-weight: bold;
}

.couple-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
  }
  
  .couple-name {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
  }
  
  .couple-desc {
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
  }
  
  .couple-block {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .couple-text {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .couple-text h3 {
    font-family: 'Dancing Script';
    font-weight: bold;
    font-size: 1.35rem;
    color: white;
  }

  .couple-text p {
    color: white;
  }

.teks-highlight{
    background-color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.event {
    position: relative;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    overflow: hidden;
}

.event::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.event > * {
    position: relative;
    z-index: 1;
}

.event .video-background-section {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.event .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.event .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.event .content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.event h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.event p {
    font-family: 'Cormorant Garamond', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.event h5 {
    font-family: 'Dancing Script';
}

.event p {
    font-weight: bold;
}

.card-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  }
  
  .custom-event-card .card-body {
    padding: 2rem;
  }
  
  .card-title {
    color: #fff;
    letter-spacing: 1px;
  }
  
  .card-text {
    color: #f1f1f1;
  }
  
  .bi {
    color: #fff;
  }

.story {
    position: relative;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    overflow: hidden;
}

.story::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.story > * {
    position: relative;
    z-index: 1;
}

.story .slideshow-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.story .slideshow-background .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.story .slideshow-background .slide.active{
    opacity: 1;
}

.story h2 {
    font-size: 4rem;
    font-family: 'Dancing Script';
    font-weight: bold;
}

.story p {
    font-size: 1.2rem;
}

.timeline {
    list-style: none;
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    top: 0;
    bottom: 0;
    position: absolute;
    width: 4px;
    background-color: linear-gradient(to bottom, #000000, #fff);
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline li {
    margin-bottom: 3rem;
    position: relative;
}

.timeline li .timeline-image {
    width: 120px;
    height: 120px;
    background-color: #eee;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 5px #fff, 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline li .timeline-panel {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.365);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    text-align: left;
    z-index: 1;
    border-left: 4px solid #575555;
}

.timeline li .timeline-panel.left {
    float: left;
    clear: both;
    margin-right: calc(50% + 60px);
    text-align: right;
    border-left: none;
    border-right: 4px solid #575555;
}

.timeline li .timeline-panel.right {
    float: right;
    clear: both;
    margin-left: calc(50% + 60px);
    text-align: left;
    border-left: 4px solid #575555;
}

.timeline li .timeline-heading h3 {
    font-weight: bold;
    font-family: 'Dancing Script';
    color: #000000;
}

.timeline li .timeline-heading span {
    display: block;
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
  }
  
  .timeline li .timeline-body p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
  }

  @media screen and (max-width: 768px) {
    .timeline li .timeline-panel {
      float: none !important;
      margin: 1rem auto !important;
      text-align: center;
      border-left: 4px solid #575555;
      border-right: none;
    }
  
    .timeline li .timeline-panel.left,
    .timeline li .timeline-panel.right {
      margin: 1rem auto !important;
    }
  
    .timeline li .timeline-image {
      position: relative;
      left: auto;
      transform: none;
      margin: 1rem auto;
    }
  }

.gallery-section {
    background-image: #4b4b4b;
    background-size: cover;
    background-position: center;
    position: relative;
}
  
.gallery-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Efek gelap */
    z-index: 0;
}
  
.gallery-section .container {
    position: relative;
    z-index: 1;
}
  
.gallery-section img {
    margin-bottom: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 8px;
}
  
.gallery-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #ffffff;
}
  
.gallery-section p {
    font-size: 2rem;
    color: #000000;
}
  
#rsvp {
    background-image: url(img/bg-info.jpg);
    padding: 60px 0;
  }

  #rsvp h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
  }

  #rsvp p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #000000;
    font-size: 1.5rem;
  }

  /* Style untuk form RSVP */
  #rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  }

  /* Pesan sukses atau error */
  #response-message .alert {
    max-width: 600px;
    margin: 20px auto;
  }

  /* Container ucapan & doa */
  #messages-container {
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  }

  #messages-container h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-align: center;
    color: #000000;
  }

  .message {
    border-left: 4px solid #737373;
    background: #f9f6f2;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease;
  }

  .message:hover {
    transform: scale(1.01);
    background: #fffdfb;
  }

  .message h5 {
    font-weight: bold;
    margin-bottom: 10px;
  }

  .message p {
    font-size: 1rem;
    color: #5f5f5f;
    margin-bottom: 0;
  }

  .badge {
    font-size: 0.8rem;
    vertical-align: middle;
  }

  @media (max-width: 576px) {
    #rsvp-form,
    #messages-container {
      padding: 20px;
    }
  }

.gifts {
    background: #9f9f9f; /* abu terang, netral */
    padding: 50px 20px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    color: #212529; /* warna teks gelap */
}

.gifts .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.gifts .container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.gifts .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.5);
    z-index: 1;
}
.gifts h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff; /* judul lebih tegas */
}
  
.gifts p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #000000; /* paragraf lembut tapi tetap gelap */
}
  
.gifts .card {
    background-color: #e9ecef;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
  }
  
  .gifts .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .gifts .card-title {
    color: #333333;
    font-weight: 600;
  }
  
  .gifts .card-text {
    color: #444444;
    font-size: 1rem;
  }
  
  /* Tombol salin */
  .gifts .btn-outline-primary,
  .gifts .btn-outline-secondary {
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 6px 20px;
    transition: 0.3s ease;
  }
  
  .gifts .btn-outline-primary {
    border-color: #6c757d;
    color: #444;
  }
  
  .gifts .btn-outline-primary:hover {
    background-color: #6c757d;
    color: #fff;
  }
  
  .gifts .btn-outline-secondary {
    border-color: #adb5bd;
    color: #495057;
  }
  
  .gifts .btn-outline-secondary:hover {
    background-color: #adb5bd;
    color: #fff;
  }
  
  /* Alamat hadiah fisik */
  .gifts .border {
    background-color: #ffffffa4;
    border: 1px solid #ced4da;
    color: #a8a8a8;
  }
  
  /* Catatan akhir */
  .gifts .fst-italic {
    font-size: 1.2rem;
    color: #ffffff;
  }
  
  .closing-with-bg {
    position: relative;
    background-image: url('img/bg-sld-2.jpg'); /* Ganti dengan path gambar kamu */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
  }
  
  .closing-with-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Layer gelap agar teks lebih terbaca */
    z-index: 1;
  }
  
  .closing-with-bg .content {
    z-index: 2;
    text-align: center;
    max-width: 800px;
  }
  
  .closing-with-bg h2 {
    font-size: 2.5rem;
    color: #ffffff;
  }
  
  .closing-with-bg p {
    font-size: 1.1rem;
    color: #f1f1f1;
  }
  
  .closing-with-bg h4 {
    font-family: 'Dancing Script';
    color: #ffffff;
    font-size: 2.3rem;
  }

.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*/
/*laptop*/
@media (max-width: 992px){  
    html, body {
        font-size: 75%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .simply-countdown > .simply-section {
        padding: 20px;
        margin: 8px;
        width: 90px;
        height: 90px;
        background-color: #fff;
        border-radius: 10px;
        text-align: center;
    }
}

/*tablet*/
@media (max-width: 768px){
    html, body {
        font-size: 65%;
        overflow-x: hidden;
    }

    .simply-countdown > .simply-section {
        width: 70px;
        height: 70px;
        padding: 15px;
    }

    .mynavbar .navlink {
        font-size: 2rem;
        text-align: center;
    }

    .sticky-top {
        overflow: hidden;
    }
}

/*mobile phone*/
@media (max-width: 576px){
    html, body {
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        font-size: 60%;
    }

    .simply-countdown > .simply-section {
        width: 60px;
        height: 60px;
        padding: 12px;
        margin: 5px;
    }

    .simply-countdown .simply-amount {
        font-size: 1.1rem;
    }

    .simply-countdown .simply-word {
        font-size: 0.7rem;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .couple .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .couple .col-4,
    .couple .col-8,
    .couple .col-md-6 {
        width: 100% !important;
    }

    .couple img {
        margin-bottom: 1rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mynavbar .navlink {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Small Phones */
@media (max-width: 576px) {
    html {
        font-size: 60%;
    }

    .simply-countdown > .simply-section {
        width: 55px;
        height: 55px;
        padding: 10px;
        margin: 4px;
    }

    .simply-countdown .simply-amount {
        font-size: 1rem;
    }

    .simply-countdown .simply-word {
        font-size: 0.6rem;
    }
}
}
