@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

*,
*::after,
*::before {
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: var(--fnt--4--);
    color: var(--cl--2--);
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    --cl--1--: #ffffff;
    --cl--2--: #000000;
    --cl--3--: #3A52CA;
    --fnt--1--: clamp(1.88rem, 4.08vi + 1.11rem, 4.38rem);
    --fnt--2--: clamp(1.56rem, 1.53vi + 1.28rem, 2.5rem);
    --fnt--3--: clamp(1rem, 0.41vi + 0.92rem, 1.25rem);
    --fnt--4--: clamp(0.75rem, 0.41vi + 0.67rem, 1rem);
    --gap--: clamp(2rem, 4.9vi + 1.08rem, 5rem);
    --width--: clamp(15.63rem, 5.1vi + 14.67rem, 18.75rem);
    background: var(--cl--1--);
}

img {
    display: flex;
    max-width: 100%;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    text-transform: capitalize;
}

h1 {
    font-size: var(--fnt--1--);
    color: var(--cl--3--);
}

h2 {
    font-size: var(--fnt--2--);
    color: var(--cl--3--);
}

h3 {
    font-size: var(--fnt--3--);
}

p {
    font-size: var(--fnt--4--);
}

a {
    display: inline-block;
    text-decoration: none;
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -ms-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

ul {
    list-style: none;
}

.row {
    display: flex;
}

.flex {
    flex-wrap: wrap;
    gap: var(--gap--);
}

.flex>* {
    flex: 1 1 25em;
}

.column {
    display: grid;
}

.container {
    max-width: 90%;
    margin: 0 auto;
}

/* Background */
.slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeEffect 12s infinite;
}

.slide:nth-child(1) {
    background-image: url('./imgs/bg1.jpg');
    animation-delay: 0s;
}

.slide:nth-child(2) {
    background-image: url('./imgs/bg2.jpg');
    animation-delay: 4s;
}

.slide:nth-child(3) {
    background-image: url('./imgs/bg3.jpg');
    animation-delay: 8s;
}

@keyframes fadeEffect {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 0.2;
    }

    33% {
        opacity: 0.2;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* End Background */

/* Page Button*/
.page-btn,
.page-btn.active:hover {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--fnt--4--);
    color: var(--cl--1--);
    text-transform: uppercase;
    border: 2px solid var(--cl--3--);
    background: var(--cl--3--);
    padding: 1em 1.5em;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -ms-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

.page-btn.active,
.page-btn:hover {
    background: transparent;
    color: var(--cl--3--);
}

/* End Page Button*/

/* Navigation */
header {
    align-items: center;
    justify-content: space-between;
    gap: var(--gap--);
    padding: 0.5em 0;
}

.logo img {
    max-height: 100px;
    max-width: max-content;
}

nav ul {
    align-items: center;
    gap: var(--gap--);
}

nav a {
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--cl--2--);
    text-transform: capitalize;
}

nav a:hover,
.s-card:nth-of-type(odd) h4,
.s-card:nth-of-type(even):hover h4,
form select option:checked {
    color: var(--cl--3--);
}

.toggleMenu {
    display: none;
}

/* End Navigation */

/* Hero */
.hero .container {
    align-items: center;
    min-height: 50dvh;
}

.hero-content {
    max-width: 600px;
    padding: 2rem 0;
}

.hero-content p {
    padding: 1rem 0 2rem;
}

/* End Hero */

/* Reputation */
.reputation,
.service,
.gallery,
.testimonials,
.contact,
.faq {
    padding: var(--gap--) 0;
}

.reputation h2,
.service h2,
.gallery h2,
.testimonials h2,
.faq h2 {
    text-align: center;
}

.reputation-cards,
.service-cards {
    grid-template-columns: repeat(auto-fit, minmax(var(--width--), 1fr));
    gap: var(--gap--);
    padding-top: var(--gap--);
}

