/* General Styles */
body {
    font-family: 'Roboto', sans-serif; /* Use the font you linked in HTML */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333; /* Dark gray text */
    background-color: #f9f9f9; /* Light gray background */
}

a {
    text-decoration: none;
    color: #007bff; /* Blue link color */
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #222; /* Darker gray for headings */
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky; /* Stick to the top on scroll */
    top: 0;
    z-index: 100; /* Ensure it stays above other content */
    width: 100%; /* Make the header span the entire width */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    /* max-width: 1200px; Remove this line */
    margin: 0 auto;
}

.logo img {
    width: 150px; /* Adjust logo size */
}

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

.nav-links li {
    margin-left: 2em;
}

.nav-links li a {
    color: #333;
    font-weight: 500;
}

.nav-links li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Hamburger Menu (Hidden by default on larger screens) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section Styles */
#hero {
    display: flex;
    align-items: center;
    padding: 4em 2em;
    background-color: #f0f8ff; /* Very light blue */
    /* Add a background image if desired: background: url('hero-bg.jpg') center/cover no-repeat; */
}

.hero-content {
    flex: 1;
    padding-right: 2em;
}

.hero-image {
    flex: 1;
    text-align: center; /* Center the image */
}

.hero-image img {
    max-width: 400px; /* Adjust image size */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Services Section Styles */
#services {
    padding: 4em 2em;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.service-item {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100px; /* Adjust icon size */
    margin: 0 auto 1em;
}

/* About Us Section Styles */
#about {
    display: flex;
    align-items: center;
    padding: 4em 2em;
    background-color: #fff;
}

.about-content {
    flex: 1;
    padding-right: 2em;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 400px; /* Adjust image size */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Projects Section Styles (Auto-Scrolling) */
#projects {
    padding: 4em 2em;
    text-align: center;
    background-color: #f0f0f0;
    overflow: hidden; /* Keeps content within bounds */
    position: relative; /* Needed for absolute positioning of pseudo-elements */
  }
  
  .projects-grid.auto-scroll {
    display: flex; /* Ensures items are in a row */
    overflow: hidden; /* Hides scrollbar initially */
    padding-bottom: 1em; /* For potential scrollbar visibility on hover */
    margin-top: 2em;
    gap: 2em;
    padding: 1em;
    width: fit-content; /* Important: Makes container only as wide as its content */
    animation: scroll 60s linear infinite; /* Animation for scrolling */
  }
  
  .project-item {
    background-color: #fff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto; /* Prevents items from shrinking, sets initial size */
    width: 350px; /* Fixed width for each item */
  }
  
  .project-item img {
    border-radius: 8px;
    margin-bottom: 1em;
    width: 100px; /* Adjust icon size */
    margin: 0 auto 1em;
  }
  
  /* Hide Scrollbar (Optional - Use with Caution) */
  .projects-grid.auto-scroll::-webkit-scrollbar {
      display: none; /* Chrome, Safari, and Opera */
  }
  
  .projects-grid.auto-scroll {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
  }
  
  /* Keyframes animation */
  @keyframes scroll {
    0% {
      transform: translateX(0); /* Start from the original position */
    }
    100% {
      transform: translateX(-100%); /* Scroll to the end */
    }
  }


/* Contact Section Styles */
#contact {
    padding: 4em 2em;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 2em;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 1em;
    display: flex;
    justify-content: center;
}

.footer-links li {
    margin: 0 1em;
}

.footer-links li a {
    color: #fff;
}

.footer-links li a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Adjustments for smaller screens */
    .nav-links {
        display: none; /* Hide navigation links */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 0;
        background-color: #fff;
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 1em 0;
    }

    .burger {
        display: block; /* Show hamburger menu */
    }

    #hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2em;
    }

    #about {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2em;
    }
}

/* Active class for Burger Menu */
.nav-active {
    transform: translateX(0%);
}

/* Toggle animation for burger menu */
.toggle .line1{
    transform: rotate(45deg) translate(5px,5px);
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(-45deg) translate(5px,-6px);
}