/* Project Page */
#work-section{
    position: relative;
    background-color: var(--primary-bg-color);
    padding-top: 71px;
}

/* Project Expansion Styles */
.project-one {
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.project-one.expanded {
    position: relative;
    z-index: 1000;
    background-color: var(--primary-bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-thumbnail:hover {
    transform: scale(1.02);
}

.project-content {
    display: none;
    margin-top: 20px;
}

.project-images {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    /* margin-bottom: 20px; */
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    /* padding: 10px 0; */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.project-images::-webkit-scrollbar {
    display: none;
}

.project-images .swiper-slide {
    width: 90%;
    max-width: 800px;
    margin: 0;
    flex: 0 0 auto;
}

.project-description {
    /* padding: 20px 0; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    min-width: auto;
}

.project-description > div{
    min-width: 200px;
}

.project-description h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.project-description p {
    margin: 5px 0;
    color: #ccc;
}

.close-btn {
    background: #359242;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #2a7a34;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #359242 !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    background: #359242 !important;
    opacity: 1 !important;
}

/* Fix for swiper container - make it wider for better visibility */
#work-section .swiper {
    z-index: 0;
    margin-top: 20px;
    width: 100% !important; /* Use full width instead of 70% */
    overflow: hidden !important; /* Critical: prevent overflow */
}


 

#work-section .tab {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: lighter;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--secondary-font-color);
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

#tab2{
    margin-top: 15px;
   
}

#work-section .tab:hover {
    background: transparent;
}
#work-section .tab.active {
    background-color: green !important;
    color: white;
    border-color: green;
    border-radius: 6px;
}
#work-section .tab-content {
    display: none;
}
#work-section .tab-content.active {
    display: block;
}


/* Swiper */
#work-section{
    padding-top: 71px;
}

#work-section .filter-btn, #team-section .buttons .filter-btn{
    font-family: var(--font-primary);
    font-size: clamp(12px, 2vw, 20px);
    font-weight: lighter;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--secondary-font-color);
    white-space: nowrap; /* Prevent word wrapping */
    transition: background-color 0.3s ease;
}

#work-section .filter-btn.active,
#team-section .buttons .filter-btn.active{
    color: white;
    border-bottom: 1px solid var(--secondary-font-color);   
}


#work-section .swiper-container{
    text-align: center;
    position: fixed;
    top: 90px;
    padding-inline: 20px;
    padding-top: 10px;
    padding-bottom: 20px;
    width: 100%;
    z-index: 10;
    background-color: black;
  
    
    @media screen and (min-width: 768px){
        max-width: 97%;
        position: relative;
        /* padding-top: 82px; */
        padding-inline: 0;
        margin-top: 0;
        display: flex;
        justify-content: center;
    }
}

#work-section #tab2 .swiper-container {
    top: 110px;
    display: flex;
    justify-content: center;
}

#work-section #tab3 .swiper-container {
    top: 110px;
    display: flex;
    justify-content: center;
}

#work-section #tab2 .data-tags{
    padding-top: 60px;
}

#work-section .swiper-container .swiper-wrapper{
    display: flex;
    gap: 16px;
    /* padding-left: 20px; */
}

#work-section .swiper-container .swiper-wrapper .swiper-slide{
    width: auto !important;  /* Make width auto */
    flex-shrink: 0;          /* Prevent shrinking */
}

#work-section .data-tags{
    display: flex;
    flex-wrap: wrap;
    /* gap: 16px; */
    justify-content: center;
    padding-top: 80px;
   

    @media screen and (min-width: 768px){
        margin-top: -40px;
        gap: clamp(16px, 5vw, 42px);
    }
}

#work-section #tab3 .data-tags{
    padding-top: 40px;
}


#work-section .tag{
    cursor: default;
    transition: opacity 0.3s ease;
    color: #FAFAFA;
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
    margin-top:10px;
    height: 90%;
    overflow-y: hidden;
}

#work-section .tag + .tag{
    /* padding-top: 32px; */

    @media screen and (min-width: 768px){
        padding-top: 0;
    }
}

#work-section .tag:last-child{
    padding-top: 11px;
}

