/* Custom styles — augmenting Tailwind */

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

/* Hero entrance animations — above the fold, always visible */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out both;
}

.animate-slide-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-slide-up-delay {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.animate-slide-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Scroll reveal — below the fold only, progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Focus visible outlines */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Image lazy-load placeholder */
img {
    background: linear-gradient(135deg, #f0fdfa 0%, #f1f5f9 100%);
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-1px);
}

/* Print styles */
@media print {
    header, #contact, footer, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
