/* ===================================
   SUPER ANIMATIONS & 3D EFFECTS
   Beautiful, Smooth, Professional
   =================================== */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale & Zoom */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 168, 232, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(0, 168, 232, 0.4);
    }
}

/* Rotate */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shake */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Slide */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Flip */
@keyframes flipInY {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glow */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 168, 232, 0.6);
    }
}

/* Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Heart Beat */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* Swing */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Wobble */
@keyframes wobble {
    0%, 100% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-10%) rotate(-5deg);
    }
    30% {
        transform: translateX(7%) rotate(3deg);
    }
    45% {
        transform: translateX(-5%) rotate(-3deg);
    }
    60% {
        transform: translateX(3%) rotate(2deg);
    }
    75% {
        transform: translateX(-2%) rotate(-1deg);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out forwards;
}

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

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

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

/* ===================================
   CARD 3D TILT EFFECT
   =================================== */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: translateZ(20px);
}

/* ===================================
   HOVER EFFECTS
   =================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 168, 232, 0.5);
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   CARD ANIMATED
   =================================== */

.card-animated {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================================
   LOADING SPINNER
   =================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 168, 232, 0.2);
    border-top-color: #00a8e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===================================
   RIPPLE EFFECT
   =================================== */

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ===================================
   GRADIENT TEXT ANIMATION
   =================================== */

.animate-gradient {
    background: linear-gradient(
        90deg,
        #00a8e8,
        #48cae4,
        #00a8e8
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* ===================================
   PARALLAX EFFECT
   =================================== */

.parallax {
    transition: transform 0.1s ease-out;
}

/* ===================================
   TYPEWRITER EFFECT
   =================================== */

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: 
        typewriter 3s steps(40) 1s 1 normal both,
        blink 0.75s step-end infinite;
}

/* ===================================
   BACKGROUND ANIMATIONS
   =================================== */

.bg-animated {
    background: linear-gradient(
        -45deg,
        #00a8e8,
        #007ea7,
        #48cae4,
        #00a8e8
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* ===================================
   STAGGER ANIMATION
   =================================== */

.stagger-animation > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) {
    animation-delay: 0s;
}

.stagger-animation > *:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-animation > *:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-animation > *:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-animation > *:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-animation > *:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===================================
   PREFERS REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PAGE LOAD ANIMATION
   =================================== */

.page-loaded {
    animation: fadeIn 0.5s ease-out;
}

/* ===================================
   INFINITE ANIMATIONS
   =================================== */

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

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

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

.infinite-rotate {
    animation: rotate 4s linear infinite;
}
