/* Custom animations and styles */

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 230, 207, 0.3);
}

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

/* Mobile menu animation */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #A8E6CF !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9FAFB;
}

::-webkit-scrollbar-thumb {
    background: #0A1628;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #132238;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .service-card {
        padding: 2.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .service-card {
        padding: 3rem;
    }
}
