/* Basic Reset & Typography - Adjusted for Dark Theme */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --background-dark: #1a1a1a; /* Darkest background */
    --text-light: #f0f0f0; /* Light text for readability */
    --accent-color: #FF6F00; /* Vibrant Orange for accents, like in the image */
    --card-dark: #2a2a2a; /* Slightly lighter dark for content cards */
    --border-dark: #3a3a3a; /* Subtle dark border */
    --shadow-dark: rgba(0, 0, 0, 0.4); /* Deeper shadow for depth */
}

* {
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7; /* Slightly more line height for dark theme readability */
    color: var(--text-light);
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-light); /* Headings are light */
}

h1 {
    font-size: 3.5em; /* Slightly larger for impact */
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 111, 0, 0.5); /* Subtle glow */
}

h2 {
    font-size: 2.5em; /* Slightly larger */
    text-align: center;
    margin-bottom: 50px; /* More space */
    position: relative;
    color: var(--text-light);
}

h2::after {
    content: '';
    display: block;
    width: 80px; /* Slightly wider */
    height: 4px; /* Thicker */
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.6em;
    color: var(--accent-color); /* Accent for subheadings */
}

p {
    margin-bottom: 1.2em;
    color: #bdbdbd; /* Slightly muted light text for body */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff9100; /* Lighter accent on hover */
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.5); /* Slightly transparent dark */
    padding: 20px 0;
    box-shadow: 0 4px 10px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Modern blur effect */
}

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

.header .logo {
    font-size: 2em; /* Slightly larger logo */
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    padding: 5px 0;
    display: block;
    position: relative;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: #fff;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--card-dark);
    min-width: 160px;
    box-shadow: 0 8px 16px var(--shadow-dark);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    top: 100%; /* Position below the toggle */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap; /* Prevent wrapping for long menu items */
}

.dropdown-menu a:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
    border-radius: 4px; /* Smaller radius for dropdown items */
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above other content */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    /* Using an abstract automotive/industrial image with a dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1582276527581-998897585a73?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    padding: 120px 0; /* More padding for impact */
    text-align: center;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
}

.hero-section .subtitle {
    font-size: 1.5em; /* Larger subtitle */
    max-width: 900px;
    margin: 30px auto 40px;
    color: #cccccc; /* Slightly muted white */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--background-dark);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #ff9100;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Common Styling */
.section-padding {
    padding: 80px 0;
}

.bg-card-dark { /* Used for alternating background sections */
    background-color: var(--card-dark);
}

/* Specific Section Styles for lists (Features/Customers) */
#features .container ul,
#customers .container ul {
    list-style: none;
    padding: 0;
    display: grid; /* Use grid for list items for a modern layout */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Space between grid items */
    margin-top: 40px;
}

#features .container ul li,
#customers .container ul li {
    background: #222; /* Slightly darker than card-dark for list items */
    border-radius: 12px; /* More rounded corners */
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    border-left: 5px solid var(--accent-color); /* Accent stripe */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features .container ul li:hover,
#customers .container ul li:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); /* Deeper shadow on hover */
}

.section-padding ul li strong {
    color: var(--accent-color); /* Highlight key phrases */
    font-weight: 600;
}

/* Test Environment Link */
.test-environment-container {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    margin-bottom: 50px;
    border: 1px solid var(--border-dark);
}

.test-environment-container h2 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.test-link {
    display: inline-block;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    padding: 15px 25px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.test-link:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.email-highlight {
    font-weight: 700;
    color: #fff;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: #111; /* Even darker background for contact */
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: #222;
    border-radius: 12px;
    padding: 50px; /* More padding */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Deeper shadow */
    border: 1px solid var(--border-dark);
}

.contact-name {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-detail {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ccc;
}

/* Footer */
.footer {
    background-color: #0a0a0a; /* Deepest dark for footer */
    color: #888;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9em;
    border-top: 1px solid #222;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide desktop nav on smaller screens */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu */
    }

    .header .container {
        justify-content: space-between;
    }

    /* Mobile navigation overlay */
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Below the header */
        left: 0;
        width: 100%;
        background-color: var(--card-dark); /* Darker background for mobile menu */
        box-shadow: 0 8px 16px var(--shadow-dark);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        overflow: hidden;
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav.active ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav.active ul li {
        margin: 0;
        text-align: center;
    }

    .main-nav.active ul li a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-dark);
    }

    .main-nav.active ul li:last-child a {
        border-bottom: none;
    }

    .main-nav.active ul li a::after {
        display: none; /* Hide underline for mobile links */
    }

    .main-nav .dropdown-menu {
        position: static; /* Make dropdown static in mobile menu */
        width: 100%;
        box-shadow: none;
        background-color: #333; /* Slightly different background for sub-items */
        border-radius: 0;
        padding: 0;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        display: none; /* Controlled by JS for accordion effect */
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block; /* Show dropdown when parent is active */
    }

    .main-nav .dropdown-menu a {
        padding-left: 40px; /* Indent dropdown items */
    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    h2::after {
        width: 60px;
        height: 3px;
        margin: 10px auto 0;
    }

    .hero-section {
        padding: 100px 0;
    }

    /* Adjust list items for smaller screens */
    #features .container ul,
    #customers .container ul {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .contact-info {
        padding: 40px 20px;
    }

    /* Responsive adjustments for the test environment section */
    .test-link {
        font-size: 1.1em;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .header .logo {
        font-size: 1.8em;
    }

    h1 {
        font-size: 2em;
    }

    .hero-section .subtitle {
        font-size: 1.1em;
    }

    .section-padding ul li {
        padding: 20px;
    }

    .contact-name {
        font-size: 1.7em;
    }

    .contact-detail {
        font-size: 1em;
    }

    /* Responsive adjustments for the test environment section */
    .test-link {
        font-size: 1em;
        padding: 10px 15px;
    }
    .test-environment-container {
        padding: 30px 15px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
}