/*==================================================
            ESTHER GYEKYEBEA PORTFOLIO
                PORTFOLIO PAGE
==================================================*/

:root {
    --primary: #ff9f1c;
    --dark: #20252d;
    --white: #fff;
    --shadow: 0 15px 35px rgba(0, 0, 0, .2);
    --transition: .35s ease;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}

/*================ HEADER ================*/

header {
    background: #fff;
}

.nav-container {
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 85px;
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    transition: .3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: .35s;
}

.nav-links a:hover::after,
.nav-links .active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #000;
}

.menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

/*================ PORTFOLIO ================*/

.portfolio {
    background: var(--dark);
    padding: 45px 0 70px;
}

.portfolio h1 {
    color: #fff;
    text-align: center;
    font-size: 4.5rem;
    font-weight: 800;
    animation: fadeDown .8s ease;
}

.portfolio h2 {
    color: var(--primary);
    text-align: center;
    font-size: 3rem;
    margin: 30px 0 50px;
    animation: fadeUp 1s ease;
}

/*================ GRID ================*/

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
}

/*================ ITEM ================*/

.portfolio-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 5px solid rgba(255, 255, 255, .08);
    transition: .4s;
    animation: fadeUp .9s ease;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
    transition: .6s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/*================ OVERLAY ================*/

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .4s;
}

.overlay h3 {
    color: #fff;
    font-size: 1.7rem;
    transform: translateY(30px);
    transition: .4s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item:hover .overlay h3 {
    transform: translateY(0);
}

/*================ FOOTER ================*/

footer {
    background: var(--primary);
    padding: 18px;
}

footer p {
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 700;
}

/*================ ANIMATION ================*/

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*================ RESPONSIVE ================*/

@media(max-width:992px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:768px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 25px;
        flex-direction: column;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .portfolio h1 {
        font-size: 3rem;
    }

    .portfolio h2 {
        font-size: 2.2rem;
    }

}

@media(max-width:500px) {

    .logo img {
        width: 65px;
    }

    .portfolio h1 {
        font-size: 2.4rem;
    }

    .portfolio h2 {
        font-size: 1.8rem;
    }

    .overlay h3 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 1.15rem;
    }

}