body {
    margin: 0; /* Remove default margin */
    font-family: "Montserrat", serif;
    font-style: normal;
    background-color: #c0ac98;
}

.mennu_main {
    position: relative;
    z-index: 10000;
}

.info_mess {
    display: flex;
    gap: 20px; /* Space between child elements */
    color: rgb(238, 238, 238);
    background-color: rgba(0, 0, 0, 0.673);
    width: 80%; /* Adjust width as needed */
    padding: 20px; /* Adds spacing inside the div */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    border-radius: 8px; /* Rounds the corners */
    font-family: "Montserrat", serif;
}

.contact {
    width: 50%;
    margin: auto;
}

.info {
    width: 50%;
}

.mess_thanks {
    font-size: 1.2em;
}

.companyname {
    background-color: #6b3b1e;
    border-radius: 10px;
    padding: 5px 3px;
}

.companyname:hover {
    background-color: transparent;
    transform: scale(1.1); /* Example: Slightly enlarges the element */
    transition: transform 2s, background-color 2s; /* Adds a smooth transition */
}

.baner_content {
    display: flex; 
    gap: 10px; 
    width: 100%; 
    text-align: center; 
    color: aliceblue;
    height: 90vh;
}
.wrapper::-webkit-scrollbar {
    display: none;
  }

  .wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh; /* Full height of the viewport */
    width: 100%; /* Ensures the wrapper takes full width */
    overflow: scroll; /* Hides scrollbars */
}

.content {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto multiple lines */
    justify-content: space-between; /* Distribute space evenly */
    width: 80%; /* Full width */
    margin: auto; /* Centers the container */
    gap: 20px; /* Space between items */
}

#project {
    flex: 1 1 calc(33.333% - 20px); /* Three items per row on larger screens */
    position: relative; /* Make the parent a positioning context */
    overflow: hidden;
    width: 350px; /* Fixed width */
    height: 250px; /* Fixed height */
    border-radius: 10px;
    box-sizing: border-box; /* Include padding and border in the element's total width/height */
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: forwards; /* Retain the final state of the animation */
}

/* Different animation styles */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0%);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0%);
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0%);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0%);
    }
}

.imgproject {
    width: 100%; /* Fill the container */
    height: 100%; /* Fill the container */
    object-fit: cover; /* Ensure image covers the entire container */
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 10px;
}

#projecttilted{
    font-size: 1.7em;
    font-weight: 600;
    cursor: pointer;
    animation: projecttilted 0.6s ease forwards; /* Applies the slide-up animation */
}

@keyframes projecttilted {
    from {
        transform: translateY(100%); /* Start from below */
    }
    to {
        transform: translateY(0%); /* End at its original position */
    }
}

#projectdetails{
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    cursor: pointer;
    animation: projecttilted 0.6s ease forwards; /* Applies the slide-down animation */
    border-radius: 10px;
    padding: 10px;
    text-shadow: 
            -1px -1px 0 rgb(0, 0, 0),  /* Top-left shadow */
            1px -1px 0 rgb(14, 14, 14),   /* Top-right shadow */
            -1px 1px 0 rgb(0, 0, 0),   /* Bottom-left shadow */
            1px 1px 0 rgb(0, 0, 0);    /* Bottom-right shadow */
}
#projectdetails:hover{
    background-color: #3b8252a6;
    
}

@keyframes projecttilted {
    from {
        transform: translateX(100%); /* Off the screen from top-left */
    }
    to {
        transform: translateY(0%); /* Fully visible at bottom-right */
    }
}

#project:hover #projecttilted{
    display: block;
}

#project:hover #projectdetails{
    display: block;
}

#projectname {
    width: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Ensure the text is visible on the image */
    text-align: center;
    padding: 5px; /* Optional: Add padding for readability */
    border-radius: 5px; /* Optional: Add border-radius for styling */
    line-height: 1.8em;
}



.imgproject:hover {
    border-color: #3b8252; /* Change border color on hover */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(145, 247, 12, 0.1);
}

.imgproject img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; /* Smooth zoom transition */
}

.imgproject img:hover {
    transform: scale(1.3); /* Zoom the image on hover */
}


.social, .scroll, .content {
    margin: auto;
}

.social {
    display: grid;
    gap: 10px;
}

