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

/* Body and Container */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('image/industrial-factory.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.container, .contact-container {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: teal;
    padding: 10px;
    color: white;
}

.navbar .logo img {
    height: auto;
    max-height: 80px; /* Ensure the logo height fits within the navbar */
    width: auto;
    display: block;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
}

.navbar .nav-links a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #ffd700;
}

.navbar .nav-links a.active {
    font-weight: bold;
}

/* Contact Container */
.contact-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
    margin: 50px auto;
}

.contact-container h1 {
    color: teal;
    margin-bottom: 20px;
}

.contact-container p {
    margin-bottom: 40px;
}

.contact-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    margin-bottom: 20px;
}

.icon-text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon-text img {
    margin-right: 10px;
    height: 24px;
    width: 24px;
}

.contact-info h2 {
    color: teal;
}

.contact-right {
    background: white;
    padding: 20px;
    border-radius: 10px;
    color: black;
}

.contact-right .form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
}

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

.contact-right form input,
.contact-right form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-right form textarea {
    height: 100px;
}

.contact-right form button.send-btn {
    padding: 10px;
    background-color: teal;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.contact-right form button.send-btn:hover {
    background-color: #004d40;
}

/* Footer */
footer {
    background-color: teal;
    color: white;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    box-sizing: border-box;
}

.footer-segment {
    flex: 1;
    padding: 10px;
}

.footer-segment h4 {
    border-bottom: 1px solid white;
    padding-bottom: 10px;
}

.footer-segment ul {
    list-style: none;
    padding: 0;
}

.footer-segment ul li {
    margin: 5px 0;
}

.footer-segment form {
    display: flex;
    flex-direction: column;
}

.footer-segment form textarea,
.footer-segment form input {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
}

.footer-segment form button {
    padding: 10px;
    background-color: white;
    color: teal;
    border: none;
    cursor: pointer;
}

.social-links a {
    margin: 0 5px;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar, .main-content {
        width: 100%;
    }

    .product-block {
        width: calc(100% - 15px);
    }

    footer {
        flex-direction: column;
    }
}
