/*=========================================
        ESTHER GYEKYEBEA PORTFOLIO
            SERVICES PAGE
==========================================*/

:root {
    --primary: #ff9f1a;
    --dark: #20252d;
    --white: #ffffff;
    --black: #000;
    --shadow: 0 15px 30px rgba(0, 0, 0, .18);
    --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;
    width: 0;
    height: 3px;
    background: var(--primary);
    left: 0;
    bottom: -7px;
    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;
}

/*=========================
SERVICES
=========================*/

.services {

    background: var(--dark);

    color: #fff;

    padding: 45px 0 60px;

    min-height: 590px;

}

.services h1 {

    text-align: center;

    font-size: 4.5rem;

    font-weight: 800;

    margin-bottom: 25px;

    animation: fadeDown 1s ease;

}

.intro {

    max-width: 900px;

    margin: auto;

    text-align: left;

    font-size: 1.15rem;

    line-height: 2;

    font-style: italic;

    font-weight: 700;

    animation: fadeUp 1s ease;

}

.services h2 {

    color: var(--primary);

    text-align: center;

    font-size: 3.3rem;

    margin: 20px 0 40px;

}

/*=========================
GRID
=========================*/

.service-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px;

}

/*=========================
CARD
=========================*/

.card {

    background: #f3eeee;

    color: #222;

    border-radius: 25px;

    text-align: center;

    padding: 28px 20px 35px;

    transition: .4s;

    cursor: pointer;

    animation: fadeUp .8s ease;

}

.card:hover {

    transform: translateY(-12px);

    box-shadow: var(--shadow);

}

.icon {

    font-size: 3.5rem;

    margin-bottom: 18px;

    color: #000;

    transition: .5s;

}

.card:hover .icon {

    color: var(--primary);

    transform: rotate(10deg) scale(1.15);

}

.card h3 {

    font-size: 2rem;

    margin-bottom: 22px;

}

.card p {

    font-size: 1.05rem;

    font-style: italic;

    font-weight: 700;

    line-height: 1.8;

}

/*=========================
FOOTER
=========================*/

footer {

    background: var(--primary);

    padding: 18px;

}

footer p {

    color: #fff;

    text-align: center;

    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:1100px) {

    .service-grid {

        grid-template-columns: repeat(2, 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;

    }

    .services h1 {

        font-size: 3rem;

    }

    .services h2 {

        font-size: 2.5rem;

    }

    .intro {

        text-align: center;

        font-size: 1rem;

    }

}

@media(max-width:650px) {

    .service-grid {

        grid-template-columns: 1fr;

    }

    .logo img {

        width: 70px;

    }

    .card {

        padding: 25px;

    }

    .card h3 {

        font-size: 1.6rem;

    }

    .card p {

        font-size: .95rem;

    }

    footer p {

        font-size: 1.15rem;

    }

}