*{
    font-family: "Kanit", sans-serif;
    margin: 0;
    list-style: none;
    text-decoration: none;
}
/* menu (header) (NAVIGATION) */ 

@keyframes ani {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

header {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;
    /* position: fixed; */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 8%;
    box-shadow: 0 5px 10px #e6ebf0;

}

/* images/logo.png */
header .logo {
    background-image: url(images/logo.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 95px;
    height: 65px;
    z-index: 10;
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;

}

header .logo:hover {
    transform: scale(1.2);
}

header nav ul li {
    position: relative;
    float: left;
}

header nav ul li a {
    padding: 15px;
    color: black;
    font-size: 20px;
    display: block;
    transition: 0.5s;
    text-decoration: none;
    /* transition: transform 0.3s ease, filter 0.3s ease; */
}


header nav ul li a:hover {
    color: #4682B4;
    /* background-color: #000; */
}

.button-white-cube {
    border-color: transparent;
    height: 20px;
    width: 20px;   
}
nav ul li ul {
    position: absolute;
    left: 0px;
    padding: 0;
    width: 180px;
    background-color: white;
    display: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 5px 10px #e6ebf0;
}
nav ul li ul li {
    width: 100%;
    border: 1px solid rgba(0,0,0,.1)
}

nav ul li:hover > ul {
    display: initial;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

#languageSwitchButton {
    position: absolute;
    right: 8%; 
    cursor: pointer;
}

/* main */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}







.info1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btstrp_carousel {
    position: relative;
    z-index: 0; 
}


.carousel-item {
    position: relative;
    z-index: 1; 
}



.carousel-item img {
    width: 100%;
    max-height: 750px;
    object-fit: cover;
}

.info_container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    gap: 75px;
}

.centered1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    color: black;
}
.centered2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    color: black;
}
.centered3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    color: black;
}

.carousel_button {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.info1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered {
    display: flex;
    justify-content: center;
}

/* reasons */

.reasons_title {
    padding-top: 100px;
    display: flex;
    justify-content: center;
    font-size: 40px;
    animation: bounceAnimation 2s infinite; /* Apply the bouncing animation */
}

@keyframes bounceAnimation {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.reason1 {
    padding: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
}

.reasons_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* reasons photos */

.reason_photo1 {
    background-image: url(images/main/reasons1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 750px;
    height: 550px;
}

.reason_photo2 {
    background-image: url(images/main/reasons2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 750px;
    height: 550px;
}

.reason_photo3 {
    background-image: url(images/main/reasons3.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 750px;
    height: 550px;
}

.reason_photo4 {
    background-image: url(images/main/reasons4.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 750px;
    height: 550px;
}

.reason_photo5 {
    background-image: url(images/main/reasons5.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 750px;
    height: 550px;
}









.text-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.learn-more-btn {
    padding-top: 25px;
}





/* abort us */

.abort-us-title {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    font-size: 50px;
}

.about-our-company-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.about-our-company-text {
    display: flex;
    justify-content: center;
    font-size: 16px;
}

.about-our-company-service-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.about-our-company-service-text {
    display: flex;
    justify-content: center;
    font-size: 16px;
}

.about-our-company-guarantee-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.about-our-company-guarantee-text {
    display: flex;
    justify-content: center;
    font-size: 16px;
}


/* service */

.goofy_container_title {
    padding: 50px;
    display: flex;
    justify-content: center;
    font-size: 50px;
}

.service_container, .service_container2 {
    display: flex;
    height: 100vh;
    background-color: #F0F0F0;
    gap: 50px;
}

.left, .right, .left1, .left2, .left3, .left4, .left5, .left6 {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.right {
    display: flex;
    flex-direction: column;
    background-color: #F0F0F0;
}

.left {
    background-image: url('images/service/cctv_service.avif');
    background-size: cover;
    background-position: center;
    background-color: #F0F0F0;
}

.left1 {
    background-image: url('images/service/doorbell.jpg');
    background-size: cover;
    background-position: center;
}

.left2 {
    background-image: url('images/service/smart_home.png');
    background-size: cover;
    background-position: center;
}

.left3 {
    background-image: url('images/service/card_banana_system.jpg');
    background-size: cover;
    background-position: center;
}

.left4 {
    background-image: url('images/service/shlagbaumebi.jpg');
    background-size: cover;
    background-position: center;
}

.left5 {
    background-image: url('images/service/Internet_Networking.jpg');
    background-size: cover;
    background-position: center;
}

.left6 {
    background-image: url('images/service/Camera_Rental.jpg');
    background-size: cover;
    background-position: center;
}





.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(70, 130, 180, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}



.btn_service {
    position: relative;
    display: block;
    color: white;
    font-size: 14px;
    font-family: "montserrat";
    text-decoration: none;
    margin: 30px 0;
    border: 2px solid #1E3A8A !important;
    padding: 14px 60px;
    text-transform: uppercase;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}



.btn_service::before {
    background: #4682B4;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.6s ease;
}

.btn1::before {
    width: 0%;
    height: 100%;
}

.btn1:hover::before {
    width: 100%;
}

.left:hover .btn1, .left1:hover .btn1, .left2:hover .btn1, .left3:hover .btn1, .left4:hover .btn1, .left5:hover .btn1, .left6:hover .btn1 {
    opacity: 1;
}











/* posts */

.posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.post {
    width: 80%;
    max-width: 700px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
}

.post-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 500px;
}

.post-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
}

.post-description {
    font-size: 18px;
    margin-top: 10px;
    color: #555;
}

.delete-btn {
    margin-top: 15px;
}











/* ENDING */

.ending {
    flex-direction: row;
    display: flex;
    justify-content: center;
    justify-content: space-around;
    padding: 50px;
}

.flexbox_end {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25%;
}

.end_title {
    font-size: 30px;
}

.text_end a {
    font-size: 14px;
    text-decoration: none;
    color: black;
    transition: 0.5s;
}

.text_end a:hover {
    color: #4682B4;
}

.end_logo {
    background-image: url(images/logo.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 350px;
    height: 150px;
}


