/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
    --color-beige-bg: #F7F4EB;
    --color-beige-light: #FCFAF5;
    --color-beige-dark: #E4DEC9;
    --color-gold-light: #fbf5b7;
    --color-gold-med: #D4AF37;
    --color-gold-dark: #AA7C11;
    --color-red-wine: #800020;
    --color-red-marsala: #722F37;
    --color-text-dark: #2F2A25;
    --color-text-light: #FFFFFF;
    --font-title: 'Cinzel', serif;
    --font-script: 'Alex Brush', cursive;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Styles */
body {
    background-color: var(--color-beige-bg);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 2px;
}

.script-text {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--color-red-wine);
    line-height: 1.2;
}

/* Custom Gold Gradient */
.gold-gradient-text {
    background: linear-gradient(135deg, #aa7c11, #d4af37, #fbf5b7, #d4af37, #aa7c11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.gold-gradient-bg {
    background: linear-gradient(135deg, #b38728, #fbf5b7, #daae51, #aa771c, #fbf5b7, #aa771c);
}

.btn-gold {
    background: linear-gradient(135deg, #aa771c, #daae51, #fbf5b7, #daae51, #aa771c);
    color: var(--color-text-dark);
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: 30px;
    padding: 12px 35px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: var(--color-red-wine);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

/* Elegant Borders & Ornaments */
.ornament-border {
    position: relative;
    padding: 40px;
    border: 1px solid var(--color-beige-dark);
}

.ornament-border::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    border: 1px solid var(--color-gold-med);
    pointer-events: none;
}

.ornament-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold-dark);
    pointer-events: none;
}

.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Floating Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.music-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--color-beige-light);
    border: 2px solid var(--color-gold-med);
    color: var(--color-red-wine);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-red-wine);
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

.music-btn.playing i {
    animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(47, 42, 37, 0.3) 0%, rgba(128, 0, 32, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    letter-spacing: 5px;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out;
}

.hero-scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-gold-light);
    font-size: 24px;
    animation: bounce 2s infinite;
    text-decoration: none;
}

/* Countdown Section */
.countdown-section {
    background-color: var(--color-beige-light);
    border-top: 1px solid var(--color-beige-dark);
    border-bottom: 1px solid var(--color-beige-dark);
}

.countdown-box {
    background-color: #FFFFFF;
    border: 1px solid var(--color-beige-dark);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(47, 42, 37, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.countdown-value {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-red-wine);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

/* Parents & Padrinos Section */
.family-section {
    position: relative;
    background-color: var(--color-beige-bg);
}

.family-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 35px;
    height: 100%;
    transition: var(--transition-smooth);
}

.family-card:hover {
    transform: scale(1.02);
    border-color: var(--color-gold-med);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(47, 42, 37, 0.05);
}

.family-title {
    font-size: 1.1rem;
    color: var(--color-gold-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--color-beige-dark);
    padding-bottom: 10px;
}

/* Timeline (Program) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-beige-dark);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #FFFFFF;
    border: 3px solid var(--color-gold-med);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #FFFFFF;
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--color-beige-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold-med);
}

.timeline-container:hover::after {
    background-color: var(--color-red-wine);
    border-color: var(--color-gold-light);
    transform: scale(1.3);
}

.timeline-time {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-red-wine);
    margin-bottom: 5px;
    display: inline-block;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 0, 32, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-icon {
    color: var(--color-gold-light);
    font-size: 28px;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Details Section (Dress code & Gift) */
.details-card {
    background-color: #FFFFFF;
    border: 1px solid var(--color-beige-dark);
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 32, 0.05);
    border-color: var(--color-gold-med);
}

.details-icon {
    font-size: 3rem;
    color: var(--color-gold-dark);
    margin-bottom: 20px;
}

.color-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.color-red { background-color: #E60000; }
.color-wine { background-color: #800020; }
.color-cream { background-color: #Fdf6e2; border-color: var(--color-beige-dark); }
.color-gold { background-color: #D4AF37; }
.color-beige { background-color: #D6C29D; }

/* Confirmation Section */
.rsvp-section {
    background-color: var(--color-beige-light);
    border-top: 1px solid var(--color-beige-dark);
    border-bottom: 1px solid var(--color-beige-dark);
}

.rsvp-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 15px 45px rgba(47, 42, 37, 0.05);
    border: 1px solid var(--color-beige-dark);
}

.form-control, .form-select {
    border: 1px solid var(--color-beige-dark);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-gold-med);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Scroll Animation classes (integrated with custom JS fade-in-on-scroll) */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    .script-text {
        font-size: 2.8rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::after {
        left: 23px;
        right: auto;
    }
    
    .left, .right {
        left: 0;
    }
    
    .rsvp-card {
        padding: 30px 20px;
    }
    
    .music-player {
        bottom: 20px;
        right: 20px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}
