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

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b7355;
    --accent-color: #f7f1e8;
    --text-dark: #2c2c2c;
    --text-light: #6b7280;
    --white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-light: rgba(0, 0, 0, 0.1);
    
    --font-serif: 'Federo', cursive;
    --font-sans: 'Raleway', sans-serif;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bride-name,
.groom-name {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.heart {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    animation: pulse 2s ease-in-out infinite, fadeInUp 1s ease-out 0.2s both;
}

.heart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.heart-fingerprints {
    width: clamp(8rem, 15vw, 10rem);
    height: clamp(8rem, 15vw, 10rem);
    animation: heartPulseRotate 20s ease-in-out infinite;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)) 
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 45px rgba(212, 165, 116, 0.3))
            drop-shadow(0 0 60px rgba(212, 165, 116, 0.2));
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite, fadeInUp 1s ease-out 0.8s both;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.scroll-indicator:hover .scroll-arrow {
    transform: translateY(5px);
    color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: 300px;
}

.photo-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
}

.photo-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.photo-large {
    grid-row: span 2;
}

.photo-wide {
    grid-column: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.photo-caption {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

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

.photo-item:hover img {
    transform: scale(1.05);
}

/* Quote Section */
.quote {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.love-quote {
    max-width: 800px;
    margin: 0 auto;
}

.love-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.love-quote cite {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: normal;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-heart {
    color: var(--primary-color);
    margin-left: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-attribution {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-weight: 300;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes heartPulseRotate {
    0%, 100% {
        transform: rotate(-3.5deg) scale(1);
    }
    10% {
        transform: rotate(-2deg) scale(1.1);
    }
    20% {
        transform: rotate(-1deg) scale(1);
    }
    30% {
        transform: rotate(0deg) scale(1.1);
    }
    40% {
        transform: rotate(1deg) scale(1);
    }
    50% {
        transform: rotate(3.5deg) scale(1.1);
    }
    60% {
        transform: rotate(2deg) scale(1);
    }
    70% {
        transform: rotate(1deg) scale(1.1);
    }
    80% {
        transform: rotate(0deg) scale(1);
    }
    90% {
        transform: rotate(-2deg) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-large,
    .photo-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .hero-names {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .gallery,
    .quote {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .gallery,
    .quote {
        padding: 60px 0;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .heart,
    .footer-heart {
        animation: none;
    }
}

/* Focus styles for accessibility */
.scroll-indicator:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .photo-overlay {
        display: none;
    }
    
    .gallery,
    .quote {
        padding: 40px 0;
    }
} 