:root {
    --currant:#8C0004;
    --scarlet: #C8000A;
    --white: #fff;
    --marigold: #E8A735;
    --cobblestone: #E2C499;
    --black: #000;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body.transition {
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ================= Opening Section ================= */
.opening-container {
    background-color: var(--cobblestone);
    height: 100%;
    width: 100%;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 70px;
    z-index: 3;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.names-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 40vh;
    position: relative;
    z-index: 2;
}

.invitation-text {
    font-size: 40px !important;
    color: var(--black);
    font-family: 'Cormorant Garamond', serif;
    padding-top: 30px;
    margin-bottom: 10px;
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.heading-open {
    font-size: 45px !important;
    padding-top: 30px;
    color: var(--black);
    font-family: 'Italianno', cursive;
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    margin: 0 15px;
}

.name-amp {
    margin: 0 5px !important;
}

.opening-image-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: 90%;
    max-height: 70%;
    transition: transform 0.5s ease-in-out, opacity 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

#opening-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    z-index: 0;
}

#pengantin-image {
    position: absolute;
    width: auto;
    height: 60%;
    z-index: 1;
    bottom: 0;
    transform: translateY(0);
}

.gunungan-wayang {
    position: fixed;
    top: 20rem;
    width: 40%;
    height: auto;
    z-index: 4;
    opacity: 0.5;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transform-origin: top center;
}

#gunungan-kiri {
    left: 0;
    animation-name: floatTopLeft;
    transform: rotate(-3deg);
}

#gunungan-kanan {
    right: 0;
    animation-name: floatTopRight;
    transform: rotate(3deg);
}

@keyframes floatTopLeft {
    0% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(-3deg); }
}

@keyframes floatTopRight {
    0% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(3deg); }
}

.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    list-style-type: none;
    display: flex;
    background-color: var(--currant);
    height: 80px;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.nav li {
    flex: 1;
}

.nav li a {
    text-decoration: none;
    color: lightgrey;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    z-index: 1;
    position: relative;
    line-height: inherit;
}

.nav li a:hover {
    color: var(--white);
}

.nav li a.nav-item-music {
    transform: translateY(-20%);
    font-size: 30px;
    top: -25px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav .nav-music {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--scarlet);
    position: absolute;
    top: -35%;
    left: 50%;
    transform: translateX(-50%);
}

.nav li a.rotate {
    animation: rotateAnimation 5s linear infinite;
}

@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#hero-section h1,
#hero-section h4,
#hero-section a {
    font-family: 'Cormorant Garamond', serif;
}

#hero-section h1 {
    font-size: 45px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero-section h4 {
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#hero-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    background: url(IMG/rose\ petals.gif);
    z-index: 1;
}

#hero-section {
    width: 100%;
    height: 100vh;
    background: url("IMG/BG-open-en.png") center center no-repeat;
    background-size: cover;
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-x: hidden;
}

#hero-section .container {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero-section .btn-get-started {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    display: block;
    width: 80%;
    padding: 15px 30px;
    transition: background-color 0.3s ease;
    color: var(--black);
    background: var(--cobblestone);
    margin-top: 30px;
    border-radius: 25px;
    text-align: center;
}

#hero-section .btn-get-started:hover {
    background: var(--currant);
    color: var(--white);
}

#hero-section .btn-get-started:active {
    background: var(--scarlet);
}

.spark {
    display: none;
}

#countdown-wedding {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#countdown-wedding .col-auto {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#countdown-wedding .text-center.p-2.text-light h5 {
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#countdown-wedding .text-center.p-2.text-light {
    background-color: transparent;
    padding: 0;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#hero-section .my-2 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.pembuka-section {
    padding-top: 75px;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
    font-family: 'Italianno', cursive;
}

.section-title h3 {
    margin: 15px 0 0 0;
    font-size: 32px;
}

.section-title p {
    margin: 15px auto 0 auto;
    font-family: 'Cormorant Garamond', serif;
}

.section-bg {
    background-image: url(IMG/bg-info.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.nama-pengantin {
    font-size: 25px;
    font-family: 'Italianno', cursive;
}

.simbol-ampersand {
    font-family: 'Italianno', cursive;
}

.nama-pendamping {
    font-size: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
}

#content-section {
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cobblestone);
}

::-webkit-scrollbar-thumb {
    background: var(--scarlet);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}

.card-acara {
    width: calc(50% - 10px);
    font-family: 'Cormorant Garamond', serif;
}
@media (max-width: 992px) {
    .card-acara {
        width: calc(100% - 10px);
    }
}

#acara-title {
    font-size: 48px;
}

