﻿/* ==========================================
                PORTFOLIO
========================================== */


/* ==========================================
    PORTFOLIO
    ========================================== */
.portfolio {
    padding: 110px 0;
    background: #ffffff;
}


/* ==========================================
    PORTFOLIO INTRO
    ========================================== */

.portfolio-title {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

    .portfolio-title span,
    .portfolio-video-intro span {
        display: inline-block;
        margin-bottom: 12px;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .portfolio-title h2 {
        margin-bottom: 20px;
    }

    .portfolio-title p {
        max-width: 680px;
        margin: 0 auto;
        line-height: 1.8;
    }


/* ==========================================
    FEATURED PROJECT
    ========================================== */

.featured-project {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 110px;
}


/* ==========================================
    VIDEO
    ========================================== */

.project-video {
    width: 100%;
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #111;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

    .video-wrapper video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }


/* ==========================================
    PROJECT CONTENT
    ========================================== */

.featured-project-content {
    padding-right: 10px;
}

.project-number {
    display: block;
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.featured-project-content h3 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
}

    .featured-project-content h3 span {
        display: block;
    }

.project-description {
    margin-bottom: 30px;
    line-height: 1.8;
}


/* ==========================================
    PROJECT HIGHLIGHTS
    ========================================== */

.project-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .highlight i {
        margin-top: 4px;
        font-size: 1rem;
    }

    .highlight strong {
        display: block;
        margin-bottom: 3px;
        font-size: 0.9rem;
    }

    .highlight span {
        display: block;
        font-size: 0.75rem;
        line-height: 1.4;
    }


/* ==========================================
    TECHNOLOGY TAGS
    ========================================== */

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .project-tech span {
        padding: 7px 12px;
        border: 1px solid #e5e5e5;
        border-radius: 50px;
        font-size: 0.72rem;
        font-weight: 600;
    }


/* ==========================================
    VIDEO INTRO
    ========================================== */

.portfolio-video-intro {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

    .portfolio-video-intro h3 {
        margin: 0 0 15px;
        font-size: 2rem;
    }

    .portfolio-video-intro p {
        line-height: 1.8;
    }


/* ==========================================
    SCREENSHOT GALLERY
    ========================================== */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 18px;
    background: #111;
    cursor: pointer;
}

.gallery-large {
    grid-column: span 2;
    min-height: 500px;
}

.gallery-wide {
    grid-column: span 2;
    min-height: 420px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-large img {
    min-height: 500px;
}

.gallery-wide img {
    min-height: 420px;
}


/* ==========================================
    GALLERY OVERLAY
    ========================================== */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15), transparent );
    opacity: 0;
    transition: opacity 0.35s ease;
}

    .gallery-overlay div {
        transform: translateY(15px);
        transition: transform 0.35s ease;
    }

    .gallery-overlay span {
        display: block;
        margin-bottom: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .gallery-overlay h4 {
        margin: 0 0 7px;
        font-size: 1.3rem;
    }

    .gallery-overlay p {
        margin: 0;
        max-width: 420px;
        font-size: 0.85rem;
        line-height: 1.6;
    }

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

    .gallery-card:hover .gallery-overlay div {
        transform: translateY(0);
    }


/* ==========================================
    PORTFOLIO FOOTER
    ========================================== */

.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

    .portfolio-footer span {
        display: block;
        margin-bottom: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .portfolio-footer h3 {
        max-width: 600px;
        margin: 0;
        font-size: 1.5rem;
        line-height: 1.4;
    }

.back-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ==========================================
    RESPONSIVE
    ========================================== */

@media (max-width: 992px) {

    .featured-project {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .featured-project-content {
        padding-right: 0;
    }
}


@media (max-width: 768px) {

    .portfolio {
        padding: 80px 0;
    }

    .portfolio-title {
        margin-bottom: 50px;
    }

    .project-highlights {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
        min-height: 300px;
    }

        .gallery-large img,
        .gallery-wide img {
            min-height: 300px;
        }

    .gallery-overlay {
        opacity: 1;
    }

        .gallery-overlay div {
            transform: translateY(0);
        }

    .portfolio-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 576px) {

    .featured-project-content h3 {
        font-size: 2rem;
    }

    .project-video {
        margin: 0 -5px;
        width: calc(100% + 10px);
    }

    .video-wrapper {
        border-radius: 15px;
    }

    .gallery-card,
    .gallery-large,
    .gallery-wide {
        border-radius: 14px;
    }

    .gallery-overlay {
        padding: 22px;
    }
}











html {
    scroll-behavior: smooth;
}
.portfolio {
    padding: 120px 0;
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    gap: 50px;
}

.project-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15,23,42,.08);
    transition: .35s ease;
}

    .project-card:hover {
        transform: translateY(-10px);
    }

    .project-card img {
        width: 100%;
        display: block;
    }

.project-content {
    padding: 40px;
}

    .project-content h3 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .project-content p {
        color: #64748b;
        line-height: 1.8;
        margin-bottom: 30px;
    }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

    .project-tags span {
        background: #eff6ff;
        color: #2563eb;
        padding: 10px 18px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
    }
