@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.main_header_section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-image: url('./assets/main_bg.jpg');
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    animation: zoomAndChange 20s ease-in-out infinite;
    transition: background-image 1s ease-in-out;
}

@keyframes zoomAndChange {
    0% {
        background-size: 100%;
        background-image: url('./assets/main_bg.webp');
    }

    33% {
        background-size: 110%;
        background-image: url('./assets/main_bg.webp');
    }

    34% {
        background-size: 100%;
        background-image: url('./assets/main_bg2.webp');
    }

    66% {
        background-size: 110%;
        background-image: url('./assets/main_bg2.webp');
    }

    67% {
        background-size: 100%;
        background-image: url('./assets/main_bg3.webp');
    }

    100% {
        background-size: 110%;
        background-image: url('./assets/main_bg3.webp');
    }
}

.formmm {
    background: white;
    padding: 20px 32px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: fit-content;
    max-width: 500px;
    margin: 0 auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 12px
}

.h222 {
    text-align: center;
}

.field_for_form input {
    border-radius: 4px !important;
}

.field_for_form {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.form-main {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.texxttt {
    width: 100%;
    border: 1px solid black;
    border-radius: 7px !important;
}

.message {
    text-align: center;
    margin-top: 10px;
    color: #333;
}

.btn-form {
    background: #000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 10px !important;
}

.btn-form:hover {
    background: #000;
}

.open-btn {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {

    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.card_container_one,
.card_container,
.card_container_two,
.card_container_three,
.card_container_four,
.card_container_five {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background-color: #fff;
    color: black;
    overflow: hidden;
    transition: color 0.3s ease;

}

.card_container_one::after,
.card_container::after,
.card_container_two::after,
.card_container_three::after,
.card_container_four::after,
.card_container_five::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card_container_one:hover::after,
.card_container:hover::after,
.card_container_two:hover::after,
.card_container_three:hover::after,
.card_container_four:hover::after,
.card_container_five:hover::after {
    opacity: 1;
}

.card_container_one:hover {
    background-image: url("./assets/card_1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container:hover {
    background-image: url("./assets/card_2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container_two:hover {
    background-image: url("./assets/card_3.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container_three:hover {
    background-image: url("./assets/card_5.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container_four:hover {
    background-image: url("./assets/card_6.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container_five:hover {
    background-image: url("./assets/card_4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card_container_one>*,
.card_container>*,
.card_container_two>*,
.card_container_three>*,
.card_container_four>*,
.card_container_five>* {
    position: relative;
    z-index: 2;
}


/* why-css section */

.why_container,
.why_container_one,
.why_container_two,
.why_container_three,
.why_container_four,
.why_container_five {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 48px 24px;
    background-color: #fff;
    color: black;
    overflow: hidden;
    transition: color 0.3s ease;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.why_container::after,
.why_container_one::after,
.why_container_two::after,
.why_container_three::after,
.why_container_four::after,
.why_container_five::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.why_container:hover::after,
.why_container_one:hover::after,
.why_container_two:hover::after,
.why_container_three:hover::after,
.why_container_four:hover::after,
.why_container_five:hover::after {
    opacity: 1;
}

.why_container:hover {
    background-image: url("./assets/why_img_1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container_one:hover {
    background-image: url("./assets/why_img_2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container_two:hover {
    background-image: url("./assets/why_img_3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container_three:hover {
    background-image: url("./assets/why_img_4.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container_four:hover {
    background-image: url("./assets/why_img_5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container_five:hover {
    background-image: url("./assets/why_img_6.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.why_container>*,
.why_container_one>*,
.why_container_two>*,
.why_container_three>*,
.why_container_four>*,
.why_container_five>* {
    position: relative;
    z-index: 2;
}

.stroked-text {
    -webkit-text-stroke: 1px black;
    -webkit-text-stroke-color: rgb(0, 0, 0);
    /* black stroke */
    color: transparent;
    /* Optional: makes fill transparent */
}

#swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (max-width: 768px) {
    .main_header_section {
        background-image: url('./assets/main_bg.jpg');
        background-size: cover;
        animation: none !important;
        transition: none !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}