/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    /* A modern, clean font */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background-color: #f9f9f9;
    color: #444;
}

.container {
    width: 90%;
    /* Increased width for a more spacious feel */
    margin: auto;
    overflow: hidden;

}

.team-container {
    margin: auto;
    overflow: hidden;

}
h1,
h2,
h3,
h4 {
    color: #222;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    color: #555;
}

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

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(80deg, rgba(87,78,228,1) 0%, rgba(9,121,30,1) 72%); 
    /* Accent color */
}

/* Header Styles */
header {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    /*  Fixed height for the header */
    display: flex;
    /* Use flexbox */
    align-items: center;
    /* Vertically center items */
    justify-content: space-between;
    /* Distribute space evenly */
    padding: 0 20px;
    /* Add horizontal padding for spacing */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 200px;
    margin-top: 10px;
}

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

header nav li {
    margin-left: 30px;
}

header nav a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease;
    /* Smooth transition */
}

header nav a:hover {
    color: #007bff;
}

#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    /* Overlay and background image */
    color: #fff;
    text-align: center;
    padding: 100px 0;
    min-height: 80vh; /* Ensure the hero section is full height of the viewport */
    position: relative; /* Make the hero element position context */
    overflow: hidden; /* Prevent any overflow */
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

#hero h1 {
    font-size: 4.5em;
    margin-top: 0;
    font-weight: 700;
    color: white;
}

#hero p {
    font-size: 1.6em;
    line-height: 1.8;
    color: #eeeeee;
    margin-bottom: 30px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
    opacity: 1;
}

.slide:not(:first-child) {
    display: none; /*Hide them by default*/
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(80deg, rgb(111, 103, 235) 0%, rgb(21, 182, 51) 72%);
    color: #fff;
    border: none;
}

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

.btn-secondary {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #ddd;
}

/* About Section */
#about {
    background: #fff;
}

/* New Styles for About Items */
.about-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.about-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;

    align-items: center;
    /* Vertically align image and text */
}

/* Alternate the order of the columns */
.about-item:nth-child(odd) {
    /* Odd items (1st, 3rd, etc.) */
    flex-direction: row;
    /* Image on the left, text on the right */
}

.about-item:nth-child(even) {
    /* Even items (2nd, 4th, etc.) */
    flex-direction: row-reverse;
    /* Image on the right, text on the left */
}

.about-item-left {
    width: 30%;
    /* Adjust as needed */
    padding: 10px;
    text-align: center;
}

.about-item-left img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
}

.about-item-right {
    width: 70%;
    /* Adjust as needed */
    padding: 10px;
}

.about-item-right h3 {
    font-size: 1.2em;
    /* Larger heading */
    font-weight: bold;
    /* Bolder heading */
    margin-bottom: 10px;
}

.about-item-right p {
    margin-bottom: 0;
    text-align: left;
}


.mission-vision {
    display: flex;
    justify-content: space-around;
    margin-top: 200px;
}

.mv-item {
    width: 45%;
    padding: 30px;
    background: #f4f4f4;
    text-align: center;
}

.mv-item h4 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.values {
    margin-top: 200px;
}

.values h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.why-choose-item img{
    width: 140px;
}