#work-section .tag .project-info{
    display: flex; /* To align span and h3 on the same line */
    align-items: center; /* Vertically align content */
    max-width: 300px; /* Set the width constraint */
    overflow: hidden; /* Ensure no overflowing content */
    white-space: nowrap; /* Prevent wrapping */

}

@media screen and (min-width: 768px){
    .project-description > div{
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 318px;
    }
    
}

#work-section .tag .project-info h3{
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 100;
    display: inline;
    padding: 4px;
    margin: 0; /* Remove default margin */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    white-space: nowrap; /* Prevent wrapping */
    flex: 1; /* Allow the h3 to take up remaining space */
    cursor: grab; /* Add grab cursor for draggable behavior */
    user-select: none; /* Prevent text selection */
    margin-block: 5px;
}

#work-section .tag .project-info span{
    font-size: 20px;
    font-family: var(--font-primary);
    font-weight: lighter;
    display: inline-block;
}

#work-section .tag.hidden{
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Team Section */
#team-section{
    padding-top: 40px;
    
    @media (min-width: 992px) {
        padding-inline: 218px;
        padding-block: 110px;
    }

    @media (min-width: 992px) {
        .content-wrapper > div{
            padding-inline: 0;
        }
    
        .title, .buttons {
            padding-inline: 0;   
        }

        .content-wrapper{
            margin-top: 30px;
        }
    }
}

#team-section .fixed{
    position: fixed;
    top: clamp(40px, 3vw, 40px);
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-bg-color);
    padding-block: 20px;
    z-index: 100;

    @media (min-width: 992px){
        left: 0%;
        top: 65px;
        text-align: center;
        padding-bottom: 50px;
        padding-block: 16px;
        .buttons{
            display: flex;
            justify-content: center;
        }
    }
}

#team-section .title{
    font-family: var(--font-primary);
    font-size: clamp(24px, 3vw, 48px);
    font-weight: 100;
    color: #359242;
    padding-block: 16px;
    text-align: center;

    @media screen and (min-width: 992px){
        padding-block: 24px;
    }
}

#team-section .swiper-container{
    padding: 0;
}

#team-section .content-wrapper{
    position: relative;
    top: 80px;

    @media screen and (min-width: 992px){
        top: 80px;
    }
}

#team-section .buttons{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* Enable horizontal scrolling */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE */
    gap: 16px;

}

#team-section .buttons .filter-btn{
    color: #CACACA;
    font-size: clamp(14 px, 2vw, 20px)
}

#team-section .content-wrapper > div + div{
    padding-top: 54px;
}

#team-section .content-wrapper .title-text{
    font-family: var(--font-primary);
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 400;
    color: #FFFFFF;
}

#team-section .content-wrapper .inner-text{
    font-family: var(--font-primary);
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 100;
    color: #FFFFFF;
    cursor: pointer;
}

#team-section .content-wrapper .flex{
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

#team-section .content-wrapper .gap{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Style for hiding the image */
#team-section .content-wrapper .hidden-img {
    display: none; /* Initially hide the image */
    transition: opacity 0.3s ease;
}

.swiper-partners {
    max-width: 100%; /* Prevent container from overflowing */
    overflow: hidden; /* Hide any overflow */
    padding-inline: 5px;
}

#team-section .swiper-wrapper{
    padding-top: 33px;
}

#team-section .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px !important; /* Set fixed width for slides */
  height: 320px !important; /* Set fixed height for slides */
}

#team-section .grid-wrap{
    display: flex;
    flex-direction: column;
    gap: 54px;
    padding-bottom: 40px;
}

@media screen and (min-width: 768px){
    #team-section .grid-wrap {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 300px;
        padding-bottom: 0px;
    }
    
    #team-section .grid-wrap > div:nth-child(2){
        order : 1;
    }
}






/* Styles for Swiper slides */
.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Toggle button */
.toggle-info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #28a745; /* Green circle */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
}


/* Info box */
.info {
    position: absolute;
    top: 0px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1;
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.info.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info > div p{
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 100;
    line-height: 1.5;
    padding-bottom: 20px;
}

.info .hover-info > h1{
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 10px;
}

.info .icons img{
    width: 15px;
    height: 15px;
    margin-right: 10px;
    border: 1px solid black;
    border-radius: 50%;
    filter: invert(100%) brightness(100%);
}

/* Our Client */

#our-client{
    padding-top: 100px;

    @media screen and (min-width: 768px){
        padding-top: 120px;
    }
}

