/* Custom styles and overrides */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navigation transitions */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hero animations */
.reveal-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Scroll reveal animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal-content {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal-content.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

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

/* Button hover effects */
button,
a {
    transition: all 0.2s ease-in-out;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure text contrast on all backgrounds */
.text-slate-800,
.text-slate-700,
.text-slate-600 {
    color: inherit;
}

/* Animation delays for staggered reveals */
.reveal-content:nth-child(1) { transition-delay: 0.1s; }
.reveal-content:nth-child(2) { transition-delay: 0.2s; }
.reveal-content:nth-child(3) { transition-delay: 0.3s; }
.reveal-content:nth-child(4) { transition-delay: 0.4s; }
.reveal-content:nth-child(5) { transition-delay: 0.5s; }
.reveal-content:nth-child(6) { transition-delay: 0.6s; }

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