/* Custom styles and animations */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(249, 245, 247, 0.95) !important;
    box-shadow: 0 1px 3px rgba(107, 76, 111, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #D4B5C5;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hover effects for service cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .font-serif.text-7xl {
        font-size: 4.5rem;
    }
}
