* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
}
/* ========================== HEADER ========================== */
.navbar {
    display: flex;
    align-items: center;
    height: 10vh;
    margin: auto;
    justify-content: space-between;
    position: fixed;
    width: 100vw;
    padding: 0 3rem;
    transition: all 0.1s ease;
    z-index: 10;
    /* width: 95vw;
    left: 2%; */
}
.nav-active {
    background: #3cbdff;
}
.navlinks {
    display: flex;
    justify-content: space-between;
    width: 35%;
    /* background: red; */
    align-items: center;
}
.nav {
    font-family: "Barlow", sans-serif;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s ease-in-out;
}
.nav:hover {
    color: rgb(201, 201, 201);
}
.navbar ul {
    display: flex;
    flex: 1;
    justify-content: space-around;
    list-style: none;
}
.contact-btn {
    font-family: "Fraunces", serif;
    margin-left: 2rem;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 1.7rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}
.contact-btn:hover {
    background: rgb(201, 201, 201);
}

.logo {
    font-family: "Barlow", sans-serif;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}
/* .navlink-back {
    padding: 0.5rem 0.2rem;
} */

.header {
    background: url("./images/desktop/image-header.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header-text {
    font-family: "Fraunces", serif;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 15px;
    margin-bottom: 3rem;
    text-align: center;
    /* background: teal; */
}
.header img {
    margin-top: 2.5rem;

    /* display: block; */
}

/* ========================== CHESS ========================== */
.row {
    display: flex;
    height: 80vh;
}
.egg-text,
.glass-text,
.cherry,
.orange {
    flex: 1;
    display: flex;
    justify-content: center;
}
.egg-text h2,
.glass-text h2 {
    font-family: "Fraunces", serif;
    color: hsl(212, 27%, 19%);
    font-size: 2.5rem;
    font-weight: 900;
}
.egg-text p,
.glass-text p {
    font-family: "Barlow", sans-serif;
    color: hsl(232, 10%, 55%);
    font-size: 1.2rem;
    margin: 2rem 0;
}
.egg-text div,
.glass-text div {
    width: 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.egg-text a,
.glass-text a {
    font-family: "Fraunces", serif;
    color: hsl(212, 27%, 19%);
    font-weight: 900;
    position: relative;
}
.glass-text a::after {
    content: "";
    display: block;
    background: #f9dad2;
    height: 0.625rem;
    width: 30%;
    position: absolute;
    bottom: -2px;
    left: -10px;
    border-radius: 5px;
    z-index: -10;
}
.egg-text a::after {
    content: "";
    display: block;
    background: #fcf2c3;
    height: 0.625rem;
    width: 30%;
    position: absolute;
    bottom: -2px;
    left: -10px;
    border-radius: 5px;
    z-index: -10;
}

.glass-pict {
    background: url("./images/desktop/image-stand-out.jpg");
}
.egg-pict {
    background: url("./images/desktop/image-transform.jpg");
}
.cherry {
    background: url("./images/desktop/image-graphic-design.jpg");
}
.orange {
    background: url("./images/desktop/image-photography.jpg");
}
.egg-pict,
.glass-pict,
.cherry,
.orange {
    background-repeat: no-repeat;
    flex: 1;
    background-size: cover;
    background-position: center;
}
.orange div,
.cherry div {
    width: 45%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transform: translate(0, -10%);
}
.orange div h3,
.cherry div h3 {
    font-family: "Fraunces", serif;
    font-size: 2rem;
}
.orange div p,
.cherry div p {
    font-family: "Barlow", sans-serif;
    margin-top: 1rem;
}
.cherry div h3,
.cherry div p {
    color: hsl(167, 40%, 24%);
}
.orange div h3,
.orange div p {
    color: hsl(212, 27%, 19%);
}

/* ========================== TESTIMONIAL ========================== */

.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
}
.testimonial h3 {
    font-family: "Fraunces", serif;
    color: hsl(210, 4%, 67%);
    font-size: 1.5rem;
    letter-spacing: 6px;
    margin-bottom: 5rem;
}
.testimonial .container {
    display: flex;
    width: 80%;
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
    padding: 0 1rem;
}
.card img {
    border-radius: 100%;
    height: 5rem;
}
.card p {
    font-family: "Barlow", sans-serif;
    color: hsl(213, 9%, 39%);
    font-size: 1.2rem;
    text-align: center;
    margin: 3rem 0;
}
.card h4 {
    font-family: "Fraunces", serif;
    color: hsl(212, 27%, 19%);
    font-size: 1.2rem;
}

.card h5 {
    font-family: "Barlow", sans-serif;
    color: hsl(210, 4%, 67%);
    margin-top: 0.5rem;
}

/* ========================== PHOTOGRAPHY ========================== */
.photography {
    display: flex;
    height: 60vh;
}
.photography .img1 {
    background: url("./images/desktop/image-gallery-milkbottles.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}
.photography .img2 {
    background: url("./images/desktop/image-gallery-orange.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}
.photography .img3 {
    background: url("./images/desktop/image-gallery-cone.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}
.photography .img4 {
    background: url("./images/desktop/image-gallery-sugarcubes.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}
.photography div {
    flex: 1;
}

/* ========================== FOOTER ========================== */
footer {
    height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #90d4c5;
}
footer h3 {
    font-family: "Barlow", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #2f7666;
}
.navlinks-footer {
    display: flex;
    list-style: none;
    width: 20%;
    justify-content: space-between;
    margin: 3rem 0 5rem 0;
}
.navlinks-footer a {
    font-family: "Barlow", sans-serif;
    color: hsl(168, 34%, 41%);
    font-weight: 600;
}
.socmed {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 10%;
}

/* ========================== MEDIA QUERY ========================== */
.burger {
    /* display: flex;
    flex-direction: column; */
    /* background: teal; */
    display: none;
}
.burger div {
    height: 0.2rem;
    width: 2rem;
    background: white;
    margin-bottom: 0.4rem;
}
@keyframes jump {
    0% {
        transform: translate(-0%, -20%);
    }
    50% {
        transform: translate(-0%, -80%);
    }
    100% {
        transform: translate(-00%, -20%);
    }
}
.back-to-top {
    height: 3rem;
    width: 3rem;
    background: orangered;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 0.5rem;
    animation: jump;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.back-to-top div {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    color: white;
}
.back-to-top i {
    font-size: 1.5rem;
}
.back-to-top:hover {
    cursor: pointer;
}
.dropdown {
    display: none;
}
@media screen and (max-width: 1300px) {
    .logo {
        flex: 1;
    }
    .navlinks {
        flex: 1;
    }
    .socmed {
        width: 30%;
    }
}

@media screen and (max-width: 1000px) {
    .navlinks {
        display: none;
    }
    .burger {
        display: block;
    }
    .egg-text div,
    .glass-text div {
        width: 80%;
    }
    .navlinks-footer {
        /* background: red; */
        width: 60%;
    }
    .logo {
        font-size: 2rem;
    }
    .header-text {
        font-size: 2.5rem;
    }
    .egg-text h2,
    .glass-text h2 {
        font-size: 2rem;
    }
    .egg-text p,
    .glass-text p {
        font-size: 1rem;
    }
    .egg-text a,
    .glass-text a {
        font-size: 0.7rem;
    }
    .orange div h3,
    .cherry div h3 {
        font-size: 1.5rem;
    }
    .orange div p,
    .cherry div p {
        font-size: 0.9rem;
    }
    .card p {
        font-size: 1rem;
    }
    .card h4 {
        font-size: 1rem;
    }
    .card h5 {
        font-size: 0.7rem;
    }

    .dropdown {
        margin: 0rem;
        position: absolute;
        top: -300%;
        height: 30vh;
        width: 90%;
        margin: auto;
        display: block;
        margin-right: 1rem;
        transition: all 0.2s ease-in-out;
        z-index: -10;
    }

    .dropdown ul {
        height: 100%;
        flex-direction: column;
        background: #f8f5f2;
        justify-content: space-around;
        align-items: center;
        padding: 1rem;
    }
    .dropdown a {
        color: #9795a0;
    }
    .dropdown a:hover {
        color: #7e7d86;
    }
    .btn-dropdown {
        color: #322d10 !important;
        padding: 1rem 2rem;
        border-radius: 1.7rem;
        font-size: 1rem;
        transition: all 0.2s ease-in-out;
        background: #fbd601;
        font-weight: 900;
    }
    .btn-dropdown:hover {
        background: #b19601;
    }
}

@media screen and (max-width: 800px) {
    .row {
        flex-direction: column;
        height: 100vh;
    }
    .row1 {
        flex-direction: column-reverse;
    }
    .photography {
        display: grid;
        grid-template-columns: auto auto;
    }
}

@media screen and (max-width: 750px) {
    .navbar {
        padding: 0 1.5rem;
    }
    .testimonial .container {
        display: block;
    }
    .card {
        margin: 2.5rem 0;
    }
    .card p {
        margin: 1rem 0 0.5rem 0;
    }
    .testimonial {
        height: 130vh;
    }
    .testimonial h3 {
        margin: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    .header {
        background: url("./images/mobile/image-header.jpg");
        background-position: center;
        background-size: cover;
    }
    .logo {
        font-size: 1.8rem;
    }
    .header-text {
        font-size: 2rem;
    }
    .egg-text h2,
    .glass-text h2 {
        font-size: 1.8rem;
    }
    .egg-text p,
    .glass-text p {
        font-size: 0.8rem;
    }
    .egg-text a,
    .glass-text a {
        font-size: 0.6rem;
    }
    .orange div h3,
    .cherry div h3 {
        font-size: 1.2rem;
    }
    .orange div p,
    .cherry div p {
        font-size: 0.6rem;
    }
    .card p {
        font-size: 1rem;
    }
    .card h4 {
        font-size: 1rem;
    }
    .card h5 {
        font-size: 0.7rem;
    }
    .header img {
        height: 7rem;
    }
}
@media screen and (max-width: 400px) {
    .header-text {
        font-size: 1.8rem;
    }
}
