/* Custom styles that extend Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #6fd4b6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(110, 211, 179, 0.3);
    color: #0a1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2fdf9;
}
::-webkit-scrollbar-thumb {
    background: #9fb7d3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #799bc2;
}

/* Subtle pattern for section backgrounds */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 22, 40, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Ensure the hero is not hidden */
#hero, #hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2ea882;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 60%;
}

/* Mobile nav link */
.mobile-nav-link {
    border-radius: 0.75rem;
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-anim, .float-slow-anim {
        animation: none !important;
    }
    .pulse-dot {
        animation: none !important;
        opacity: 1;
    }
}
