/* Custom styles for the invitation */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Custom title font */
.title-font {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Floating abstract shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 10%;
    left: -10%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    top: 50%;
    right: -15%;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #67e8f9, #06b6d4);
    bottom: 10%;
    left: 50%;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero photo animation */
.hero-photo-container {
    animation: photoZoom 1.2s ease-out 0.3s backwards;
}

@keyframes photoZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Countdown styling */
.countdown-item {
    min-width: 60px;
}

@media (min-width: 768px) {
    .countdown-item {
        min-width: 70px;
    }
}

/* Detail items subtle animation */
.detail-item {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.detail-item:nth-child(1) {
    animation-delay: 0.2s;
}

.detail-item:nth-child(2) {
    animation-delay: 0.4s;
}

.detail-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Photo card floating effect */
.photo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-8px);
}

.photo-card:nth-child(1) {
    animation: floatPhoto 6s ease-in-out infinite;
}

.photo-card:nth-child(2) {
    animation: floatPhoto 6s ease-in-out infinite 1.5s;
}

.photo-card:nth-child(3) {
    animation: floatPhoto 6s ease-in-out infinite 3s;
}

.photo-card:nth-child(4) {
    animation: floatPhoto 6s ease-in-out infinite 4.5s;
}

@keyframes floatPhoto {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape {
        filter: blur(30px);
    }
    
    .shape-1, .shape-2, .shape-3 {
        animation-duration: 15s;
    }
}

/* Smooth scrolling for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}
