:root {
    --cream: #6b5f55;
    --countdown: #aa9685;
    --bg: #aa9685;
    --shadow: 0 2px 2px rgb(0 0 0 / 0.5)
}

html {
    max-width: 100%;
}

body {
    overflow-x: hidden;

    font-size: 1.2rem;
    font-family: "Work Sans", sans-serif;
    min-height: 4000px;

    /* MEMAKSA TAMPILAN MOBILE */
    max-width: 576px; 
    margin: 0 auto;
    background-color: var(--bg);
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 574px;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/prewed.jpg);
    background-size: cover;         /* Menyesuaikan ukuran gambar agar menutupi seluruh area */
    background-position: center;    /* Memusatkan gambar */
    background-repeat: no-repeat;   /* Mencegah pengulangan gambar */
    z-index: -1;
}

.hero { 
    position: relative;
    min-height: 100vh; 
    
}

.hero h1, .hero h4, .hero p {
    text-shadow: var(--shadow);
}

.hero h1 {
    color: var(--cream);
    font-family: "Sacramento", cursive;
    font-size: 6rem;
}

.hero h4 {
    font-size: 1.6rem;
}

.hero p.p2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.4rem;
}

.hero a {
    color: var(--cream);
    background-color: white;
    box-shadow: var(--shadow);
}

.hero a:hover {
    color: white;
    background-color: var(--cream);
}

.mynavbar {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);

    /* Penyesuaian agar tetap di tengah kotak mobile */
    max-width: 576px;
    margin: 0 auto;
    width: 100%;
}

.mynavbar .offcanvas {
    height: 100vh;
}

.mynavbar .navbar-brand, .mynavbar .offcanvas-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    font-weight: bold;
}

.mynavbar .nav-link {
    text-transform: uppercase;

    text-align: center;
}

.home { 
    background-image: url(img/bg-1.png);
    min-height: 100vh;
    margin-top: -6rem;
    padding-top: 8rem;
    background-size: cover;         /* Menyesuaikan ukuran gambar agar menutupi seluruh area */
    background-position: bottom center;    /* Memusatkan gambar */
    background-repeat: no-repeat;   /* Mencegah pengulangan gambar */
}

.home h2, 
.info h2,
.story h2,
.rsvp h2,
.gifts h2
{
    color: var(--cream);
    font-family: 'Sacramento';
    font-size: 3rem;
    font-weight: bold;
}

.gallery h2,
.gifts h2 
{
    color: #ffffff;
    text-shadow: var(--shadow);
    font-family: 'Sacramento';
    font-size: 3rem;
    font-weight: bold;
}

