/* Custom overrides and enhancements */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #FF8A66;
    color: #ffffff;
}

/* Hide scrollbar on mobile menu */
body.menu-open {
    overflow: hidden;
}

/* Focus visible styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #FF8A66;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 138, 102, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 107, 63, 0.03) 0%, transparent 50%);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Subtle gradient border for cards */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 138, 102, 0.3), rgba(255, 107, 63, 0.1));
    -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;
    pointer-events: none;
}

/* Navbar shadow on scroll */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Animated underline for nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8A66;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Pulse animation for status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
