/* ========== BASE ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal.active[data-animation="left"] {
    animation: slideInLeft 1s ease forwards;
}

.reveal.active[data-animation="right"] {
    animation: slideInRight 1s ease forwards;
}

.reveal.active[data-animation="up"] {
    animation: slideInUp 1s ease forwards;
}

.reveal.active[data-animation="down"] {
    animation: slideInDown 1s ease forwards;
}

.reveal.active[data-animation="fade"] {
    animation: fadeIn 1s ease forwards;
}

/* ========== PAGE TRANSITION ========== */
.page-transition {
    animation: fadeIn 0.8s ease;
}

@keyframes pageOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ========== CARD HOVER EFFECT ========== */
.service-card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* ========== BUBBLE BUTTON HOVER ========== */
.nav-links a:hover, .dropbtn:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ========== SIMPLE LOADER ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== DELAY CLASSES ========== */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }