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

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b9f8e;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #faf8f5;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 90%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 165, 116, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.loading-tip {
    margin-top: 15px;
    opacity: 0.7;
}

.loading-tip small {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Music Control Button */
.music-control {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.music-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.music-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.music-icon.hidden {
    display: none;
}

.music-control.playing .play-icon {
    display: none;
}

.music-control.playing .pause-icon {
    display: block;
}

.music-text {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Pulse animation when music is playing */
.music-control.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 165, 116, 0.6);
    }
}

/* Video Container (Fixed Position) */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#wedding-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Swipe Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 50;
    animation: fadeInOut 2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-hint.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swipe-icon {
    width: 80px;
    height: 50px;
    margin: 0 auto 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-arrow-left {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    animation: swipeLeft 1.5s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@keyframes swipeLeft {
    0%, 100% { 
        transform: translateX(0); 
        opacity: 1; 
    }
    50% { 
        transform: translateX(-15px); 
        opacity: 0.5; 
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.scroll-hint p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Progress Dots */
.progress-dots {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.6);
    transform: scale(1.3);
}

.progress-dots .dot.completed {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Video Scroll Spacer - Creates infinite scroll in video zone */
#video-scroll-spacer {
    position: relative;
    height: 500vh; /* Large scroll space for video navigation */
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Additional Content Section - Hidden until video ends */
.additional-content {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    min-height: 100vh;
    padding: 100px 20px;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.additional-content.visible {
    display: block;
    opacity: 1;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Share Section */
.share-section {
    text-align: center;
    margin-bottom: 60px;
}

.share-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

footer p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.footer-note {
    font-size: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .additional-content {
        padding: 60px 15px;
    }

    .scroll-hint {
        bottom: 30px;
    }

    .scroll-hint p {
        font-size: 0.8rem;
    }

    .swipe-arrow-left {
        font-size: 2.5rem;
    }

    /* Progress dots mobile adjustments */
    .progress-dots {
        right: 15px;
        gap: 12px;
    }

    .progress-dots .dot {
        width: 10px;
        height: 10px;
    }

    /* Music button mobile adjustments */
    .music-control {
        top: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .music-icon {
        width: 18px;
        height: 18px;
    }

    .music-text {
        font-size: 0.75rem;
    }
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .video-container,
    #scroll-spacer,
    .scroll-hint,
    .share-section {
        display: none;
    }
}

