:root {
    --blackish: #333;
    --whiteish: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

section {
    scroll-margin-top: 100px;
}

h1,
h2,
h3 {
    font-weight: 600;
}

svg {
    margin: auto;
}
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}
p {
    font-size: clamp(16px, 1.5vw, 18px);
}

body,
#profile-body {
    overflow-x: hidden;
    overflow-y: auto;
    font-size: calc(15px + 0.390625vw);
    background: var(--website-background-color);
    padding: 0;
}
.shop-name {
    color: var(--text-color);
    font-size: 1.5em;
    letter-spacing: -1px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 101;
    background: var(--main-website-color);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.user-image {
    border-radius: 50%;
    display: flex;
    margin: 5px 0;
    align-items: center;
    justify-content: center;
    height: 50px;
    object-fit: cover;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.navbar {
    width: 90%;
    height: 90px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .links a:not(.action-btn) {
    color: var(--text-color);
    position: relative;
}

.navbar .links form button {
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.hover-animation::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform-origin: bottom left;
    transition: transform 0.1s ease-out;
    transform: scaleX(0);
}

.hover-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.action-btn {
    background: var(--whiteish);
    padding: 12px;
    color: var(--blackish);
    font-weight: 600;
    transition: scale 0.1s ease;
}
.action-btn:hover {
    scale: 1.02;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.logo img {
    display: flex;
    margin: 5px 0;
    align-items: center;
    justify-content: center;
    max-height: 80px;
    width: 100%;
    object-fit: cover;
}

.navbar .links {
    display: flex;
    gap: 1em;
    align-items: center;
    font-size: 0.7em;
    letter-spacing: 1px;
}

.navbar .toggle_btn {
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

/* ---dropdown menu---- */
.dropdown_menu {
    display: block;
    font-size: 0.9em;
    max-height: 0;
    overflow: hidden;
    width: 90%;
    margin: auto;
    transition: max-height 0.4s ease-in-out;
}

.dropdown_menu.open {
    max-height: 100vh;
    z-index: 100;
}

.dropdown_menu li {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}
.dropdown_menu a:not(.action-btn) {
    color: var(--text-color);
    position: relative;
}

.dropdown_menu li form button {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
}
/* ----------responsive navbar----------- */
@media (max-width: 992px) {
    .navbar .links {
        display: none;
    }

    .navbar .toggle_btn {
        display: flex;
    }

    .dropdown_menu {
        display: block;
    }
}
@media (width > 992px) {
    .navbar .toggle_btn {
        display: none;
    }
    .dropdown_menu {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar .logo a {
        font-size: 1rem;
    }
}
/* ----------responsive navbar----------- */
/* ---------navbar-------------- */
hr {
    width: 100px;
    border: 1px solid var(--blackish);
}
.about-text hr {
    border: 1px solid var(--text-color);
}
/* --------about--------- */

#about {
    margin-top: 90px;
    display: flex;
    align-items: center;
}
#about .about-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    /* text-shadow: 1px 1px 0px rgb(0, 0, 0); */
    z-index: 2;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    max-width: 800px;
    padding: 1em;
    background: var(--about-section-color);
    border-radius: 6px;
    margin-left: 20px;
}
#about .about-info hr {
    border-top: 1px solid var(--text-color);
}
#about .about-info .social-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}
.social-btns i {
    width: 25px;
    height: 25px;
    font-size: 24px;
}
#about .about-image {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 90px);
    height: auto;
}

#about .about-image img {
    /* box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4); */
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    min-height: calc(100vh - 90px);
}

.mySwiper4 .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.mySwiper4 .swiper-pagination-bullet-active {
    background-color: var(--main-website-color);
}
.mySwiper4 .swiper-slide {
    height: auto;
    width: 100%;
}
#about .about-text {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

@media screen and (max-width: 1000px) {
    /* #about {
    gap: 2em;
    flex-direction: column;
  } */
    #about .about-info .social-btns {
        flex-direction: row;
        align-items: flex-start;
    }
    #about .about-info {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

#services {
    margin: 10vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
}

.mySwiper3 {
    padding: 3em 0;
    width: 95%;
    height: auto;
    display: flex;
    justify-content: center;
}
.mySwiper3 .swiper-wrapper {
    width: fit-content;
    display: flex;
    align-items: center;
}

