/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
.header {
    background-color: #ffffff; /* White background for the header */
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Added padding for spacing */
}

.logo img {
    width: 300px; /* Keeps the logo proportional */
    height: 125px; /* Keeps height proportional */
}

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

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: #2e6da4; /* Dark blue color matching the logo gradient */
    text-decoration: none;
    font-weight: bold;
}

.nav ul li a:hover {
    color: #006080; /* Slightly darker blue on hover */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    overflow: auto; /* Enable scroll if needed */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content ul li {
    margin: 10px 0;
}

.modal-content ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.modal-content ul li a:hover {
    color: #007bff;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f7fa, #2e6da4); /* Light blue to dark blue gradient */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text color */
}

.hero h1 {
    font-size: 3rem;
}

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

.btn {
    background-color: #2e6da4; /* Dark blue button color */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn:hover {
    background-color: #1a4e6b; /* Slightly darker blue on hover */
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: #ffffff; /* White background */
    text-align: center;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.service {
    background-color: #e0f7fa; /* Light blue background */
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service i {
    font-size: 2rem;
    color: #2e6da4; /* Dark blue color for icons */
    margin-bottom: 10px;
}

/* About Section */
.about {
    background-color: #ffffff; /* White background */
    padding: 60px 0;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

.about .about-content {
    display: flex;
    align-items: flex-start; /* Aligns text to the top of the image */
    gap: 20px; /* Adjusted gap between the image and text */
    width: 100%;
}

.about .about-content img {
    max-width: 45%; /* Image takes less space to balance with text */
    height: auto;
    border-radius: 10px; /* Optional: Rounded corners for the image */
    display: block;
    margin-top: 100px;
}

.about .about-content .text-content {
    max-width: 55%; /* Limits text width */
}

.about .about-content h2 {
    font-size: 2.5rem;
    color: #333; /* Dark text color */
    margin-bottom: 20px; /* Adds space between heading and paragraph */
    text-align: center; /* Aligns heading to the left */
}

.about .about-content p {
    font-size: 1.1rem;
    color: #666; /* Slightly lighter text for contrast */
    line-height: 1.8;
    margin: 0; /* Removes default margin from the paragraph */
    text-align: left; /* Aligns text to the left */
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about .about-content {
        flex-direction: column; /* Stack text and image on smaller screens */
        text-align: center;
    }

    .about .about-content img,
    .about .about-content .text-content {
        max-width: 100%; /* Image and text take full width on small screens */
    }

    .about .about-content p {
        text-align: justify; /* Justifies text alignment for small screens */
    }
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #e0f7fa; /* Light blue background */
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #2e6da4; /* Border color matches the theme */
    border-radius: 5px;
}

.contact-form button {
    background-color: #2e6da4; /* Dark blue button color */
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #1a4e6b; /* Slightly darker blue on hover */
}

/* Engineering and Automation Section */
.engineering-automation {
    background-image: url('/VCIS/intelligent-buildings.png'); /* Path to the image */
    background-size: cover; /* Ensures the background covers the entire section */
    background-position: center; /* Centers the background image */
    padding: 60px 20px; /* Adjust padding for spacing */
    position: relative; /* Relative positioning for overlay */
    color: #fff; /* White text color for contrast */
    text-align: center; /* Center-align text */
    margin: 0 auto; /* Center the section within its container */
}

.engineering-automation::before {
    content: '';
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1; /* Places overlay behind text */
}

.engineering-automation-new .content-new {
    background-image: url('/VCIS/IBMS.jpg'); /* Path to the image */
    background-size: cover; /* Ensures the background covers the entire section */
    background-position: center; /* Centers the background image */
    z-index: 1; /* Default z-index if you don't want layering */
    padding: 100px 20px; /* Adjust padding as needed */
    color: #333; /* Darker text color */
    display: flex; /* Use flexbox to align content */
    justify-content: space-between; /* Align items to the left and right */
    align-items: center; /* Vertically centers the content */
}

/* Optional: Add any other unique styles for this section */
.engineering-automation-new {
    content: '';
    padding: 40px 2px; /* Adjust padding for spacing */
}

.left {
    text-align: left; /* Left-align the first heading */
    flex: 1;
    font-size: 1.5rem;
}

.right {
    text-align: right; /* Right-align the second heading */
    flex: 1;
    font-size: 1.5rem;
}

.content-new h2 {
    font-size: 1rem; /* Larger font size */
}

.hero-content h1 {
    font-size: 4rem; /* Larger font size */
    text-shadow: 2px 2px 5px rgba(0, 50, 0, 0.9); /* Adds a shadow behind the text */
}

.hero-content p {
    font-size: 1.5rem; /* Larger font size for the paragraph */
    text-shadow: 2px 2px 5px rgba(0, 50, 0, 0.9); /* Adds a shadow behind the text */
}

/* Footer */
.footer {
    background-color: #2e6da4; /* Dark blue footer background */
    color: #ffffff; /* White text color */
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
