/* ===== KEYFRAMES ANIMATIONS ===== */

@keyframes float-up {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-down {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

@keyframes slide-up-fade {
    from { 
        opacity: 0;
        transform: translateY(40px) rotateX(20deg);
    }
    to { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fade-left {
    from { 
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes zoom-in-rotate {
    from { 
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bounce-in {
    0% { 
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(5px) scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes card-reveal {
    0% { 
        opacity: 0;
        transform: translateY(30px) rotateX(15deg);
        filter: blur(5px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes icon-float {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.1);
    }
}

@keyframes cta-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 60px rgba(59, 130, 246, 0.2);
        transform: scale(1.02);
    }
}

@keyframes button-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BASE STYLES ===== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== LAYOUT ===== */

.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 2rem;
    }
}

/* ===== ANIMATION CLASSES ===== */

.animate-float-up {
    animation: float-up 3s ease-in-out infinite;
}

.animate-float-down {
    animation: float-down 3s ease-in-out infinite;
}

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

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.animate-fade-left {
    opacity: 0;
    animation: fade-left 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-bounce-in {
    opacity: 0;
    animation: bounce-in 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-slide-up-fade {
    opacity: 0;
    animation: slide-up-fade 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-zoom-in-rotate {
    opacity: 0;
    animation: zoom-in-rotate 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-card-reveal {
    opacity: 0;
    animation: card-reveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-icon-float {
    animation: icon-float 2.5s ease-in-out infinite;
}

.animate-cta-glow {
    animation: cta-glow 3s ease-in-out infinite;
}

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

.animate-slide-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: slide-down 0.6s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in-up 0.4s ease-out forwards;
}

/* ===== SCROLL ANIMATIONS ===== */

.animate-on-scroll {
    transition: all 0.6s ease-in-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MOBILE MENU ANIMATIONS ===== */

.mobile-menu-item-1 { animation-delay: 0.1s; }
.mobile-menu-item-2 { animation-delay: 0.2s; }
.mobile-menu-item-3 { animation-delay: 0.3s; }
.mobile-menu-item-4 { animation-delay: 0.4s; }
.mobile-menu-item-5 { animation-delay: 0.5s; }
.mobile-menu-item-6 { animation-delay: 0.6s; }
.mobile-menu-item-7 { animation-delay: 0.7s; }

/* ===== BUTTONS ===== */

.btn-hero {
    background: linear-gradient(to right, #1795df, #4db3e8);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px -6px rgba(23, 149, 223, 0.15);
    transition: all 0.3s;
}

.btn-hero:hover {
    box-shadow: 0 20px 40px -12px rgba(16, 20, 67, 0.2);
    transform: scale(1.05);
}

.hover-scale {
    transition: transform 0.3s;
}

.hover-scale:hover {
    transform: scale(1.05);
}
