:root {
    --primary: #bc994f;
    --secondary: #d09532;
    --light: #18443f;
    --dark: #d2bd90;
    --dark2: #123e39;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 14px;
}

.c-bg {
    background: rgb(19 48 49);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(122, 26, 55, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 16px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
    border-top: 1px solid rgba(122, 26, 55, 0.1);
}

.bottom-navbar.active {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 60px;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.nav-item span {
    font-weight: 500;
    font-size: 10px;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-item:hover i, .nav-item.active i {
    color: var(--primary);
    transform: translateY(-2px);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.device {
    width: 360px;
    height: 740px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
    border: 1px solid #e0e0e0;
    position: relative;
}

@media (max-width: 720px) {
    .device {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }
    body {
        background: transparent;
    }
    .page-wrapper {
        padding: 0;
    }
    .bottom-navbar {
        padding: 10px 0;
    }
}

.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-element.animated {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in { 
    animation: zoomIn 1s ease-out; 
}
.fade-up { 
    animation: fadeUp 1s ease-out; 
}
.fade-down { 
    animation: fadeDown 1s ease-out; 
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from { 
        opacity: 0;
        transform: translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

.landing-page {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    text-align: center;
}

/* Gambar background landing page - tetap natural */
.hero-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light);
}

.overlay {
    position: absolute;
    inset: 0;
}

.landing-content {
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-card {
    margin-bottom: 42%;
}

.landing-card {
    width: 83%;
    border-radius: 3px;
    padding: 16px;
    margin-top: 8px;
    color: var(--dark);
    margin-bottom: 21%;
    /*background: rgba(255, 255, 255, 0.9);*/
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 3px;
    border: 0;
    background: var(--primary);
    color: white;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--secondary);
}

.main-content {
    display: none;
    height: 100%;
    overflow-y: auto;
    background: var(--light);
    padding-bottom: 70px;
}

.section {
    padding: 50px 20px;
    text-align: center;
    position: relative;
    scroll-margin-top: 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 16px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
}

p {
    line-height: 1.5;
    margin-bottom: 16px;
    color: #fff;
    font-size: 13px;
}

/* Gambar hero - ukuran natural */
.section-utama {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light);
}

.section-utama img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gift-section {
    max-width: 400px;
    margin: 0 auto;
}

.gift-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.gift-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid rgba(122, 26, 55, 0.2);
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s ease;
    font-size: 13px;
    min-width: 120px;
}

.gift-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(122, 26, 55, 0.2);
}

.gift-content {
    display: none;
}

.gift-content.active {
    display: block;
}

.bank-info {
    background: white;
    border-radius: 3px;
    padding: 24px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin: 20px 0;
    border: 1px solid #f0f0f0;
}

.bank-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.bank-card {
    background: rgba(122, 26, 55, 0.03);
    border-radius: 3px;
    padding: 18px;
    border: 1px solid rgba(122, 26, 55, 0.1);
    text-align: left;
}

.bank-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(122, 26, 55, 0.1);
}

.bank-detail {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.bank-detail:last-child {
    margin-bottom: 0;
}

.bank-label {
    font-weight: 500;
    color: var(--dark);
    font-size: 12px;
    min-width: 80px;
}

.bank-value {
    font-size: 12px;
    color: #555;
    flex: 1;
    word-break: break-all;
}

.footer {
    background: var(--primary2);
    color: white;
    padding: 30px 20px;
    text-align: center;
    /*margin-top: 30px;*/
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.footer-credit {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    margin-top: 20px;
    color: white;
}

.watermark {
    position: fixed;
    bottom: 80px;
    right: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.3);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.watermark.show {
    opacity: 1;
}

.music-control {
    position: fixed;
    bottom: 80px;
    left: 12px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.music-control.show {
    opacity: 1;
    transform: scale(1);
}

.music-control:hover {
    transform: scale(1.1);
}

.music-control.show:hover {
    transform: scale(1.1);
}

.hero-card {
    position:absolute;
    left:50%;
    bottom:-18%;
    transform:translateX(-50%) translateY(30px);
    width:100%; height:100%;
    /*max-width:320px;*/
    padding:28px 20px;
    text-align:center;
}

.h-content {
    margin-top:25%
}

@media (max-width: 480px) {
    .landing-card {
        margin-bottom: 40%;
        margin-top: 25px;
    }
    .hero-card {
        margin-bottom: 43%;
    }
    
    .h-content {
        margin-top:45%
    }
}

@media (max-width: 450px) {
    .landing-card {
        margin-bottom: 35%;
        margin-top: 25px;
    }
    .hero-card {
        margin-bottom: 62%;
    }
    .h-content {
        margin-top:60%;
    }
}

@media (max-width: 420px) {
    .section {
        padding: 40px 20px;
    }
    .h-content {
        margin-top:50%
    }
    .main-content {
        padding-bottom: 60px;
    }
    .bottom-navbar {
        padding: 10px 0;
    }
    .music-control {
        bottom: 70px;
    }
    .watermark {
        bottom: 70px;
    }
    .landing-card {
        margin-bottom: 36%;
        margin-top: 15px;
    }
    .hero-card {
        margin-bottom: 52%;
    }
}

.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    border-radius: 3px !important;
}

.swal2-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--primary) !important;
    font-size: 20px !important;
}

.swal2-confirm {
    background-color: var(--primary) !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 10px 24px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.swal2-confirm:hover {
    background-color: var(--secondary) !important;
}

/* COUNTDOWN */
.countdown-section {
    padding: 40px 0 10px;
}

.countdown-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.countdown-item {
    min-width: 62px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.countdown-item small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
}

/* Responsive */
@media (max-width: 480px) {
    .countdown-item span {
        font-size: 24px;
    }
}

/* Animasi tambahan */
@keyframes fadeUpCard{from{opacity:0;transform:translateX(-50%) translateY(30px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}
@keyframes slideLeft{from{opacity:0;transform:translateX(-40px);}to{opacity:1;transform:translateX(0);}}
@keyframes slideRight{from{opacity:0;transform:translateX(40px);}to{opacity:1;transform:translateX(0);}}
@keyframes slideDown{from{opacity:0;transform:translateY(-30px);}to{opacity:1;transform:translateY(0);}}
@keyframes slideUp{from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:translateY(0);}}