
*{
    padding: 0px;
    margin: 0px;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    opacity: 0;
    animation: fadeIn 2s forwards;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}



@keyframes fadeIn {
    to {
        opacity: 1;
    }
}




.navbar{
    background-color:white;
    font-family:Arial, Helvetica, sans-serif; 
    display:flex;
    align-items:center; 
    justify-content: space-between;  
    padding: 30px 65px;
}



.logo a{
    font-size: 35px; font-weight: 600; color: black;
}

.logo img{
    width: 160px;
}

li{
    list-style: none; display: inline-block; 
}

li a{
    color: black;
    font-size: 20px;  
    margin-right: 25px; 
    padding-bottom: 7px;
}

li a.active{
    border-bottom: 1.5px solid black;
}

.navbar button{
    background-color: transparent;
    border: 1px solid #323232; 
    padding: 10px; 
    width: 140px; 
    height: 60px;
    transition: 0.3s ease; font-size: 20px;
    cursor: pointer;
}

.navbar button:hover{
    background-color:#323232;
    color: white;
  } 

.footer {
    width: 100%;
    background-color: #282d32;
    color: white;
    text-align: left;
    padding-top: 3%;
    padding-bottom: 1%;
    margin-top: 5%;
  }





.servicestitle{
    margin: 100px 0 20px 110px;
    width: 50%;
   
}








/*Home page*/
.carousel-slide img{
    width: 100%;
    height:150%;
}

.carousel-container{
    width: 50%;
    margin: auto;
    position: relative;

}

.carousel-slide{
    display: flex;
    width: 100%;   
}



#prevBtn{
  position: absolute;  
  top: 45%;
  z-index:10;
  left: -45%;
  font-size: 30px;
  color: black;
  opacity: 0.5;
  cursor: pointer;
  padding: 10px;
  background-color: white;
  transition: 0.3s ease

}

#nextBtn{
    position: absolute;  
    top: 45%;
    z-index:10;
    right: -45%;
    font-size: 30px;
    color: black;
    opacity: 0.5;
    cursor: pointer;
    padding: 10px;
    background-color: white;
    transition: 0.3s ease
  }

  #prevBtn:hover{
    opacity: 1;
    
  
  }
  
  #nextBtn:hover{
    opacity: 1;
    
    }

.about {
    display: flex;
    align-items: center; /* Aligns text vertically with the image */
    margin: 300px 135px;
}

.about img {
    width: 47%;
    box-shadow: 50px 50px #9b9b9b;
}

.description {
    padding-left: 200px;
}

h1 {
font-size: 40px;
padding-bottom: 30px;
color: #323232;
}

p {
    font-size: 19px;
    padding-bottom: 50px;
    line-height: 1.6;
    color: #323232;
}





.window {
width: 100%;
overflow: hidden;
}

.carousel-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}



/*optimization*/


/*Projects*/
.projectstitle{
    margin: 100px 0 20px 85px;
    width: 80%;
   
}

/* Gallery Container */
.gallery {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    gap: 16px; /* Add consistent spacing between columns */
    margin: 5%;
}

/* Columns */
.column {
    flex: 1; /* Allow columns to grow and shrink */
    min-width: 300px; /* Minimum width for each column */
    max-width: calc(33.33% - 16px); /* Ensure 3 columns on larger screens */
    box-sizing: border-box; /* Include padding in width calculations */
}

/* Image Container */
.container {
    position: relative;
    width: 100%;
    margin-bottom: 16px; /* Consistent spacing between items */
    overflow: hidden; /* Ensure the zoomed image doesn't overflow */
 
}

/* Image Styling */
.image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, opacity 0.5s ease;
   
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent black */
   
}

/* Text Styling */
.text {
    color: white;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-transform: uppercase;
    font-weight: bold; /* Make text more prominent */
}

/* Hover Effects */
.container:hover .image {
    transform: scale(1.1); /* Zoom in effect */
}

.container:hover .overlay {
    opacity: 1; /* Fade in overlay */
}



/* Responsive Design for Mobile Screens */




/*services*/
.services{
    margin: 100px;
    align-items: center;
}

.service{
    width: 100%;
    display: flex;
    padding-bottom: 10%;
}

.servicetext{
    padding-left: 10%;
    padding-top: 5%;
    line-height: 1.6;
}

.service img{
    width: 600px;
}





/*profile*/

.abouttitle{
    display: flex;
    margin: 100px 0 20px 0%;
    width: 50%;
    
}
.profile {
    display: flex;
    gap: 50px; /* Space between text and image */
    margin: 100px auto; /* Center the container horizontally */
    max-width: 1200px; /* Limit the maximum width for better readability */
    padding: 0 20px; /* Add padding for smaller screens */
    
}

