/* ========================================
   Custom Animations and Styles
   for Malmö Gymnastikskola Website
   ======================================== */

/* Base font styling */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth scrolling for hash links */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Hero Section Animations
   ======================================== */

/* Hero gradient animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background: linear-gradient(-45deg, #0EA5E9, #06B6D4, #8B5CF6, #F59E0B);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* ========================================
   General Animations
   ======================================== */

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse-scale 2s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   Card and Hover Effects
   ======================================== */

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Mobile Menu Animation
   ======================================== */

/* Mobile menu slide */
.mobile-menu-enter {
    transition: all 0.3s ease-out;
}

/* ========================================
   Hero Slideshow Transitions
   ======================================== */

/* Base hero slide styles */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
}

.hero-slide.active {
    opacity: 0.85;
    z-index: 2;
}

/* Effect 1: Crossfade */
.hero-slide.effect-crossfade {
    transition: opacity 2s ease-in-out;
}

/* Effect 2: Ken Burns (slow zoom with pan) */
.hero-slide.effect-kenburns {
    transform: scale(1.15) translate(2%, 2%);
    transition: opacity 2s ease-in-out, transform 6s ease-out;
}
.hero-slide.effect-kenburns.active {
    transform: scale(1) translate(0, 0);
}

/* Effect 3: Wipe from Right */
.hero-slide.effect-wipe-right {
    clip-path: inset(0 100% 0 0);
    transition: opacity 2s ease-in-out, clip-path 2s ease-in-out;
}
.hero-slide.effect-wipe-right.active {
    clip-path: inset(0 0 0 0);
}

/* Effect 4: Wipe from Left */
.hero-slide.effect-wipe-left {
    clip-path: inset(0 0 0 100%);
    transition: opacity 2s ease-in-out, clip-path 2s ease-in-out;
}
.hero-slide.effect-wipe-left.active {
    clip-path: inset(0 0 0 0);
}

/* ========================================
   Navigation Link Animations
   ======================================== */

/* Nav link animations */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #0EA5E9, #06B6D4);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #0EA5E9;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: linear-gradient(to right, #0EA5E9, #06B6D4);
}
