/* Custom styles beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #4ade80;
    color: #1a2663;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #2f43b5;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a2663;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Subtle gradient border on service cards on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #4ade80, #22c55e, #16a34a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Hero text shadow for readability */
.hero h1,
.hero p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pulse-dot {
        animation: none;
    }
    .phone-float {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
