/* ========================================
   Animation Keyframes
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Scroll Animation Classes
======================================== */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.bounce-in {
    animation: bounceIn 1s ease forwards;
}

.slide-in-top {
    animation: slideInFromTop 0.8s ease forwards;
}

/* ========================================
   Header Animations
======================================== */
.header .bride-groom-names {
    animation: bounceIn 1.5s ease 0.5s both;
}

.header .wedding-date {
    animation: fadeInUp 1s ease 1s both;
}

.header .catchphrase {
    animation: fadeInUp 1s ease 1.3s both;
}

.header .main-photo {
    animation: fadeInRight 1.2s ease 0.8s both;
}

.scroll-indicator {
    animation: fadeInUp 1s ease 2s both;
}

.scroll-arrow {
    animation: float 2s ease-in-out infinite;
}

/* ========================================
   Profile Card Animations
======================================== */
.profile-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.profile-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.profile-card:nth-child(odd) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(even) {
    animation-delay: 0.4s;
}

.profile-photo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
}

/* ========================================
   Timeline Animations
======================================== */
.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-date {
    position: relative;
    overflow: hidden;
}

.timeline-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.timeline-item:hover .timeline-date::before {
    left: 100%;
}

/* ========================================
   Gallery Animations
======================================== */
.gallery-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.gallery-item.animate {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(248, 232, 232, 0.8), rgba(212, 175, 55, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Lightbox Animations
======================================== */
.lightbox {
    transition: opacity 0.3s ease;
}

.lightbox.active {
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    animation: bounceIn 0.5s ease;
}

/* ========================================
   Hover Effects
======================================== */
.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* ========================================
   Section Title Animations
======================================== */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.8s ease 0.3s;
}

.section-title.animate::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   Loading Animations
======================================== */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========================================
   Parallax Effect
======================================== */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* ========================================
   Text Animations
======================================== */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #D4AF37;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #D4AF37; }
}

/* ========================================
   Interactive Elements
======================================== */
.interactive-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-hover:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ========================================
   Particle Effects
======================================== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4s; }
