    /* Custom Styles for A Lopes Electric */

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

    /* Selection Color */
    ::selection {
        background-color: #781f25;
        color: white;
    }

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

    .animate-fade-in-up {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
    }

    /* Service Card Hover Effect */
    .service-card {
        transform: translateY(0);
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    /* Navbar Scroll State */
    #navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    }

    /* Mobile Menu Animation */
    #mobileMenu.open {
        transform: translateX(0);
    }

    /* Hamburger Animation */
    .menu-line.active:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-line.active:nth-child(2) {
        opacity: 0;
    }

    .menu-line.active:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 1.5rem;
    }

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

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

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #781f25;
    }

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

    /* Mobile Link Animation */
    .mobile-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #mobileMenu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
    #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
    #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
    #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .font-serif {
            font-size: clamp(2rem, 8vw, 3.5rem);
        }
    }