.r-card {
    cursor: pointer;
    background: var(--cl--1--);
    padding: 2em;
    border: 2px solid var(--cl--3--);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.r-card svg,
.media-links a:hover {
    fill: var(--cl--3--);
}

.r-card h3,
.about-content p,
.contact-content p {
    padding: 1em 0;
}

/* End Reputation */

/* About */
.about {
    grid-template-columns: repeat(auto-fit, minmax(var(--width--), 1fr));
    align-items: center;
    padding: var(--gap--) 0;
}

.about-img img,
.about-content {
    box-shadow: 0px 20px 24px -4px rgba(17, 24, 39, 0.1), 0px 8px 8px -4px rgba(17, 24, 39, 0.4);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.about-content {
    background: var(--cl--1--);
    border: 2px solid var(--cl--3--);
    padding: 2em;
}

/* End About */

/* Service */
.s-card {
    padding: 4em 2em;
    text-align: center;
    box-shadow: 0px 0px 37px -2px rgba(17, 24, 39, 0.05);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.s-card:nth-of-type(odd),
.s-card:nth-of-type(even):hover {
    background: var(--cl--1--);
}

.s-card:nth-of-type(even),
.s-card:nth-of-type(odd):hover {
    background: var(--cl--3--);
}

.icon {
    position: relative;
    padding: 0.5em;
    max-width: max-content;
    margin: 0 auto;
}

.icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 1px;
}

.s-card:nth-of-type(odd) .icon::after {
    background: var(--cl--4--);
}

.s-card:nth-of-type(even) .icon::after,
.s-card:nth-of-type(odd):hover .icon::after {
    background: var(--cl--1--);
}

.s-card:nth-of-type(odd) svg,
.s-card:nth-of-type(even):hover svg,
.media-links a {
    fill: var(--cl--2--);
}

.s-card:nth-of-type(even) svg,
.s-card:nth-of-type(odd):hover svg {
    fill: var(--cl--1--);
}

.s-card h4 {
    font-weight: 600;
    font-size: var(--fnt--3--);
    padding-top: 0.5em;
}

.s-card:nth-of-type(even) h4,
.s-card:nth-of-type(odd):hover h4 {
    color: var(--cl--1--);
}

/* End Service */

/* Gallery */
.gallery-slider img {
    height: clamp(12.5rem, 30.61vi + 6.76rem, 31.25rem);
    object-fit: cover;
}

/* End Gallery */

/* Experience */
.experience {
    align-items: center;
    flex-wrap: wrap-reverse;
    padding: var(--gap--) 0;
}

.experience-cards {
    flex-direction: column;
    gap: var(--gap--);
}

.e-card {
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(58, 82, 202, 0.1);
    background: var(--cl--1--);
    padding: 2em;
    box-shadow: 0px 20px 24px -4px rgba(17, 24, 39, 0.1), 0px 8px 8px -4px rgba(17, 24, 39, 0.4);
    min-width: var(--width--);
    max-width: max-content;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.e-card:nth-of-type(odd) {
    margin-left: auto;
}

.e-card::after {
    content: "";
    position: absolute;
    top: -50px;
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.e-card:nth-of-type(odd)::after {
    right: 0;
}

.e-card:nth-of-type(even)::after {
    left: 0;
}

.e-card:nth-of-type(1)::after {
    background-image: url(./imgs/icon2.png);
}

.e-card:nth-of-type(2)::after {
    background-image: url(./imgs/icon1.png);
}

.e-card:nth-of-type(3)::after {
    background-image: url(./imgs/icon3.png);
}

.e-card:nth-of-type(4)::after {
    background-image: url(./imgs/icon4.png);
}

.e-card p {
    position: relative;
    padding-left: 1em;
}

.e-card p::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--cl--3--);
}

.experience-content p {
    padding: 2em 0;
}

/* End Experience */

/* Testimonials */
.testimonial-slider,
.gallery-slider {
    margin-top: var(--gap--);
}

.testimonial-slider .swiper-slide {
    padding: 2rem;
    border: 1px solid var(--cl--3--);
}

.testimonial-slider p {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--cl--3--);
    margin-top: 1rem;
}

/* End Testimonials */

/* Client */
.client-slider .swiper-slide {
    display: grid;
    justify-content: center;
}

.client-slider img {
    cursor: pointer;
    max-width: 150px;
    object-fit: cover;
    border: 1px solid var(--cl--3--);
    background: var(--cl--1--);
    padding: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

/* End Client */

/* FAQ */
.faq-content {
    max-width: 700px;
    margin: var(--gap--) auto 0;
}

.faq-content details+details {
    margin-top: 1rem;
}

details summary {
    cursor: pointer;
    color: var(--cl--1--);
    background: var(--cl--3--);
    border: 1px solid var(--cl--3--);
    padding: 1rem;
    font-size: var(--fnt--3--);
}

details p {
    padding: 1rem;
    border: 1px solid var(--cl--3--);
}

/* End FAQ */

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.form {
    flex-wrap: wrap;
    gap: 2em;
}

.form>* {
    flex: 1 1 15em;
}

form input,
form select,
form textarea {
    padding: 1em 0.5em;
    width: 100%;
    background: transparent;
    border: 1px solid var(--cl--3--);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.form+select {
    margin: 2em 0;
}

form p {
    text-align: left;
    padding: 0 0 2em 0 !important;
}

/* End Contact */

/* Footer */
.footer {
    justify-content: center;
    gap: var(--gap--);
    padding: var(--gap--) 0;
}

.footer-details {
    gap: var(--gap--);
}

.footer .logo {
    margin: 0 auto;
}

.footer .logo img {
    max-height: 200px;
}

.footer-links {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap--);
}

.footer-links li {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

footer h5 {
    font-weight: 500;
    font-size: var(--fnt--4--);
    color: var(--cl--3--);
}

.media-links {
    align-items: center;
    justify-content: center;
    gap: 2em;
}

.copy-right {
    background: var(--cl--3--);
    padding: 1em 0;
}

.copy-right p {
    font-size: 12px;
    color: var(--cl--1--);
    text-align: center;
}


/* End Footer */

/* Thankyou Page */
.thank-you {
    min-height: 50dvh;
    align-content: center;
    text-align: center;
}

/* End Thankyou Page */

/* Media */
@media screen and (min-width:1300px) {
    .container {
        max-width: 1280px;
    }

}

@media screen and (max-width:900px) {
    .toggleMenu {
        display: flex;
        cursor: pointer;
        background-color: transparent;
        border: 0;
        background-image: url(./imgs/open.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 30px;
        width: 30px;
        height: 30px;
        z-index: 1000;
        transition: background-size 0.5s ease-in-out;
        -webkit-transition: background-size 0.5s ease-in-out;
        -moz-transition: background-size 0.5s ease-in-out;
        -ms-transition: background-size 0.5s ease-in-out;
        -o-transition: background-size 0.5s ease-in-out;
    }

    .toggleMenu.active {
        position: fixed;
        right: 5%;
        background-image: url(./imgs/close.svg);
        background-size: 25px;
    }

    .navigation {
        position: absolute;
        inset: 0;
        min-height: 0;
        opacity: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: scale(0);
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
    }

    .navigation.active {
        position: fixed;
        min-height: 100%;
        opacity: 1;
        background: var(--cl--1--);
        z-index: 999;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    nav ul {
        flex-direction: column;
    }
}

@media screen and (min-width:700px) {
    .about {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-img,
    .about-content {
        grid-row: 1/2;
    }

    .about-img {
        grid-column: 1/4;
    }

    .about-content {
        grid-column: 3/-1;
    }

    .e-card+.e-card {
        margin-top: -2em;
    }

    .e-card:nth-of-type(odd)::after {
        right: -30px;
    }

    .e-card:nth-of-type(even)::after {
        left: -30px;
    }

}

/* End Media */