.acara-section {
margin-bottom: 0 !important;
background-color: rgb(44, 3, 3);
background-image: linear-gradient(to bottom right, #510b0b, #5e0000);
}

.btn-white {
    font-family: 'Cormorant Garamond';
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    transition: 0.5s;
    color: var(--white);
    background: var(--marigold);
}

.btn-white:hover {
    background: var(--currant);
    color: var(--marigold);
}

.border-white {
    border-radius: 15px;
    border: 2px solid var(--marigold);
}

.gift-section {
  background-image: url(IMG/bg-info.jpeg);
  background-size: cover;
}

.credit-card,
.address-card {
    background-color: var(--cobblestone);
    background-size: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px;
    width: 300px;
    color: var(--black);
    position: relative;
    margin: auto;
    max-width: 100%;
}

.card-logo {
    width: 75px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.card-container {
    display: flex;
    align-items: center;
    margin-top: 50px;
}

.card-chip {
    width: 30px;
    margin-right: 10px;
}

.card-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}

.card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    text-align: left;
    margin-top: 10px;
}

.address-card h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--black);
}

.address-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 5px;
    color: var(--black);
}

.copy-button {
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    top: auto;
    left: auto;
    background-color: var(--marigold);
    color: var(--currant);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px; 
}

.rsvp-section {
  padding-top: 75px;
  padding-bottom: 75px;
  background-color: rgb(44, 3, 3);
  background-image: linear-gradient(to bottom right, #510b0b, #5e0000);
  color: #fff;
}

.rsvp-form-card {
  background-color: var(--white);
  color: var(--black);
}

.rsvp-form-card label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.rsvp-form-card .form-control,
.rsvp-form-card .form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Cormorant Garamond', serif;
    padding: 10px 15px;
}

.rsvp-form-card .form-control:focus,
.rsvp-form-card .form-select:focus {
    border-color: var(--marigold);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.btn-send-rsvp {
  background-color: var(--marigold);
  color: var(--currant);
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  border: none;
  padding: 10px 30px;
  transition: background-color 0.3s ease;
}

.btn-send-rsvp:hover {
  background-color: darken(var(--marigold), 10%);
  color: var(--currant);
}


.ucapan-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ucapan-item strong {
    font-size: 1.1em;
    font-family: 'Cormorant Garamond', serif;
}

.ucapan-item p {
    margin-top: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #f0f0f0;
}

.penutup-section {
  background-color: rgb(44, 3, 3);
  background-image: linear-gradient(to bottom right, #5e0000, #510b0b);
  color: #fff;
}

.penutup-section .section-title h2 {
    font-size: 2.5rem;
}

.penutup-section .final-names .display-4 {
    font-size: 4rem;
    font-family: 'Italianno', cursive;
}

.penutup-section .final-names p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.penutup-section .social-share h4 {
    font-family: 'Cormorant Garamond', serif;
}

.btn-social-share {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.btn-social-share:hover {
    background-color: var(--marigold);
    color: var(--currant);
    border-color: var(--marigold);
    transform: translateY(-3px);
}

.btn-social-share.facebook:hover {
    background-color: #3b5998;
    color: #fff;
    border-color: #3b5998;
}
.btn-social-share.twitter:hover {
    background-color: #00acee;
    color: #fff;
    border-color: #00acee;
}
.btn-social-share.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
}

.main-footer {
    background-color: #1a0202;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9em;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 0;
}

.main-footer p {
    margin-bottom: 5rem;
    color: rgba(255, 255, 255, 0.7);
}

.designer-credit a {
    color: var(--marigold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.designer-credit a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.portfolio-link {
    font-size: 0.85em;
    margin-top: 2px; 
    display: inline-block;
    margin-bottom: 1rem;
}

/* ================= Media Queries for Mobile ================= */
@media (max-width: 576px) {
    .invitation-text {
        font-size: 20px;
        margin-bottom:5px;
        text-align: center;
    }

    .heading-open {
        font-size: 32px;
        margin: 0 8px;
        text-align: center;
    }

    .names-container {
        margin-top: 30vh;
        padding: 0 10px;
    }

    .opening-image-container {
        max-height: 50%;
    }

    #pengantin-image {
        height: 50%;
    }

    #gunungan-kiri {
        width: 50%;
        top: 15rem;
        transform: rotate(-3deg);
    }

    #gunungan-kanan {
        width: 50%;
        top: 15rem;
        transform: rotate(3deg);
    }

    .nav li a {
        line-height: 1;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav li a.nav-item-music {
        transform: translateY(-15%);
    }
}

@media (max-width: 480px) {
    .invitation-text {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .heading-open {
        font-size: 28px;
        margin: 0 5px;
    }

    .names-container {
        margin-bottom: 10px;
        margin-top: 3vh;
    }

    .opening-image-container {
        max-width: 100%;
        max-height: 60%;
    }

    #pengantin-image {
        height: 70%;
    }

    .gunungan-wayang {
        top: 0;
        width: 45vw;
        height: auto;
        opacity: 0.3;
    }

    #gunungan-kiri {
        left: -12vw;
    }

    #gunungan-kanan {
        right: -12vw;
    }

    .nav li a {
        line-height: 1;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 18px;
    }

    .nav li a.nav-item-music {
        transform: translateY(-10%);
        font-size: 26px;
    }
}