@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap");

:root {
    --main-color: #443;
    --border-radius: 95% 4% 97% 5% / 4% 94% 3% 95%;
    --border-radius-hover: 4% 95% 6% 95% / 95% 4% 92% 5%;
    --border: 0.2rem solid var(--main-color);
    --border-hover: 0.2rem dashed var(--main-color);
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}

section {
    padding: 2rem 9%;
}

.heading {
    font-size: 9rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 0.05rem var(--main-color);
    letter-spacing: 0.2rem;
    text-align: center;
    pointer-events: none;
    position: relative;
}

.heading span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: var(--main-color);
    font-size: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border: var(--border);
    border-radius: var(--border-radius);
    color: var(--main-color);
    background: none;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1.7rem;
}

.btn:hover {
    border-radius: var(--border-radius-hover);
    border: var(--border-hover);
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 2rem 9%;
}

.header .logo {
    color: var(--main-color);
    font-size: 2.3rem;
}

.header .main-logo img {
    width: 20%;
    height: 20%;
}

.header .navbar a {
    margin: 0 1rem;
    font-size: 1.7rem;
    color: var(--main-color);
}

.header .btn {
    margin-top: 0;
}

#menu-btn {
    font-size: 3rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}

/* HOME */

.home {
    min-height: 100vh;
    padding-top: 12rem;
    background: url(../image/home-bg1.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.home .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home .row .content {
    flex: 1 1 42rem;
}

.home .row .image {
    flex: 1 1 42rem;
    padding-top: 10rem;
    text-align: center;
}

.home .row .image img {
    height: 45rem;
    animation: aboutImage 4s linear infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0rem);
    }

    50% {
        transform: translateY(-7rem);
    }
}

.home .row .content h3 {
    font-size: 6.5rem;
    color: var(--main-color);
    text-transform: uppercase;
}
.home .row .content p {
    font-size: 2rem;
}

.home .image-slider {
    text-align: center;
    padding: 4rem 0;
}

.home .image-slider img {
    height: 9rem;
    margin: 0 0.5rem;
    cursor: pointer;
    margin-top: 5rem;
}

.home .image-slider img:hover {
    transform: translateY(-2rem);
}

/* ABOUT */

.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about .row .image {
    flex: 1 1 42rem;
}

.about .row .image img {
    width: 80%;
    animation: float 4s linear infinite;
}

@keyframes aboutImage {
    0%,
    100% {
        transform: scale(0.9);
        border-radius: var(--border-radius-hover);
    }

    50% {
        transform: scale(0.8);
        border-radius: var(--border-radius);
    }
}

.about .row .content {
    flex: 1 1 42rem;
}

.about .row .content .title {
    color: var(--main-color);
    font-size: 3rem;
    line-height: 1.8;
}

.about .row .content p {
    color: var(--main-color);
    font-size: 1.5rem;
    line-height: 1.8;
    padding: 1rem 0;
}

.about .row .content .icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 3rem;
}

.about .row .content .icons-container .icons {
    flex: 1 1 15rem;
    padding: 1.5rem;
    text-align: center;
    border: var(--border);
    border-radius: var(--border-radius);
}

.about .row .content .icons-container .icons img {
    height: 5rem;
}

.about .row .content .icons-container .icons h3 {
    font-size: 1.7rem;
    padding-top: 1rem;
    color: var(--main-color);
}

/* MENU */

.menu {
    background: url(../image/menu-bg.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.menu .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.menu .box-container .box {
    flex: 1 1 42rem;
    padding: 2rem;
    border: var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 6rem;
}

.menu .box-container .box:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.menu .box-container .box img {
    height: 8rem;
    margin-left: -6rem;
}

.menu .box-container .box .content h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    line-height: 1.8;
}

.menu .box-container .box .content p {
    font-size: 1.6rem;
    color: var(--main-color);
    line-height: 1.8;
    padding: 1rem 0;
}

.menu .box-container .box .content span {
    font-size: 2rem;
    color: var(--main-color);
    line-height: 1.8;
}

/* PRODUCTS */

.products {
    background: #f9f9f9;
    padding: 5rem 9%;
    padding-top: 5%;
}

.products-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.category {
    background: #fff;
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s linear;
}

.category:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.category h2 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.category > p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.product-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.product-item p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
}

.contact-info {
    background: #fff;
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    transition: all 0.3s linear;
}

.contact-info:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--main-color);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* REVIEW */

.review .review-slider {
    padding: 7rem 0;
}

.review .review-slider .box {
    border: var(--border);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    z-index: 0;
    padding: 2rem;
}

