
:root {
    --primary: #98b3b7;
    --secondary: #4c7479;
    --light: #faf0e0;
    --dark: #3a6267;
    --dark2: #fbf2df;
}

* {
    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(245 241 237);
}

/* Preloader */
.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 Navigation */
.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 Structure */
.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;
}

/* Animations */
.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); }
}

@keyframes fadeUpCard {
    from { opacity: 0; transform: translateX(-50%) translateY(30px); }
    to { opacity: 1; transform: translateX(-50%) 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); }
}

.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

/* Landing Page */
.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;
}

.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;
}

.landing-card-top {
    margin-bottom: 20px;
}

.landing-card {
    width: 83%;
    border-radius: 3px;
    padding: 16px;
    margin-top: 23px;
    color: var(--dark);
    margin-bottom: 32vh;
}
        
.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 */
.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;
}

/* Hero Section */
.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;
}

.hero-card {
    position: absolute;
    left: 50%;
    bottom: -18%;
    transform: translateX(-50%) translateY(30px);
    width: 100%;
    height: 100%;
    padding: 28px 20px;
    text-align: center;
    background: url('images/hero/03.png') center/100% 100% no-repeat;
    opacity: 0;
    animation: fadeUpCard 1s ease-out forwards;
    animation-delay: 0.3s;
}

.h-content {
    margin-top: -30%;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Couple Section */
.couple-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    text-align: center;
}

/* Events Section */
.events-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 20px 30px;
    text-align: center;
}

.events-figure {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.events-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 22px;
    text-align: left;
    gap: 14px;
}

.events-quotes {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    text-align: center;
}

/* Story Section */
.story-figure {
    position: relative;
    width: 100%;
}

.story-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18px;
    pointer-events: none;
    gap: 6px;
    transform: translateY(-15px);
}

/* RSVP Section */
.rsvp-counter {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.counter-item {
    flex: 1;
    border: 1px solid var(--dark);
    border-radius: 8px;
    padding: 10px;
}

.counter-number {
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
}

.counter-label {
    font-size: 11px;
    color: #999;
}

/* Gift Section */
.gift-card {
    border-radius: 14px;
    padding: 22px 18px;
    margin-bottom: 18px;
    box-shadow: 4px 6px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.55);
}

.gift-divider {
    width: 80%;
    height: 1px;
    background: rgba(0,0,0,.25);
    margin: 12px auto 14px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.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 & Music Control */
.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);
}

/* 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;
}

/* Text Styles */
.belleza-text {
    font-family: 'Belleza', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    text-align: center;
    letter-spacing: 1px;
}

.dancing-title {
    font-family: 'Dancing Script', cursive;
    color: var(--dark);
    margin-bottom: 4px;
    text-align: center;
    font-size: 34px;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.dancing-script {
    font-family: 'Dancing Script', cursive;
}

.playfair-title {
    font-family: 'Playfair Display', serif;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--dark);
    font-size: 12px;
    margin-bottom: 10px;
}

.copy-btn {
    padding: 6px 16px;
    font-family: 'Dancing Script', cursive;
    font-size: 10px;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    cursor: pointer;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-family: 'Dancing Script', cursive;
    font-size: 10px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    border-radius: 14px;
    letter-spacing: .6px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
}

/* Comments */
.comment-item {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.comment-name {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.comment-status {
    font-size: 10px;
    color: #999;
}

.comment-message {
    font-size: 11px;
    color: #555;
    margin-top: 4px;
}

/* No Comment Placeholder */
.no-comment {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 20px 10px;
    font-family: 'Belleza', sans-serif;
}

/* Responsive Design */
@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;
    }
}

@media (max-width: 850px) {
    .landing-card {
        margin-bottom: 25vh;
        margin-top: 23px;
    }
}

@media (max-width: 480px) {
    .landing-card {
        margin-bottom: 43vh;
        margin-top: 82px;
    }
    
    .hero-card {
        margin-bottom: 43%;
    }
    
    .h-content {
        margin-top: 45%;
    }
    
    .countdown-item span {
        font-size: 24px;
    }
}

@media (max-width: 450px) {
    .landing-card {
        margin-bottom: 42vh;
        margin-top: 65px;
    }
    
    .hero-card {
        margin-bottom: 62%;
    }
    
    .h-content {
        margin-top: 60%;
    }
}

@media (max-width: 420px) {
    .section {
        padding: 40px 20px;
    }
    
    .h-content {
        margin-top: 41%;
    }
    
    .main-content {
        padding-bottom: 60px;
    }
    
    .bottom-navbar {
        padding: 10px 0;
    }
    
    .music-control {
        bottom: 70px;
    }
    
    .watermark {
        bottom: 70px;
    }
    
    .landing-card {
            margin-bottom: 40vh;
            margin-top: 44px;
    }
    
    .hero-card {
        margin-bottom: 52%;
    }
}

@media (min-width: 1800px) {
}

@media (min-width: 1600px) {
}

@media (max-width: 1536px) {
}

@media (max-width: 1440px) {
}

@media (max-width: 1400px) {
}

@media (max-width: 1366px) {
}

@media (max-width: 1280px) {
}

@media (max-width: 1200px) {
}

@media (max-width: 1152px) {
}

@media (max-width: 1100px) {
}

@media (max-width: 1024px) {
}

@media (max-width: 992px) {
}

@media (max-width: 960px) {
}

@media (max-width: 900px) {
}

@media (max-width: 840px) {
}

@media (max-width: 820px) {
}

@media (max-width: 800px) {
}

@media (max-width: 768px) {
}

@media (max-width: 720px) {
}

@media (max-width: 700px) {
}

@media (max-width: 680px) {
}

@media (max-width: 640px) {
}

@media (max-width: 600px) {
}

@media (max-width: 576px) {
}

@media (max-width: 540px) {
}

@media (max-width: 520px) {
}

@media (max-width: 480px) {
}

@media (max-width: 460px) {
}

@media (max-width: 430px) {
}

@media (max-width: 414px) {
}

@media (max-width: 390px) {
}

@media (max-width: 375px) {
}

@media (max-width: 360px) {
}

@media (max-width: 340px) {
}

@media (max-width: 320px) {
}


/* SweetAlert2 Customization */
.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;
}