.scroll {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 0.1px solid #ffffff89;
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

.scroll:hover {
    height: 50px;
    width: 80px;
    border-top-left-radius: 5%;
    border-bottom-left-radius: 5%;
    border-top-right-radius: 25%;
    border-bottom-right-radius: 25%;
    background-color: black;
    border: 0px;
}

.baner_footer {
    display: flex;
    width: 100%;
    color: aliceblue;
}

.content_kn {
    height: 400px;
    min-height: fit-content;
    background-color: black;
    color: aliceblue;
}

.footer_kn {
    height: 30px;
    background-color: rgb(255, 255, 255);
    color: rgb(9, 9, 9);
}

.footer_kn span {
    padding: 10px;
    text-align: center;
}

/* Hide the images by default */
.mySlides {
    display: none;
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers the image vertically */
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Ensures no overflow from the image */
    position: relative;
}
/* Image styles for fixing width and height */
.mySlides img {
    width: 100%; /* Ensures the image width fills the container */
    height: 100vh; /* Fixes the height relative to the viewport height */
    object-fit: cover; /* Ensures the image covers the container */
    animation: zoom 20s infinite;
    filter: blur(5px);
}
@keyframes zoom {
    from {
        transform: scale(1); /* Start at normal size */
    }
    to {
        transform: scale(1.3); /* Slightly zoom in */
    }
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    bottom: 3%;
    right: 5%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 3px 3px 3px 3px;
    user-select: none;
    gap: 10px;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(93, 93, 93, 0.8);
}

/* Caption text */
.textbaner {
    color: #f2f2f2;
    padding: 8px 12px;
    width: 50%;
    text-align: left; /* Centers text inside the container */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the element */
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 2px #000000;
}

.textheader{
    font-size: 4em;
    font-weight: 600;
    animation: slidetextheader 0.6s ease forwards;
    text-shadow: 0 0 5px #3b8252;
}

@keyframes slidetextheader {
    from {
        transform: translateX(30%); /* Off the screen from top-left */
    }
    to {
        transform: translateY(0%); /* Fully visible at bottom-right */
    }
}

.textcontent{
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 5%;
    animation: slidetextcontent 0.6s ease forwards; /* Applies the slide-down animation */
}

@keyframes slidetextcontent {
    from {
        transform: translateX(0%); /* Off the screen from top-left */
    }
    to {
        transform: translateY(-50%); /* Fully visible at bottom-right */
    }
}

.fa-fw{
    color: aliceblue;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text - adjust as needed */
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -70px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dotbaner {
    bottom: 3%;
    left: 5%;
    position: absolute;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
    top: 0;
    position: absolute;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
.mess_function{
    width: 80%;
    z-index: 100;
    position: relative;
    margin: 0 auto;
    margin-top: 2%;
    text-align: center;
    background-color: #ffd50066;
    border-radius: 10px;
    padding: 10px;
    animation: fadeOut 7s forwards
}

/* Keyframes for the fadeOut animation */
@keyframes fadeOut {
    0% {
        opacity: 1; /* Fully visible at the start */
    }
    100% {
        opacity: 0; /* Fully transparent at the end */
        display: none; /* Hide the element */
    }
}

.mess_function span{
    color: #000000;
}

.container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container .pagination {
    position: relative;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    border-radius: 2px;
    padding: 0px;
    border-radius: 5px;
  }
  .container .pagination li {
    list-style-type: none;
    display: inline-block;
  }
  .container .pagination li a {
    position: relative;
    padding: 20px 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
  }
  
  .container .pagination li.active a {
    background: #4c835d;
    border-radius: 5px;
  }
  .container .pagination li a:hover{
    cursor: pointer;
    background: #d3bfaa;
    color: #4c835d;
    text-shadow: none;
    border-radius: 5px;
  }

  .dropbtn {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10000;
    min-width: 160px;
  }
  
 .filterproject{
    width: 80%;
    z-index: 100;
    position: relative;
    display: block;
    margin: 0 auto; /* This centers the element horizontally */
    margin-top: 2%; 
 }
.dropdown {
    width: fit-content;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Change the background color of the dropdown button when the dropdown content is shown */
  .dropdown:hover .dropbtn {
    background-color: #81b692;
  }
  #page-number{
    cursor: pointer;
    display: flex;
    gap: 5px;
}
@media only screen and (max-width: 768px){

.info_mess{
    display:grid;
    width: 85%;
}
.contact{
    width: 100%;
}
.info{
    width: 100%;
}
.textbaner{
    width: 90%;
}
.prev{
    right: 9%;
}
.textcontent{
    margin-top: 10%;
}
.socialicon{
    display: none;
}

.wrapper{
    height: 80vh;
}
.container{
    position: absolute;
    left: 0%;
    top: 60%;
    font-size: 0.7em;
}
#page-number{
    display: contents;
    gap: 5px;
}
.container .pagination{
    display: grid;
    height: fit-content;
    text-align: center;
    padding: 40px 0px 40px 0px;
    gap: 43px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.container .pagination li a {
    cursor: pointer;
    position: relative;
    padding: 20px 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
  }
  .container .pagination li a:hover{
    cursor: pointer;
    background: #d3bfaa;
    text-shadow: none;
    border-radius: 10px;
  }
  #page-number li a:hover{
    background: #d3bfaa;
    text-shadow: none;
    border-radius: 10px;
    cursor: pointer;
  }
  .container .pagination li.active a {
    background: #4c835d;
    border-radius: 10px;
  }

  #project {
    flex: 1 1 100%; /* Full width on smaller screens */
    width: 100%; /* Override fixed width */
    height: auto; /* Adjust height based on content */
}


.imgproject {
    width: 100%; /* Ensure image resizes with the container */
    height: auto; /* Maintain aspect ratio */
}

}

@media only screen and (max-width: 1240px) and (min-width: 769px){

    #project {
        flex: 1 1 calc(50% - 20px); /* Three items per row on larger screens */
        width: 100%; /* Override fixed width */
        height: auto; /* Adjust height based on content */
    } 
    .container{
        position: absolute;
        left: 0%;
        top: 40%;
        font-size: 0.7em;
    
    }
    #page-number{
        cursor: pointer;
        display: contents;
        gap: 5px;
    }
    .container .pagination{
        display: grid;
        height: fit-content;
        text-align: center;
        padding: 40px 0px 40px 0px;
        gap: 43px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .container .pagination li a {
        position: relative;
        padding: 20px 25px;
        text-decoration: none;
        color: #fff;
        font-weight: 500;
      }
      .container .pagination li a:hover{
        background: #d3bfaa;
        text-shadow: none;
        border-radius: 10px;
      }
      .container .pagination li.active a {
        background: #4c835d;
        border-radius: 10px;
      }
      #page-number li a:hover{
        cursor: pointer;
        background: #d3bfaa;
        text-shadow: none;
        border-radius: 10px;
      }
      #page-number li a:active{
        cursor: pointer;
        background: #d3bfaa;
        text-shadow: none;
        border-radius: 10px;
      } 
}
