/************************* Hero Section Styles *************************/
.hire-hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 110px 20px 90px;
    margin: 0 auto;
    height: 520px;
    max-width: 1170px;
    position: relative;
}

.hire-hero-content {
    z-index: 1;
    max-width: 800px;
}

.hire-hero-title {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--main-heading-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hire-hero-description {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.hire-hero-background {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    height: auto;
    z-index: 0;
    display: flex;
    justify-content: flex-end;
}

.hire-hero-background img {
    width: 60%;
    height: auto;
    display: block;
    margin-right: 15%;
}


:dir(rtl) .hire-hero-background {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    height: auto;
    z-index: 0;
    display: flex;
    justify-content: flex-start;
}

:dir(rtl) .hire-hero-background img {
    width: 60% !important;
    height: auto;
    display: block;
    margin-right: 15%;
}

/********************** Responsive Styles ***********************/
@media (max-width: 1200px) {
    .hire-hero-section {
        padding: 100px 40px;
        height: 600px;
    }

    .hire-hero-background {
        padding-right: 30px;
    }

    :dir(rtl) .hire-hero-background {
        padding-right: 30px;
    }
}

@media (max-width: 786px) {

    .hire-hero-section {
        padding: 100px 40px;
        height: 330px;
        margin-top: 15%;
    }

    .hire-hero-background {
        padding-right: 35px;
    }

    :dir(rtl) .hire-hero-background {
        padding-right: 35px;
    }

    .hire-hero-title {
        font-size: 48px;
    }

    .hire-hero-description {
        font-size: 22px;
    }

    .hire-hero-button {
        padding: 6px 20px;
        font-size: 18px;
        font-weight: 550;
    }

    .hire-hero-background img {
        width: 45%;
        height: auto;
        display: block;
        margin-right: 0;
        margin-bottom: 50px;

    }

    :dir(rtl) .hire-hero-background img {
        width: 45%;
        height: auto;
        display: block;
        margin-right: 0;
        margin-bottom: 50px;

    }
}

@media (max-width: 460px) {
    .hire-hero-section {
        padding: 100px 30px 50px;
        height: 250px;
        margin-top: 25%;
    }

    .hire-hero-title {
        font-size: 40px;
    }

    .hire-hero-description {
        font-size: 18px;
    }

    .hire-hero-button {
        padding: 6px 20px;
        font-size: 16px;
        font-weight: 500;
    }

    .hire-hero-background {
        margin-top: 50px;
        padding-right: 40px;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        z-index: 0;
    }

    .hire-hero-background img {
        width: 70%;
        height: auto;
        display: block;
        margin-right: 0;
        margin-bottom: 50px;

    }
}

/************************* Hire box Section Styles *************************/
.hire-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    text-align: center;
    margin: 10px auto 0;
    max-width: 1170px;
}

.hire-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.hire-description {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #79AB3D;
}

.hire-button {
    position: relative;
    display: inline-block;
    color: #fff;
    padding: 5px 90px;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #97C55C 0%, #79AB3D 100%);
    border: 3px solid #FFFFFF;
    box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.hire-button:hover {
    background: linear-gradient(180deg, #76A83A 0%, #97C55C 100%);
    transform: translateY(-2px);
}

/********************** Responsive Styles ***********************/
@media (max-width: 1200px) {
    .hire-section {
        padding: 40px 30px;
        margin: 20px 30px 0;
    }
}

@media (max-width: 768px) {
    .hire-title {
        font-size: 20px;
    }

    .hire-description {
        font-size: 16px;
    }

    .hire-button {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .hire-section {
        padding: 30px;
        margin: 80px 35px 0;
    }

    .hire-title {
        font-size: 18px;
    }

    .hire-button {
        padding: 6px 20px;
        font-size: 16px;
    }
}


/***************************** Developer Search Section ******************************/
.developer-search-section {
    background-image: url('/Frontend/images/map.png');
    background-size: contain;
    background-position: center;
    background-size: 800px auto;
    padding: 100px 20px 40px;
    text-align: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.search-container {
    margin-bottom: 30px;
}

.search-bar {
    display: inline-flex;
    align-items: center;
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.search-bar input {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 16px;
    border-radius: 30px;
}

.search-bar button {
    background-color: #79AB3D;
    padding: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 5px;
    margin-left: 5px;

}

.hire-developer-title-container {
    position: relative;
    margin-bottom: 20px;
}

.hire-developer-title {
    font-size: 30px;
    margin: 0;
    color: #333;
    font-weight: bold;
    text-align: center;
}

/******* Clear Search Button *******/
.clear-search-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #79AB3D !important;
    background-color: #fff !important;
    display: none;
}

html[dir="rtl"] .clear-search-btn {
    right: auto;
    left: 40px;
}

.profiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 1170px;
    margin: 40px auto;
}

.profile-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.profile-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    margin-left: 15px;
}

.profile-header .profile-info {
    text-align: left;
}

.profile-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.profile-header .role {
    font-size: 16px;
    color: #333;
}


html[dir="rtl"] .profile-header h3,
html[dir="rtl"] .profile-header .role {
    text-align: right;
}

html[dir="ltr"] .profile-header h3,
html[dir="ltr"] .profile-header .role {
    text-align: left;
}

.profile-card .skills {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.profile-card p {
    font-size: 15px;
    margin-bottom: 10px;
}

.profile-card .linkedin {
    font-size: 28px;
    color: #0077b5;
    display: inline-block;
    text-decoration: none;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 33px;
}

html[dir="rtl"] .profile-card .linkedin {
    right: auto;
    left: 10px;
}

html[dir="ltr"] .profile-card .linkedin {
    left: auto;
    right: 10px;
}

.pagination {
    text-align: center;
    margin-top: 15px;
}

.pagination .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.pagination .dot.active {
    background-color: #79AB3D;
}

/************ Responsive Design ************/
@media (max-width: 1200px) {
    .developer-search-section {
        padding: 100px 30px 40px;
        margin: 20px auto;
    }

    .profiles-container {
        padding: 40px 30px;
        margin: 20px auto;
    }

    .profile-card {
        border-radius: 15px;
        padding: 20px;
        width: 280px;
    }
}

@media (max-width: 992px) {
    .profiles-container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .profiles-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .developer-search-section {
        background-size: 80%;
    }
}

@media (max-width: 480px) {
    .developer-search-section {
        background-size: 70%;
    }

    .profiles-container {
        padding: 20px 30px;
        margin: 20px auto;
        gap: 30px;
    }
}

/************** Hire Testimonial Section ***************/
.hire-testimonial-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 20px 80px;
    max-width: 1170px;
    height: auto;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.hire-testimonial-title-container {
    margin-top: 20px;
}

.hire-testimonial-content {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 50%;
    overflow: visible;
}

.hire-testimonial-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.5s ease, z-index 0.5s ease, background-color 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.8) translate(-10px, 10px);
    z-index: 1;
    border: 2px solid #ddd;
}

.hire-testimonial-card.hire-active {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    z-index: 2;
    border-color: #79AB3D;
    background-color: #ffffff;
}

.hire-testimonial-card:not(.hire-active) {
    opacity: 0.8;
    transform: scale(0.9) translate(20px, 20px);
    z-index: 1;
    background-color: #e0e0e0;
    left: 20px;
}

.hire-testimonial-quote-icon {
    font-size: 50px;
    color: #79AB3D;
    position: absolute;
    top: 10px;
    left: 10px;
}

.hire-testimonial-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 60px;
}

.hire-testimonial-author {
    display: flex;
    align-items: center;
}

.hire-testimonial-author-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.hire-testimonial-author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.hire-testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    margin-left: 15px;
}

.hire-testimonial-image {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    margin-top: 80px;
}

.hire-testimonial-image img {
    max-width: 90%;
    height: auto;
    display: block;
}

/************ Responsive Design ************/
@media (max-width: 1220px) {
    .hire-testimonial-section {
        padding: 0 30px 140px;
    }

    html[dir="rtl"] .hire-testimonial-section {
        padding: 0 40px 140px;
    }
}

@media (max-width: 768px) {
    .hire-testimonial-section {
        padding: 50px 60px 250px;
    }

    html[dir="rtl"] .hire-testimonial-section {
        padding: 50px 60px 250px;
    }

    .hire-testimonial-section {
        flex-direction: column-reverse;
    }

    .hire-testimonial-content {
        width: 100%;
    }

    .hire-testimonial-image {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 0;
    }


    .hire-testimonial-image img {
        max-width: 90%;
        height: auto;
        display: block;
    }
}

@media (max-width: 450px) {
    .hire-testimonial-section {
        padding: 50px 40px 250px;
    }

    .hire-testimonial-image img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}