/* Custom styles beyond Tailwind */

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

/* 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;
}

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #0f172a !important;
}

#navbar.scrolled a:not(.bg-teal-500) {
    color: #334155 !important;
}

/* Selection color */
::selection {
    background: #5eead4;
    color: #0f172a;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #hero {
        background-attachment: scroll;
    }
    
    .group:hover img {
        transform: none;
    }
    
    .group:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
    
    .font-serif {
        font-size: 2.5rem !important;
    }
}

/* Loading animation for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}
