/* Custom styles for New Hyde Park Electric */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #214786;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f0a500;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Selection color */
::selection {
    background: rgba(240, 165, 0, 0.3);
    color: #fff;
}

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

/* Image aspect ratio fix */
img {
    max-width: 100%;
    height: auto;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease;
}

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

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

/* Intersection observer fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric pattern overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(240, 165, 0, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
