/* styles.css */

/* --- Base Styles & Dark Theme --- */
html {
    scroll-behavior: smooth; /* Added for smooth scrolling */
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #E0E0E0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header & Footer --- */
header {
    text-align: center;
    padding: 40px 20px;
    background-color: #1E1E1E;
    border-bottom: 1px solid #333;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

header h1 {
    margin: 0;
    color: #FFFFFF;
}

header p {
    color: #BBBBBB;
    font-size: 1.1em;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #1E1E1E;
    color: #888888;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

footer a {
    color: #AAAAAA;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #cc1718;
}

/* --- Navigation --- */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    background-color: #1E1E1E;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: #cc1718;
    text-shadow: 0 0 5px rgba(204, 23, 24, 0.7);
}

/* --- Main Content & Sections --- */
main {
    padding: 30px 20px;
    max-width: 900px;
    margin: 20px auto;
}

section {
    margin-bottom: 50px;
    padding: 20px;
    background-color: #1A1A1A;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

section:not(#faq):hover {
    background-color: #242424;
    box-shadow: 0 0 15px rgba(204, 23, 24, 0.2);
    transform: translateY(-3px);
}

h2 {
    color: #FFFFFF;
    border-bottom: 2px solid #cc1718;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Scroll-Triggered Animation Styling --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Specific Section Styling --- */

/* Services List Item Styling */
#services ul {
    padding-left: 20px;
}

#services li {
    padding: 5px 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

#services li:hover {
    color: #cc1718;
    transform: translateX(5px);
}

/* Testimonials - IMPROVED STYLING */
blockquote {
    border-left: 4px solid #cc1718;
    margin: 20px 0;
    padding: 20px 15px;
    font-style: italic;
    color: #CCCCCC;
    background-color: #1E1E1E;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

blockquote:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(204, 23, 24, 0.2);
    background-color: #242424;
}

blockquote footer {
    font-style: normal;
    margin-top: 10px;
    color: #AAAAAA;
    text-align: right;
    background-color: transparent;
    padding: 0;
    border-top: none;
    font-size: 0.9em;
}

/* --- FAQ Section - Interactive Styling --- */
#faq article {
    margin-bottom: 15px;
    border-bottom: 1px dashed #333;
    padding-bottom: 15px;
}

#faq article:last-child {
    border-bottom: none;
}

#faq h3 {
    color: #cc1718;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding-right: 25px;
    user-select: none;
    transition: color 0.3s ease;
}

#faq h3:hover {
    color: #e6393a;
}

/* FAQ INDICATOR STYLING */
#faq h3::after {
    content: '▶';
    display: inline-block;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 0.8em;
    color: #cc1718;
    transition: transform 0.3s ease, color 0.3s ease;
}

#faq h3.active::after {
    transform: translateY(-50%) rotate(90deg);
    color: #FFFFFF;
}

#faq h3.active {
    color: #FFFFFF;
}

#faq p {
    margin: 0;
    padding-left: 15px;
    color: #BBBBBB;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, margin-top 0.5s ease-out;
}

/* Catalog Page Specific Styling (`catalog.html`) */
.part-item {
    background-color: #252525;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #cc1718;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.part-item:hover {
    transform: scale(1.02) translateX(5px);
    box-shadow: 0 6px 15px rgba(204, 23, 24, 0.25);
    background-color: #2f2f2f;
}

.part-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #E0E0E0;
}

.part-item p {
    margin-bottom: 0;
    color: #AAAAAA;
    font-size: 0.95em;
}

.part-item p em {
    color: #888;
    font-size: 0.9em;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul li {
        margin: 5px 0;
        text-align: center;
    }
    
    header {
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }
    
    main {
        padding: 20px 15px;
    }
    
    section {
        padding: 15px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    blockquote {
        padding: 15px 10px;
    }
    
    #services li {
        padding: 3px 0;
    }
    
    #faq h3 {
        font-size: 1em;
        padding-right: 20px;
    }
    
    #faq p {
        font-size: 0.9em;
    }
    
    footer {
        padding: 15px;
        font-size: 0.8em;
    }
    
    /* Adjust hover animations for touch devices */
    section:not(#faq):hover {
        transform: translateY(-2px);
    }
    
    blockquote:hover {
        transform: translateY(-2px);
    }
    
    /* Add a hamburger menu for very small screens */
    @media screen and (max-width: 480px) {
        .mobile-menu-toggle {
            display: block;
            text-align: center;
            padding: 10px;
            background-color: #1E1E1E;
            color: #E0E0E0;
            cursor: pointer;
            font-weight: bold;
            border-bottom: 1px solid #333;
        }
        
        nav ul {
            display: none; /* Hide by default */
        }
        
        nav ul.show {
            display: flex; /* Show when toggled */
        }
    }
}
