﻿:root {
    --ink: #101014;
    --ink-2: #17181D;
    --paper: #F6F4EF;
    --paper-dim: #A9A7A0;
    --blue: #3E6BFF;
    --purple: #8B5CF6;
    --theme-gradient: linear-gradient(100deg,var(--blue),var(--purple));
}

body {
    background: #090909;
    color: white;
    font-family: Inter,sans-serif;
}

/* SECTION */

.projects-section {
    padding: 110px 8%;
    position: relative;
    overflow: hidden;
}

    .projects-section::before {
        content: "";
        position: absolute;
        width: 550px;
        height: 550px;
        background: radial-gradient(circle,#3E6BFF22,transparent 70%);
        left: -180px;
        top: -150px;
        filter: blur(60px);
    }

    .projects-section::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle,#8B5CF622,transparent 70%);
        right: -150px;
        bottom: -180px;
        filter: blur(60px);
    }

/* Heading */

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

    .section-title span {
        color: #5cb3ff;
        letter-spacing: 5px;
        font-size: 14px;
        font-weight: 600;
    }

    .section-title h2 {
        font-size: 52px;
        margin: 15px 0;
    }

    .section-title p {
        color: #999;
        max-width: 650px;
        margin: auto;
    }

/* Grid */

.projects-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit,minmax(320px,1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #161616;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: .45s;
}

    .project-card img {
        width: 100%;
        height: 470px;
        object-fit: cover;
        transition: .7s;
    }

    .project-card:hover img {
        transform: scale(1.12);
    }

    .project-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 70px rgba(0,0,0,.6);
    }

    /* Gradient Border */

    .project-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 1px;
        background: var(--theme-gradient);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: .4s;
    }

    .project-card:hover::before {
        opacity: 1;
    }

/* Overlay */

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( transparent 35%, rgba(0,0,0,.95) );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

    .overlay h3 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .overlay span {
        display: inline-block;
        color: #bbb;
    }

    .overlay::after {
        content: "";
        width: 80px;
        height: 4px;
        margin-top: 15px;
        background: var(--theme-gradient);
        border-radius: 50px;
    }

/* Animation */

.project-card {
    transform: translateY(80px);
}

    .project-card.show {
        opacity: 1;
        transform: translateY(0);
        transition: all .8s ease;
    }

@media(max-width:768px) {

    .section-title h2 {
        font-size: 38px;
    }

    .project-card img {
        height: 360px;
    }
}
