/* Custom styles that extend beyond Tailwind */

/* Selection color */
::selection {
    background-color: #0d9488;
    color: #f0fdfa;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #f1f5f9;
}

/* Subtle gradient for hero image overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
}

/* Smooth image hover effect */
img.hover-scale {
    transition: transform 0.5s ease;
}

img.hover-scale:hover {
    transform: scale(1.02);
}

/* Navbar glass effect */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Button press effect */
.btn-press {
    transition: transform 0.1s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* Decorative pattern */
.pattern-dots {
    background-image: radial-gradient(circle, #0d9488 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.05;
}

/* Text gradient for special headings */
.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d9488;
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stagger animation delays are handled in HTML via classes */

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
