* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    --primary-color: #FFDD55;
    --header-height: 7rem;
    --intro-color: #18191F;
    --intro-subtitle-color: #474A57;
}

body {
    background-color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

.first-page,
.about,
.services,
.contact {
    scroll-margin-top: var(--header-height);
}

.first-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: black;
    padding: 20px 60px;
    border-radius: 0px 0px 40px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav {
    display: flex;
    justify-content: space-evenly;
    min-width: 55%;
    align-items: center;
    gap: 40px;
    font-size: 2.5rem;
    font-weight: 550;
}

.nav a {
    color: inherit;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--primary-color);
}


.burger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
/* =================  header ==================*/

 .intro {
    display: grid;
    grid-template-columns: 12fr 12fr;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
} 

.intro > div {
    height: 100%;
    padding: 20px 0px;
}

 .intro-text { 
     /* background-color: white;  */
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 2.5rem;
 } 

.intro-text > div {
    display: flex;
    flex-direction: column;
}

.intro-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--intro-color);
}

.intro-text p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    color:  var(--intro-subtitle-color);
    font-weight: 600;
}

.intro-buttons {
    display: flex;
    justify-content: space-between;    
}

.intro-buttons button,
.intro-buttons a {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 2.1rem;
    cursor: pointer;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 9px 9px 0px #00C6AE;
    text-decoration: none;
}

.intro-buttons-mobile {
    display: none;   
}

/*  ===================  intro image  */

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 2rem;
}

.intro-image img {
    width: min(100%, 28rem);
    height: min(75vh, 38rem);
    object-fit: cover;
    display: block;
    margin-top: 13px;
}

.intro-image img,
.about-image img {
    border-radius: 1.5rem;
    box-shadow: 8px 8px 0 #00C6AE;
}

 .intro-social-media { 
    /* background-color: green; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 9999;
    

 } 

/* =================  about ==================*/

.about {
    width: calc(100vw - 80px);
    height: calc(100vh - var(--header-height));
    margin: 2rem 2rem;
    background-color: #106EE8;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 6fr 12fr;
    grid-template-rows: auto;
    padding-top: 4rem;
    padding-left: 3rem;
}

.about-text {
    margin-top: 2rem;
    margin-right: 3rem;
}

.about-text h1, .about-text p {
    color: #ffffff;
}

.about-text h1 {
    font-size: 4rem;
    /* margin-bottom: 5px; */
}

.about-text h3 {
    color: #FFDD55;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-text > div > .intro-buttons {
    margin-right: 15rem;
}

.about-text p {
    font-weight: 550;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.about-image img{
    width: 20rem;
    height: 27rem;
    object-fit: cover;
}


/* ===============  Services  ====================== */

.services {
    height: 87vh;
    background-color: #EB7711;
    padding: 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
}

.services > h1 {
    font-size: 2.5rem;
    font-weight: 700;;
    color: #000000;
    margin-bottom: 20px;
}

.services > p {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.services-cards {
    display: flex;
    width: 100%;
    height: 60%;
    justify-content: space-evenly;
    margin-top: 2rem;
}

.card {
    height: 100%;
    width: 20rem;
    background-color: #A259FF;
    border-radius: 1.2rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    position: relative;
    border: 2px solid #000000;
    box-shadow: 6px 6px 0px;
    text-align: center;
}

.card > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    width: 4rem;
    background-color: #0ACF83;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffff;
    font-size: 3rem;
    font-weight: 900;
}

.card > h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    margin-top: 20px;
    align-self: center;

}

.marks {
    list-style: none;

}

.marks li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
    font-weight: 600;
}

.check-circle {
    width: 2rem;
    height: 2rem;
    background: #0ACF83;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.check {
    width: 1.5rem;
    height: 1.5rem;
}

.check path {
    fill: none;
    stroke: white;
    stroke-width: 6;
    stroke-linecap: butt;
    stroke-linejoin: miter;
}

.card > button {
    background-color: #FFDD55;
    color: #000000;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 1.3rem;
    font-weight: 800;
    align-self: center;

}



