/* Keep original custom styles */
:root {
    --primary: #e60000; /* Nionuco Red */
    --secondary: #990000; /* Darker Red */
    --accent: #000000; /* Black */
    --light: #ffffff;
    --dark: #000000;
    --success: #cc0000; /* Lighter Red */
    --grey: #6c757d;
    --light-grey: #f0f0f0;
    
    /* Dark theme variables */
    --bg-dark: #121212;
    --text-dark: #f5f5f5;
    --card-dark: #1e1e1e;
    --border-dark: #333;
}

[data-theme="dark"] {
    --light: var(--bg-dark);
    --dark: #f5f5f5; /* Brighter text */
    --light-grey: #2a2a2a;
    --accent: #ffffff; /* White accent */
    --grey: #d1d1d1; /* Lighter grey */
}

[data-theme="dark"] .section-header h2 {
    color: var(--primary); /* Keep brand color for headings */
}

[data-theme="dark"] .section-header p {
    color: var(--grey); /* Lighter text for readability */
}

[data-theme="dark"] .service-content h3 {
    color: var(--primary); /* Keep brand color for service titles */
}

[data-theme="dark"] .service-content p {
    color: var(--grey); /* Lighter text for service descriptions */
}

[data-theme="dark"] header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .service-card {
    background-color: #252525;
    border-color: #333;
}

[data-theme="dark"] .nav-links a {
    color: var(--text-dark);
}

[data-theme="dark"] .logo span {
    color: var(--text-dark);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
    color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Use custom button styles outside Tailwind section */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white !important; /* Important to override potential Tailwind conflicts */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn:hover {
    background-color: var(--accent);
    color: white !important;
}

.btn-secondary {
    background-color: var(--dark);
}
.btn-secondary:hover {
    background-color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white !important;
}

/* Header Styles (Keep Original) */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark mode support for dropdown */
[data-theme="dark"] .dropdown-content {
    background-color: var(--bg-dark);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border: 1px solid var(--border-dark);
}

[data-theme="dark"] .dropdown-content a {
    color: var(--text-dark);
}

[data-theme="dark"] .dropdown-content a:hover {
    background-color: #2c2c2c;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark); /* Ensure icon is visible */
}
.mobile-menu i {
    font-style: normal; /* Override Font Awesome italic */
}


/* Hero Section Styles (Keep Original) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(230, 0, 0, 0.7)), url('Pictures/Group Picture.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styles (Keep Original) */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--grey);
}

/* Service Section Styles (Keep Original) */
 .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-grey);
    display: flex; /* Added for consistent height */
    flex-direction: column; /* Added for consistent height */
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0; /* Prevent image container from shrinking */
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to expand */
    display: flex; /* Flex layout for content */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button down */
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}
.service-content p {
    margin-bottom: 20px; /* Space before button */
     flex-grow: 1; /* Allow paragraph to take space */
}
.service-content .btn-outline {
    align-self: flex-start; /* Align button to the left */
}

/* About Section Styles (Keep Original) */
.about {
    background-color: var(--light);
    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-features {
    text-align: center;
}

.about-feature {
    justify-content: center;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.about-feature i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 1.1em; /* Make checkmark slightly larger */
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Projects Section - uses service-card styles */

/* CTA Section Styles (Keep Original) */
 .cta {
    /* Using placeholder gradient as background image doesn't exist */
    background: linear-gradient(rgba(230, 0, 0, 0.9), rgba(153, 0, 0, 0.9));
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Contact Section Styles (Keep Original) */
#contact .contact-grid { /* Specific selector for contact grid */
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 40px;
}
#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px; /* Ensure spacing */
}
#contact textarea {
    resize: vertical; /* Allow vertical resize */
}
 #contact .social-links {
     display: flex;
     gap: 15px;
     margin-top: 10px;
 }
 #contact .social-links a {
     color: var(--primary); /* Use primary color for social links */
     font-size: 1.2rem;
 }
 #contact .social-links a:hover {
     color: var(--accent);
 }


/* Footer Styles (Keep Original) */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary); /* Footer headings in primary color */
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary); /* Match heading color */
}
.footer-column p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Styles for Integrated Product Catalog Section (Tailwind overrides specific styles below) */
#products {
    background-color: var(--light-grey); /* Give products section a slightly different background */
}
.tab {
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    background-color: transparent;
    padding: 8px 20px;
    margin: 0 5px;
    font-weight: 500;
}

.tab:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.2);
}

.tab-active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
    transform: translateY(-2px);
}

[data-theme="dark"] .tab {
    border-color: var(--primary);
    color: var(--text-dark);
}

[data-theme="dark"] .tab:hover {
    background-color: var(--primary);
    color: white;
}

[data-theme="dark"] .tab-active {
    background-color: var(--primary) !important;
    color: white !important;
}
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-image {
    height: 200px; /* Fixed height */
    object-fit: contain; /* Use contain to show whole image */
    padding: 10px; /* Add padding around image */
    background-color: white; /* Ensure white background for images */
    border-bottom: 1px solid var(--light-grey);
}
.product-card .p-4 { /* Target inner padding div */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 1rem auto 2rem auto; /* Adjusted margin */
    border-radius: 2px;
}
.feature-badge {
    background-color: #fceded; /* Lighter red background */
    color: var(--secondary); /* Darker red text */
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.25rem;
    display: inline-block;
    font-weight: 500;
}
.category-tab-content {
    display: none;
}
.category-tab-content.active {
    display: block;
}

 /* Brand Logos Section (Keep Original Styling) */
.brand-logos-container {
    margin: 50px 0;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.brand-logos-container h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.brand-logos-img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
}


/* Responsive Styles (Keep Original) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        display: none; /* Initially hidden */
        background-color: white; /* Add background for clarity */
        padding: 10px 0; /* Add some padding */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Add shadow */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        right: 0;
        z-index: 999; /* Ensure it's above content */

    }
    .nav-links.nav-active { /* Class to show menu */
         display: flex;
     }

    .nav-links li {
        margin: 10px 20px; /* Adjust margin/padding */
         text-align: center;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust vertical centering */
         z-index: 1001; /* Ensure it's above nav links background */
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px; /* Reduce gap */
    }
    .about-image {
        order: -1; /* Move image above text on mobile */
        text-align: center; /* Center image */
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Product Tabs Responsive */
    #products .flex.flex-wrap.border-b {
        flex-direction: column;
        align-items: stretch; /* Make tabs full width */
    }
    #products .tab {
         margin-right: 0; /* Remove right margin */
         margin-bottom: 5px; /* Add bottom margin */
         border-radius: 4px; /* Add slight rounding */
         text-align: center;
         border-bottom-width: 0; /* Remove bottom border */
    }
     #products .tab-active {
        /* Adjust active style for vertical tabs */
        background-color: var(--primary) !important;
        color: white !important;
        border-bottom-width: 0;
     }

     /* Contact Grid Responsive */
     #contact .contact-grid {
         grid-template-columns: 1fr; /* Stack columns */
     }
}