/* Global Resets & Base Styles */
:root {
    --primary-color: #0A2E5E; /* Deeper, slightly desaturated blue */
    --secondary-color: #1E6091; /* Medium, more vibrant blue */
    --accent-color: #00AEEF; /* Bright, modern electric blue */
    --highlight-color: #FFC107; /* A warm yellow for subtle highlights or calls to action */
    
    --text-color: #343A40; /* Dark grey for body text */
    --text-light-color: #F8F9FA; /* Off-white for dark backgrounds */
    --heading-color: #212529; /* Very dark grey, almost black for headings */
    
    --light-bg: #f4f4f4; 
    --dark-bg: #2c3e50; 
    --white-bg: #FFFFFF;

    --border-radius: 6px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white-bg);
}

.container {
    width: 95%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 5px; /* Consistent padding */
}

.section-padding {
    padding: 70px 0; /* Standardized padding */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.75em; /* Consistent bottom margin */
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem; /* Responsive units */
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px; /* More space below H2 */
    position: relative;
}

h2::after { /* Underline accent for H2 */
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1em;
}
p.section-intro {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius); /* Subtle rounding for all images */
}

ul {
    list-style: none; /* Remove default list style */
    padding-left: 0;
}

/* Header & Navigation */
header {
    background-color: var(--white-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo img {
    height: 45px; 
    border-radius: 0; 
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px; 
}

.nav-links a {
    color: var(--heading-color);
    font-weight: 500; 
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { 
    color: var(--accent-color);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 28px; 
    height: 3px;
    background-color: var(--heading-color);
    margin: 6px 0; 
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(10, 46, 94, 0.75), rgba(10, 46, 94, 0.65)), url('../images/header-ifevs-il-e1644225445856.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light-color);
    text-align: center;
    padding: 100px 0; 
    min-height: 65vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: var(--white-bg); 
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    opacity: 0.95;
}

/* Mission Section */
.mission-content {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: center; 
}

.mission-text {
    flex: 1 1 40%; 
    min-width: 300px; 
}

.mission-text ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 18px; 
    font-size: 1.25rem; 
    line-height: 1.6; 
}
.mission-text ul li::before {
    content: '➔';
    color: var(--accent-color);
    position: absolute;
    left: -14px;
    top: 0.05em; 
    font-weight: bold;
    font-size: 1.3em; 
}

.mission-image {
    flex: 1 1 55%; 
    min-width: 350px; 
    max-width: 650px; 
}
.mission-image img {
    box-shadow: var(--box-shadow);
    width: 100%; 
    height: auto; 
    display: block;
}

/* Products Section */
#products {
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* MODIFICATION: Changed from 3 to 2 */
    gap: 15px; 
}

.product-card {
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 0; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.product-card img {
    width: 100%;
    height: 220px; 
    object-fit: cover;
    border-radius: 0; 
    margin-bottom: 0;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
    padding: 20px 15px;
    background-color: var(--white-bg); 
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}


/* What We Do Section */
#what-we-do {
    background-color: var(--light-bg);
}
.what-we-do-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
}

.solutions, .technologies {
    flex: 1;
    min-width: 300px;
    padding: 25px; 
    background-color: var(--white-bg); 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.solutions h3, .technologies h3 {
    font-size: 1.6rem;
    color: var(--primary-color); 
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 10px;
    display: inline-block; 
}

.solutions ul, .technologies ul {
    list-style: none; 
    padding-left: 0;
}

.solutions ul li, .technologies ul li {
    margin-bottom: 12px;
    padding-left: 25px; 
    position: relative;
    font-size: 1rem;
}
.solutions ul li::before, .technologies ul li::before {
    content: '✓'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1em;
}

.solutions-image {
    margin-top: 25px;
    box-shadow: var(--box-shadow); 
}

/* About Us Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; 
    align-items: flex-start; 
}

.about-text {
    flex: 1.5; 
    min-width: 300px;
}

.about-text p {
    font-size: 1.05rem; 
    margin-bottom: 1.2em;
}
.about-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-images {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.about-images img {
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* MODIFICATION: Ensure the new bike image in "About Us" also fits well */
    object-fit: cover; 
    height: 250px; /* You might need to adjust this height for optimal display */
}
.about-images img:first-child { /* Keep original styling for the pick-up if needed */
    object-fit: initial; /* Or 'contain' if it looked better */
    height: auto; 
}

.about-images img:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow-hover);
}

/* News Section */
#news > .container > h3 { 
    text-align: center;
    font-size: 1.5rem; 
    font-weight: 400; 
    margin-bottom: 35px;
    color: var(--text-color); 
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--white-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color); 
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.news-item:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.news-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-item p {
    font-size: 0.95rem; 
    margin-bottom: 0.8em;
}
.news-item p strong {
    color: var(--heading-color);
    font-weight: 700;
}
.news-item p em { 
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    font-style: normal; 
    font-weight: 500;
}

/* Contact Section */
#contact {
    background-color: var(--dark-bg);
    color: var(--text-light-color);
}
#contact h2 {
    color: var(--text-light-color);
}
#contact h2::after {
    background-color: var(--text-light-color); 
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 14px; 
    border: 1px solid #556679; 
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #3a4b5f; 
    color: var(--text-light-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form textarea::placeholder {
    color: #a0aec0; 
}
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.3); 
}

#contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px; 
}
.captcha-group span { 
    margin-right: 0; 
    font-size: 1rem;
    color: var(--text-light-color); 
}
.captcha-group input[type="text"] { 
    width: 100px !important; 
    flex-grow: 0; 
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--white-bg);
    padding: 14px 30px; 
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 700; 
    letter-spacing: 0.5px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block; 
    margin: 20px auto 0; 
    text-transform: uppercase; 
}
.btn-submit:hover {
    background-color: var(--secondary-color); 
    transform: translateY(-2px); 
}

.contact-info {
    text-align: center;
    margin-top: 40px; 
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--heading-color); 
    color: #d9dee3; 
    text-align: center;
    padding: 30px 0; 
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    html { font-size: 15px; } 

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: var(--white-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    .nav-links.active { 
        display: flex;
    }
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px; 
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a::after { 
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-section {
        min-height: 50vh;
        padding: 80px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.15rem;
    }

    h2 { font-size: 1.9rem; margin-bottom: 40px; }
    h2::after { width: 60px; }

    .about-content, .what-we-do-flex { 
        flex-direction: column;
        gap: 30px;
    }
    
    .mission-text {
        flex-basis: 100%; 
    }
    .mission-image {
        flex-basis: 100%; 
        max-width: 100%; 
    }
     .mission-text ul li {
        font-size: 1.15rem; 
        margin-bottom: 15px;
        padding-left: 22px; 
    }
    .mission-text ul li::before {
        font-size: 1.2em;
        top: 0.1em;
        left: -12px; 
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }

    .solutions-image {
        margin-top: 20px;
    }

    .about-images img, .about-images img:first-child { /* Ensure consistent height for about images on smaller screens */
        height: 200px; /* Adjust as needed */
        object-fit: cover;
    }


    .captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .captcha-group span { margin-bottom: 5px; }
    .captcha-group input[type="text"] { width: 100% !important; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    h2 { font-size: 1.7rem; }
    .section-padding { padding: 50px 0; }
    .logo img { height: 40px; }

    .products-grid {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    .mission-text ul li {
        font-size: 1.05rem; 
        padding-left: 20px; 
    }
    .mission-text ul li::before {
        left: -10px; 
    }

    .about-images img, .about-images img:first-child {
        height: 180px; /* Adjust for very small screens */
    }
}