/* Custom styles for American Eagle Electric */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022C22;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero animations */
.hero-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-fade-in:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-image-in {
    animation: scaleIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-fade-in,
    .hero-image-in,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

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