/*************************** ***************************/


/* Prevent overflow for all elements */
* {
    box-sizing: border-box; /* Include padding and border in width */
    max-width: 100%; /* Prevent elements from exceeding the viewport width */
    overflow-x: hidden; /* Hide horizontal overflow */
}

.main_section{
    padding-top: 60px;
    
}

/* For the large navigation bar */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
    max-height: 15vh;
    padding: 10px 20px;
    position: fixed; /* Fixed at the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease; /* Smooth transition */
    left: 0; /* Align to the left edge */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Reset padding to avoid gaps */
    box-sizing: border-box; /* Include padding and border in width */
    overflow: visible; /* Allow dropdown menus to be visible */
}

.nav:hover {
    background-color: rgba(47, 141, 119, 1); /* Fully opaque background on hover */
}
/******************************************************added to fix  isuue isseu*********************************************/

.logo_div {
    display: flex;
    align-items: center;
}

.logo {
    height: 100px; /* Adjust the height as needed */
}

.menu_div {
    display: flex;
    align-items: center;
    overflow: visible; /* Allow dropdown menus to be visible */
}

.menu_div ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible; /* Allow dropdown menus to be visible */
    /*white-space: nowrap;
    margin-LEFT: 40VW; /* Prevent text wrapping */
}

.menu_div ul li {
    margin: 0 15px;
    overflow: visible; /* Allow dropdown menus to be visible */
}

.menu_div ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: black ,3px;
    overflow: visible; /* Allow dropdown menus to be visible */
            /*/*/
         /*Handle overflow */

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Adds "..." for overflow text */
}

.menu_div ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Light grey background on hover */

}


/************************************************************************************end of added to fix  isuue isseu*********************************************/
/* For the small navigation bar */
/*.nav_small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
    /*padding: 10px 20px;
    position: fixed; /* Fixed at the top */
    /*top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease; /* Smooth transition */
    /*left: 0; /* Align to the left edge */
    /*/*margin: 0; /* Remove any default margin */
    /*padding: 0; /* Reset padding to avoid gaps */
    /*box-sizing: border-box; /* Include padding and border in width */
/*}

.nav_small:hover {
    background-color: rgba(47, 141, 119, 1); /* Fully opaque background on hover */
/*}

.logo_div {
    display: flex;
    align-items: center;
}

.logo {
    height: 100px; /* Adjust the height as needed */
/*}

.menu_div {
    display: flex;
    align-items: center;
    overflow: visible; /* Allow dropdown menus to be visible */
/*}

.menu_div ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible; /* Allow dropdown menus to be visible */
    /*white-space: nowrap;
    margin-LEFT: 40VW; /* Prevent text wrapping */
/*}

.menu_div ul li {
    margin: 0 15px;
    overflow: visible; /* Allow dropdown menus to be visible */
/*}

/*.menu_div ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: black ,3px;
    overflow: visible; /* Allow dropdown menus to be visible */
            /*/*/
        /* Handle overflow */

        /*white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Adds "..." for overflow text */
/*}

.menu_div ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Light grey background on hover */

/*}
/*navigation big  bar end*/

