/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale Animation */
@keyframes scale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

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

/* Hover Effects */
.feature-card,
.gallery-item img,
.cta-button,
.secondary-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.gallery-item img:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Navigation Animation */
.nav-links li a {
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
    left: 0;
}

/* Scroll Reveal Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Custom Animation Classes */
.fade-up {
    animation: fadeIn 1s ease forwards;
}

.scale-in {
    animation: scale 0.5s ease forwards;
}

.slide-in {
    animation: slideIn 0.8s ease forwards;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Hover Effects */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Button Hover Animation */
.cta-button,
.secondary-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before,
.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
}

.cta-button:hover::before,
.secondary-button:hover::before {
    left: 100%;
}
