/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f8f8f8; /* Light gray for general background */
    color: #333;
    padding-top: 90px; /* Add padding to body to avoid content being hidden by the fixed header */
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 80%;
    max-width: 1480px; /* Set max-width to 1480px */
    margin: auto;
    overflow: hidden;
}

/* Header and Navigation */
header {
    background: #fff; /* White */
    color: #1A2E47; /* Dark Blue */
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-hidden {
    top: -120px; /* Move the header out of the screen */
}

header .container { /* Added this block to make it a flex container */
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Push logo and nav to opposite ends */
}

header a {
    color: #1A2E47; /* Dark Blue */
    text-decoration: none;
    text-transform: capitalize; /* Only capitalize the first letter of each word */
    padding: 10px; /* Apply padding in normal state */
    border-radius: 5px; /* Apply border-radius in normal state */
    transition: background-color 0.3s, color 0.3s; /* Add transition for smooth effect */
    font-family: 'Roboto', sans-serif; /* Explicitly set font */
    font-weight: bold; /* Make the text bold */
    font-size: 1.1rem; /* Slightly increase font size */
}

header .logo {
    /* Removed float: left */
}

.navbar-logo {
    height: 40px; /* Adjust as needed */
    vertical-align: middle;
}

header ul {
    /* Removed float: right */
    margin: 0;
    padding: 0;
    list-style: none;
}

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

header ul li a:hover {
    background-color: #1A2E47; /* Dark Blue */
    color: #fff;
}

/* Hero Section */
#hero {
    padding: 0;
    text-align: left;
    color: #E0E6ED; /* Light Accent/Text */
    background: #1A2E47; /* Dark Blue */
}

.hero-layout-2 .hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-layout-2 .hero-image {
    flex: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.hero-layout-2 .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area, cropping if necessary */
    display: block; /* Removes extra space below the image */
}

.hero-layout-2 .hero-content {
    flex: 1;
    padding: 2rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}



#hero p {
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: #7FB3D5; /* Lighter Accent */
    color: #1A2E47; /* Dark Blue */
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 5px;
}

/* About Section */
#about {
    background: #fefefe; /* White */
    padding: 6rem 0; /* Triple top padding to 6rem */
}

.about-section .about-container {
    display: flex;
    align-items: flex-start; /* Align content to the top */
    justify-content: center;
    gap: 2rem;
}

.about-section .about-intro-text {
    flex: 1; /* Take up equal space */
    padding-right: 2rem; /* Add some spacing to the right of the text */
    text-align: left;
}

.about-section .about-intro-text h2 {
    font-size: 2rem; /* Reduced heading size to be smaller than hero section */
    margin-bottom: 1rem;
}

.about-section .about-intro-text p {
    font-size: 1.25rem; /* Even bigger paragraph text */
    line-height: 1.8; /* Improve readability */
}

.about-section .about-image {
    flex: 1; /* Take up equal space */
}

.about-section .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}


/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #f5f5f5; /* Very light gray */
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.services-intro {
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card {
    background: #1A2E47; /* Dark Blue */
    color: #E0E6ED; /* Light Accent/Text */
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
}

.service-card p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #7FB3D5; /* Lighter Accent */
    text-decoration: none;
    font-weight: bold;
}



/* Footer */
footer {
    background: #2c3e50; /* Dark blue-gray */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Contact Section on Home Page */
.contact-section-home {
    background: #fff; /* White */
    padding: 6rem 0;
    text-align: center;
}
.contact-section-home h2 {
    margin-bottom: 1rem;
}
.contact-section-home p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-section-home .contact-email {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
}
.contact-section-home .contact-email a {
    color: #1A2E47;
    text-decoration: none;
}
.contact-section-home .contact-email a:hover {
    text-decoration: underline;
}

/* Service Page Specific Styles */
.service-hero {
    background: #1A2E47; /* Dark Blue */
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.2rem;
    color: #E0E6ED;
}

.service-intro-section {
    background: #fefefe;
    padding: 6rem 0;
}

.service-intro-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-intro-text {
    flex: 1;
}

.service-intro-image {
    flex: 1;
}

.service-intro-image img {
    width: 100%;
    max-height: 400px; /* Limit height */
    object-fit: cover; /* Crop to fit container */
    border-radius: 5px;
}

#iot-intro .service-intro-image img {
    object-position: bottom;
}

.service-features-section {
    background: #f5f5f5;
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 3rem;
    color: #1A2E47; /* Dark Blue */
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-cta-section {
    background: #1A2E47;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.service-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-page-section {
    padding: 6rem 0;
    background: #fff;
}

.contact-page-container {
    /* No flex display needed for single column */
}

.contact-details-container.full-width {
    flex: none; /* Override flex: 1 */
    width: 100%;
    text-align: center; /* Center content in single column */
}

.contact-details-container p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-details-container i {
    margin-right: 10px;
    color: #1A2E47;
}

.map-placeholder img {
    width: 100%;
    max-width: 70%; /* Make image smaller */
    display: block; /* For margin auto to work */
    margin: 2rem auto 0 auto; /* Center the image with some top margin */
    border-radius: 5px;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}


/* Media Queries */
@media (max-width: 768px) {
    header .logo,
    header ul {
        float: none;
        text-align: center;
    }

    header ul {
        margin-top: 10px;
    }

    header li {
        display: block;
        padding: 10px 0;
    }

    .service-cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-layout-2 .hero-container {
        flex-direction: column;
    }

    .hero-layout-2 .hero-image {
        clip-path: none;
        width: 100%;
    }

    .about-section .about-container {
        flex-direction: column; /* Stack image and content */
    }

    .about-section .about-image {
        order: -1; /* Move image above content on small screens */
        margin-bottom: 1rem;
    }

    .service-intro-container, .contact-page-container {
        flex-direction: column;
    }

    .services-container {
        grid-template-columns: 1fr; /* Make services container single column */
    }
}

@media (max-width: 500px) {
    #hero h1, .service-hero h1 {
        font-size: 2rem;
    }

    #hero p, .service-hero p {
        font-size: 1rem;
    }

    .container {
        width: 95%;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #333;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-section-home {
        padding: 4rem 0;
    }

    .contact-section-home h2 {
        font-size: 1.8rem;
    }

    .contact-section-home p {
        font-size: 1rem;
    }

    .contact-section-home .contact-email {
        font-size: 1.1rem;
    }

    footer {
        padding: 0.5rem 0;
    }
}