* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
}

:root {
    --textc: #FCF7F0;
    --blue: #7A4FF4;
    --red: #EC4E00;
    --back: #111119;
    --purple: #A58EFC;
    --pink: #F0AAF3;
    --white: #FFFFFF;
    --subhead: 70px;
    --card: #212126;
}

body {
    background-color: var(--back);
    overflow-x: hidden;
}

h1 {
    color: var(--white);
    font-size: 30px;
    margin-top: 25%;
}

#portfolio-single {
    margin-top: 5%;
    padding-left: 6%;
    padding-right: 0%;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/*----------------------------
------- footer starts ----------
------------------------------*/

.footer {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url(../img/bg.png);
    background-position: -1000px 0px;
    color: white;
}

.footer .title {
    padding-top: 50px;
    padding-left: 20px;
}

.footer .links {
    display: flex;
    flex-direction: column;
    margin-left: 5%;
    margin-top: 30px;
}

.footer .links .link {
    text-decoration: none;
    color: white;
    margin-top: 5px;
}

.footer .address {
    width: 80%;
    margin-top: 30px;
    margin-left: 5%;
}

.footer #goblin {
    position: absolute;
    width: 95vw;
    bottom: 0px;
}

.footer .copy {
    width: 100%;
    position: absolute;
    font-weight: 400;
    bottom: 10px;
    text-align: center;
}

/*----------------------------
------- footer ends ----------
------------------------------*/


@media only screen and (min-width: 768px) {

    h1 {
        position: relative;
        font-size: 50px;
        font-weight: 700;
        text-align: center;
        margin-top: 10%;
    }

    #portfolio-single {
        position: relative;
        height: auto;
        margin-bottom: 5%;
        padding-top: 5%;
        padding-left: 10%;
        padding-right: 10%;
        padding-bottom: 5%;
        align-items: center;
    }

    .grid {
        display: grid;
        gap: 5rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .grid>div {
        display: block;
        width: 350px;
        height: 300px;
        background: #012970;
        overflow: hidden;
    }

    .projects {
        position: relative;
        border-radius: 10px;
    }

    .projects::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 250px;
        background-color: black;
        border-radius: 10px 10px 0px 0px;
        opacity: 0.5;
        transition: all 0.25s;
        transition-delay: 0.25s;
        opacity: 0;
    }

    /*.projects:hover::before {
        opacity: 0.3;
        transition-delay: 0s;
    }*/

    .projects #visit {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        color: white;
        font-size: 25px;
        font-weight: bold;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.25s;
    }

    /*.projects:hover #visit {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }*/

    img {
        border-radius: 10px 10px 0px 0px;
        transition: 0.3s;
    }

    h2 {
        color: white;
        font-size: 20px;
        font-weight: 300;
        text-align: center;
        margin-top: 4%;
    }

    /*----------------------------
    ------- footer starts ----------
    ------------------------------*/

    .footer {
        display: flex;
        background-position: -450px 0px;
    }

    .footer .title {
        width: 900px;
        font-size: 45px;
        padding-left: 40px;
    }

    .footer .links {
        margin-top: 65px;
        width: 500px;
    }

    .footer .links .useful {
        font-size: 25px;
    }

    .footer #goblin {
        width: 40vw;
        margin-left: 30%;
    }

    .footer .address {
        margin-top: 65px;
        font-size: 20px;
    }


    /*----------------------------
    ------- footer ends ----------
    ------------------------------*/

}