.mySwiper3 .swiper-button-next,
.mySwiper3 .swiper-button-prev {
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
.mySwiper3 .swiper-button-next::after,
.mySwiper3 .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 600;
}
#services h3 {
    font-size: 25px;
    text-align: center;
}
.mySwiper3 .service-card > div {
    text-align: center;
    position: absolute;
    padding: 5px;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 0px rgb(0, 0, 0);
    bottom: 0px;
    width: 100%;
    min-height: 135px;
    left: 0px;
    background: rgba(51, 51, 51, 0.3);
    max-width: 400px;
}
#services .service-card img {
    position: relative;
    display: block;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    object-fit: cover;
}
#services .mySwiper3 .service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}
.mySwiper3 .service-card hr {
    width: 20%;
    border-top: 1px solid #fff;
    margin: 0 auto 15px;
}
.mySwiper3 .service-card h3 {
    word-wrap: break-word;
}
.mySwiper3 .service-card p {
    word-wrap: break-word;
}
#no-services-yet {
    text-align: center;
    width: 100%;
}
/* ------works------- */
#works {
    background: var(--main-website-color);
    margin: 10vw 0;
    padding: 5vh 0;
    color: var(--text-color);
}
#works h2 {
    padding: 0 5vw;
}
#works hr {
    border: 1px solid var(--text-color);
    margin: 0.8em 5vw 0;
}

.mySwiper1 {
    width: 100%;
    padding: 50px 0;
}

.mySwiper1 .swiper-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    /* width: 240px; */
    width: 100%;
    max-width: 360px;
    /* height: 300px; */
    height: auto;
    max-height: 440px;
}

.mySwiper1 .swiper-slide img {
    position: relative;
    padding: 20px 20px 100px 20px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mySwiper1 .img-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 20px;
    width: 100%;
    min-height: 100px;
    height: auto;
    color: #000;
    position: absolute;
    bottom: 0px;
    /* text-align: center; */
    font-size: 17px;
}
#works .img-info hr {
    border: 1px solid var(--blackish);
    margin: 0;
}

#works .img-info h4 {
    word-wrap: break-word;
    letter-spacing: -0.5px;
    font-weight: 500;
}

#works .img-info p {
    word-wrap: break-word;
}

#no-work-yet {
    text-align: center;
    width: 100%;
}

#no-specialists-yet {
    text-align: center;
    width: 100%;
    margin-top: 3rem;
}

.mySwiper1 .swiper-button-next,
.mySwiper1 .swiper-button-prev {
    color: var(--text-color);
}
#reviews {
    /* border: 1px solid; */
    position: relative;
    margin: 10vh 2vw;
    padding: 5vw 0;
    border-radius: 20px;
    color: var(--text-color);
    background: var(--main-website-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}
#reviews-modal {
    width: 100%;
    border: 1px solid;
    position: relative;
    padding: 5vh 0;
    border-radius: 20px;
    color: var(--whiteish);
    background: var(--main-website-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding-bottom: 2em;
}
/* #reviews-modal .review-card {
  width: 100%;
} */
#reviews hr,
#reviews-modal hr {
    border: 1px solid var(--text-color);
}

#reviews h2 .fa-star,
#reviews-modal h2 .fa-star {
    color: rgb(196, 136, 25);
    margin-right: 5px;
}

#reviews-container {
    display: flex;
    margin: 2em 1em;
    align-items: center;
    justify-content: center;
}
.all-reviews-container {
    display: flex;
    margin: 2em 0em;
    align-items: center;
    justify-content: center;
}
#modal-reviews-container {
    display: flex;
    flex-direction: column;
    margin: 4em 1em;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
}
#reviews .review-card:nth-of-type(odd) {
    margin-top: 50px;
}

@media screen and (max-width: 1099px) {
    #reviews .review-card:nth-of-type(odd) {
        margin-top: 0;
    }
    #reviews-container {
        flex-wrap: wrap;
        gap: 60px;
        margin-top: 60px;
        max-width: 500px;
    }
}
.review-card {
    color: var(--blackish);
    background: var(--whiteish);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-radius: 20px;
    padding: 55px 1em 1em;
    margin: 0 1em;
    max-width: 50ch;
}

.review-card .review-title {
    width: 100%;
    display: flex;
    align-items: center;
    /* gap: 1rem; */
}

.review-card .users-review {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

.review-card .rating-stars i {
    color: #c48819;
}
.review-card img {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--blackish);
}

#showMoreReviews {
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
#showMoreReviews:hover {
    color: var(--whiteish);
    background: #888;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px;
    max-width: 800px;
    width: 100%;
    border-radius: 6px;
    height: 100%;
    overflow: auto;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}
