/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

/* Base state for elements with data-aos */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Active state when in viewport */
[data-aos].aos-active {
    opacity: 1;
}

/* Fade Up Animation */
[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-active {
    transform: translateY(0);
}

/* Fade Down Animation */
[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos="fade-down"].aos-active {
    transform: translateY(0);
}

/* Fade Left Animation */
[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-active {
    transform: translateX(0);
}

/* Fade Right Animation */
[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-active {
    transform: translateX(0);
}

/* Zoom In Animation */
[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-active {
    transform: scale(1);
}

/* Fade In (no movement) */
[data-aos="fade-in"] {
    opacity: 0;
}

[data-aos="fade-in"].aos-active {
    opacity: 1;
}

/* ========================================
   HOVER ANIMATIONS FOR INTERACTIVE ELEMENTS
   ======================================== */

/* Button Hover Effects */
.btn-primary,
.btn-maps,
.btn-registry,
.btn-calendar {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0px var(--accent-pink);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 4px 4px 0px var(--accent-pink);
}

/* Card Hover Effects */
.couple-card,
.event-card,
.bank-card,
.checkered-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.couple-card:hover {
    transform: translateY(-5px);
}

/* Gallery Item Hover */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

/* Accordion Animation */
.accordion-item {
    transition: transform 0.2s ease;
}

.accordion-header:hover {
    background: #ffb4be;
}

/* Quote Box Pulse on Hover */
.quote-box {
    transition: transform 0.3s ease;
}

.quote-box:hover {
    transform: scale(1.02);
}

/* Music Button Pulse */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.music-btn:hover {
    animation: pulse 1s infinite;
}

/* Floating Animation for Flowers */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(-10deg);
    }

    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

.left-flower {
    animation: float 3s ease-in-out infinite;
}

.right-flower {
    animation: float 3.5s ease-in-out infinite;
}

/* Wish Card Enter Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-card {
    animation: slideInUp 0.5s ease-out;
}

/* Thank You Frame Hover */
.thankyou-frame {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.thankyou-frame:hover {
    transform: translateY(-10px);
    box-shadow: 12px 12px 0px var(--accent-pink);
}

/* Monogram Animation */
.monogram span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.monogram:hover .char-k {
    transform: rotate(-5deg);
}

.monogram:hover .char-a {
    transform: rotate(5deg);
}

/* Countdown Animation */
@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.time-box {
    animation: countPulse 2s ease-in-out infinite;
}

.time-box:nth-child(1) {
    animation-delay: 0s;
}

.time-box:nth-child(2) {
    animation-delay: 0.2s;
}

.time-box:nth-child(3) {
    animation-delay: 0.4s;
}

.time-box:nth-child(4) {
    animation-delay: 0.6s;
}

/* Page Number Buttons Scale */
.page-btn {
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    transform: scale(1.15);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner i {
    animation: spin 2s linear infinite;
}