@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    background-color: #fdfbf7;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Cover lock */
body.locked {
    overflow: hidden;
}

.cover-overlay {
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease-in-out;
}

.cover-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Abstract Ornament Pattern (Subtle Makassar motif abstraction) */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0zM30 10L10 30L30 50L50 30L30 10z' fill='%23C5A059' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Floating Nav Visibility */
#floating-nav.nav-visible {
    transform: translate(-50%, 0);
}

.nav-link.active {
    color: #C5A059 !important; /* Gold */
}

.nav-link.active i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Animation keyframes */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    position: relative;
    overflow: hidden;
}

.animate-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Preloader smooth hide */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Universal text selection disable for "Invite" feel */
body.locked, .cover-overlay {
    user-select: none;
    -webkit-user-select: none;
}

/* Custom fade-in for RSVP lists */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline Custom Styles */
#story {
    background-image: radial-gradient(circle at 0% 0%, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 100% 100%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 24px;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid #C5A059;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Adjust AOS for horizontal layout on desktop */
@media (min-width: 768px) {
    [data-aos="fade-right"] {
        transform: translateX(-50px);
    }
    [data-aos="fade-left"] {
        transform: translateX(50px);
    }
}

/* Gallery Hover */
.gallery-img {
    transition: transform 0.5s ease;
}
.gallery-img:hover {
    transform: scale(1.05);
}

/* Floating Music Button */
#music-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}