.gallery .col img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery .col img:hover {
    box-shadow: 0 8px 23px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.home h3 {
    color: #444;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.home h3,
.info h3 {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.home p ,
.info p {
    font-size: 0.8rem;
    color: #666;
}

.home .couple {
    margin-top: 40px;
}

.home .couple h3 {
    font-family: 'Sacramento';
    font-size: 2.4rem;
    color: var(--cream);
}

.home .couple img {
    width: 100%;

}

.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;
    left: 50%;
    transform: translateX(-50%) translateY(65px);

}

.home .heart i {
    margin: auto;
    color: var(--cream);
}

.info {
    position: relative;
    background-image: url(img/bg-1.png);
    

    background-color: var(--bg);
    color: rgb(107, 19, 19);
    padding-top: 10rem;
    padding-bottom: 8rem;
}

.ranting {
    position        : absolute;
    width           : 230px;      /* sesuaikan ukuran gambar */
    pointer-events  : none;       /* tidak menghalangi klik tombol/link */
    top             : -560px;       /* 20px dari atas parent */
    right           : 80%;        /* 10% dari kanan parent */
    rotate          : 90deg;
    /* Animasi goyang */
    transform-origin: bottom center;
    animation       : goyang-ranting 9s ease-in-out infinite;
}

@keyframes goyang-ranting {
    /* translateX(-50%) wajib ada di tiap frame! */
    /* karena left:50% dan transform dipakai bersamaan */
    0%,  100% { transform: translateX(-50%) rotate(0deg);  }
    25%        { transform: translateX(-50%) rotate(4deg);  }
    75%        { transform: translateX(-50%) rotate(-4deg); }
}

@keyframes goyang-ranting {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(3deg); 
    }
    75% { 
        transform: rotate(-3deg); 
    }
}

.info .alamat {
    font-size: 1.1rem;
}

.info .description {
    font-size: 1rem;
    font-weight: 300;
}

.info .card {
    background-color: #fdf5e6 !important; /* Warna Cream/OldLace yang lembut */
    color: #5d4037 !important;           /* Teks coklat tua agar kontras dan elegan */
    border: 1px solid #dcd0b9;           /* Border disesuaikan agar tidak terlalu gelap */
    border-radius: 15px;                 /* Membuat sudut lebih estetik */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info .card-header {
    background-color: #f5e6ca !important; 
    border-bottom: 1px solid #dcd0b9;
    font-weight: 600;

}

.info .card-body {
    /* font-size: 1rem; */

    color: #b08968; 
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.info .card-footer {
    background-color: transparent;
    border-top: 1px dashed #dcd0b9;
    color: #8d7b68;
}

.story,
.gallery,
.rsvp,
.gifts
{
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.story span,
.gifts span {
    text-transform: uppercase;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.gallery span,
.gifts span
{
    text-transform: uppercase;
    color: #fdf6ec;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.story p,
.rsvp p
{
    font-size: 0.9rem;
    font-weight: 300;
}

.gallery p,
.gifts p
{
    color: #fdf6ec;
    font-size: 0.9rem;
    font-weight: 300;
}

.timeline {
    list-style: none;
    padding: 1.4rem 0;
    margin-top: 1rem;
    position: relative;
}

.timeline li {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline li .timeline-panel {
    width: 70%; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border: 1px solid #ccc;
    padding: 2rem;
    position: relative;
    border-radius: 8px;
    background-color: #fff;

}

.gallery {
    background-color: var(--bg);
}

.rsvp {
     background-color: var(--bg);
}

.rsvp h2 {
    font-size: 4.5rem;
}

.rsvp p {
    color: white;
}

.rsvp form label {
    color: white;
}

.rsvp button {
    background-color: var(--cream);
    color: white;
    border: 1px solid var(--cream);
}

.rsvp button:hover {
    background-color: white;
    color: var(--cream);
    border: 1px solid white;
}

footer {
    padding: 3rem;
    background-color: var(--cream);
    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: 2rem;
    position: fixed;
    bottom: 2.5rem;
    
    /* Rumus agar ikon tetap di pojok kanan area mobile */
    right: calc(50% - 576px / 2 + 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;
    z-index: 9999;
}

@keyframes rotating {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Media Query */
/* Extra Large */
@media (max-width: 1200px) {
    .home .heart {
        transform: translateX(-50%) translateY(45px);
    }


}

/* laptop */
@media (max-width: 992px ) {
    html {
        font-size: 100%;
    }

    .home .heart {
        display: none;
    }
    
    .mynavbar .nav-link {
        font-size: 1.2rem;
    }
}
/* tablet */
@media (max-width: 768px ) {
    html {
        font-size: 100%;
    }

    .mynavbar .nav-link {
        font-size: 1.2rem;
        text-align: center;
    }

    .sticky-top {
        overflow: hidden;
    }

}
/* mobile */
@media (max-width: 576px ) {
    html {
        font-size: 100%;
    }

    .audio-icon-wrapper {
        right: 2rem;
    }
    
    .offcanvasy-top {
        overflow: hidden;
    } 

    .sticky-top {
        overflow: hidden;
    }

    .ranting {
        width           : 184px;      /* sesuaikan ukuran gambar */
        top             : -410px;       /* 20px dari atas parent */
        right           : 80%;        /* 10% dari kanan parent */
    }

    .hero::before {             
        background-image: url(img/prewed.jpg);
        background-size: 1900px 1080px; 
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }

    .hero h1 {
        font-size: 5rem;
    }

}