#our-client > h2{
    font-size: clamp(20px, 5vw, 48px);
    font-weight: 300;
    color: #359242;
}

.grid-4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.col-span-1{
    grid-column: span 1;
}
.col-span-2{
    grid-column: span 2;
}
.col-span-3{
    grid-column: span 3;
}
.col-span-4{
    grid-column: span 4;
}

@media (min-width: 768px) {
    .col-lg-1 { grid-column: span 1 / span 1; }
    .col-lg-2 { grid-column: span 2 / span 2; }
    .col-lg-3 { grid-column: span 3 / span 3; }
    .col-lg-4 { grid-column: span 4 / span 4; }
}

.flex{
    display: flex;
}

#our-client .flex-wrapper{
    padding-block: 20px;
    color: #FAFAFA;
    font-size: 10px;

    .col-span-3 p:nth-child(2){
        padding-top: 10px;
    }

}

#our-client .item {
    display: flex;                /* Ensure the images inside the item are centered */
    justify-content: center;      /* Horizontally center the image */
    align-items: center; 
    padding-block: 10px;         /* Vertically center the image */
}

#our-client .flex-wrapper img{
    width: 40%;
    height: 40%;
    object-fit: cover;
}





/* Project Page Expand */
#work-section .project-one {
    position: relative;
    transition: all 0.3s ease;
  }
  
  #work-section .project-one.expanded {
    height: 300px;
  }

  
  #work-section .project-one .project-description{
    display: flex;
    justify-content: space-between;
    color: #fff;

    @media screen and (min-width: 768px){
       width: fit-content;
        gap: 50px;
        padding-inline: 20px;
    }
  }

  #work-section .project-one .project-description .project-info h3{
    padding: 0px !important;
    @media screen and (min-width: 768px){
        font-size: clamp(16px, 5vw, 20px);
    }
  }

  #work-section .project-one .project-description  p{
    font-family: var(--font-primary);
    font-size: clamp(12px, 3vw, 20px);
    font-weight: 100;
    line-height: 1.5;
  }

  #work-section .project-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-bg-color);
    overflow-y: auto;
    max-height: 100%;
    z-index: 10;
    padding-block: 20px;
    margin-block: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  @media screen and (min-width: 768px){

    .swiper-container{
        position: relative;
        z-index: -111;
        background-color: transparent !important;
    }

    .swiper.swiper-horizontal{
        position: fixed;
        top: 12%;
        background-color: var(--primary-bg-color);
        padding-block: 20px;
        width: 100%;
        margin: 0 auto;
        
        > .swiper-wrapper{
            display: flex;
            justify-content: center;
            gap: 16px;
            padding-inline: 20px;
        }
    }
    
    #work-section .project-one.expanded {
        overflow: auto;
        overflow-x: auto;
        position: fixed;
        left:1%;
        z-index: 2000;
        min-width: 100%;
    }

    #work-section .project-one.expanded .project-content{
        display: flex !important;
        flex-direction: row-reverse !important;
        overflow: auto;
        padding-block: 20px;
        padding-inline: 20px;
    }

    #work-section .project-images{
        display: flex;
        align-items: center;
        gap: 42px;
        padding-inline: 20px;
        overflow: hidden; /* Hides default scrollbar */
        white-space: nowrap;
        scroll-behavior: smooth;
    }




  }

  #work-section .project-images img {
    height: 200px;   /* set your desired fixed height */
    width: auto;     /* keeps aspect ratio */
    object-fit: cover; /* crops if needed, keeps them uniform */
    /* margin-bottom: 10px; */
  }
  
  #work-section .project-thumbnail {
    cursor: pointer;
    width: 100%;
    max-height: 260px;
  }
  
  #work-section .close-btn {
    font-family: var(--font-primary);
    color: #CACACA;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: clamp(12px, 3vw, 20px);
    background-color: transparent;
    text-decoration: underline;
  }

  @media screen and (min-width: 768px){
    #work-section .close-btn {
        height: 0px;
        transform: translateY(-4px);
    }
  }
  
  @media screen and (min-width: 768px){
    .project-images{
        overflow: hidden;
    }
}