@media (width < 576px) {
    .review-card {
        margin: 0;
    }
}
/* -------------team---------------- */
#team {
    margin: 10vh 0;
    text-align: center;
}
#team > hr {
    margin: 0.8em auto 2em;
}

#team .team-member {
    position: relative;
    max-width: 250px;
    width: 100%;
    margin: 3vw auto;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}
#team .team-member img:hover {
    filter: brightness(1);
}
#team .team-member img {
    width: 250px;
    width: 100%;
    aspect-ratio: 5/6;
    border-radius: 12px;
    object-fit: cover;
    height: auto;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

#team .team-member .member-info {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    padding: 0.2em;
    color: #000;
    font-weight: 600;
}
#team .team-member .member-info hr {
    width: 30%;
    border-top: 1px solid #000;
}

.member-info .member-name {
    max-width: 180px;
    word-wrap: break-word;
}

.member-info .member-specialty {
    color: #666;
    max-width: 180px;
    word-wrap: break-word;
}
.mySwiper2 {
    width: 95%;
    height: auto;
}
.mySwiper2 .swiper-slide {
    max-width: 250px;
    width: 100%;
}
.mySwiper2 .swiper-wrapper {
    width: fit-content;
    height: auto;
    -webkit-transition-timing-function: linear !important;
    -o-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}

#password-reset-message {
    color: green;
    font-size: 0.8em;
}

#contact {
    margin: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    font-size: 0.9em;
}
#contact .contact-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact .contact-image img {
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
    border-radius: 20px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    height: auto;
}
#contact .contact-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
#contact .info-box {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 1rem;
}

#orario {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#time-scedule {
    display: flex;
    flex-direction: column;
    width: 250px;
    gap: 5px;
}
#time-scedule .weekday {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
#time-scedule .weekday:not(:first-child) {
    border-top: 1px solid #d3d3d3;
}
#time-scedule .day {
    text-align: left;
    grid-row: span 2;
}
#time-scedule .time {
    text-align: right;
}

#contact-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
}
#contact-links {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    gap: 0.5em;
    flex: 1;
}
#contact-links i {
    margin-right: 0.4em;
}
.wcbtn {
    background: var(--main-website-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-weight: 600;
    /* transition: scale 0.2s ease; */
}
.wcbtn:hover {
    scale: 1.02;
}
@media screen and (max-width: 1000px) {
    #contact {
        flex-direction: column-reverse;
    }
}
@media screen and (max-width: 500px) {
    #contact .info-box {
        gap: 2em;
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (width <= 500px) {
    #contact {
        text-align: center;
    }
    #contact hr {
        margin: auto;
    }
    #contact-action {
        align-items: center;
    }
    .wcbtn {
        width: 70vw;
        margin-top: 1em;
    }
    .info-box,
    .contact-image {
        margin-top: 20px;
    }
    body::-webkit-scrollbar {
        display: none;
    }
}
footer {
    background: var(--main-website-color);
    color: var(--text-color);
    padding: 2vw 0 1vw;
}
footer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10em;
}

footer hr {
    border: 1px solid var(--text-color);
    width: 50%;
    margin: 1em auto;
}
footer .social-btns {
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 1em;
    flex: 1;
}

footer .logo {
    flex-direction: column;
    white-space: nowrap;
    flex: 1;
}
footer .shop-name {
    color: inherit;
}

footer .contact-links {
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}
footer .contact-links i {
    margin-right: 5px;
}
#copyright {
    /* text-align: center; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: var(--text-color);
}
#copyright img {
    height: 0.9em;
}

@media screen and (max-width: 900px) {
    footer {
        padding-top: 1em;
    }
    footer > div {
        flex-direction: column;
        gap: 1.5em;
    }
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    font-size: 16px;
    background-color: var(--main-website-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 900;
    transition: all 0.4s ease;
}
#backToTopBtn:hover {
    color: var(--main-website-color);
    background: var(--text-color);
}

#edit-profile {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    position: fixed;
    top: 90px;
    width: 100%;
    height: 100%;
    bottom: 90px;
    overflow-y: auto;
    z-index: 1000;
}

#editProfileFormWrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
    width: 100%;
}

#editProfileForm {
    width: 600px;
    max-width: 100%;
}

#review-container {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
}
.no-scroll {
    overflow: hidden !important;
}

.logout-symbol {
    color: var(--text-color);
    font-size: 30px !important;
    font-variation-settings: inherit !important;
}