/********************************************************************************navigation small bar start*/
/* Base styling for the nav bar */
/*.nav_small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
    /*padding: 10px 20px;
    position: fixed; /* Fixed at the top */
    /*top: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    max-width: 1024px;
    overflow: visible;
}

.logo_div_small {
    display: flex;
    align-items: center;
}

/* Styling the Menu button container */
/*.menu_btn_small {
    position: relative;
    cursor: pointer;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 1px solid white;
    border-radius: 5px;
    user-select: none;
    -webkit-user-select: none;
    margin-right: 100px;
    overflow: visible;
}

/* Initially hide the dropdown menu */
/*.dropdown_menu_small {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(47, 141, 119, 0.9);
    padding: 10px 0;
    border-radius: 5px;
    min-width: 150px;
     /* Ensure it appears above other elements */
    /*/*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-right: 1px;
    margin-left: 30px;
}

.dropdown_menu_small li {
    list-style: none;
    margin: 0;
}

.dropdown_menu_small li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown_menu_small li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* On hover, display the dropdown menu (beneficial for devices that support hover) */
/*.menu_btn_small:hover .dropdown_menu_small {
    display: block;
}
/*************************************************nav small safari start***********************************/
.nav_small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
    padding: 10px 20px;
    position: fixed; /* Fixed at the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    max-width: 1024px;
    overflow: hidden;
  }
  .nav_small:hover {
    background-color: rgba(47, 141, 119, 1); /* Fully opaque background on hover */
  }
  
  .logo_div_small {
    display: flex;
    align-items: center;
    /* Push logo to the left */
  }
  
  /* Menu Button Styling */
  .menu_btn_small {
    position: relative;
    cursor: pointer;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 1px solid white;
    border-radius: 5px;
    -webkit-user-select: none;
    user-select: none;
    z-index: 1000;
    background-color: rgba(47, 141, 119, 0.9);
    margin-right: 40px; /* Add margin to the right */
    overflow: visible;
    margin-left:10vw;
  }
  
  /* Dropdown Menu Styling */
  .dropdown_menu_small {
    /* Remove display: none */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(47, 141, 119, 0.9);
    padding: 10px 0;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
  }
  /***safari after after ****/
  .dropdown_menu_small li {
    list-style: none;
    margin: 0;
  }
  
  .dropdown_menu_small li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .dropdown_menu_small li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
  }
  /*safari after after end*/
  
  /* Hover/Focus States */
  .menu_btn_small:hover ,.menu_btn_small:active .dropdown_menu_small {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10000000;
  }
  
/*********************************************************************nav small safari end***************************************/  

/* Media query: Only display this nav for screens below 1024px. */
@media (min-width: 800px) {
    .nav_small {
        display: none;
        
    }
}

/*nav small end*/


.projects_title h2{
    color:black;
    font-size: 30px;
    font-weight: bold;
    margin-top: 100px;
    margin-left: 10%;
    font-family: 'Roboto', sans-serif;
    
}


.projects {
    background-color: #f9f9f9; /* Light grey background */
    padding: 20px;
    display:grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns layout */
    grid-gap: 10px; /* Space between items */
    
    
}

.projects_title {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 20px;
    background-color:ligh ;
    width: 70%;
    margin-left: 15%;
    height: 40px;
    

}

.project_one, .project_two, .project_three ,.project_four, .project_five, .project_six {
    background-color: #ffffff; /* White background */
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    display: flex;
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 90%;
    border: #2a8b7a 2px solid; /* Green border */
}

.project_one:hover, .project_two:hover, .project_three:hover ,.project_four:hover, .project_five:hover, .project_six:hover {
    background-color: #f0f0f0; /* Light grey background on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect on hover */
}

.project_one img, .project_two img, .project_three img ,.project_four img, .project_five img, .project_six img {
    height: 200px; /* Adjust the image height as needed */
    width: 500px;
    height:300px;
    margin-right: 20px;
    border-radius: 10px; /* Rounded corners for images */
}

.project_one_text, .project_two_text, .project_three_text ,.project_four_text, .project_five_text, .project_six_text {
    flex: 1;
    font-size: 18px;
}

.project_one_text ul, .project_two_text ul, .project_three_text ul ,.project_four_text ul, .project_five_text ul, .project_six_text ul {
    list-style-type: none; /* Remove list bullets */
    padding: 0;
    margin: 0;
}

.project_one_text li, .project_two_text li, .project_three_text li ,.project_four_text li, .project_five_text li, .project_six_text li {
    margin-bottom: 5px;
    list-style-type: none;
}

/*clients */

.clients_title {
    text-align: center;
    margin-bottom: 10px;
    background-color: #2a8b7a ;
    width: 80%;
    margin-left: 10%;
    
}
.clients_title h2{
    color:black;
    font-size: 30px;
    font-weight: bold;
    margin-top: 100px;
    margin-left: 10%;
    font-family: 'Roboto', sans-serif;
}
.hr{
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 10px;
    background-color: #2a8b7a;

}
.clients_grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid  #2a8b7a; /* Light border */
    border-radius: 10px; /* Rounded corners */
}

.client_one, .client_two, .client_three, .client_four, .client_five, .client_six {
    background-color: #ffffff; /* White background */
    padding: 15px;
    margin: 10px 0;
    
    
    display: flex;
    flex-direction: column;
    align-items: center;
}
.client_one img, .client_two img, .client_three img, .client_four img, .client_five img, .client_six img {
    height: 150px; /* Adjust the image height as needed */
    width: auto;
    margin-right: 20px;
    border-radius: 5px; /* Rounded corners for images */
}

