/* ===== ULTRA-PREMIUM PORTFOLIO EFFECTS ===== */

/* Animated particles background */
.portfolio-intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particlesFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particlesFloat {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 100px 100px, -150px 150px, 200px -200px;
    }
}

/* Gradient text shimmer */
.portfolio-intro h1 {
    background-size: 200% 200%;
    animation: gradientShimmer 4s ease-in-out infinite;
}

@keyframes gradientShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* 3D perspective on grid */
.portfolio-grid {
    perspective: 1000px;
}

/* Enhanced card with 3D transform */
.portfolio-item {
    transform-style: preserve-3d;
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.15), rgba(91, 124, 153, 0.1));
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: all 0.5s ease;
    filter: blur(20px);
}

.portfolio-item:hover::after {
    opacity: 1;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.02) rotateX(2deg);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(74, 111, 165, 0.2);
    z-index: 10;
}

/* Animated border overlay */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(74, 111, 165, 0.9) 0%,
            rgba(91, 124, 153, 0.95) 50%,
            rgba(5, 24, 45, 0.98) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Overlay improvements */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    background: radial-gradient(circle at center, rgba(74, 111, 165, 0.1) 0%, transparent 70%);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.portfolio-overlay .view-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.portfolio-overlay .view-project::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.portfolio-overlay .view-project:hover::before {
    width: 300px;
    height: 300px;
}

.portfolio-overlay .view-project:hover {
    background: white;
    color: #162f4e;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Premium responsive design */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-intro {
        padding: 120px 20px 60px;
    }

    .portfolio-intro h1 {
        font-size: 2.5rem;
    }

    .portfolio-filters {
        padding: 40px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-item {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .portfolio-intro h1 {
        font-size: 2rem;
    }

    .portfolio-intro p {
        font-size: 1rem;
    }



    .filter-btn {

        padding: 10px 20px;

        font-size: 0.85rem;

    }

}



.partner-logos {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    background: rgba(0, 0, 0, 0.3);

    padding: 5px 10px;

    border-radius: 20px;

}



.partner-logos span {

    color: #ddd;

    font-size: 12px;

    font-weight: 500;

}



.partner-logo-small {

    height: 24px;

    width: auto;

    max-width: 80px;

    object-fit: contain;

    filter: brightness(0.9) saturate(0.5) contrast(1.2);

}