/* =========================================================
   VR DIGITAL CREATORS
   WEBSITE PORTFOLIO PAGE
========================================================= */


/* =========================================================
   PORTFOLIO HERO
========================================================= */

.portfolio-hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #030609;
}


/* background image */

.portfolio-hero-bg {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(3,6,9,.96) 0%,
            rgba(3,6,9,.82) 42%,
            rgba(3,6,9,.38) 100%
        ),
        url("../images/portfolio/portfolio-bg.webp");

    background-size: cover;

    background-position: center;

    opacity: .9;

    z-index: 0;
}


/* decorative blue glow */

.portfolio-hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -250px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(42,174,227,.16);

    border-radius: 50%;

    box-shadow:
        0 0 0 70px rgba(42,174,227,.025),
        0 0 0 140px rgba(42,174,227,.015);

    pointer-events: none;

    z-index: 1;
}


/* second decorative circle */

.portfolio-hero::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -120px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(66,165,255,.08);

    border-radius: 50%;

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.portfolio-hero .container {
    position: relative;

    z-index: 3;
}


.portfolio-hero-content {
    position: relative;

    max-width: 760px;

    padding: 110px 0;

    animation: fadeUp .8s ease both;
}


.portfolio-hero-content h1 {
    margin: 0;

    color: var(--white);

    font-size: clamp(46px, 6vw, 72px);

    line-height: 1.04;

    letter-spacing: -2px;
}


.portfolio-hero-content h1 span {
    display: block;

    color: var(--accent);
}


.portfolio-hero-content p {
    max-width: 650px;

    margin: 25px 0 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   PORTFOLIO GALLERY SECTION
========================================================= */

.portfolio-gallery-section {
    padding: 95px 0 110px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(42,174,227,.045),
            transparent 28%
        ),
        var(--bg);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.portfolio-section-heading {
    max-width: 780px;

    margin-bottom: 42px;
}


.portfolio-section-heading h2 {
    margin: 0 0 18px;

    color: var(--white);

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.12;

    letter-spacing: -1.5px;
}


.portfolio-section-heading h2 span {
    display: block;

    color: var(--accent);
}


.portfolio-section-heading p {
    max-width: 680px;

    margin: 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   FILTERS
========================================================= */

.portfolio-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--line);
}


.portfolio-filter {
    padding: 9px 17px;

    background: transparent;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 4px;

    color: var(--muted);

    font-family: var(--font-main);

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.portfolio-filter:hover {
    color: var(--white);

    border-color: rgba(66,165,255,.5);

    transform: translateY(-2px);
}


.portfolio-filter.active {
    background: var(--accent);

    border-color: var(--accent);

    color: #ffffff;
}


/* =========================================================
   WEBSITE PORTFOLIO GRID
========================================================= */

/*
   IMPORTANT:
   .portfolio-project is the element controlled by the
   existing filter JavaScript.

   It is therefore made the GRID ITEM itself.
*/

.portfolio-masonry {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 25px;

    row-gap: 38px;

    width: 100%;

    margin: 0;

    padding: 0;
}


/* =========================================================
   FILTER-CONTROLLED PROJECT
========================================================= */

.portfolio-project {
    display: block;

    width: 100%;

    min-width: 0;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


/* Filter states */

.portfolio-project.is-hidden {
    display: none !important;
}


.portfolio-project.is-filter-hidden {
    display: none !important;
}


/* =========================================================
   MASONRY ITEM
========================================================= */

.portfolio-masonry-item {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    min-width: 0;

    break-inside: auto;

    vertical-align: initial;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.portfolio-masonry-image {
    position: relative;

    display: block;

    width: 100%;

    padding: 7px;

    box-sizing: border-box;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0d1d2b,
            #07111b
        );

    border: 1px solid var(--line);

    border-radius: 12px;

    text-decoration: none;

    transition:
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}


.portfolio-masonry-image::after {
    content: "";

    position: absolute;

    inset: 7px;

    border-radius: 7px;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(3,6,9,.45)
        );

    pointer-events: none;

    opacity: .8;

    transition: opacity .35s ease;
}


.portfolio-masonry-image img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    border-radius: 7px;

    object-fit: cover;

    transition:
        transform .5s ease,
        opacity .4s ease;
}


/* hover */

.portfolio-project:hover
.portfolio-masonry-image {
    border-color: rgba(66,165,255,.42);

    box-shadow:
        0 18px 45px rgba(0,0,0,.30),
        0 0 25px rgba(66,165,255,.045);

    transform: translateY(-3px);
}


.portfolio-project:hover
.portfolio-masonry-image img {
    transform: scale(1.035);
}


.portfolio-project:hover
.portfolio-masonry-image::after {
    opacity: .55;
}


/* =========================================================
   PROJECT INFORMATION
========================================================= */

.portfolio-masonry-info {
    display: grid;

    grid-template-columns: 32px minmax(0, 1fr);

    gap: 10px;

    margin-top: 15px;

    align-items: start;
}


.portfolio-number {
    padding-top: 3px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}


