@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+NSW:wght@100..400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-main: #0E0B09;
    --bg-section: #1A1410;

    --coffee-dark: #6F4E37;
    --coffee-light: #8B5E3C;

    --text-main: #F5EFE6;
    --text-muted: #E6D3B1;

    --btn-main: #C89B6A;
    --btn-hover: #A97C50;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-main);
    color: var(--coffee-dark);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--coffee-dark);
    font-weight: 800;
    cursor: pointer;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--coffee-dark);
    margin-left: 4rem;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--coffee-light);
    border-bottom: 3px solid var(--coffee-light);
    transform: translateY(-4px);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--coffee-dark);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 10rem;
}

.home {
    display: flex;
    justify-content: left;
    text-align: left;
    align-items: center;
    gap: 8rem;
    background: url(assets/hero-section.jpg)center no-repeat;
    background-size: cover;
}

.home-content h3 {
    color: var(--text-muted);
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.home-content h1 {
    color: var(--coffee-dark);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
    max-width: 450px;
    margin: 3rem 0;
    color: var(--text-main);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);

}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--btn-main);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background: transparent;
    color: white;
    border: 2px solid var(--btn-hover);
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(assets/background.jpg);
    min-height: 100vh;
    background-size: cover;
}


.heading {
    font-size: 8rem;
    text-align: center;
}

.about-content {
    text-align: center;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(24, 24, 24, 0.3);
    border-radius: 2rem;
    padding: 5rem;
}

.about-content h2 {
    text-align: center;
    line-height: 1.5;
    color: var(--text-muted);
}

.about-content p {
    font-size: 2rem;
    margin: 2rem 0 3rem;
    max-width: 800px;
    color: var(--text-main);
}

.coffees {
    background-color: var(--bg-section);
}

.coffees-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    margin-top: 10rem;
    gap: 3rem;
}

.coffees-container .coffees-box {
    position: relative;
    border-radius: 2rem;
    height: auto;
    display: flex;
    border: 2px solid var(--coffee-light);
    overflow: hidden;
    flex-direction: column;
}

.coffees-box img {
    width: 100%;
    height: 100%;
    transition: 0.5s ease;
    object-fit: cover;
}

.coffees-box:hover img {
    transform: scale(1.05);
}

.coffees-box .coffees-info {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: first baseline;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    cursor: pointer;
    transition: 0.5s ease;
    gap: 8px;
}

.price-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.coffees-box .coffee-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
}


.coffees-info h4 {
    font-size: 3rem;
    color: var(--coffee-light);
    font-weight: 800;
    margin: 1rem 0 0.5rem;

}

.coffees .heading {
    color: var(--text-muted);
}

.coffees-info span {
    display: inline-block;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: var(--text-muted);
}


.coffees-info span,
.coffees-info .rating {
    display: inline-flex;
    vertical-align: middle;
    margin: 0.5rem 0 1.5rem;
}

.coffees-info .rating {
    display: flex;
    margin-left: 15px;
    gap: 2px;
}

.coffees-info .rating i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.contact {
    background-color: var(--bg-section);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-muted);
    background-color: var(--bg-section);
    border-radius: 0.8rem;
    border: 2px solid var(--coffee-dark);
    margin: 1rem 0;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-main);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: white;
}

.footer .social a {
    font-size: 25px;
    color: white;
    border: 2px solid white;
    width: 42px;
    height: 42px;
    line-height: 41px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2)translateY(-4px);
    background-color: white;
    color: var(--btn-hover);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.footer ul li a:hover {
    border-bottom: 3px solid white;
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

/* 1200px */

@media(max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

/* 991px */
@media(max-width: 991px) {
    .home {
        justify-content: center;
    }

    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .coffees {
        padding-bottom: 7rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

/* 895px */
@media(max-width:895px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        text-align: center;
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home-content {
        text-align: center;
    }

    .home-content h3 {
        font-size: 5rem;
        color: var(--text-muted);

    }

    .home-content h1 {
        font-size: 8rem;
        color: var(--coffee-dark)
    }

    .about-content {
        margin: 1rem 4rem;

    }

    .coffees h2 {
        margin-bottom: 3rem;
    }

    .coffees-container {
        grid-template-columns: repeat(1, 1fr);
    }

}
