/* Custom Styles for Smith Electrical Contractors */

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

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(47, 62, 70, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Text Animation */
#hero h1 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

#hero a {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card Hover Effects */
.group:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5DC;
}

::-webkit-scrollbar-thumb {
    background: #A0522D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

/* Button Ripple Effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Image Hover Zoom */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.05);
}

/* Section Divider */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A0522D, transparent);
}