.portfolio-masonry-info h3 {
    margin: 0 0 5px;

    color: var(--white);

    font-size: 17px;

    line-height: 1.35;

    font-weight: 600;

    transition:
        color .3s ease;
}


.portfolio-project:hover
.portfolio-masonry-info h3 {
    color: var(--accent);
}


.portfolio-masonry-info p {
    margin: 0;

    color: var(--muted-dark);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   LOAD MORE
========================================================= */

.portfolio-load-more {
    display: flex;

    justify-content: center;

    margin-top: 45px;
}


.portfolio-load-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 13px 23px;

    background: transparent;

    border: 1px solid rgba(66,165,255,.55);

    border-radius: 4px;

    color: var(--white);

    font-family: var(--font-main);

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.portfolio-load-button span {
    color: var(--accent);

    font-size: 18px;

    line-height: 1;

    transition:
        transform .3s ease,
        color .3s ease;
}


.portfolio-load-button:hover {
    background: var(--accent);

    border-color: var(--accent);

    color: #03101b;

    transform: translateY(-2px);
}


.portfolio-load-button:hover span {
    color: #03101b;

    transform: translateX(3px);
}


/* =========================================================
   PORTFOLIO CTA
========================================================= */

.portfolio-cta {
    position: relative;

    padding: 100px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(66,165,255,.09),
            transparent 45%
        ),
        var(--bg-dark);
}


.portfolio-cta::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: 50%;
    bottom: -500px;

    transform: translateX(-50%);

    border: 1px solid rgba(66,165,255,.08);

    border-radius: 50%;

    box-shadow:
        0 0 0 80px rgba(66,165,255,.015),
        0 0 0 160px rgba(66,165,255,.008);

    pointer-events: none;
}


.portfolio-cta .container {
    position: relative;

    z-index: 2;
}


.portfolio-cta-inner {
    max-width: 760px;

    margin: auto;

    text-align: center;
}


.portfolio-cta-inner h2 {
    margin: 0;

    color: var(--white);

    font-size: clamp(32px, 4vw, 50px);

    line-height: 1.15;
}


.portfolio-cta-inner h2 span {
    display: block;

    color: var(--accent);
}


.portfolio-cta-inner p {
    max-width: 620px;

    margin: 20px auto 30px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .portfolio-hero {
        min-height: 540px;
    }


    .portfolio-hero-content {
        padding: 95px 0;
    }


    .portfolio-masonry {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 20px;

        row-gap: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .portfolio-hero {
        min-height: 500px;
    }


    .portfolio-hero-bg {
        background-position: 65% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(3,6,9,.97),
                rgba(3,6,9,.78)
            ),
            url("../images/portfolio/portfolio-bg.webp");
    }


    .portfolio-hero::before {
        width: 430px;
        height: 430px;

        right: -270px;
    }


    .portfolio-hero::after {
        width: 280px;
        height: 280px;

        right: -175px;
    }


    .portfolio-hero-content {
        padding: 90px 0 80px;
    }


    .portfolio-hero-content h1 {
        font-size: clamp(42px, 11vw, 58px);

        letter-spacing: -1.8px;
    }


    .portfolio-hero-content p {
        font-size: 15px;

        line-height: 1.7;
    }


    .portfolio-gallery-section {
        padding: 75px 0 85px;
    }


    .portfolio-section-heading h2 {
        font-size: 34px;
    }


    .portfolio-section-heading p {
        font-size: 14px;
    }


    /* filters */

    .portfolio-filters {
        gap: 8px;

        margin-bottom: 35px;

        padding-bottom: 10px;

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;
    }


    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }


    .portfolio-filter {
        flex: 0 0 auto;

        white-space: nowrap;

        padding: 8px 13px;

        font-size: 12px;
    }


    /* one column */

    .portfolio-masonry {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .portfolio-masonry-item {
        width: 100%;
    }


    .portfolio-masonry-image {
        padding: 5px;

        border-radius: 8px;
    }


    .portfolio-masonry-image::after {
        inset: 5px;

        border-radius: 5px;
    }


    .portfolio-masonry-image img {
        border-radius: 5px;
    }


    .portfolio-masonry-info {
        display: block;

        margin-top: 10px;
    }


    .portfolio-number {
        display: none;
    }


    .portfolio-masonry-info h3 {
        font-size: 14px;

        line-height: 1.3;
    }


    .portfolio-masonry-info p {
        margin-top: 4px;

        font-size: 10px;
    }


    /* load more */

    .portfolio-load-more {
        margin-top: 32px;
    }


    /* CTA */

    .portfolio-cta {
        padding: 75px 0;
    }


    .portfolio-cta-inner h2 {
        font-size: 38px;
    }


    .portfolio-cta-inner p {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 380px) {

    .portfolio-hero-content h1 {
        font-size: 38px;
    }


    .portfolio-section-heading h2 {
        font-size: 31px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .portfolio-hero-content,
    .portfolio-project,
    .portfolio-masonry-image,
    .portfolio-masonry-image img,
    .portfolio-filter,
    .portfolio-load-button {
        animation: none !important;

        transition: none !important;
    }

}