@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

:root {
    --primary-color: #3498db;
    --primary-color-old: #89d0e3; /* #bbe1eb */
    /* --secondary-color:  */
    --pale-yellow: #f2e9ca;
    --lavender: #CCCCFF;
    --colorp: #f9f9f9;
    --colora2: #1e1e1e;
    --colora: #3498db;
    --colorbody: #89d0e3;  /*#1e1e1e*/
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-block-start: clamp(66px, 8vw, 69px); /*4rem*/
}

.site-header-nav {
    display: none;
}

.site-header-logo .h1-small {
    display: none;
}

.site-header-logo h6 {
    display: none;
}

@media (max-width: 387px) {
    .site-header-logo h1 {
        display: none;
    }

    .site-header-logo .h1-small{
        display: block;
    }

    .site-header-logo h6 {
        display: block;
    }
    
}

@media (max-width: 322px) {

    .site-header-logo h6 {
        display: none;
    }
}

/* .nav-open .site-header-nav {
    display: flex;
} */

@media (min-width: 897px) {
    html {
        scroll-padding-block-start: clamp(70px, 7vw, 80px); /*5rem*/
        /* clamp(4rem, 2vw, 5rem) 69px  */
    }

    .nav-icon {
        display: none;
    }

    .site-header-nav {
        display: flex;
    }
}

.display-none {
    display: none;
}

body {
    font-family: system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.close-modal {
    background-color: #47a386;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 14px;
    padding: 10px 25px;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    height: 100vh;
    width: 100vw;
    transition: opacity 0.8s ease;
    /* transition-delay: 0.5s; */
}

.modal-container.show {
    pointer-events: auto;
    opacity: 1;
}

.modal {
    background-color: #fff;
    width: 600px;
    max-width: 100%;
    height: 90vh;
    min-height: 350px;
    padding: 30px 50px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* text-align: center; */
}

.modal h3 {
    margin: 0;
    width: fit-content;
    float: left;
    font-size: clamp(13px, 4vw, 21px);
}

.modal button {
    float: right;
}

.modal iframe {
    padding-top: 1rem;
    width: 600px;
    max-width: 100%;
    min-height: 270px;
    height: 70vh;
}

#home {
    background-color: mistyrose;
}

#about {
    background-color: beige; /* lightblue;*/
}

#services {
    background-color: lavender;
    margin-bottom: 0;
}

#talk-to-us {
    background-color: beige;
}

@media (max-width: 1025px) {
    body {
        background-color: lavender;
    }
    #services {
        /* margin-bottom: clamp(160px, 80px - 25vw, 80px); */
        margin-bottom: clamp(50px, 60px - 3vw, 70px);
    }
    
}

@keyframes appearLtR {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes appearRtL {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.section-content h2 {
    font-size: clamp(40px, 4vw, 70px);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif ;
    text-shadow: 4px 4px 4px #00000030, 6px 12px 12px #00000015;
    /* animation: appearRtL;
    animation-timeline: view();
    animation-range: entry 0% cover 40%; */
}

.section-content h2:not(:first-child) {
    margin-top: 2rem;
}

.flip-box-back h2 {
    font-size: clamp(25px, 5vw, 30px);
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif ;
}

.flip-box-back li {
    font-size: clamp(15px, 3vw, 20px);
    list-style: "► ";
    text-align: left;
}

.flip-box-back li a {
    text-decoration: none;
    color: #0d6efd;
    cursor: pointer;
}

@media (max-width: 444px) {
    .section:nth-child(4).flip-box-open {
        height: clamp(700px, 900px - 25vw, 900px);
        align-content: baseline;
        min-height: 700px;
        transition: all 0.4s linear;
        /* max-height: calc(900px*1.6); */
    }
}

@media (max-width: 509px) {
    .section:nth-child(3).flip-box-open {
        height: clamp(650px, 800px - 25vw, 800px);
        align-content: baseline;
        min-height: 400px;
        transition: all 0.4s linear;
        /* max-height: calc(900px*1.6); */
    }
    /* .section:nth-child(3).flip-box-open {
        height: clamp(650px, 800px - 25vw, 800px);
        align-content: baseline;
        min-height: 400px;
        transition: all 0.4s linear;
        max-height: calc(900px*1.6);
    } */
}

.section-content p {
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
    font-family:'Courier New', Courier, monospace ;
    line-height: 1.5;
    font-weight: 700;
    font-size: clamp(17px, 1.5vw, 18px);
}

header {
    position: fixed;
    width: 100%;
    z-index: 1;
}

.announcement-bar {
    padding: 0.75rem 10vw;
    font-size: 0.9375rem;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(to right,
            #90c3fd,
            #ba71ff,
            #ff71b8);
}

.site-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: wrap;
    gap: 1rem 2rem;
    padding: 20px 7vw;
    background-color: var(--primary-color-old);
    box-shadow: 0 1px 0 1px #eee;
    transition: background-color 0.4s linear;
    /* opacity: 50%; */
}

.site-header-logo h1 {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: bold;
}

.btn {
    font-weight: 500;
    /* transition: .5s; */
    font-family: Poppins, sans-serif;
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: 0.3s ease, color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn:hover {
    scale: 1.05;
    transition: 0.3s ease;
}

.btn.btn-primary {
    color: #FFFFFF;
    background-color: #0d6efd;
    border-color: #0d6efd;
    float: right;
}

.btn-sm-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-weight: normal;
}

/* .btn{
    display: inline-block;
    text-decoration: none;
    display: inline-block;
    font: var(--p);
    color: var(--colorp);
    background: linear-gradient(var(--colorbody), var(--colorbody)) padding-box, linear-gradient(45deg, var(--colora) 0%, var(--colora2) 100%) border-box;
    border: solid 2px transparent;
    border-radius: 8px;
    padding: 12px 24px;
    transition: 0.2s ease-in-out;
    text-align: center;
} */

nav {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2.5vw, 3rem);
}

nav a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    /* transition: 0.3s ease; */
    transition: 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #b366fc;
    scale: 1.2;
    transition: 0.3s ease;
}

