/* Custom styles beyond Tailwind */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hero content animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-content:nth-child(2) { animation-delay: 0.15s; }
.hero-content:nth-child(3) { animation-delay: 0.3s; }
.hero-content:nth-child(4) { animation-delay: 0.45s; }
.hero-content:nth-child(5) { animation-delay: 0.6s; }
.hero-content:nth-child(6) { animation-delay: 0.75s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative shapes */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; animation-duration: 7s; }
.shape-2 { animation-delay: 1s; animation-duration: 8s; }
.shape-3 { animation-delay: 2s; animation-duration: 9s; }
.shape-4 { animation-delay: 0.5s; animation-duration: 5s; }
.shape-5 { animation-delay: 1.5s; animation-duration: 6s; }
.shape-6 { animation-delay: 2.5s; animation-duration: 7s; }
.shape-7 { animation-delay: 3s; animation-duration: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.shape-6 {
    animation-name: floatRotate;
}

@keyframes floatRotate {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(60deg); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays for service cards */
.service-card[data-reveal] {
    transition-delay: calc(var(--index, 0) * 0.1s);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-content {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .hero-shape {
        animation: none;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: none;
    }
    
    .service-card[data-reveal] {
        transition-delay: 0s;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