.profiletext {
    flex: 1; /* Allow text to take up remaining space */
    line-height: 1.6; /* Improve line spacing */
}

.profileimg {
    flex: 0 0 400px; /* Set a fixed width for the image container */
    max-width: 100%; /* Ensure it doesn't overflow on smaller screens */
    margin-left: 30px; /* Move the image slightly to the right */
    margin-top: 270px;
}

.profileimg img {
    width: 100%; /* Make the image responsive */
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}



/* Responsive Design for Smaller Screens */


/*font sizes*/




/*Contact*/
/* General styling */

/* Container for the contact section */
.contact-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}



/* QR Code image styling */
.qrcode {
    width: 300px;
    height: auto;
    margin-bottom:  50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Contact info text styling */
.contact-info p {
    font-size: 1.1rem;
    color: #555;
    margin: 10px 0;
}

/* Email link styling */
.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.titlecontact{
    padding-top: 40px;

}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo{
        padding-bottom: 16px;
    }
    
    li a {
        font-size: 16px;
        margin-right: 15px;
    }

    .navbar button{
        background-color: transparent;
        border: 1px solid darkslategray; 
        padding: 10px; 
        width: 120px; 
        height: 50px;
        transition: 0.5s ease; 
        font-size: 15px;
        cursor: pointer;
        
    }
    
    .carousel-container {
        width: 90%;
    }
    
    .about {
        flex-direction: column;
        margin: 100px 0;
    }
    
    .about img {
        width: 100%;
        margin-bottom: 100px;
    
    }
    
    .description {
        padding: 0 5%;
    }
    
    h1 {
        font-size: 40px;
    }
    
    p {
        font-size: 18px;
    }
    
    .title{
        margin: 100px 0 100px 150px;
    }
    
    
    #prevBtn{
        position: absolute;  
        top: 45%;
        z-index:10;
        left: -5%;
        font-size: 20px;
        color: black;
        opacity: 0.5;
        cursor: pointer;
        padding: 10px;
        background-color: white;
        transition: 0.5s ease
      
      }
      
    #nextBtn{
        position: absolute;  
        top: 45%;
        z-index:10;
        right: -5%;
        font-size: 20px;
        color: black;
        opacity: 0.5;
        cursor: pointer;
        padding: 10px;
        background-color: white;
        transition: 0.5s ease
    }


    .column {
        flex: 100%; /* Full width for each column on smaller screens */
        max-width: 100%; /* Ensure single column layout */
    }

    .text {
        font-size: 16px; /* Smaller text for mobile screens */
    }

    .gallery {
        margin: 2%; /* Reduce margin for smaller screens */
    }

    .overlay {
        position: absolute;
        top: 90px;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 1;
        transition: opacity 0.5s ease;
        background-color: transparent; /* Semi-transparent black */
        
    }
    .projectstitle{
        text-align: center;
        margin: 10%;
        
    }

    .servicestitle{
        text-align: center;
        justify-content: center;
        width: 100%;
        margin: 30px 0 0 0;
        
    }
    .service {
        display: inline;
        max-width: 100%;
        margin: 0;
    
        
       
    }

    .services {
        margin: 0;
        
    }

    .service img {
        flex: 0 0 auto; /* Reset fixed width for smaller screens */
        width: 100%; /* Limit image width on smaller screens */
    }

    .servicetext{
        text-align: center;
        justify-content: center;
        padding: 30px 0 0 0;
    }
    .service h1{
        font-size: 35px;
        margin: 0;
        text-align: center;
    }

    .service p{
        font-size: 18px;
        margin: 20px;
        text-align: center;
        
    }


    .profile {
        flex-direction: column; /* Stack text and image vertically */
        gap: 20px; /* Reduce space between text and image */
        margin: 50px auto; /* Reduce margin for smaller screens */
        padding: 0 10px; /* Adjust padding for smaller screens */
    }

    .abouttitle {
        margin: 50px 0 20px 0; /* Adjust margin for smaller screens */
        width: 100%; /* Full width for smaller screens */
        text-align: center; /* Center-align the title */
        justify-content: center;
    }

    .profiletext {
        flex: 1; /* Allow text to take up full width */
        text-align: center; /* Center-align the text */
    }

    .profileimg {
        flex: 0 0 auto; /* Allow the image container to shrink */
        max-width: 100%; /* Full width for smaller screens */
        margin-left: 0; /* Remove left margin */
        margin-top: 20px; /* Adjust top margin */
    }

    .profileimg img {
        width: 80%; /* Reduce image width for smaller screens */
        margin: 0 auto; /* Center the image */
        display: block; /* Ensure the image is centered */
    }

    .profileimg p {
        text-align: center; /* Center-align the caption */
        margin-top: 10px; /* Add space between image and caption */
    }

    .titlecontact{
        margin: 0;
    }


}
