:root {
    --coklat: #7B3F00;
    --krem: #F5F5DC;
    --merahbata: #8B0000;
    --kuningkunyit: #EED202;
    --hijaubotol: #006A4E;
    --birutua: #000080;
    --merahcabai: #E32636;
    --hitam: #000000;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    background-color: #fff !important;
    color: #000 !important;
}

* {
    font-family: 'Cormorant Garamond', sans-serif;
    box-sizing: border-box;
}

body.transition {
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Background */
.video-background, .opening-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Text */
.heading-text{
    font-weight: bolder;
    position: relative;
    top: 55px;
    z-index: 1;
}

#heading-section .huruf-sambung {
    font-size: 37px;
}

.huruf-sambung {
    font-family: 'Sacramento', cursive;
}

/* Button */
.btn-get-started {
    position: relative;
    background-color: var(--merahbata);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1.5;
    display: inline-block;
    padding: 20px 15px;
    transition: 0.5s;
    color: var(--kuningkunyit);
}

.btn-get-started:hover {
  background: var(--kuningkunyit);
  color: var(--merahbata);
}

/* Heading Section */
.opening-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.open {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    padding-top: 10vh;
    z-index: 5;
    overflow-y: hidden;
    transition: transform 1s ease-in-out;
    background-repeat: no-repeat;
}

/* Navbar */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    list-style-type: none;
    display: flex;
    background-color: var(--kuningkunyit);
    height: 80px;
    z-index: 4;
}

.nav li {
    flex: 1;
}

.nav li a {
    text-decoration: none;
    color: var(--hijaubotol);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1;
    position: relative;
}

.nav li a:hover {
    color: var(--merahbata);
}

.nav li a.nav-item-music {
    transform: translateY(-20%);
    font-size: 30px;
    top: -30px;
    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(--kuningkunyit);
    position: absolute;
    top: -35px;
    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 */
#hero-section h1 {
    font-size: 64px;
}

#hero-section h4 {
    font-size: 30px;
    font-weight: bolder;
}

#hero-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-section .btn-get-started {
    z-index: 5;
}

#hero-section .container {
    position: relative;
    justify-content: center;
}
.petals {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 55px;
}

#countdown-wedding .rounded {
    background: rgba(255, 255, 255, 0.4);
    padding: 1px;
    border-radius: 50%;
    color: var(--hitam);
    margin: 2px;
}

#countdown-wedding .rounded h5 {
    color: var(--hitam);
    font-weight: bolder;
}

/* Pengantin Section */
.pengantin-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    z-index: 3;
}

#pengantin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 220, 0.5);
    z-index: 1;
}

#pengantin-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

#pengantin-section .container {
    position: relative;
    z-index: 2;
}

.pengantin-img {
    max-width: 300px;
    height: auto;
}

.section-title {
    z-index: 2;
    position: relative;
    font-weight: bold;
}

.section-title h3 {
    margin: 15px 0 0 0;
    font-size: 32px;
    font-weight: bolder;
}

.pengantin-text {
    font-size: 20px;
    font-weight: bolder;
}

.pengantin-text.huruf-sambung {
    font-size: 35px;
    font-weight: bolder;
}

.section-title p {
    margin: 15px auto 0 auto;
}

#content-section {
    overflow-x: hidden;
}

/* Acara Section */
.acara-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    background: rgba(201, 177, 177, 0.8);
    z-index: 3;
}

#acara-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#acara-section .section-title {
    z-index: 2;
    position: relative;
    font-weight: bold;
}

#acara-section .section-title h3 {
    margin: 15px 0 0 0;
    font-size: 32px;
    font-weight: bolder;
}

#acara-section .huruf-sambung {
    font-size: 35px;
    font-weight: bolder;
    text-align: center;
}

#acara-section .section-title p {
    margin: 15px auto 0 auto;
}

#acara-section .card-acara {
    width: calc(50% - 10px);
    background-color: var(--krem);
    border: none;
}

@media (max-width: 992px) {
    #acara-section .card-acara {
        width: calc(100% - 10px);
    }
}

#acara-section .btn-card {
    background: var(--merahbata);
    color: var(--kuningkunyit);
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    transition: 0.5s;
}

#acara-section .btn-card:hover {
    background: var(--kuningkunyit);
    color: var(--merahbata);
}

/* Lokasi Section */
.lokasi-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    background: rgba(201, 177, 177, 0.8);
    z-index: 3;
}

#lokasi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 220, 0.5);
    z-index: 1;
}

#lokasi-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#lokasi-section .container {
    position: relative;
    z-index: 2;
}

#lokasi-section .section-title {
    z-index: 2;
    position: relative;
    font-weight: bold;
}

#lokasi-section .section-title h1 {
    margin: 15px 0 0 0;
    font-size: 32px;
    font-weight: bolder;
    text-align: center;
}

