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

html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
}

/* ----------------------------------------- Nav Bar ----------------------------------------- */
.banner {
    height: 135px;  
    width: 500px;  
    display: block;  
}

.navbar {
    background-color: #000;
    color: #fff;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    min-height: 120px;  
}

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

.nav-title {
    font-size: 40px;  
    font-weight: bold;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.nav-link {
    color: #dfdfdf;
    text-decoration: none;
    font-size: 22px; 
}

.nav-link:hover {
    color: white;
}
/* ----------------------------------------- Sections -----------------------------------------  */
.section {
    width: 100%;
    padding: 80px 10px;    
    text-align: center;
    position: relative;   
}

.section h1 {
    font-size: 4em;  
}

.section .content {
    max-width: 900px;
    margin: 0 auto;
}
#services .content {
    background-color: #e1e1e1;  
    border-radius: 35px;  
    padding: 10px;
}
/* --- New Section inside Section 1 with 4 blocks --- */
.service-blocks {
    display: flex;
    justify-content: space-between; 
    padding-bottom: 30px;
    margin-left: 15px;
    margin-right: 15px;
}

.block {
    background-color: #e7e7e7;  /* Same background color as Section 1 */
    width: 20%;  /* Each block takes up 22% of the width */
    padding: 10px; 
    margin: 5px;
    border-radius: 20px;  /* Rounded corners for the blocks */
    text-align: center;
    box-shadow:  7px -6px 6px rgba(0, 0, 0, 0.1); /* Adding a subtle shadow */
}

.block h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.block p {
    font-size: 1.2em;
    color: #333;
}


ul {
    list-style-type: none;
    padding: 0;
    font-size: 16px;
}
 
.section p, .section ul li {
    font-size: 1.5em;   
    margin: 10px 0;
}

ul li {
    font-size: 1.5em;  
}

/* Section with blurred background */
.blur-background {
    position: relative;
    background-color: transparent;  
    height: 100%;   
}

.blur-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Orig.png');  /* Background image URL */
    background-size: cover;
    background-position: center;
    filter: blur(8px);   
    z-index: -1;  
}

.blur-background .content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    z-index: 1; 
    font-size: 1.5em;   
}

.projects-heading {
    font-size: 50px; 
    text-decoration: underline;   
    color: #333;  
    text-shadow: 10px 1px 3px rgba(0, 0, 0, 0.3); 
    border: 3px dotted  #d3cabf;  /* Adds a grey outline */
    padding: 10px;  /* Adds space around the text */
    display: inline-block;  /* Makes the border only around the text */
}

.project-count {
    font-size: 2.5em;   
}

/* ----------------------------------------- carousel container ----------------------------------------- */
/* --- carousel container --- */
.carousel-container {
    padding-top: 50px;
    position: relative;
    width: 100%;
    height: 400px;  /* Fixed height for the carousel */ 
    margin-top: 50px;
    display: flex;
    justify-content: center;  /* Centers the carousel horizontally */
    align-items: center;  /* Centers the carousel vertically */
}

/* --- carousel images --- */
.carousel {
    display: flex;
    position: relative;
    width: 100%;  /* Full width */
    height: 100%;  /* Full height */
    justify-content: space-between;  /* Space the images equally */
}

.carousel-item {
    width: 20%;  /* 5 equal spots, so each image takes up 20% of the container width */
    height: 100%;  /* Ensures each image takes up the full height of the container */
    object-fit: cover;  /* Ensures the images fill the container without distortion */
    object-position: top;  /* Aligns the image to the top */
    opacity: 0.5;  /* Default opacity for images */
    transition: transform 0.5s ease, opacity 0.5s ease;  /* Smooth transition for scaling and opacity */
    position: relative;  /* Ensure images are stacked correctly */
    z-index: 1;  /* Make sure the images are stacked properly */
}

.carousel-item.active {
    opacity: 1;  /* The active image is fully visible */
    transform: scale(1.3);  /* The active image is 50px bigger than the others */
    z-index: 2;  /* Bring the active image to the front */
}

.carousel-img {
    width: 100%;  /* Stretch the images to fill the container */
    height: 100%;  /* Ensure the images fill the height of the container */
    object-fit: cover;  /* Ensures the image is cropped to fit */
}

/* --- arrows --- */
.arrow-left,
.arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}


.contact-details {
    background-color: #fff;
    padding: 20px;   
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;  
}

/* ----------------------------------------- Footer -----------------------------------------*/
.footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        min-height: 140px;
    }

    .nav-left {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .nav-title {
        font-size: 32px;
    }

    .nav-right {
        margin-top: 20px;
    }

    .nav-link {
        margin-left: 0;
        margin-top: 10px;
    }

    .section {
        padding: 150px 20px; /* Increased padding for better appearance */
    }
    .section h1 {
        font-size: 2em;
    }
    .section .content {
        font-size: 1.2em;
    }
}