.client_one p, .client_two p, .client_three p, .client_four p, .client_five p, .client_six p {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
}

/* footer */
.footer {
    background-color: #2a8b7a; /* Green background color */
    color: white; /* White text color */
    padding: 20px; /* Padding around the text */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space out the items */
    align-items: center; /* Center items vertically */
    font-family: Arial, sans-serif; /* Font family */
    width: 100%; /* Ensure the footer spans the full width */
    box-sizing: border-box; /* Include padding and border in width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjust padding for better spacing */
}

.footer h3 {
    margin: 0; /* Remove default margin */
    font-size: 16px; /* Font size */
}

.footer .left {
    flex: 1; /* Take up remaining space */
}

.footer .right {
    text-align: right; /* Align text to the right */
    margin-bottom: 10px;
    margin-top:10px ;

}
.footer.right .h3{
    margin-bottom: 5px;
} 
/*footer end*/

/* Tablet Mode (max-width: 768px) */
@media screen and (max-width: 800px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .nav_small {
     overflow: visible;
     display: flex;/* Hide the dropdown menu by default */
    }
    .nav_small:hover .dropdown_menu_small {
        display: block; /* Show the dropdown menu on hover */
    }
    
    .nav_small {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        width: 100vw;
        padding: 5px 0px;
        height: 60px;
        margin-right: 0%;
    }
    .dropdown_menu_small{
        display: none; /* Hidden by default */
        position: absolute;
        right: 0;
        top: 100%;
        background-color: rgba(47, 141, 119, 0.9);
        padding: 10px 0;
        border-radius: 5px;
        min-width: 150px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .main_section {
        width: 100%;
        padding: 5px;
        margin-top: 60px;
    }

   

    .projects_title {
        width: 95%;
        margin: 10px auto;
      
    }

    .projects_title h2 {
        font-size: 24px;
        margin: 5px 0;
    }

    .projects {
        width: 100%;
        padding: 5px;
    }

    .project_one, 
    .project_two, 
    .project_three,
    .project_four,
    .project_five,
    .project_six {

        width: 300px;
        margin: 10px auto;
        padding: 10px;
    }

    .project_one img, 
    .project_two img, 
    .project_three img,
    .project_four img,
    .project_five img,
    .project_six
    {
        width: 150px;
        height: auto;
        margin: 5px 0;
    }

    .hr {
        width: 95%;
        margin: 10px auto;
    }

    .clients_title {
        width: 95%;
        margin: 10px auto;
    }

    .clients_grid {
        width: 95%;
        margin: 0px auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: center;
    }

    .client_one, 
    .client_two, 
    .client_three, 
    .client_four, 
    .client_five, 
    .client_six {
        width: 100%;
        padding: 10px;
    }

    .client_one img, 
    .client_two img, 
    .client_three img, 
    .client_four img, 
    .client_five img, 
    .client_six img {
        width: 95%;
        height: auto;
    }
}

/* Phone Mode (max-width: 426px) */
@media screen and (max-width: 426px) {
    *{
        overflow: visible;
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .main_section {
        width: 100%;
        padding: 2px;
        margin-top: 50px;
    }

    .nav_small {
        width: 100vw;
        display: flex;
        height: 30px;
        margin-bottom: 10px;
    }

    .logo {
        height: 40px;
    }

    .projects_title {
        width: 98%;
        margin: 15px auto;
        height: 90px;
        margin-top: 110px;
    }

    .projects_title h2 {
        font-size: 20px;
        margin: 5px ;
    }

    .projects {
        width: 100%;
        padding: 2px;
    }

    .project_one, 
    .project_two, 
    .project_three,
    .project_four,
    .project_five,
    .project_six {
        width: 98%;
        margin: 5px auto;
        padding: 5px;
    }

    .project_one img, 
    .project_two img, 
    .project_three img,
    .project_four img,
    .project_five img,
    .project_six img {
        width: 98%;
        height: auto;
        margin: 5px 0;
    }

    .hr {
        width: 98%;
        margin: 5px auto;
    }

    .clients_title {
        width: 98%;
        margin: 5px auto;
    }

    .clients_grid {
        width: 98%;
        margin: 5px auto;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .client_one, 
    .client_two, 
    .client_three, 
    .client_four, 
    .client_five, 
    .client_six {
        width: 100%;
        padding: 5px;
    }

    .client_one img, 
    .client_two img, 
    .client_three img, 
    .client_four img, 
    .client_five img, 
    .client_six img {
        width: 98%;
        height: auto;
    }

    .footer {
        width: 100%;
        padding: 5px;
        height: auto;
        min-height: 60px;
    }

    .footer h3 {
        font-size: 12px;
        margin: 2px 0;
    }

    .logo_div_small {
        height: 5px;
        width: auto;
    }
}

/* Tablet Mode (max-width: 768px) */
@media screen and (max-width: 800px) {
    /*.projects{
        max-width: 760px;
    }*/
    .nav_small {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
        padding: 10px 20px;
        position: fixed; /* Fixed at the top */
        top: 0;
        width: 100%;
        z-index: 1000;
        height: 90px;
        
    }
    * {
        box-sizing: border-box; /* Include padding and border in width */
        max-width: 100%; /* Prevent elements from exceeding the viewport width */
        overflow-x: hidden; /* Hide horizontal overflow */
    }
    .main_section {
        padding: 10px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .nav {
        display: none; /* Hide the large nav bar */
    }

    .nav_small {
        display: flex; /* Show the small nav bar */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px; /* Adjust padding for smaller screens */
    }

    .projects_title {
        text-align: center;
        margin: 20px auto;
        font-size: 20px;
        width: 95%;
        margin-top: 100px;
    }

    .projects {
        padding: 0px;
        margin: 0%;
        display:grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns layout */
        grid-gap: 2px; /* Space between items */
        
        
    
    }

    .project_one, .project_two, .project_three, .project_four, .project_five, .project_six {
        flex-direction: column; /* Stack content vertically */
        align-items: center;
        padding: 15px;
        margin: 15px auto;
        width: 300px;
        border-radius: 15px; /* Rounded corners */
        border: 2px solid #2a8b7a; /* Green border */
    }

    .project_one img, .project_two img, .project_three img , .project_four img, .project_five img, .project_six img {
        width: 300px; /* Make images responsive */
        
       
        margin-bottom: 5px;
    }
    .project_six img{
        height: 200px;
        margin: 0%;
    }
    .hr{
        width: 650px;
    }

    .clients_title {
        text-align: center;
        margin: 0px auto;
        font-size: 10px;
        width: 700px; /* Use percentage-based width */
        max-width: 700px;
        padding: 10px;
        
        
    }
    .clients_title h2 {
        font-size: 20px; /* Adjust font size for tablets */
        margin: 5px 0;
    }

    .clients_grid {
        display:grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns layout */
        grid-gap: 10px; /* Space between items */
        
        width: calc(100% - 30px); /* Ensure it fits within the viewport */
        margin: 5px auto;
        box-sizing: border-box; /* Include padding and border in width */
        border: #2a8b7a 2px solid; /* Green border */
    }

    .client_one, .client_two, .client_three, .client_four, .client_five, .client_six {
        width: 300px; /* Full width for each client card */
        padding: 5px;
        
    }

    .client_one img, .client_two img, .client_three img, .client_four img, .client_five img, .client_six img {
        width: 200px; /* Make images responsive */
        height: auto;
    }

    .footer {
        flex-direction: column; /* Stack footer items vertically */
        text-align: center;
        padding: 15px;
        width: 100%; /* Ensure it spans the viewport width */
        box-sizing: border-box; /* Include padding in width */
    }

    .footer h3 {
        font-size: 14px; /* Adjust font size for tablets */
        margin: 5px 0;
    }
}

/* Phone Mode (max-width: 426px) */
@media screen and (max-width: 426px) {
    .p , h2, h3 {
        font-size: 8px; /* Adjust font size for phones */
    }
    .clients_title h2{
        font-size: 10px; /* Adjust font size for phones */
    }
    .main_section {
        padding: 1px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .nav_small {
        display: flex; /* Ensure the small nav bar is visible */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0px; /* Adjust padding for smaller screens */
    }
    .menu_btn_small{
        overflow: visible;
        left: 10%;
    }
   

    .projects_title {
        text-align: center;
        margin: 10px auto;
        font-size: 14px;
        width: 90%;
        margin-top: 110px;
    }

    .projects {
        padding: 10px;
        display: inline;
        
    }

    .project_one, .project_two, .project_three , .project_four, .project_five, .project_six {
        flex-direction: column; /* Stack content vertically */
        align-items: center;
        padding: 0px;
        margin: 10px auto;
        width: 90%;
         flex-direction: column; /* Stack content vertically */
         align-items: center;
         padding: 15px;
         margin: 15px auto;
         width: 400px;
         border-color: #2a8b7a;
    }

    .project_one img, .project_two img, .project_three img, .project_four img, .project_five img, .project_six img {
        width: 300px,; /* Make images responsive */
        height: auto;
        margin-bottom: 10px;
    }
    .clients_title{
        display: flex;
        max-width: 400px;

    }
    .clients_title h2 {
        text-align: center;
        margin: 10px auto;
        font-size: 18px;
        width: 90%;
    }

    .clients_grid {
        grid-template-columns: 1fr; /* Single column layout */
        grid-gap: 10px;
        width: 400px; /* Ensure it fits within the viewport */
        margin: 10px auto;
    }

    .client_one, .client_two, .client_three, .client_four, .client_five, .client_six {
        width: 400px; /* Full width for each client card */
        padding: 10px;
        height :200px;
    }
    .client_three p{
        margin:15px;
        height: 35px;


    } 
    .client_four p{
        margin:15px;
        height: 36px;
    }

    .client_one img, .client_two img, .client_three img, .client_four img, .client_five img, .client_six img {
        width: 300px; /* Make images responsive */
        height:  80px,auto;

    }

    .footer {
        flex-direction: column; /* Stack footer items vertically */
        text-align: center;
        padding: 10px; /* Adjust padding for smaller screens */
        height: 100px;
    }

    .footer h3 {
        font-size: 12px; /* Adjust font size for phones */
        margin: 5px 0;
    }

    .logo {
        height: 5px; /* Reduce the height of the logo */
        width: auto; /* Maintain aspect ratio */
    }

    .logo_div {
        margin-left: 5px; /* Adjust margin for better alignment */
    }
}

/* Remove the universal overflow setting for larger screens */
@media (min-width: 1024px) {
    * {
        overflow: visible;
    }
    
    body {
        overflow-x: hidden; /* Keep horizontal scroll prevention on body */
    }

}

/* Update dropdown menu styles */
.menu_btn_small {
    position: relative;
    cursor: pointer;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 1px solid white;
    border-radius: 5px;
    -webkit-user-select: none;
    user-select: none;
    z-index: 1000;
    background-color: rgba(47, 141, 119, 0.9);
    overflow: visible;
}

.dropdown_menu_small {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(47, 141, 119, 0.9);
    padding: 10px 0;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.dropdown_menu_small li {
    list-style: none;
    margin: 0;
}

.dropdown_menu_small li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown_menu_small li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Hover/Focus States */
.menu_btn_small:hover .dropdown_menu_small,
.menu_btn_small:active .dropdown_menu_small {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10000000;
}

@media screen and (max-width: 800px) {
    .nav_small {
        overflow: visible;
        display: flex;
    }
    
    .dropdown_menu_small {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 100%;
        background-color: rgba(47, 141, 119, 0.9);
        padding: 10px 0;
        border-radius: 5px;
        min-width: 150px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: all 0.3s ease;
        -webkit-transition: all 0.3s ease;
    }

    /* Ensure the dropdown stays open on mobile */
    .menu_btn_small:hover .dropdown_menu_small,
    .menu_btn_small:active .dropdown_menu_small {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        z-index: 10000000;
    }
}

/* Add new media query for 700px */
@media screen and (max-width: 700px) {
    .projects {
        grid-template-columns: 1fr; /* Single column */
        width: 100%;
        padding: 10px;
    }

    .project_one, 
    .project_two, 
    .project_three,
    .project_four,
    .project_five,
    .project_six {
        width: 90%;
        margin: 10px auto;
    }

    .clients_grid {
        grid-template-columns: 1fr; /* Single column */
        width: 90%;
        margin: 10px auto;
    }

    .client_one, 
    .client_two, 
    .client_three, 
    .client_four, 
    .client_five, 
    .client_six {
        width: 100%;
        margin: 10px auto;
    }
}
