*,
*::after,
*::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Poppins", sans-serif;    
}


.bg {  
     background: url('../images/bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    background-size: cover; 
    z-index: -1; 
    top: 0;
}

a{
    text-decoration: none;
}

/* HEADER */

.header{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 30px 0  30px;
}

.header-logo img{
    width: 15rem;
}

.user-log{
    display: flex;
    gap: 50px;
}

.us2{
    display: none !important;
}


.log{
    text-align: center;
}

.log img{
   width: 3rem;
   transition: all .3s;
}

.log:hover img{
    transform: scale(1.1);
}

.log h5{
    color: white;
    text-transform: uppercase;
}

.pub{
    width: 60%;
    max-width: 100%;
    background-color: #b3dbfd;  
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pub img{
    object-fit: scale-down;
    width: 100%;
    border-radius: 10px;
}

.pub video{
    object-fit: scale-down;
    width: 100%; 
}

/* TITLE */

.title{
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.title h1{
    text-transform: uppercase;
    font-size: 40px;
}

.title p{font-size: 25px; font-weight: bold;}


/*SEARCH BAR*/
.search-box{
    margin: 0 0 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.input-search{
    height: 40px;
    width: 250px;
    border-style: none;
    padding: 6px 20px;
    font-size: 13px;
    letter-spacing: 2px;
    outline: none;
    border:1px solid transparent;
    transition: all .5s ease-in-out;
    background-color: black;
    color:white;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
}

.input-search > option{
    color: white;
}

@media screen and (max-width: 500px) {
    .input-search{
        width: 200px;
    }
}

.btn-search{
    width: 40px;
    height: 40px;
    border-style: none;
    font-size: 18px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    color:#ffffff ;
    background-color:black;
    line-height: 42px;

}


option{
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

/* ALL SECTION CARDS START */
.services-cards{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0px 0 60px 0;
    padding: 0 80px ;
}

.service-card{
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    transition: all .2s;
}

.card-details{
    border:none;
    padding: 30px 5px 0;
    text-align: center;
    height: 388px;
    border-radius: 40px;
    position: relative;
    background-color: rgb(153 152 152 / 63%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .3s;
   
}

.card-details{ background-color: #ed9292;}
.service-card:nth-of-type(2) .card-details{background-color: #b99c76;}
.service-card:nth-of-type(3) .card-details{ background-color:#97ce97;}
.service-card:nth-of-type(4) .card-details{background-color: #8f9ece;}
.service-card:hover .card-details{transform: scale(1.05);} 
.services-cards:hover .service-card:not(:hover) {transform: scale(0.97);}

/* ALL SECTION CARDS ND */

/* SERCICE CARD DETAILS START */

.service-title{
    color: white;
    margin-bottom: 0px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: -1px;
    border: 1px solid ;
    border-radius: 10px;
    padding: 5px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.service-link{
    transition: all .5s;
    align-self: center;
}

.service-link a:visited,
.service-link a:link{
    text-decoration: none;   
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 10px 100px;
    background-color: rgb(253 253 253 / 90%);
    color: #ff7700;
    font-size: 16px;
    font-weight: 600;
}

.service-card p{
    font-size: 20px;
    letter-spacing: 2px;
    color: white;
}
/* SERVICE CARD DETAILS END */



/* CHAT BAR OPEN AND CLOSE */
.chat-bar-open {
    text-align: center;
    position: fixed;
    bottom:30px;
    right: 20px;
}

.chat-bar-close {
    display: none;
    text-align: center;
    position: fixed;
    bottom: 30px;
    right: 10px;
}

.chat-bar-open .close,
.chat-bar-close .close {
    background-color: #fcbf28;
    width: 50px;
    cursor: pointer;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    border-style: none;
    vertical-align: middle;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
}

.chat-bar-close .close {
    width: 50px;
    height: 50px;
    padding: 12px;
}

.chat-bar-open .close img {
    height: 30px;
}

  .chat-bar-close .close i {
    font-size: 30px;
}



  
/* chat window 1 */
.chat-window {
    width: 332px;
    height: 180px;
    border-radius: 10px;
    background-color: #fff;
    padding: 16px;
    z-index: 9999999;
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: none;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
}

.hi-there {
    background-color: #fcbf28;
    color: #fff;
    padding: 20px 20px;
    border-radius: 5px;

}

.hi-there .p1 {
    font-size: 20px;
}

.hi-there .p2 {
    font-size: 14px;
}


.chat-window .start-conversation h1 {
    font-size: 15px;
}

.chat-window .start-conversation p {
    font-size: 12px;
}

.chat-window .start-conversation button {
    cursor: pointer;
    border: none;
    border-radius: 20px;
    padding: 7px 30px;
    margin: 10px 0px;
    background-color: black;
    color: white;
}

.chat-window .start-conversation button span {
    font-size: 14px;
}

.chat-window .start-conversation button i {
    font-size: 16px;
    position: relative;
    left: 6px;
    top: 3px;
}
  
/* chat window 2 */
.chat-window2 {
    display: none;
    width: 332px;
    height: 434px;
    border-radius: 10px;
    background-color: #fff;
    padding: 16px;
    z-index: 9999999;
    position: fixed;
    bottom: 90px;
    right: 20px;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
}

.chat-window2 .hi-there{
    margin-bottom: 20px;
}

.chat-window2 .hi-there .p2 {
    font-size: 14px;
}

.message-box {
    height: 316px;
    width: 100%;
    padding-right: 5px;
    overflow: auto;
}

.message-box .first-chat {
    width: 200px;
    float: right;
    background-color: #4c5aa1;
    padding: 10px;
    margin: 14px 0px;
    border-radius: 5px;
    color: white;
}

.message-box .first-chat p {
    font-size: 12px;
    overflow-wrap: break-word;
}

.message-box .first-chat .arrow {
    content: "";
    width: 0px;
    height: 0px;
    border-left: 9px solid transparent;
    border-right: 9px solid #4c5aa1;
    border-top: 9px solid #4c5aa1;
    border-bottom: 9px solid transparent;
    right: -172px;
    bottom: -23px;
    position: relative;
    margin-top: -15px;
}
  
.message-box .second-chat {
    display: inline-block;
}
  
.message-box .second-chat .circle {
    background-color: #4c5aa1;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    float: left;
    padding: 10px;
    margin-top: 10px;
    margin-right: 5px;
}

.message-box .second-chat #circle-mar {
    margin-top: 5px;
}
  
.message-box .second-chat p {
    font-size: 12px;
    overflow-wrap: break-word;
}

.message-box .second-chat p {
    width: 200px;
    float: left;
    background-color: #ecf1fb;
    padding: 12px;
    margin: 0px 5px;
    border-radius: 10px;
    color: #000;
}

.message-box .second-chat .arrow {
    content: "";
    width: 0px;
    height: 0px;
    border-right: 9px solid transparent;
    border-left: 9px solid #ecf1fb;
    border-top: 12px solid #ecf1fb;
    border-bottom: 9px solid transparent;
    margin-left: 40px;
    margin-top: -2%;
    display: inline-block;
}
  
.chat-window2 .input-box {
    position: absolute;
    font-size: 12px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 30px 0;
    padding-bottom: 18px;
    border-top: 1px solid lightgray;
}

.chat-window2 .input-box .write-reply {
    float: left;
}

.chat-window2 .input-box .write-reply input[type="text"] {
    border: none;
    outline: none;
    font-size: 14px;
}

.chat-window2 .input-box .send-button {
    float: right;
    border: none;
    outline: none;
}

.chat-window2 .input-box .send-button button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    outline: none;
}

.chat-window2 .input-box .send-button button i {
    color: grey;
    font-size: 20px;
    font-weight: bold;
}

.chat-window2 .input-box .surveysparrow img {
    width: 15px;
    margin-bottom: -4px;
}

  .chat-window2 .input-box .surveysparrow p {
    display: inline;
    font-size: 10px;
    color: #636262;
}

.chat-window2 .input-box .surveysparrow {
    position: relative;
    bottom: 28px;
    right: -65px;
}

/* Extra */

.extra{
    display: flex;
    justify-content: space-around;
}

.extra .count{
    color: white;
    background-color: black;
    padding: 8px 15px;
    border-radius: 15px;
}

.count span{
    font-weight: 700;
    color: #ff7700;
}
  
/* RESPONSIVE */
@media screen and (max-width: 396px) {
    .chat-window {
      right: 14px;
      bottom: 87px;
    }
    .hi-there {
      padding: 12px 30px;
    }
    .chat-window2 {
      right: 14px;
      bottom: 87px;
      height: 420px;
    }
    .chat-bar-open {
      /*bottom: 20px;*/
      right: 10px;
    }
    .chat-bar-close {
      bottom: 21px;
      right: 25px;
    }
    .message-box .second-chat .arrow {
    margin-left:41px;
    }
}

/* RESPONSIVE DESIGN  */
@media screen and (max-width:1700px) {
    .card-details{
        height: 300px;
    }
}

@media screen and (max-width:1625px) { 
    .services-cards{
        margin: 0 0 30px;
        gap: 20px;
    }

    .card-details{
        width: 350px;
        height: 270px;
    }
}

@media screen and (max-width:1600px) {
   .header{
      padding: 0 20px;
      margin-bottom: 10px;
   }

    .extra{
        margin-bottom: 20px;
    }
}

@media screen and (max-width:1495px) {
    .card-details{
        width: 300px;
        height: 270px;
    }

    .services-cards{
       gap: 0;
    }

    .service-card{
        align-items: center;
    }
}

@media screen and (max-width:1467px) {
    .services-cards{
        margin: 0px 0 40px;
    }

    .header {
        margin: 10px 0;
    }
}

@media screen and (max-width:1400px) {
    .services-cards{
        gap: 20px;
    }
}

@media screen and (max-width:1375px) {      
    .service-title{
        font-size: 20px;
    }

    .service-card p{
        font-size: 18px;
    }

    .header-logo{
        width: 15rem;
    }

    .header-logo img{
        width: 16rem;
    }

    .title h1{
        font-size: 34px;
    }

    .title p{
        font-size: 22px;
    }
}

@media screen and (max-width:1300px) {
    .card-details{
        width: 270px;
    }
    .services-cards {
        gap: 10px;
    }

    .header{
        gap: 50px;
    }
}

@media screen and (max-width:1260px) {
    .service-title{
        font-size: 18px;
    }

    .service-card p{
        font-size: 16px;
    }
}

@media screen and (max-width:1200px) {
    .services-cards{
        flex-wrap: wrap;
        padding: 0 30px;
        gap: 50px;
    }

    .card-details {
        width: 330px;
    }

    .header{
        gap: 30px;
    }
}

@media screen and (max-width:1160px) {
    .service-title{
        font-size: 17px;
    }

    .service-card p{
        font-size: 15px;
    }
}

@media screen and (max-width:1110px) {
    .services-cards{
        gap: 25px;
    }
}

@media screen and (max-width:1037px) {
    .service-link a:visited, .service-link a:link{
        padding: 10px 50px;
    }

    .title p {
        font-size: 20px;
    }

    .title h1 {
        font-size: 30px;
    }
}

@media screen and (max-width:970px) {
    .services-cards{
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1001px) {
    .user-log{
        display: none !important;
    }


    .us2{

        display: flex !important;
        justify-content: center;
        flex-direction: column;
        gap: 10px !important;
        position: fixed;
        right: 10px;
        bottom: 23px;
        z-index: 20;
    }

    .chat-bar-open{
        right: 10px;
    }

    .chat-bar-open .close,
    .chat-bar-close .close {
        width: 40px !important;
        cursor: pointer;
        height: 40px !important;
        padding: 10px;
    }

    .chat-bar-close .close {
        width: 40px !important;
        height: 40px !important;
    }

    .chat-bar-open .close img {
        height: 20px !important;
    }

    .chat-bar-close .close i {
        font-size: 20px !important;
    }

    .log img{
        width: 2.5rem !important;
    }

    .header{
        margin: 10px 0 !important;
    }
}


@media screen and (max-width:1000px) {
    .header{
        flex-direction: column;
    }

    .pub{
        width: 90%;
    }
    
    .title{
        padding: 0 10px;
    }

    .title h1 {
        font-size: 27px;
    }

    .title p {
        font-size: 18px;
    }

    .header-logo{
      width: unset;
    }
}

@media screen and (max-width:824px) {
    .service-card{
        width: 350px;
    }
}

@media screen and (max-width:764px) {
    .services-cards{
        gap: 50px;
    }
}

@media screen and (max-width:553px) {   
    .services-cards{
        gap: 55px;
        margin: 35px 0 48px;
    }

    .service-title{
        font-size: 18px;
    }

    .service-card p{
        font-size: 16px;
    }

    .service-link a:visited, .service-link a:link{
        padding: 8px 20px;
    }
}

@media screen and (max-width:500px) {
    .title h1 {
        font-size: 23px;
    }

    .title p {
        font-size: 19px;
    }

    .pub h1{
        font-size: 20px;
    }

    .card-details{
        width: 310px;
        height: 260px;
    }

    .extra{
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media screen and (max-width:470px) {    
    .service-title{
        font-size: 16px;
    }

    .service-card p {
       font-size: 14px;
    }

}


@media screen and (max-width:430px) {
    .card-details{
        width: 280px;
        height: 230px 
    }
}


@media screen and (max-width:335px) {
    .card-details{
        width: 290px;
        height: 230px
    }
}


@media screen and (max-width:370px) {
    .service-title{
        font-size: 15px;
    }

    .service-card p{
        font-size: 12px;
        font-weight: 400;
    }
}



