/* Custom Styles for American Woodmark */

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

/* Base Transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

/* Navbar Styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .nav-logo-sub,
#navbar.scrolled .nav-link,
#navbar.scrolled .nav-btn span {
    color: #ffffff;
}

#navbar.scrolled .nav-btn span {
    background: #ffffff;
}

/* Hero Content Animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Service Cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gallery Items */
.gallery-item {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* Mobile Menu */
#mobile-menu {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu-link {
    opacity: 1;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 106, 91, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #F08070;
}

/* Selection Color */
::selection {
    background: #E86A5B;
    color: #ffffff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    #navbar,
    .scroll-indicator,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