.review .review-slider .box .fa-quote-left {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-size: 6rem;
    color: #ccc;
    z-index: -1;
}

.review .review-slider .box .fa-quote-right {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    font-size: 6rem;
    color: #ccc;
    z-index: -1;
}

.review .review-slider .box:hover .fa-quote-left {
    top: -6.5rem;
}

.review .review-slider .box:hover .fa-quote-right {
    bottom: -6.5rem;
}

.review .review-slider .box img {
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
    margin-bottom: 0.7rem;
}

.review .review-slider .box .stars {
    padding: 0.5rem 0;
}

.review .review-slider .box .stars i {
    font-size: 1.7rem;
    color: var(--main-color);
}

.review .review-slider .box p {
    font-size: 1.6rem;
    color: var(--main-color);
    padding: 1rem 0;
    line-height: 1.8;
}

.review .review-slider .box h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    line-height: 1.8;
}

.review .review-slider .box span {
    font-size: 1.5rem;
    color: var(--main-color);
}

.swiper-pagination-bullet {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 0;
}

.swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* BOOK */

.book {
    background: url(../image/book-bg.jpg);
    background-position: center;
    background-size: cover;
}

.book .contact-card {
    max-width: 80rem;
    margin: 0 auto;
}

.book .contact-info {
    background: #fff;
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    transition: all 0.3s linear;
}

.book .contact-info:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.book .contact-info h3 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.book .contact-info > p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.detail-item i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-top: 0.5rem;
}

.detail-item h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.social-links {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.social-links h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-0.3rem);
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3 {
    font-size: 2.5rem;
    padding: 1rem 0;
    color: var(--main-color);
}

.footer .box-container .box a {
    display: block;
    font-size: 1.5rem;
    padding: 1rem 0;
    color: var(--main-color);
}

.footer .box-container .box a i {
    padding-right: 0.5rem;
}

.footer .box-container .box a:hover i {
    padding-right: 2rem;
}

.footer .credit {
    text-align: center;
    font-size: 2rem;
    padding: 2rem 1rem;
    margin-top: 1rem;
    color: var(--main-color);
}

.footer .credit span {
    border-bottom: var(--border-hover);
}

/* PRODUCTS PAGE STYLES */

.products .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.products .category-header {
    grid-column: 1 / -1;
    background: var(--main-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: center;
}

.products .category-header:first-of-type {
    margin-top: 3rem;
}

.products .category-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.products .category-header p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.products .box {
    border: var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    padding: 2rem;
    transition: all 0.2s linear;
    cursor: default;
}

.products .box:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.products .box .content {
    width: 100%;
}

.products .box .content h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.products .box .content p {
    font-size: 1.6rem;
    color: var(--main-color);
    line-height: 1.8;
}

.products .box .content a {
    color: var(--main-color);
    font-weight: 500;
}

.products .box .content a:hover {
    text-decoration: underline;
}

/* Active nav link styling */
.navbar a.active {
    color: var(--main-color);
    font-weight: 600;
}

/* Contact info section */
.products .contact-info {
    background: #fff;
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
    transition: all 0.3s linear;
}

.products .contact-info:hover {
    border: var(--border-hover);
    border-radius: var(--border-radius-hover);
}

.products .contact-info h2 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.products .contact-info p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.products .contact-info a {
    color: var(--main-color);
}

.products .contact-info a:hover {
    text-decoration: underline;
}

/* MEDIA QUERIES */

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 3rem;
    }

    section {
        padding: 2rem;
    }

    .products {
        padding: 3rem 2rem;
        padding-top: 20%;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 6rem;
    }

    .heading span {
        font-size: 2.3rem;
    }

    #menu-btn {
        display: initial;
    }

    #menu-btn.fa-times {
        transform: rotate(180deg);
    }

    .header .navbar {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        background: #fff;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .navbar a {
        display: block;
        font-size: 2.2rem;
        margin: 0;
        padding: 1.5rem 2rem;
    }

    .home {
        text-align: center;
    }

    .home .row .content h3 {
        font-size: 4rem;
    }

    .menu .box-container .box {
        margin-left: 0;
        margin-top: 6rem;
        flex-flow: column;
        text-align: center;
    }

    .menu .box-container .box img {
        margin-left: 0;
        margin-top: -6rem;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .category {
        padding: 1.5rem;
    }

    .category h2 {
        font-size: 2rem;
    }

    .product-item h3 {
        font-size: 1.6rem;
    }

    .product-item p {
        font-size: 1.3rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home .row .image img {
        height: auto;
        width: 100%;
    }
}
