/* Wedding Website Custom Styles */

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* 64px, equal to nav height */
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #FFF8F0; /* Main cream background */
    color: #5D4037; /* Dark brown text color */
}

/* Font Classes */
.font-dancing {
    font-family: 'Dancing Script', cursive;
}

.font-imperial {
    font-family: 'Imperial Script', cursive, serif;
}

/* Color Theme */
.bg-cream-dark {
    background-color: #F8EFE4;
}

.bg-cream-light {
    background-color: #FFF8F0;
}

.text-accent {
    color: #A38560; /* Gold-like accent color */
}

.border-accent {
    border-color: #A38560;
}

/* Button Styles */
.btn-accent {
    background-color: #A38560;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.btn-accent:hover:not(:disabled) {
    background-color: #8a6d4d;
    transform: scale(1.05);
}

.btn-accent:disabled {
    background-color: #bfa88c;
    cursor: not-allowed;
}

/* Animation for scroll */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Background image styling */
.hero-bg {
    background-image: url('https://placehold.co/1200x800/EAE0D5/5D4037?text=Ảnh+Cưới+Của+Bạn');
    background-size: cover;
    background-position: center;
    /* On mobile, parallax can be janky. We'll make it scroll normally */
    background-attachment: scroll; 
}

/* Apply parallax effect only on larger screens */
@media (min-width: 1024px) {
    .hero-bg {
        background-attachment: fixed;
    }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    right: 50%;
    transform: translateX(50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner-animate {
    animation: spin 1s linear infinite;
}