.value-card {
    width: 180px;
    /* Adjust card width as needed */
    height: 250px;
    /* Adjust card height as needed */
    margin: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.value-card img {
    /*New */
    width: 5em;
    height: 5em;
    margin-top: 50px;
    margin-bottom: 20px;
    object-fit: contain;
    /* Make sure images fit within the area */
}

.value-card h4 {
    font-size: 1.2em;
}


.philosophy {
    margin-top: 200px;
    text-align: center;
}

.philosophy h3{
    font-size: 1.5em;
}


.why-choose-us {
    margin-top: 200px;
}

.why-choose-us h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.why-choose-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.why-choose-item {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    background-size: 50%;
    /* Adjust as needed */
    background-repeat: no-repeat;
    background-position: center top;
    min-height: 300px;
    border: 1px solid rgb(83, 223, 27);
    border-style: dashed;
    /* Adjust to fit content */
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.why-choose-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.why-choose-item p {
    font-size: 1em;
    color: #555;
}


/* Team Section */
#team {
    background: #f9f9f9;
    text-align: center;
}

.team-intro {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

/* New Styles for Horizontal Scrolling */
.team-scroll-container {
    overflow: hidden;
    /* Hide overflow */
}


/*Team Style */
.team-imgs {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    width: fit-content;
    position: relative;
    animation: slideLogos 200s linear infinite;
    /* Adjusted speed */
}

.team-member {
    width: 250px;
    /* Adjust as needed */
    min-width: 250px;
    margin-right: 20px;
    /* Space between team members */
    text-align: center;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-expertise {
    font-style: italic;
    color: #777;
}


.team-imgs {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    width: fit-content;
    position: relative;
    animation: slideLogos 200s linear infinite;
    /* Adjusted speed */
}


/* Hide the scrollbar (optional) */
.team-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Services Section */
#services {
    background: #fff;
}

.services-intro {
    font-size: 1.2em;
    min-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    color: #555;
}

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

.service-item {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid black;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    /* Added this */
    width: 5em;
    height: 5em;
}

.service-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Project Tabs Styles */
.project-tabs {
    width: 90%;
    margin: 0 auto;
}

.project-tab-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    /* Center the tab buttons */
    margin-bottom: 20px;
    gap: 5px;
}


.project-tab-buttons li {
    margin: 0 15px;
    /* Increase the margin for more spacing */
}

.project-tab-buttons a {
    display: block;
    padding: 10px 25px;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    /* Make it look clickable */
}

.project-tab-buttons a.active {
    background: linear-gradient(80deg, rgb(111, 103, 235) 0%, rgb(21, 182, 51) 72%); 
    color: #fff;
}

.project-tab-buttons a:hover {
    background-color: #ddd;
}

.project-tab-buttons button {
    background: none;
    border: 1px solid #ddd;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    color: black;
    border-radius: 25px;
}

.project-tab-buttons button:disabled {
    color: #ccc;
    cursor: default;
}

.project-tab-content {
    /* Content will be dynamically added here */
}

.project-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Three projects per row */
    gap: 20px;
    padding: 20px;
}

/* Project Item Border */
.project-slide {
    border: 1px solid #ddd;
    /* Adjust the color and thickness as needed */
    border-radius: 8px;
    /* Optional: Rounded corners for the border */
    padding: 10px;
    /* Add some space between the border and content */
    box-sizing: border-box;
    /* Important: Include padding and border in width */
}

.project-slide img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-slide h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.project-slide p {
    font-size: 0.9em;
    color: #777;
    min-height: 70px;
    /* Adjust this value as needed */
    overflow: hidden;
    /* Hide any overflow */
}

/* Contact Section */
#contact {
    background: #fff;
    text-align: center;
}

.contact-intro {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

.contact-form {
    max-width: 600px; /* Initial max-width */
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.contact-form textarea {
    height: 200px; /* Fixed height for textarea */
    resize: none; /* Remove all resizing for textarea */
}




/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 0.8em;

}

/*Top footer section (logo,nav,social) */
.footer-top {
    background: #222;
    padding: 40px 0;
}

.footer-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    width: 250px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-nav li {
    margin: 0 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ddd;
}


.footer-social {
    text-align: right;
}

.footer-social p {
    margin: 5px 0;
    color: white;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ddd;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ddd;
}

.footer-social p i {
    color: white; /* Set the icon color to white */
}

/*Copyright footer section (the bar at the bottom of the footer) */
.footer-bottom {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 1em;
}

.footer-bottom p {
    color: #fff;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/*Details tag all projects list css */
.all-projects-list {
    margin-left: 20px;
    list-style-type: decimal;
    /* Use numbers for the list */
}

.all-projects-list li {
    margin-bottom: 10px;
    /* Add some spacing between list items */
}


.company-section {
    text-align: center;
    padding: 20px;
}
.company-slider-container {
    width: 80%;
    overflow: hidden;
    margin: auto;
    position: relative;
}
.company-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.company-section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}
.company-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(80deg, rgba(87,78,228,1) 0%, rgba(9,121,30,1) 72%); 
}
.company-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    min-width: 100%;
}
.company-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}
.company-slide img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}
.company-slider-dots {
    margin-top: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
}
.dot.active {
    background-color: #333;
}

@media (max-width: 768px) {
    .company-page {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .company-slide img {
        width: 80%;
        height: 80%;
    }
}