/* Portfolio Section Styles */
.portfolio-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #ffffff;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 10px;
}

.portfolio-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0d6efd;
    margin: 15px auto 0;
}

.portfolio-header .section-text {
    font-size: 16px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-container {
    background-color: #f0f7ff;
    border-radius: 20px;
    padding: 0;
    display: flex;
    overflow: hidden;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-image-wrapper {
    flex: 1 1 50%;
    position: relative;
    min-height: 500px;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    opacity: 0;
}

/* Image Animations */
.portfolio-image-wrapper img.active:nth-of-type(1) {
    animation: imgAnim1 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-image-wrapper img.active:nth-of-type(2) {
    animation: imgAnim2 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-image-wrapper img.active:nth-of-type(3) {
    animation: imgAnim3 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-image-wrapper img.active:nth-of-type(4) {
    animation: imgAnim4 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-image-wrapper img.active:nth-of-type(5) {
    animation: imgAnim1 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-image-wrapper img.active:nth-of-type(6) {
    animation: imgAnim2 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes imgAnim1 {
    0% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes imgAnim2 {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes imgAnim3 {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes imgAnim4 {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.portfolio-content-wrapper {
    flex: 1 1 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio-tab-btn {
    background: transparent;
    border: 1px solid #b8daff;
    color: #555;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portfolio-tab-btn:hover {
    background: var(--findox-white4, #e2edec);
}

.portfolio-tab-btn.active {
    background: transparent;
    border-color: var(--findox-primary, #03a1d0);
    color: var(--findox-primary, #03a1d0);
}

.portfolio-details {
    display: none;
}

/* Details Animations */
.portfolio-details.active:nth-child(2) {
    display: block;
    animation: detailAnim1 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-details.active:nth-child(3) {
    display: block;
    animation: detailAnim2 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-details.active:nth-child(4) {
    display: block;
    animation: detailAnim3 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-details.active:nth-child(5) {
    display: block;
    animation: detailAnim4 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-details.active:nth-child(6) {
    display: block;
    animation: detailAnim1 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.portfolio-details.active:nth-child(7) {
    display: block;
    animation: detailAnim2 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes detailAnim1 {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes detailAnim2 {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes detailAnim3 {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes detailAnim4 {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.portfolio-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 20px;
}

.portfolio-details p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.portfolio-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.portfolio-meta-group h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-tag {
    background-color: #e9ecef;
    color: #555;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.portfolio-details .btn {
    background-color: var(--findox-base, #072b5f);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.portfolio-details .btn:hover {
    background-color: var(--findox-primary, #03a1d0);
    color: white;
}

.portfolio-action {
    text-align: center;
}

.portfolio-action .btn-outline {
    position: relative;
    background-color: transparent;
    color: var(--findox-primary, #0d6efd);
    border: 1px solid var(--findox-primary, #0d6efd);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    z-index: 1;
    overflow: hidden;
    transition: all 500ms ease;
}

.portfolio-action .btn-outline::after {
    content: "";
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: -1;
    background-color: var(--findox-primary, #0d6efd);
    transition: all 500ms ease;
}

.portfolio-action .btn-outline:hover::after {
    width: 100%;
    left: 0px;
}

.portfolio-action .btn-outline:hover {
    color: var(--findox-white, #ffffff);
}

@keyframes slideFadeIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991px) {
    .portfolio-container {
        flex-direction: column;
    }
    .portfolio-image-wrapper {
        min-height: 300px;
    }
}