/* ============   Contact  ============== */
.contact {
    height: 60vh;
    background-color: lightgreen;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.contact > h1 {
    color: #ffffff;
    font-size: 3rem;
}

.contact > a {
    border: none;
    color: #000000;
    background-color: #FFDD55;
    padding: 30px 90px;
    border-radius: 40px;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: -15px 19px 0px #000000;
    text-decoration: none;
}

.intro-buttons a:link,
.intro-buttons a:visited,
.intro-buttons a:hover,
.intro-buttons a:focus,
.intro-buttons a:active,
.intro-buttons-mobile a:link,
.intro-buttons-mobile a:visited,
.intro-buttons-mobile a:hover,
.intro-buttons-mobile a:focus,
.intro-buttons-mobile a:active,
.contact > a:link,
.contact > a:visited,
.contact > a:hover,
.contact > a:focus,
.contact > a:active {
    text-decoration: none;
}

/* =================  media query ==================*/

@media (max-width: 768px) {
    .intro-social-media img {
        width: 50px;
        height: 50px;

    }

    @media (max-width: 768px) {
        .first-page {
            padding-left: 0;
        }

        .header {
            height: 80px;
            padding: 10px 20px;
            border-radius: 0 0 24px 24px;
            align-items: center;
        }

        .logo {
            max-width: 150px;
            max-height: 52px;
            object-fit: contain;
        }

        .intro {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto auto auto;
            gap: 0.75rem;
            height: auto;
            min-height: calc(100vh - 80px);
            min-height: calc(100svh - 80px);
            padding: 1.5rem 1rem 2rem;
        }

        .intro > div {
            height: auto;
            padding: 0;
        }

        .intro-text {
            justify-content: center;
            margin: 0;
            text-align: center;
        }

        .intro-text h1 {
            font-size: clamp(2.25rem, 10vw, 3rem);
            margin: 0 0 0.75rem;
        }

        .intro-text p {
            font-size: clamp(1rem, 4.5vw, 1.35rem);
            margin: 0;
        }

        .intro-image {
            justify-content: center;
            margin: 0;
            overflow: visible;
        }

        .intro-image img {
            width: min(80vw, 340px);
            height: auto;
            margin: 0;
        }

        .intro-buttons-mobile {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 0;
            padding: 0;
        }

        .intro-buttons-mobile button,
        .intro-buttons-mobile a {
            padding: 0.6rem 1rem;
            font-size: clamp(0.9rem, 4vw, 1.1rem);
            border: 0;
            border-radius: 10px;
            box-shadow: 4px 4px 0 #00C6AE;
            color: #fff;
            background-color: #000;
            text-decoration: none;
        }

        .intro-social-media {
            right: 0.75rem;
            bottom: 0.75rem;
            flex-direction: row;
            gap: 0.5rem;
        }

        .intro-social-media img {
            width: 36px;
            height: 36px;
        }

        .about {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
            width: auto;
            height: auto;
            margin: 1rem;
            padding: 1.5rem;
        }

        .about-image {
            align-self: center;
            margin: 0;
        }

        .about-image img {
            width: clamp(150px, 38vw, 220px);
            height: auto;
        }

        .about-text {
            margin: 0;
            padding: 0;
        }

        .about-text h1 {
            font-size: clamp(2rem, 8vw, 2.5rem);
        }

        .about-text h3 {
            font-size: clamp(1.2rem, 5vw, 1.5rem);
            margin-bottom: 1rem;
        }

        .about-text p {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .about > .intro-buttons-mobile {
            gap: 1rem;
        }

        .about > .intro-buttons-mobile button,
        .about > .intro-buttons-mobile a {
            font-size: 1rem;
        }

        .services {
            height: auto;
            padding: 2rem 1rem;
        }

        .services > h1 {
            font-size: clamp(1.5rem, 7vw, 2rem);
            margin: 0 0 1rem;
            text-align: center;
        }

        .services > p {
            font-size: 1rem;
            margin: 0 0 1rem;
        }

        .services-cards {
            flex-direction: column;
            align-items: center;
            gap: 2.5rem;
            width: 100%;
            height: auto;
            margin: 1rem 0 0;
        }

        .card {
            width: 100%;
            max-width: 380px;
            height: auto;
            min-height: 250px;
            margin: 0;
            padding: 1rem;
            gap: 0.5rem;
        }

        .card > h3 {
            margin: 1rem 0 0;
            font-size: 1.25rem;
        }

        .marks li {
            gap: 0.5rem;
            margin-bottom: 0.4rem;
            font-size: 0.9rem;
        }

        .check-circle {
            width: 24px;
            height: 24px;
        }

        .check {
            width: 15px;
            height: 15px;
        }

        .card > button {
            padding: 0.5rem 0.75rem;
            font-size: 1rem;
        }

        .contact {
            height: auto;
            min-height: 40svh;
            gap: 1.5rem;
            padding: 2rem 1rem;
        }

        .contact > h1 {
            font-size: clamp(1.25rem, 6vw, 1.75rem);
            text-align: center;
        }

        .contact > a {
            padding: 0.75rem 1.5rem;
            border-radius: 24px;
            font-size: clamp(1.25rem, 6vw, 1.75rem);
            box-shadow: -8px 10px 0 #000;
        }
    }

    @media (max-width: 380px) {
        .header {
            padding-right: 14px;
            padding-left: 14px;
        }

        .about {
            margin: 0.75rem;
            padding: 1.25rem;
        }

        .intro-buttons-mobile {
            gap: 0.75rem;
        }

        .intro-social-media img {
            width: 30px;
            height: 30px;
        }
    }

    .first-page {
        padding-left: 20px
    }

    .intro-social-media {
        bottom: 80px
    }

    .header {
        height: 80px;
        padding: 10px 25px;
    }

    .burger {
        font-size: 2.9rem !important;
    }

    .intro {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr ;
    }   

    .intro-text {
        margin-left: 5px;
        margin-right: 20px;
    }

    .intro-text h1 {
        font-size: 3rem;
        margin-bottom: 12px;
        margin-top: 10px
    }

    .intro-text p {
        font-size: 1.5rem;
        margin-bottom: 0px;
    }

    .intro-buttons {
        display: none;
    }

    .intro-buttons-mobile {
        display: flex;
        justify-content: space-between;    
        margin-left: 20px;
        margin-right: 40px;
        padding-top: 0px !important;
    }

    .intro-buttons-mobile button,
    .intro-buttons-mobile a {
        font-size: 1.2rem;
        padding: 5px 10px;
        border-radius: 10px;
        box-shadow: 4px 4px 0px #00C6AE;
        color: white;
        background-color: #000000;
        text-decoration: none;
    }

    .intro-image img {
        width: min(80vw, 300px);
        height: auto;
    }

    .intro-image {
        margin-right: 0px;
        padding-top: 0px !important;
        justify-content: flex-start;
    }



     .burger {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        background-color: #000;
        border-radius: 0 0 24px 24px;
        font-size: 1.25rem;
    }

    .nav.is-open a {
        padding: 0.75rem 0;
    }

    .logo {
    padding-left: 0px;
        }

    /* ====================== about ======= */

    .about {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin: 100px 20px ;
        width: calc(100vw - 55px);
        padding: 20px
    }

    .about-image {
        align-self: center;
        margin-bottom: 10px
    }

    .about-text {
        margin: 0px;
        padding: 0px;
    }

    .about-image img{
        width: min(65vw, 200px);
        height: auto;
    }

    .about-text h1{
        font-size: 2.5rem;
        /* margin-bottom: 10px; */
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 30px;

    }

    .about > .intro-buttons-mobile {
        margin: 0px;
        gap: 20px;
    }

    .about > .intro-buttons-mobile button,
    .about > .intro-buttons-mobile a {
        font-size: 1rem;
    }

    /* ========== services ================ */

    .services {
        padding: 0px;
        height: 93vh !important;
        padding: 20px;
    }

    .services > h1 {
        font-size: 1.5rem;
        margin: 0px;
        margin-bottom: 20px;
    }

    .services > p {
        font-size: 0.9rem;
        margin: 0px;
        margin-bottom: 30px;
    }

    .services-cards {
        flex-direction: column;
        margin: 0px;
        gap: 40px;
    }

    .card {
        height: 230px;
        width: 90%;
        margin: 0px;
        padding: 0px;
        padding: 10px;
        
    }

    .card > div {
        height: 50px;
        width: 50px;
        font-size: 2rem;
    }

    .card > h3 {
        font-size: 1.2rem;
        margin: 0px;
        padding: 0px;
        margin-top: 20px;
    }

    .marks li {
        gap: 8px !important;
        margin-bottom: 5px !important;
        font-size: 0.8rem;
    }

    .check-circle {
        width: 25px;
        height: 25px;
    }

    .check {
        width: 15px;
        height: 15px;
    }

    .card > button {
        padding: 0px;
        font-size: 1rem;
        padding: 5px;
    }


    /* ========= Contact =========== */

    .contact {
        gap: 2rem;
        padding: 0.5rem 0.7rem;
    }

    .contact > h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .contact > a {
        padding: 10px 30px;
        font-size: 1.5rem;
    }


}

@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .nav {
        min-width: 65%;
        gap: 1rem;
        font-size: clamp(1.25rem, 3vw, 2rem);
    }

    .intro-text h1,
    .about-text h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .intro-text p,
    .about-text p {
        font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    }

    .about {
        width: auto;
        height: auto;
        min-height: calc(100vh - var(--header-height));
        margin: 2rem;
        padding: 3rem 2rem;
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
        gap: 1rem;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
    }

    .about-text > div > .intro-buttons {
        margin-right: 0;
        gap: 1rem;
    }

    .services {
        height: auto;
        min-height: 87vh;
        padding: 2rem;
    }

    .services-cards {
        gap: 1.5rem;
        height: auto;
    }

    .card {
        width: min(45%, 20rem);
        min-height: 300px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .first-page {
        padding-left: 0;
    }

    .intro {
        grid-template-rows: auto auto auto;
        height: auto;
        min-height: calc(100vh - 80px);
        min-height: calc(100svh - 80px);
        padding: 1.5rem 1rem 2rem;
    }

    .intro-text {
        margin: 0;
        text-align: center;
    }

    .intro-text h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
        margin: 0 0 0.75rem;
    }

    .intro-text p {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
        margin: 0;
    }

    .intro-image {
        justify-content: center;
        margin: 0;
        overflow: visible;
    }

    .intro-image img {
        width: min(80vw, 340px);
        height: auto;
        margin: 0;
    }

    .intro-buttons-mobile {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .intro-buttons-mobile button,
    .intro-buttons-mobile a {
        padding: 0.6rem 1rem;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        text-decoration: none;
    }

    .intro-social-media {
        right: 0.75rem;
        bottom: 0.75rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .intro-social-media img {
        width: 36px;
        height: 36px;
    }

    .about {
        width: auto;
        height: auto;
        margin: 1rem;
        padding: 1.5rem;
        align-items: stretch;
        gap: 1rem;
    }

    .about-image {
        margin: 0;
    }

    .about-image img {
        width: clamp(150px, 45vw, 200px);
        height: auto;
    }

    .about-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .about-text h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-bottom: 1rem;
    }

    .about-text p {
        margin-bottom: 1rem;
    }

    .about > .intro-buttons-mobile {
        gap: 1rem;
    }

    .services {
        height: auto !important;
        padding: 2rem 1rem;
    }

    .services > h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin: 0 0 1rem;
    }

    .services > p {
        font-size: 1rem;
        margin: 0 0 1rem;
    }

    .services-cards {
        align-items: center;
        gap: 2.5rem;
        width: 100%;
        height: auto;
        margin: 1rem 0 0;
    }

    .card {
        width: 100%;
        max-width: 380px;
        height: auto;
        min-height: 250px;
        padding: 1rem;
        gap: 0.5rem;
    }

    .card > h3 {
        margin: 1rem 0 0;
        font-size: 1.25rem;
    }

    .marks li {
        gap: 0.5rem !important;
        margin-bottom: 0.4rem !important;
        font-size: 0.9rem;
    }

    .check-circle {
        width: 24px;
        height: 24px;
    }

    .check {
        width: 15px;
        height: 15px;
    }

    .card > button {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .contact {
        height: auto;
        min-height: 40svh;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .contact > h1 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .contact > a {
        padding: 0.75rem 1.5rem;
        border-radius: 24px;
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        box-shadow: -8px 10px 0 #000;
    }
}

@media (max-width: 380px) {
    .header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .about {
        margin: 0.75rem;
        padding: 1.25rem;
    }

    .intro-buttons-mobile {
        gap: 0.75rem;
    }

    .intro-social-media img {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.site-footer {
    background-color: #000;
    color: #fff;
    padding: 3rem clamp(1.25rem, 6vw, 5rem) 1.25rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-brand img {
    display: block;
    width: min(30%, 80px);
    height: auto;
    object-fit: contain;
}

.footer-contact,
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-style: normal;
}

.footer-main h2 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-main address {
    font-style: normal;
}

.footer-main a:not(.footer-brand) {
    color: #fff;
    text-decoration: none;
}

.footer-main a:not(.footer-brand):hover,
.footer-main a:not(.footer-brand):focus-visible {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #474A57;
    color: #d1d1d1;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand img {
        width: min(55vw, 200px);
    }
}

@media (max-width: 420px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}