/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Variables */
:root {
    --primary-color: #00CCC1; /* New Teal Color */
    --secondary-color: #444;
    --light-bg: #f4f4f4;
    --white: #fff;
    --border-color: #ddd;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff; /* Keep white if you like, or change to #333 for black text */
    border: 2px solid var(--primary-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Makes white text pop on bright teal */
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* NEW LOGO STYLES */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 80px; /* Controls the height of the logo */
    width: auto;      /* Maintains the correct aspect ratio */
}

/* Adjust header height to accommodate the logo if needed */
header .container {
    height: auto;
    min-height: 100px; /* Increased from 80px to give the bigger logo room */
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    padding: 10px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 400px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    padding: 20px;
    border-top: 3px solid var(--primary-color);
    flex-wrap: wrap;
}

.sub-menu-column {
    flex: 1;
    min-width: 150px;
    padding: 10px;
}

.sub-menu-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 5px 0;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://source.unsplash.com/1600x900/?industrial,factory'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--light-bg);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.product-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.info-item {
    margin-bottom: 30px;
    text-align: center;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form form {
    display: grid;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

/* Footer */
footer {
    background: #333;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* 1. Fix the main menu container */
    .nav-links {
        position: fixed; /* Changed to fixed so it stays put while scrolling */
        right: 0px;
        height: 100vh;   /* Full height */
        top: 80px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align text to left for better readability */
        width: 70%;      /* Made slightly wider for better reading */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 20px;
        overflow-y: auto; /* Allows scrolling if menu is too long */
    }

    /* 2. Fix the individual links */
    .nav-links li {
        width: 100%;
        margin: 0;     /* Reset margins */
        opacity: 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0; /* Separator lines */
    }

    /* 3. CRITICAL FIX: Make the dropdown push content down instead of overlapping */
    .dropdown-content {
        position: relative; /* This stops it from floating on top */
        min-width: 100%;
        width: 100%;
        top: 0;
        box-shadow: none;
        border-top: none;
        padding: 0;
        background-color: #f9f9f9; /* Slightly darker to distinguish sub-menu */
        display: none; /* Hidden by default */
        flex-direction: column;
    }

    /* Ensure dropdown shows when tapped/hovered */
    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
    }

    .sub-menu-column {
        padding: 0;
        width: 100%;
    }

    .sub-menu-column h3 {
        padding: 15px 20px 5px 20px;
        color: var(--primary-color);
        font-size: 0.85rem;
    }

    .dropdown-content a {
        padding-left: 40px !important; /* Indent sub-items */
        font-size: 0.9rem;
        border-bottom: 1px solid #eee;
    }

    /* Burger Menu visible */
    .burger {
        display: block;
    }

    /* Active State */
    .nav-active {
        transform: translateX(0%);
    }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

/* --- Add this to the bottom of style.css --- */

/* Technical Tables Styling */
.table-container {
    overflow-x: auto; /* Allows table to scroll sideways on mobile */
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't squish too small */
    font-size: 0.95rem;
    background-color: #fff;
}

.tech-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
}

.tech-table th,
.tech-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.tech-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.tech-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3; /* Zebra striping */
}

.tech-table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: default;
}

/* Breadcrumb Styling */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}
.breadcrumb a {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Add to bottom of style.css for Category Pages --- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Keeps image inside rounded corners */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.cat-card-img {
    height: 200px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.cat-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Placeholder icon if no image exists */
.cat-card-img i {
    font-size: 4rem;
    color: #ccc;
}

.cat-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.cat-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- Add to bottom of style.css for Search Box --- */

/* Search Item Positioning */
.search-item {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

/* Search Form Styling */
.search-form {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #ddd;
}

.search-form input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 120px; /* Compact width */
    color: #333;
}

.search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    margin-left: 5px;
    transition: transform 0.2s;
}

.search-form button:hover {
    transform: scale(1.2);
}

/* Mobile Adjustments for Search */
@media (max-width: 768px) {
    .search-item {
        margin: 20px; /* Add spacing in the mobile drawer */
        width: 80%;
    }

    .search-form {
        width: 100%; /* Full width on mobile */
        padding: 10px 20px;
    }

    .search-form input[type="text"] {
        width: 100%; /* Stretch input */
    }
}

/* Add to style.css */

.contact-content-right {
    display: flex;
    flex-direction: column;
}

.map-container iframe {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Add to bottom of style.css for Common Footer --- */
/* --- UPDATED FOOTER (Teal Theme) --- */

footer {
    background: var(--primary-color); /* Uses the new Teal #00CCC1 */
    color: #333; /* Dark text for better readability on bright background */
    padding-top: 40px;
    padding-bottom: 20px;
    margin-top: auto;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Dark divider line instead of gray */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #000; /* Pure black headers for contrast */
    font-size: 1.2rem;
    margin-bottom: 15px;
    /* White accent line stands out beautifully on Teal */
    border-left: 3px solid #fff;
    padding-left: 10px;
}

.footer-section p {
    color: #222; /* Darker gray for address */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Links need to be dark to be readable */
.contact-links a,
.footer-links a {
    color: #222;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
}

/* On hover, turn links White */
.contact-links a:hover,
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    color: #333;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Fix for Invisible Links --- */

/* This targets the specific bullet lists where you added links */
.feature-list a {
    color: var(--primary-color); /* Makes the text Teal */
    text-decoration: underline;  /* Adds an underline so people know to click */
    font-weight: bold;
}

.feature-list a:hover {
    color: #333; /* Turns dark gray when you hover over it */
    text-decoration: none;
}

/* FIX FOR LAYOUT SHIFT (CLS) */
/* This reserves space for the header before it loads so the page doesn't jump. */
#header-placeholder {
    min-height: 120px; /* Adjust this number if your header is taller/shorter */
    display: block;
    width: 100%;
}

/* Optional: Reserve space for breadcrumbs if they are jumping too */
#breadcrumb-placeholder {
    min-height: 40px;
}
