/* Portfolio Section Styles */

.portfolio-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.portfolio-section .container {
    position: relative;
    z-index: 2;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(235, 190, 0, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.section-badge i {
    color: var(--secondary-color);
}

/* Portfolio Card */
.portfolio-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(2, 44, 130, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(2, 44, 130, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(2, 44, 130, 0.2);
}

/* Portfolio Image Header */
.portfolio-image-header {
    position: relative;
    margin: -35px -30px 20px -30px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-card:hover .project-img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(235, 190, 0, 0.95);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Portfolio Content */
.portfolio-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(2, 44, 130, 0.1), rgba(2, 44, 130, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.project-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.portfolio-card:hover .project-icon {
    background: linear-gradient(135deg, var(--primary-color), #0347b8);
    transform: scale(1.1);
}

.portfolio-card:hover .project-icon i {
    color: var(--secondary-color);
}

/* Project Title - More specific to avoid conflicts */
.portfolio-section .portfolio-card .portfolio-project-title {
    color: var(--primary-color) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: none !important;
}

.project-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tags .tag {
    background: rgba(2, 44, 130, 0.08);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-card:hover .project-tags .tag {
    background: rgba(2, 44, 130, 0.12);
}

/* Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

.project-link i {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Floating Background Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    will-change: transform;
}

.floating-shapes .shape-1 {
    width: 130px;
    height: 130px;
    background: var(--primary-color);
    top: 10%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
}

.floating-shapes .shape-2 {
    width: 90px;
    height: 90px;
    background: var(--secondary-color);
    top: 50%;
    left: 8%;
    animation: float 18s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.floating-shapes .shape-3 {
    width: 110px;
    height: 110px;
    background: var(--primary-color);
    bottom: 20%;
    right: 15%;
    animation: float 22s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-shapes .shape-4 {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    bottom: 10%;
    left: 12%;
    animation: float 16s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(180deg);
    }
    75% {
        transform: translate(15px, 20px) rotate(270deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .portfolio-card {
        padding: 30px 25px;
    }

    .portfolio-image-header {
        margin: -30px -25px 20px -25px;
    }

    .project-img {
        height: 150px;
    }

    .portfolio-section .portfolio-card .portfolio-project-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .floating-shapes .shape {
        opacity: 0.04;
    }

    .floating-shapes .shape-1,
    .floating-shapes .shape-3 {
        width: 80px;
        height: 80px;
    }

    .floating-shapes .shape-2,
    .floating-shapes .shape-4 {
        width: 50px;
        height: 50px;
    }

    .portfolio-card {
        padding: 25px 20px;
    }

    .project-img {
        height: 160px;
    }

    .project-icon {
        width: 45px;
        height: 45px;
    }

    .project-icon i {
        font-size: 1.3rem;
    }

    .portfolio-section .portfolio-card .portfolio-project-title {
        font-size: 1.05rem !important;
    }

    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .portfolio-card {
        padding: 20px 18px;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .project-category {
        align-self: flex-start;
    }

    .portfolio-image-header {
        margin: -25px -20px 15px -20px;
    }

    .project-img {
        height: 140px;
    }

    .portfolio-section .portfolio-card .portfolio-project-title {
        font-size: 1rem !important;
    }

    .project-tags .tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .project-link {
        font-size: 0.95rem;
    }
}