@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
    50% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.6); }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce-in {
    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 rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes drift {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(-5px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Animation classes */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.slide-in-up {
    animation: slide-in-up 0.8s ease-out forwards;
}

.fade-in {
    animation: fade-in 1s ease-out forwards;
}

.bounce-in {
    animation: bounce-in 0.8s ease-out forwards;
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.bounce-click {
    animation: bounce-click 0.3s ease-in-out;
}

.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.heartbeat {
    animation: heartbeat 1s ease-in-out infinite;
}

.spin-fast {
    animation: spin-fast 0.5s linear;
}

.shake {
    animation: shake 0.3s ease-in-out;
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.drift {
    animation: drift 8s ease-in-out infinite;
}

.twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

/* Delay classes */
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }
.delay-1200 { animation-delay: 1.2s; }

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.sky-blue-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

/* Interactive SVG styles */
.interactive-svg {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.interactive-svg:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(56, 189, 248, 0.3));
}

.interactive-svg:active {
    transform: scale(0.9);
}

.mouse-follow {
    transition: transform 0.1s ease-out;
}

/* Background interactive icons */
.bg-icon {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.bg-icon:hover {
    opacity: 0.3;
    transform: scale(1.2);
}

.bg-icon.clicked {
    animation: sparkle 0.6s ease-out;
}

.bg-icon.drift-icon {
    animation: drift 12s ease-in-out infinite;
}

.bg-icon.twinkle-icon {
    animation: twinkle 4s ease-in-out infinite;
}

.bg-icon.float-icon {
    animation: float 4s ease-in-out infinite;
}

.bg-icon.rotate-icon {
    animation: rotate-slow 15s linear infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Mouse Trail Effects */
.mouse-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.trail-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.8) 0%, rgba(14, 165, 233, 0.4) 50%, transparent 100%);
    animation: trail-fade 1s ease-out forwards;
}

.trail-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 4px;
    height: 4px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 6px #38bdf8;
    animation: sparkle-trail 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes sparkle-trail {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) rotate(360deg);
    }
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    animation: cursor-trail-fade 0.5s ease-out forwards;
}

@keyframes cursor-trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bg-icon {
        opacity: 0.05;
    }
    
    .bg-icon:hover {
        opacity: 0.15;
    }
    
    .trail-particle {
        animation-duration: 0.6s;
    }
    
    .trail-sparkle {
        width: 3px;
        height: 3px;
    }
}
