/* Custom styles beyond Tailwind */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #4DD9BE;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(77, 217, 190, 0.3);
    color: #fff;
}

/* Prevent layout shift on images */
img {
    display: block;
    max-width: 100%;
}

/* Subtle gradient border effect on cards */
.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

#hero p {
    text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(4, 11, 24, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #040B18;
}

::-webkit-scrollbar-thumb {
    background: #2EC4A6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4DD9BE;
}
