/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    /* overflow: hidden; */ /* Removed as flexbox handles layout */
    padding: 0 20px;
    display: flex; /* Enable Flexbox */
    justify-content: space-between; /* Space out logo and nav */
    align-items: center; /* Vertically center items */
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    border-bottom: #77aaff 3px solid;
}

header .logo {
    /* float: left; */ /* Removed float */
    margin: 0;
    max-height: 50px; /* Adjust as needed */
    vertical-align: middle;
    border-radius: 50%;
    border: 2px solid white;
}

header nav {
    /* float: right; */ /* Removed float */
    /* margin-top: 10px; */ /* Removed fixed margin */
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* Hero Section */
.hero {
    min-height: 400px;
    background: #555 url('banner.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    color: #fff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5588dd;
}

/* Product & Service Grids */
h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: #77aaff;
    border-radius: 2px;
}

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

.product-item, .service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover, .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.product-item h3, .service-item h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #555;
}

.service-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.service-item h3 {
    color: #77aaff;
}

.service-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Contact Form */
.contact-section-wrapper {
    background: linear-gradient(to right, #77aaff, #5588dd);
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.contact-section-wrapper .container {
    flex-direction: column;
}

.contact-section-wrapper h2 {
    color: #fff;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #77aaff;
    box-shadow: 0 0 8px rgba(119, 170, 255, 0.4);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul li {
        display: block;
        padding: 5px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .product-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 30px;
    }
}
