/*=========================================================
                    PORTFOLIO
=========================================================*/

.portfolio {
    position: relative;
    padding: 40px 0 40px;
    background: linear-gradient(180deg,#061823 0%,#081f2b 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 35px;
    margin-top: 60px;
}


/*=========================================================
                    CARD
=========================================================*/

.portfolio-card {
    background: #0b1f2c;
    border: 1px solid rgba(20,217,235,.18);
    border-radius: 22px;
    overflow: hidden;
    transition: .35s;
}

    .portfolio-card:hover {
        transform: translateY(-8px);
        border-color: #14d9eb;
        box-shadow: 0 15px 40px rgba(20,217,235,.18);
    }


/*=========================================================
                    IMAGE
=========================================================*/

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s ease;
}

.portfolio-card:hover .cover {
    transform: scale(1.05);
}


/*=========================================================
                    VIDEO
=========================================================*/

.video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-image.playing .cover {
    display: none;
}

.portfolio-image.playing .video {
    display: block;
}

.portfolio-image.playing .play-btn {
    opacity: 0;
    pointer-events: none;
}


/*=========================================================
                    PLAY BUTTON
=========================================================*/

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 86px;
    height: 86px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    overflow: hidden;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), rgba(20,217,235,.20));
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,.30);
    box-shadow: 0 0 0 1px rgba(20,217,235,.15), 0 0 25px rgba(20,217,235,.25);
    transition: .35s;
}

    .play-btn::before {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        border: 2px solid rgba(20,217,235,.45);
        animation: playPulse 2.2s infinite;
    }

    .play-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: linear-gradient( 135deg, rgba(255,255,255,.18), rgba(255,255,255,0) );
        pointer-events: none;
    }

    .play-btn i {
        color: #fff;
        font-size: 34px;
        margin-left: 6px;
        text-shadow: 0 0 15px rgba(255,255,255,.8);
        transition: .35s;
        z-index: 2;
    }

    .play-btn:hover {
        transform: translate(-50%,-50%) scale(1.12);
        background: #14d9eb;
        box-shadow: 0 0 20px rgba(20,217,235,.9), 0 0 45px rgba(20,217,235,.65), 0 0 80px rgba(20,217,235,.35);
    }

        .play-btn:hover i {
            color: #062231;
        }

@keyframes playPulse {

    0% {
        transform: scale(.9);
        opacity: .9;
    }

    70% {
        transform: scale(1.25);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}


/*=========================================================
                    CONTENT
=========================================================*/

.portfolio-content {
    padding: 28px;
}

    .portfolio-content h3 {
        color: #fff;
        font-size: 24px;
        line-height: 1.8;
        margin-bottom: 14px;
    }

    .portfolio-content p {
        color: #b9c9d4;
        font-size: 15px;
        line-height: 2;
        margin: 0;
    }

/*=========================================================
                    RESPONSIVE
=========================================================*/

@media (max-width:1200px) {

    .portfolio-grid {
        gap: 28px;
    }
}

@media (max-width:900px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-content {
        padding: 24px;
    }

        .portfolio-content h3 {
            font-size: 22px;
        }
}

@media (max-width:768px) {

    .portfolio {
        padding: 55px 0 90px;
    }

    .play-btn {
        width: 72px;
        height: 72px;
    }

        .play-btn i {
            font-size: 28px;
        }
}

@media (max-width:576px) {

    .portfolio-content {
        padding: 20px;
    }

        .portfolio-content h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .portfolio-content p {
            font-size: 14px;
            line-height: 1.9;
        }

    .play-btn {
        width: 64px;
        height: 64px;
    }

        .play-btn i {
            font-size: 24px;
            margin-left: 4px;
        }
}


/*=========================================================
                VIDEO CONTROLS
=========================================================*/

.video:focus {
    outline: none;
}

video {
    display: block;
    background: transparent;
}