/* ============================================= */
/* INTERACTIVE & HOVER ANIMATIONS (Keep these) */
/* ============================================= */

/* Pulse animation for interactive elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Glow effect for special elements */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 193, 7, 0.8),
            0 0 30px rgba(255, 193, 7, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
}

/* Border glow animation for carousel */
@keyframes borderGlow {
    0% {
        box-shadow:
            0 10px 30px rgba(255, 193, 7, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 0 0 2px #ffc107;
    }
    50% {
        box-shadow:
            0 15px 40px rgba(255, 193, 7, 0.4),
            0 8px 20px rgba(0, 0, 0, 0.15),
            inset 0 0 0 3px #ffc107;
    }
    100% {
        box-shadow:
            0 10px 30px rgba(255, 193, 7, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 0 0 2px #ffc107;
    }
}

/* Flying Plane Animation */
@keyframes fly-across {
    0% {
        left: -150px;
        top: 60%;
        transform: rotate(-5deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    25% {
        top: 58%;
        transform: rotate(-2deg) scale(0.9);
        opacity: 0;
    }
    60% {
        top: 55%;
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    75% {
        top: 58%;
        transform: rotate(2deg) scale(0.9);
        opacity: 1.0;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        left: calc(100% + 150px);
        top: 60%;
        transform: rotate(5deg) scale(0.8);
        opacity: 0;
    }
}

/* Image loading animation */
@keyframes imageLoad {
    0% {
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* =============================================== */
/* SECTION DIVIDERS                               */
/* =============================================== */

.section-divider {
    position: relative;
    line-height: 0;
    width: 100%;
    overflow: hidden;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 90px;
}

.section-divider .divider-fill {
    fill: #0b0f1d;
}

/* =============================================== */
/* NAVIGATION INTERACTIONS                        */
/* =============================================== */

/* Navigation brand logo hover */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Navigation links */
.nav-link {
    position: relative;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Top navigation links */
.bg-gradient-gold a {
    transition: all 0.3s ease;
}

.bg-gradient-gold a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* =============================================== */
/* BUTTON INTERACTIONS                            */
/* =============================================== */

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: all 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-bwm-gold:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    animation: pulse 2s infinite;
}

.btn-bwm-blue:hover {
    box-shadow: 0 10px 25px rgba(37, 62, 145, 0.4);
}

/* =============================================== */
/* HERO SECTION INTERACTIONS                     */
/* =============================================== */

.hero-section .fas.fa-play-circle {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-section .fas.fa-play-circle:hover {
    transform: scale(1.2);
    animation: glow 2s ease-in-out infinite;
}

/* =============================================== */
/* CAROUSEL INTERACTIONS                         */
/* =============================================== */

#desktopCarousel:hover {
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 12px 35px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.carousel-item .col-md-12>div:hover {
    transform: scale(1.02);
    box-shadow:
        0 15px 40px rgba(255, 193, 7, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 3px #ffc107 !important;
}

.carousel-item.active .col-md-12>div {
    animation: borderGlow 3s ease-in-out infinite;
}

/* =============================================== */
/* IMAGE & CARD INTERACTIONS                     */
/* =============================================== */

/* General image hover */
img {
    transition: all 0.3s ease;
    animation: imageLoad 0.5s ease-out;
}

.card img:hover,
.row img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Card hover effects */
.card {
    transition: all 0.4s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    transition: all 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Conference card hover effects */
.position-relative.rounded-4.overflow-hidden {
    transition: all 0.4s ease;
}

.position-relative.rounded-4.overflow-hidden:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.position-absolute.top-50.start-50.translate-middle img {
    transition: all 0.3s ease;
}

.position-relative:hover .position-absolute.top-50.start-50.translate-middle img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* =============================================== */
/* SPECIAL ANIMATIONS                            */
/* =============================================== */

/* Flying Plane Animation Styles */
.plane-animation-container {
    top: 0;
    left: 0;
    overflow: hidden;
}

.flying-plane {
    position: absolute;
    top: 70%;
    left: -150px;
    animation: fly-across 12s ease-in-out infinite;
    animation-delay: 1s;
}

.plane-image {
    transform: rotate(-5deg);
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* =============================================== */
/* UTILITY CLASSES                               */
/* =============================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *:not(#business-impact-editorial):not(#business-impact-editorial *),
    *:not(#business-impact-editorial):not(#business-impact-editorial *)::before,
    *:not(#business-impact-editorial):not(#business-impact-editorial *)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================== */
/* RESPONSIVE ADJUSTMENTS                        */
/* =============================================== */

@media (max-width: 768px) {
    .flying-plane {
        top: 50%;
    }

    .plane-image {
        width: 500px !important;
    }

    @keyframes fly-across {
        0% {
            top: 50%;
        }
        25% {
            top: 48%;
        }
        50% {
            top: 45%;
        }
        75% {
            top: 48%;
        }
        100% {
            top: 50%;
        }
    }
}