/* ===== Visual Enhancements CSS ===== */

/* Smooth scroll for the entire page */
html {
    scroll-behavior: smooth;
}

/* ===== Fade-in Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Apply animations to elements */
.couple-names {
    animation: fadeIn 1s ease-out;
}

.wedding-date {
    animation: fadeIn 1.2s ease-out;
}

.page-title {
    animation: fadeInUp 0.8s ease-out;
}

.page-section,
.info-card,
.dress-code-card,
.event-card,
.accordion-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger animations for multiple cards */
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.15s; }
.accordion-item:nth-child(3) { animation-delay: 0.2s; }
.accordion-item:nth-child(4) { animation-delay: 0.25s; }
.accordion-item:nth-child(5) { animation-delay: 0.3s; }

/* ===== Enhanced Navigation ===== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c44b8c, #3b5998);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: #3b5998;
}

/* ===== Enhanced Countdown ===== */
.countdown-timer {
    background: linear-gradient(135deg, rgba(59, 89, 152, 0.05) 0%, rgba(196, 75, 140, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.countdown-item {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 3rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #3b5998 0%, #c44b8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 0.5rem;
}

/* ===== Enhanced Cards ===== */
.info-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(59, 89, 152, 0.1);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dress-code-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Enhanced Footer ===== */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 89, 152, 0.03) 100%);
    border-top: 1px solid rgba(59, 89, 152, 0.1);
    padding-top: 3rem;
}

.footer-logo-img {
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* ===== Enhanced Typography ===== */
.couple-names {
    letter-spacing: 0.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== Standardized Decorative Underlines for Titles ===== */
.section-title,
.page-title,
.section-subtitle {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-lg, 2rem);
}

/* Page Title - Primary decorative underline */
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #c44b8c 20%, 
        #3b5998 50%, 
        #1a936f 80%, 
        transparent 100%
    );
    border-radius: 2px;
}

/* Section Subtitle - Secondary decorative underline */
.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d4a84b 30%, 
        #e85d3b 70%, 
        transparent 100%
    );
    border-radius: 2px;
}

/* Section Title - Same as page title for consistency */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #c44b8c 25%, 
        #3b5998 75%, 
        transparent 100%
    );
    border-radius: 2px;
}

/* ===== Enhanced Buttons ===== */
.lang-btn {
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    box-shadow: 0 2px 8px rgba(59, 89, 152, 0.3);
}

/* ===== Floating Back to Top Button ===== */
.back-to-top-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b5998 0%, #c44b8c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-floating.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-floating:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.4);
}

.back-to-top-floating svg {
    width: 24px;
    height: 24px;
}

/* ===== Enhanced Gallery ===== */
.gallery-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* ===== Enhanced Form Elements ===== */
.form-input,
.form-select,
.form-textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #3b5998;
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
}

/* ===== Enhanced Accordion ===== */
.accordion-header {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(59, 89, 152, 0.05);
}

.accordion-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Parallax Hero Effect ===== */
.hero-container {
    position: relative;
    overflow: hidden;
}

.hero-image {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ===== Loading Animation ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.loader-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #3b5998;
    letter-spacing: 0.2em;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .countdown-value {
        font-size: 2rem !important;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
    }
    
    .back-to-top-floating {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    /* Responsive decorative underlines */
    .page-title::after {
        width: 60px;
    }
    
    .section-subtitle::after {
        width: 40px;
    }
    
    .section-title::after {
        width: 50px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .back-to-top-floating,
    .language-selector,
    .page-loader {
        display: none !important;
    }
}

/* ===== Mobile Countdown Adjustments ===== */
@media (max-width: 480px) {
    .countdown-timer {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.25rem;
        min-width: auto;
        flex: 1;
    }
    
    .countdown-value {
        font-size: 1.75rem !important;
    }
    
    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }
}
