h1, p {
    margin: 0;
    padding: 0;
}

.portfolio-hero-section {
    min-height: 800px; 
    display: flex; 
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.portfolio-hero-section h1 {
    color: #202022;
    text-align: center;
    font-size: 72px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.portfolio-hero-section p {
    color: #202022;
    text-align: center;
    font-size: 30px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.ateam-portfolio-section .container-fluid {
    max-width: 1600px;
}

.ateam-portfolio-section .nav-link {
    display: flex;
    height: 56px;
    min-width: 104px;
    min-height: 56px;
    max-height: 56px;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 36px;
    border: 1px solid #7C4CDB;
    color: #7C4CDB;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.ateam-portfolio-section .nav-link.active,
.ateam-portfolio-section .nav-link:hover {
    background-color: #7C4CDB;
    color: #FFFFFF;
}

.ateam-portfolio-section .results {
    color: #202022;
    text-align: left;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 28px 0px;
    padding: 12px;
}

.ateam-portfolio-section .card {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-radius: 32px;
    border: 1px solid #EFEFF1;
    background: #FFF;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.ateam-portfolio-section .card:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.ateam-portfolio-section .card-img-top {
    display: flex;
    height: 266px;
    max-height: 266px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 16px;
}

.ateam-portfolio-section .card-body p.text-muted {
    color: var(--text-500, #4D4D52);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.ateam-portfolio-section .card-body .card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--text-700, #27272B);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    text-wrap: wrap;
    margin-top: 12px;
}

.ateam-portfolio-section .card-body .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #6A6A6E;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    text-wrap: wrap;
}

#portfolioModal .modal-body .container-fluid {
    padding: 40px !important;
}

#portfolioModal .modal-body .left-area-body {
    flex: 1 0 0;
    border-radius: 16px;
    background: #F6F6F7;
    padding: 0 20px;
    height: 100%;
}

#portfolioModal .modal-body .left-area-body .modal-title {
    color: #000;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    padding: 40px 0;
}

#portfolioModal .modal-body .left-area-body .modal-body-img {
    margin-top: 140px;
    margin-bottom: 84px;
    height: 460px;
    margin-left: 92px;
    object-fit: fill;
    border-radius: 14px;
    box-shadow: 4px 4px 40px 0 rgba(0, 0, 0, 0.16);
}

#portfolioModal .modal-body .right-area-body {
    flex: 1 0 0;
    padding-left: 60px;
}

#portfolioModal .modal-body .right-area-body span {
    color: #4D4D52;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

#portfolioModal .modal-body .right-area-body .modal-desc {
    color: #6A6A6E;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding-bottom: 4rem;
}

@media (max-width: 992px) {
    .portfolio-hero-section {
        min-height: auto;
        padding: 150px 0 !important;
        background-size: cover !important;
    }

    .portfolio-hero-section h1 {
        font-size: 36px;
    }

    .portfolio-hero-section p {
        font-size: 20px !important;
    }

    .ateam-portfolio-section .nav {
        flex-wrap: nowrap;
        overflow: auto;
    }

    .ateam-portfolio-section .nav-link {
        height: auto;
        min-width: 64px;
        min-height: auto;
        padding: 8px 16px;
        font-size: 16px;
        text-wrap: nowrap;
    }

    .ateam-portfolio-section .results {
        font-size: 20px;
        margin: 16px 0 24px;
    }

    #portfolioModal .modal-body .container-fluid {
        padding: 20px !important;
    }

    #portfolioModal .modal-body .left-area-body .modal-title {
        font-size: 24px;
        padding: 20px 0;
    }

    #portfolioModal .modal-body .left-area-body .modal-body-img {
        margin-top: 32px;
        margin-bottom: 40px;
        height: auto;
        width: 100%;
        margin-left: 0;
    }

    #portfolioModal .modal-body .right-area-body {
        padding-left: 0;
        padding-top: 20px;
    }

    #portfolioModal .modal-body .right-area-body span {
        font-size: 14px;
    }

    #portfolioModal .modal-body .right-area-body .modal-desc {
        font-size: 16px !important;
        padding-bottom: 2rem;
    }
}