#lokasi-section .btn-card {
    background: var(--merahbata);
    color: var(--kuningkunyit);
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    transition: 0.5s;
    margin: 15px auto 0 auto;
    margin-bottom: 15px;
}

#lokasi-section .btn-card:hover {
    background: var(--kuningkunyit);
    color: var(--merahbata);
}

#lokasi-section iframe {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    border: 2px solid var(--merahbata);
}

/* Galeri Section */
.galeri-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    z-index: 3;
}

#galeri-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#galeri-section .section-title h1 {
    z-index: 2;
    position: relative;
    font-weight: bolder;
    text-align: center;
    margin: 15px 0 30px 0;
    font-size: 50px;
    color: var(--hitam);
}

#galeriCarousel {
    max-width: 600px;
    margin: auto;
    z-index: 2;
    position: relative;
}

#galeriCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    #galeriCarousel {
        max-width: 90%;
    }
}

/* Gift Section */
.gift-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    background: rgba(201, 177, 177, 0.8);
    z-index: 3;
}

#gift-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#gift-section .section-title {
    z-index: 2;
    position: relative;
    font-weight: bold;
}

#gift-section .section-title h1 {
    margin: 15px 0 0 0;
    font-size: 32px;
    font-weight: bolder;
    text-align: center;
}

#gift-section .credit-card {
    background-color: var(--krem);
    background-size: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-width: 300px;
    width: 100%;
    color: var(--hitam);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
}

#gift-section .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: 'Courier New', Courier, monospace;
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.card-name {
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    text-align: left;
    margin-top: 10px;
}

#gift-section .btn {
    background-color: var(--merahbata);
    color: var(--kuningkunyit);
    border: 2px solid var(--merahbata);
    font-weight: bold;
    padding: 10px 20px;
    margin-bottom: 20px;
}
#gift-section .btn:hover,
#gift-section .btn:focus {
    background-color: var(--kuningkunyit);
    color: var(--merahbata);
    border-color: var(--merahbata);
}

#gift-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.copy-button {
    background-color: var(--merahbata);
    color: var(--kuningkunyit);
    border: none;
    position: absolute;
    top: 5px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.alamat-card {
    background-color: var(--krem);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-width: 350px;
    width: 100%;
    color: var(--hitam);
    text-align: center;
    margin: 0 auto;
}

.alamat-card .copy-button {
    position: relative;
    top: auto;
    left: auto;
}

/* RSVP */
.rsvp-section {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
    background: rgba(201, 177, 177, 0.8);
    z-index: 3;
}

#rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 220, 0.5);
    z-index: 1;
}

#rsvp-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#rsvp-section .container {
    position: relative;
    z-index: 2;
}

#rsvp-section .section-title {
    position: relative;
    z-index: 2;
}

#rsvp-section .section-title h1 {
    margin: 15px 0 0 0;
    font-size: 32px;
    font-weight: bolder;
    text-align: center;
}

#rsvp-section .form-control {
    border-radius: 10px;
    border: 2px solid var(--merahbata);
}

#rsvp-section .btn-kirim {
    background-color: var(--merahbata);
    color: var(--kuningkunyit);
    border: 2px solid var(--merahbata);
    font-weight: bold;
    padding: 10px 20px;
}

#rsvp-section .btn-kirim:hover,
#rsvp-section .btn-kirim:focus {
    background-color: var(--kuningkunyit);
    color: var(--merahbata);
    border-color: var(--merahbata);
}

#guestbook-messages .message-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#guestbook-messages .message-card h5 {
    font-weight: bold;
}

#guestbook-messages .message-card p {
    margin-bottom: 5px;
}

/* --- Penutup Section --- */
.penutup-section {
    position: relative;
    background-color: #000;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-closing-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0.6;
}

.penutup-section .photo-top {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 4;
    overflow: hidden;
    margin-bottom: -50px;
}

.penutup-section .photo-top img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.penutup-section .photo-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 4;
}

.penutup-section .container {
    position: relative;
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.penutup-section .section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.penutup-section .final-names h1 {
    font-size: 3rem;
    font-family: 'Sacramento', cursive;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.penutup-section .final-names p {
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
    color: #f8f9fa;
    margin-top: 0.5rem;
}

.penutup-section .social-share h4 {
    font-weight: bold;
    color: #fff;
    font-size: 1.5rem;
}

.btn-social-share {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-social-share:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.btn-social-share.facebook {
    background-color: #1877f2;
}

.btn-social-share.whatsapp {
    background-color: #25d366;
}

/* --- Footer --- */
.main-footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 1rem;
    position: relative;
    margin-bottom: 80px;
    text-align: start;
    z-index: 3;
}

.main-footer .designer-credit {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #adb5bd;
}

.main-footer .designer-link, .main-footer .portfolio-link {
    color: var(--krem);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-footer .designer-link:hover, .main-footer .portfolio-link:hover {
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--merahbata);
}

::-webkit-scrollbar-thumb {
    background: var(--kuningkunyit);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hijaubotol);
}