html {
    scroll-behavior: smooth;
}

html * {
    font-family: Apple Chancery, serif; !important
}

body {
    margin: 0;
}

.landing {
    display: flex;
    flex-direction: column;
    background-color: #012169;
    min-height: 100vh;
    position: relative;
}

h2 {
    font-size: 2rem;
    color: #fff;
}

p {
    font-size: 1.25rem;
}

#toast {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    border-radius: .35rem;
    padding: 16px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    visibility: hidden;
}

/* navbar */

.navbar {
    top: 0;
    position: fixed;
    width: 100%;
    height: 4.6rem;
    z-index: 998;
    background-color: #fff;
}

.links {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    color: #000000;
    text-decoration: none;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.drawer {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    z-index: 999;
    transition: left 0.3s ease;
}

.drawer div {
    padding: 1rem;
}

.drawer a {
    display: block;
    padding: 1rem;
    color: #000000;
    text-decoration: none;
}

/* navbar end */

/* welcome */

.welcome-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.welcome-logo {
    z-index: 99;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    top: 40%;
    padding-bottom: 1rem;
    background-color: #f7f7f757;
}

.welcome-logo > img {
    width: 100%;
    max-width: 800px;
}

.welcome-backgroud {
    width: 100%;
    height: 1000px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/banner.png');
}

/* welcome end */

/* about  */

.about-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.about-content {
    z-index: 99;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 40%;
    left: 30%;
    right: 10%;
    padding: 1rem;
    color:#fff;
    text-align: right;
}

.about-backgroud {
    width: 100%;
    height: 900px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/about.png');
}

/* about end */

/* product-stack */

.stack-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-top: 4.6rem;
    color: #fff;
}

.stack-inner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stack-item {
    position: relative;
    display: flex;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: .35rem;
    box-shadow:
    rgb(40, 40, 40, 0.1) 0px 2px 3px,
    rgb(20, 20, 20, 0.2) 0px 5px 8px,
    rgb(0, 0, 0, 0.25) 0px 10px 12px;
}

.stack-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 400px;
    background-color: #5f5c5c57;
    transition: 400ms ease-in-out;
}

.stack-image:hover {
    transform: scale(1.15);
}

.stack-title {
    position: absolute;
    padding: 1rem;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    text-decoration: none;
    color: #000000;
}

/* product-stack end */

/* location  */

.location-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    color:#fff
}

.location-content {
    z-index: 99;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 10%;
    left: 10%;
    right: 55%;
    padding: 1rem;
}

.location-content a {
    color: #fff;
    text-decoration: none;
}

.location-item {
    font-weight: 600;
}

.address {
    background-color: #5f5c5c57;
    border-radius: .35rem;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.location-backgroud {
    width: 100%;
    height: 900px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/map.png');
}

/* location end */

/* contact */

.contact-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    color:#fff
}

.contact-content {
    z-index: 99;
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 500px;
    top: 10%;
    text-align: center;
}

.contact-form {
    background-color: #5f5c5c57;
    border-radius: .35rem;
    padding: 1rem;
    margin: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 96%;
    padding: 5px;
    margin-bottom: 10px;
}
.contact-form textarea {
    height: 100px;
    resize: none;
}
.contact-form button {
    background-color: #fff;
    color: #000000;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.contact-stack {
    display: flex;
    justify-content: center;
    max-width: 100%;
    gap: 8rem;
    margin-bottom: 2rem;
}

.contact-stack-item {
    position: relative;
    display: flex;
    overflow: hidden;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.icons img {
    width: 3rem;
}

.contact-backgroud {
    width: 100%;
    height: 900px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/contact.jpg');
}

/* contact end */

#product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3.5rem;
    text-align: center;
}

#product-detail h2 {
    border-radius: 8px;
    padding: 1rem;
}

#product-detail .text-content {
    text-align: left;
    color: #fff;
}

.product-detail-images > section {
    display: flex;
    width: 100%;
    height: 430px;
    padding-top: 3.5rem;
    background-color: #f7f7f757;
}

.product-detail-images > section img {
    width: 0px;
    flex-grow: 1;
    object-fit: cover;
    filter: contrast(80%);
    filter: blur(1px);
    transition: .5s ease;
}

.product-detail-images > section img:hover,
.product-detail-images > section img.touch-hover {
    width: 200px;
    filter: contrast(100%);
}

.gallery {
    --anim-time--hi: 266ms;
    --anim-time--med: 400ms;
    --anim-time--lo: 600ms;

    display: flex;
    place-content: center;
    max-width: 100%;
    width: max(22.5rem, 100%);
    margin-inline: auto;
}

.gallery__content--flow {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

figure {
    display: flex;
    width: 300px;
    max-height: 300px;
    position: relative;
    border-radius: .35rem;
    box-shadow:
    rgb(40, 40, 40, 0.1) 0px 2px 3px,
    rgb(20, 20, 20, 0.2) 0px 5px 8px,
    rgb(0, 0, 0, 0.25) 0px 10px 12px;
    overflow: hidden;
    transition: transform var(--anim-time--med) ease;
}

.header__caption {
    z-index: 10;
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    align-self: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--anim-time--hi) linear,
    opacity var(--anim-time--hi) linear;
}

figure:hover::before,
figure.touch-hover::before {
    opacity: 0.8;
}

figure:hover .header__caption, figure.touch-hover .header__caption {
    transform: translateY(0);
    opacity: 1;
}

figure:hover img, figure.touch-hover img{
    transform: scale(1);
}

.title {
    background-color: #fff;
    padding: 1rem;
    color: #000000;
}

figure > img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 100%;
    transform: scale(1.15);
    aspect-ratio: 16 / 13;
    transition: 400ms ease-in-out;
}

@media (max-width: 768px) {
    .links {
        display: none;
    }

    .hamburger {
        height: 100%;
        display: block;
        display: flex;
        justify-content: flex-end;
        padding-right: 2rem;
        align-items: center;
    }

    .stack {
        flex-direction: column;
        max-width: 100%;
    }

    .stack-item {
        width: 100%;
    }

    .about-content {
        align-items: center;
        text-align: center;
        left: 0;
        right: 0;
        top: 30%
    }

    .location-content {
        align-items: center;
        text-align: center;
        left: 0;
        right: 0;
    }

    .contact-stack {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    #product-detail .text-content {
        text-align: center;
    }

    .contact-content{
        top: 10%;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .location-content {
        left: 0;
        right: 0;
    }

    .contact-stack {
        gap: 4rem;
    }

}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}