nav a:active {
    scale: 1;
}

.site-header-main.nav-open {
    background-color: var(--pale-yellow);
}

.nav-icon {
    position: relative;
    width: 35px;
    height: 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-icon span {
    position: absolute;
    width: 50%;
    height: clamp(3px, 0.8vw, 4px);
    background: #2a1929;
    transition: all 0.2s ease-in-out;
}

.nav-icon span:nth-child(odd) {
    left: 0;
    border-radius: 9px 0 0 9px;
}

.nav-icon span:nth-child(even) {
    left: 50%;
    border-radius: 0 9px 9px 0;
}

.nav-icon span:nth-child(1),
.nav-icon span:nth-child(2) {
    top: 0;
}

.nav-icon span:nth-child(3),
.nav-icon span:nth-child(4) {
    top: 10px;
}

.nav-icon span:nth-child(5),
.nav-icon span:nth-child(6) {
    top: 20px;
}

.nav-open .nav-icon span:nth-child(1),
.nav-open .nav-icon span:nth-child(6) {
    transform: rotate(45deg);
}

.nav-open .nav-icon span:nth-child(2),
.nav-open .nav-icon span:nth-child(5) {
    transform: rotate(-45deg);
}

.nav-open .nav-icon span:nth-child(1) {
    top: 10px;
    left: 4px;
}

.nav-open .nav-icon span:nth-child(2) {
    top: 10px;
    left: calc(50% - 4px);
}

.nav-open .nav-icon span:nth-child(3) {
    left: -100%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(4) {
    left: 150%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(5) {
    top: 20px;
    left: 4px;
}

.nav-open .nav-icon span:nth-child(6) {
    top: 20px;
    left: calc(50% - 4px);
}

.site-header-nav-dropdown {
    display: none;
    list-style: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: var(--lavender);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    /* transition: background-color 0.4s ease-in-out; */
    transition: height 0.4s ease-in-out;
}

.nav-open .site-header-nav-dropdown {
    height: 215px;
    /* background: #f2e9ca; */
    /* transition: background-color 0.4s ease-in-out; */
}

.site-header-nav-dropdown a {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.site-header-nav-dropdown a:not(:first-child) {
    border-top: double;
    border-color: #656565a8;
}

@media (max-width: 896px) {
    .site-header-nav-dropdown {
        display: block;
    }
}

@media (max-width: 576px) {
    .site-header-nav-dropdown {
        left: 2rem;
        width: unset;
    }
}

main {
    padding: clamp(66px, 8vw, 69px) 0vw 0rem;
    /* display: flex; */
    /* flex: none; */
    /* overflow: auto; */
    /* flex-flow: column nowrap; */
    /* overflow-x: hidden; */
    /* overflow-y: scroll; */
    /* scroll-snap-type: y mandatory; */
    /* clamp(66px, 8vw, 69px) */
}

.section {
    height: 92vh;
    min-height: 600px;
    max-height: 900px;
    /* (100vh - clamp(66px, 8vw, 69px)) */
    display: flex;
    justify-content: center;
    align-content: space-evenly;
    padding: 20px 4vw;
    gap: 1rem 4rem;
    /* flex-direction: row; */
    flex-wrap: wrap;
    transition: all 0.4s linear;
    
    
    /* flex: none; */
}

/* .section:nth-child(even) {
    flex-direction: column-reverse;
} */

.section .section-content {
    width: 80vw;
    /* height: 45vh; */
    align-items: stretch;
}

.section div img{
    max-height: 300px;
    max-width: 450px;
    height: 50vw;
    width: 75vw;
    margin-bottom: 0.5rem;
    border-radius: 30px;
    box-shadow: 5px 7px 4px #00000030, 7px 10px 12px #00000015;
    /* transition: 0.3s ease; */
    /* animation: appearRtL;
    animation-timeline: view();
    animation-range: entry 0% cover 40%; */
}

/* img.sec3-img {
    position: absolute;
    translate: -223px -150px;
} */

.flip-box {
    background-color: transparent;
    max-height: 300px;
    max-width: 450px;
    height: 50vw;
    width: 75vw;
    border-radius: 30px;
    /* border: 1px solid #f1f1f1; */
    /* perspective: 1000px; */
}

.flip-box-inner {
    width: 100%;
    /* height: 100%; */
    border-radius: 30px;
    text-align: center;
    transition: transform 0.5s;
    /* transform-style: preserve-3d; */
    /* box-shadow: 5px 7px 4px #00000030, 7px 10px 12px #00000015; */
}

.flip-box-open .flip-box-inner {
    transform: rotateY(180deg);
}
  
.flip-box-front, .flip-box-back {
    /* position: fixed; */
    width: 100%;
    /* height: 100%; */
    border-radius: 30px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
  
/* .flip-box-front {
    background-color: #bbb;
    color: white;
    position: fixed;
} */
  
.flip-box-back {
    background-color: var(--colorbody);
    /* position: absolute; */
    color: black;
    box-shadow: 5px 7px 4px #00000030, 7px 10px 12px #00000015;
    transform: rotateY(180deg);
    padding: 0.5rem;
}

/* main .section {
    scroll-snap-align: start;
} */

/* @media (min-width: 897px) {
    .section {
        height: (100vh - clamp(70px, 7vw, 80px));
    }
} */

.section div:nth-child() {
    justify-content: center;
    align-content: center;
}

/* .y.mandatory-scroll-snapping {
    scroll-snap-type: y mandatory;
}
.y.proximity-scroll-snapping {
    scroll-snap-type: y proximity;
} */

@media (min-width: 897px) {
    main {
        padding-top: clamp(70px, 7vw, 80px);
        /* clamp(10.5vh, 7vw, 11.5vh) */
        /* clamp(70px, 7vw, 80px) */
    }

    /* .section {
        flex-wrap: nowrap;
    } */
}

@media (min-width: 909px) {
    .section .section-content {
        width: 47vw;
    }

    .section:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* .section:nth-child(even) div img {
        transform: scaleX(-1);
    } */

    .section div img{
        height: clamp(230px, 22vw, 400px);
        width: clamp(345px, 35vw, 600px);
    }

    .flip-box {
        height: clamp(230px, 22vw, 400px);
        width: clamp(345px, 35vw, 600px);
    }

    /* .section div img:hover{
        scale: 1.05;
        transition: 0.3s ease;
    } */
}

footer {
    position: relative;
    bottom: 0px;
    width: 100%;
    color: #d9d9d9;
    background: #111;
    font-family: Poppins, sans-serif;
}

.footer-main-content {
    display: flex;
    padding: 10px 25px 60px;
}

.footer-main-content .box {
    flex-basis: 50%;
    padding: 10px 20px;
}

.box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.box .footer-content {
    margin: 20px 0 0 0;
    position: relative;
}

.box .footer-content:before {
    position: absolute;
    content: '';
    top: -10px;
    height: 2px;
    width: 100%;
    background: #1a1a1a;
}

.box .footer-content:after {
    position: absolute;
    content: '';
    height: 2px;
    width: 15%;
    background: var(--primary-color);
    top: -10px;
}

.left .footer-content p {
    text-align: justify;
}

.left .footer-content .footer-social {
    margin: 20px 0 0 0;
}

.left .footer-content .footer-social a {
    padding: 0 2px;
}

.left .footer-content .footer-social a span {
    height: 40px;
    width: 40px;
    background: #1a1a1a;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.left .footer-content .footer-social a span:hover {
    background: var(--primary-color);
}

.center .footer-content .fas {
    color: #d9d9d9;
    font-size: 1.4375rem;
    background: #1a1a1a;
    height: 45px;
    width: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.center .footer-content .fas:hover {
    background: var(--primary-color);
}

.center .footer-content .text {
    font-size: 1.0625rem;
    font-weight: 500;
    padding-left: 10px;
}

.center .footer-content .footer-phone {
    margin: 15px 0;
}

.right .form .text {
    font-size: 1.0625rem;
    margin-bottom: 2px;
    color: #656565;
}

.right .form .footer-msg {
    margin-top: 10px;
}

.right .form input,
.right .form textarea {
    width: 100%;
    color: #fff;
    font-size: 1.0625rem;
    background: #151515;
    padding-left: 10px;
    border: 1px solid #222222;
}

/* .right form input:focus,
.right form textarea:focus{
    outline-color: #3498db;
} */
.right .form input {
    height: 35px;
}

.right .form .footer-btn {
    margin-top: 10px;
    font-family: 'Mukta Malar', Arial;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right .form .footer-btn button {
    /* height: 40px; */
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 22px;
    cursor: pointer;
    transition: .3s;
}
/* 
.right .form .footer-btn button:hover {
    background: #000;
    color: var(--primary-color);
} */

.activate {
    display: table;
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(86, 40, 238, .15);
    line-height: 20px;
    padding: 12px;
    border-radius: 22px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.activate span {
    display: inline-block;
    vertical-align: top;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    margin: 0 4px 0 0;
    position: relative;
    overflow: hidden;
}
.activate span:before {
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease, background 0.3s ease;
}
.activate span svg {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 50%;
    margin: -6px 0 0 -6px;
    z-index: 1;
}
.activate span svg:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    fill: none;
    margin: 0;
    stroke: #fff;
    stroke-width: 1px;
    stroke-dashoffset: 94.248;
    stroke-dasharray: 47.124;
}
.activate span svg:nth-child(2) {
    fill: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.activate span svg:nth-child(3) {
    fill: var(--primary-color);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.activate:active {
    transform: scale(0.94);
    box-shadow: 0 4px 16px rgba(52, 152, 219, .18);
}
.activate.loading span {
    background: none;
    transition: background 0.1s ease 0.3s;
}
.activate.loading span:before {
    transform: scale(1);
}
.activate.loading span svg:nth-child(1) {
    animation: turn 1.6s linear infinite forwards, path 1.6s linear infinite forwards;
}
.activate.loading span svg:nth-child(2) {
    transform: translateY(-20px);
}
.activate.loading span svg:nth-child(3) {
    opacity: 0;
    transform: translateY(0) scale(0.6);
}
.activate.loading ul {
    transform: rotateX(90deg);
}
.activate.loading.done {
    background: #3fdc75;
    box-shadow: 0 4px 20px rgba(63, 220, 117, .15);
}
.activate.loading.done span {
    background: #fff;
    transition: background 0.1s ease 0s;
}
.activate.loading.done span:before {
    background: #3fdc75;
    transform: scale(0);
}
.activate.loading.done span svg:nth-child(1) {
    animation: none;
}
.activate.loading.done span svg:nth-child(3) {
    fill: #3fdc75;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s, opacity 0.4s ease 0.25s;
}
.activate.loading.done ul {
    transform: rotateX(180deg);
}
.activate ul {
    padding: 0;
    margin: 0;
    list-style: none;
    height: 20px;
    width: 70px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.activate ul li {
    --rotateX: 0deg;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    transform-origin: 50% 50%;
    transform: rotateX(var(--rotateX)) translateZ(10px);
}
.activate ul li:nth-child(2) {
    --rotateX: -90deg;
}
.activate ul li:nth-child(3) {
    --rotateX: -180deg;
}
@keyframes turn {
    100% {
        transform: rotate(360deg);
   }
}
@keyframes path {
    100% {
        stroke-dashoffset: 0;
   }
}

.footer-bottom center {
    padding: 5px;
    font-size: 0.9375rem;
    background: #151515;
}

.footer-bottom center span {
    color: #656565;
}

.footer-bottom center a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom center a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    footer {
        position: relative;
        bottom: 0px;
    }

    .footer-main-content {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .footer-main-content .box {
        margin: 5px 0;
    }
    
    .center .footer-content .footer-phone a span,
    .center .footer-content .footer-address a span,
    .center .footer-content .footer-email a span {
        transition: all 0.3s ease;
    }
    
    /* Apply shake animation directly to the <a> element when its parent is hovered */
    .center .footer-content .footer-phone:hover a span,
    .center .footer-content .footer-address:hover a span,
    .center .footer-content .footer-email:hover a span {
        animation: blinkBackground 1s ease 2;
    }
    
    /* Blinking animation for background */
    @keyframes blinkBackground {
        0%, 100% {
            background-color: #1a1a1a; /* No background initially */
        }
        50% {
            background-color: var(--primary-color); /* Blue background at 50% of the animation */
        }
    }
}

.to-top {
    background: white;
    position: fixed;
    bottom: 16px;
    right:32px;
    width:40px;
    height:40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:20px;
    color:#1f1f1f;
    text-decoration: none;
    opacity:0;
    pointer-events: none;
    transition: all .4s;
}

.to-top.active {
    bottom:32px;
    pointer-events: auto;
    opacity:1;
}
