*{
    margin: 0;
    padding: 0;
    font-family: "saira", sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #EEEEEE;
    overflow-x: hidden;
}

header{
    width: 100%;
    animation: appear linear;
    animation-timeline: scroll(root);
    transition: all 0.3s ease-in-out;
}

@keyframes appear {
    0%,5%,10%,15%{
        background-color: transparent;
    }
    20%,25%,30%{
        background-color: #FFFFFF;
    }
    35%,40%,45%,50%,55%,60%,65%,70%,75%,80%,85%,90%,95%,100%{
        background-color: #FFFFFF;
        box-shadow: 0 1px 4px 0 #8b8b8b;
        position: fixed;
        z-index: 1;
    }
}

header .header-flex{
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 12px;
}

header img{
    width: 68px;
    height: auto;
}

header button{
    background: transparent;
    color: #000000;
    border: 2px solid #302155;
}

button{
    cursor: pointer;
    background-image: linear-gradient(to right, #1C132E, #2F294A);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
}

button:hover{
    background-image: linear-gradient(to right, #302155, #262333);
    color: #FFFFFF;
    transition: all 0.3s ease-in-out;
}

h3{
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 100%;
}

p{
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 150%;
}

a{
    text-decoration: none;
    color: #FFFFFF;
}

.sec-one{
    background-image: linear-gradient(transparent, #6e6791);
    min-height: 100dvh;
}

.hero{
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    min-height: 80dvh;
}

.hero-text h1{
    font-size: clamp(2.1rem, calc(7vw + 1rem), 5.4rem);
    font-family: "comfortaa", sans-serif;
    line-height: 100%;
    color: #190E35;
    display: flex;
}

.hero-text p{
    font-size: clamp(16px, 1.8vw, 20px);
}

.hero button{
    background-image: linear-gradient(to right, #C45400, #FFB800);
    font-size: clamp(16px, 2vw, 18px);
    padding: 16px 32px;
}

.hero button:hover{
    background-image: linear-gradient(to right, #FFB800, #C45400);
    transition: all 0.4s ease-in-out;
}

.sec-two{
    background: #FFFFFF;
    padding-block: 6rem;
}

.about, .service, .pricing, .reason-flex{
    width: 80%;
    margin: auto;
}

.about p{
    margin-block: 1rem;
}

.about-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-block: 3rem;
}

.grid-text{
    background: #FFFFFF;
    width: auto;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 10px 0 #d4d4d4;
    animation: scale-in linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
    transition: all 0.3s ease-in-out;
}

@keyframes scale-in {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.grid-text p:nth-child(1){
    font-size: clamp(15px, 1.8vw, 16px);
    font-weight: 600;
    margin-block: 0;
}

.grid-text p:nth-child(2){
    margin-top: 8px;
    color: #555;
    margin-block: 0;
}

.service{
    padding-top: 2.2rem;
}

.service-flex{
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 1.8rem;
}

.service-flex > img{
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    animation: fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
    transition: all 0.8s ease-in-out;
}

@keyframes fade-in {
    from{
        opacity: 0;
        scale: 0.5;
        transform: translateX(-100%);
    }
    to{
        opacity: 1;
        scale: 1;
        transform: translateX(0%);
    }
}

.service-text{
    display: grid;
    gap: 4px;
}

.service-text > p{
    margin-bottom: 2rem;
    font-weight: 500;
    animation: sho-text linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
    transition: all 0.8s ease-in-out;
}

@keyframes sho-text {
    from{
        transform: translateY(100%);
        scale: 0.5;
    }
    to{
        transform: translateY(0%);
        scale: 1;
    }
}

.flex-text{
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fade-out linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 20%;
    transition: all 0.8s ease-in-out;
}

@keyframes fade-out {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.features-section {
  width: 80%;
  margin: auto;
  padding-block: 6rem;
}

.features-heading {
  margin-bottom: 0.5rem;
  text-align: center;
}

.features-subtext {
  color: #555;
  margin-bottom: 2rem;
  text-align: center;
}

.features-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.flex-feature-item{
    display: grid;
    gap: 1rem;
}

.flex-feature-item h4{
    font-size: clamp(16px, 2vw, 16px);
    font-weight: 500;
    color: #1C132E;
}

.feature-item {
    width: 100%;
    max-width: 480px;
  background-color: #d0c9f0;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  box-shadow: 0 2px 4px #0000000d;
}

.feature-slide-one{
    animation: f-slide-one linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 30%;
}

@keyframes f-slide-one {
    from{
        transform: translateX(-100%);
        opacity: 0;
    }
    to{
        transform: translateX(0%);
        opacity: 1;
    }
}

.feature-slide-two{
    animation: f-slide-two linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 30%;
}

@keyframes f-slide-two {
    from{
        transform: translateX(100%);
        opacity: 0;
    }
    to{
        transform: translateX(0%);
        opacity: 1;
    }
}

.feature-item p {
    margin-top: 4px;
  color: #555;
}

.icon {
  font-size: 1.8rem;
  color: #ff6b3d;
  flex-shrink: 0;
}

.image-box img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 10px;
  animation: trany linear both;
  animation-timeline: view();
  animation-range: entry 0 cover 40%;
}

@keyframes trany {
    from{
        transform: translateY(100%);
        opacity: 0;
    }
    to{
        transform: translateY(0%);
        opacity: 1;
    }
}

.team-section {
  text-align: center;
  padding-block: 6rem;
  background-color: #FFFFFF;
}

.team{
    width: 80%;
    margin: auto;
}

.team-section h3 {
  margin-bottom: 0.5rem;
}

.team-section p {
  color: #555;
  margin-bottom: 2.4rem;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 2.8rem;
  flex-wrap: wrap;
}

.team-card {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px #00000014;
  background: #fff;
}

.a{
    animation: image-in linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 20%;
    transition: all 0.5s ease-in-out;
}

.b{
    animation: image-in linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 25%;
    transition: all 0.5s ease-in-out;
}

.c{
    animation: image-in linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 30%;
    transition: all 0.5s ease-in-out;
}

@keyframes image-in {
    from{
        transform: translatey(100%);
    }
    to{
        transform: translatey(0%);
    }
}

.team-image {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.overlay-text {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #1C132E;
  color: white;
  padding: 1rem;
  transition: bottom 0.4s ease-in-out;
  text-align: left;
}

/* .overlay-text h4 {
  margin: 0 0 0.5rem;
} */

.overlay-text p {
  font-size: 0.9rem;
  margin-block: 0.2rem 0.6rem;
  color: #9e9e9e;
}

.overlay-text span {
  font-size: 0.85rem;
  font-style: italic;
  color: #f1bc5a;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-card:hover .overlay-text {
  bottom: 0;
}

.pricing{
    padding-block: 6rem;
}

.cta{
    text-align: center;
    width: 50%;
    margin: auto;
    padding-block: 6rem;
    animation: show-text linear both;
    animation-timeline: view();
    animation-range: entry 0 cover 35%;
    transition: all 0.8s ease-in-out;
}

@keyframes show-text {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.cta p{
    font-weight: 600;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 130%;
}

.reason{
    background: #FFFFFF;
    padding-block: 4rem;
}

.reason-flex{
    display: flex;
    justify-content: space-between;
}

.reason p{
    margin-block: 4px;
}

.why{
    flex-basis: 50%;
}

.let button{
    padding-inline: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.let button img{
    width: 28px;
}

footer{
    width: 100%;
    text-align: center;
    padding: 2rem 1.8rem;
}

footer p{
    font-size: clamp(10px, 1vw, 13px);
}

body.noscroll {
    overflow: hidden;
}

.overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100dvw; 
    height: 100dvh;
    background: #00000099;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.form-modal {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px #0000004d;
}

.form-modal h2 {
    margin-bottom: 2rem;
}

.form-modal input,
.form-modal textarea {
    width: 100%;
    padding: 8px 12px;
    margin-block: 6px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    font-family: "saira", sans-serif;
}

.form-modal .close-btn {
    width: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.form-modal button {
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
    padding: 8px 24px;
    margin-top: 1.4rem;
}

@media screen and (max-width: 768px){
    header img{
        width: 52px;
    }
    .service-flex{
        flex-direction: column;
        gap: 2rem;
    }
    .service-flex > img, .service-text > p{
        animation-range: entry 0 cover 20%;
    }
    .grid-text{
        animation-range: entry 0 cover 30%;
    }
    .flex-text, .cta{
        animation-range: entry 0 cover 10%;
    }
    .features-list{
        flex-direction: column;
    }
    @keyframes f-slide-two {
        from{
            transform: translateX(-100%);
            opacity: 0;
        }
        to{
            transform: translateX(0%);
            opacity: 1;
        }
    }
    .reason-flex{
        flex-direction: column;
        gap: 2rem;
    }
    .cta{
        width: 70%;
    }
}