/* Root Variables */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #f5f5f0;
    --color-gold: #d4af37;
    --color-text: #2d2d2d;
    --color-cream: #f9f7f4;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Background Colors */
.bg-cream {
    background-color: var(--color-cream);
}

.bg-gold {
    background-color: var(--color-gold);
}

.text-gold {
    color: var(--color-gold);
}

.border-gold {
    border-color: var(--color-gold);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1.5s ease-out forwards;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cover Transition */
#cover.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes progressLine {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.animate-progress-line {
    animation: progressLine 4s linear forwards;
}

#mainContent.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Gallery Modal */
#galleryModal.flex {
    display: flex !important;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Button Hover Effects */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Image Hover Effect */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Music Player Animation */
#musicToggle {
    transition: all 0.3s ease;
}

#musicToggle:hover {
    transform: scale(1.1);
}

/* Modal Transitions */
#galleryModal {
    transition: opacity 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

/* Loading Animation for Images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gold Divider */
.divider-gold {
    height: 1px;
    width: 80px;
    background-color: var(--color-gold);
    margin: 0 auto;
}

/* Section Spacing */
section {
    scroll-margin-top: 2rem;
}

/* Prevent FOUC (Flash of Unstyled Content) */
body {
    opacity: 1;
}

/* Cover should always be visible initially */
#cover {
    opacity: 1 !important;
}

#cover .animate-fade-in {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Ensure Slideshow Images cover both sections correctly */
.slideshow-image {
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

/* Hero Blur Effect - Grayscale & Blur */
.hero-blur {
    filter: grayscale(60%) blur(2px);
    -webkit-filter: grayscale(60%) blur(2px);
}

/* Border Gold Color for Tailwind */
.border-gold {
    border-color: var(--color-gold);
}

.border-gold\/30 {
    border-color: rgba(212, 175, 55, 0.3);
}

.border-gold\/50 {
    border-color: rgba(212, 175, 55, 0.5);
}

/* Hover Gold */
.hover\:bg-gold:hover {
    background-color: var(--color-gold);
}

.hover\:border-gold:hover {
    border-color: var(--color-gold);
}

/* Staggered Animation for Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth fade for wishes */
#wishesDisplay::-webkit-scrollbar {
    width: 4px;
}

#wishesDisplay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#wishesDisplay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Print Styles */
@media print {

    #musicToggle,
    #galleryModal {
        display: none !important;
    }
}