@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;500;600;700;800;900&display=swap');

/* Global */

:root {
    --background-color: #181818;
    --primary-color: rgba(16, 182, 235);
    --secondary-color: rgba(16, 182, 235, 0.08);
    --text-color: #EAEAEA;
}

* {
    list-style: none;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}


/* Desktop NavBar */

.section1 header {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: var(--background-color);
}

.section1 header .desktop-navbar ul{
    position: absolute;
    width: 51%;
    top: 10%;
    left: 45.7%;
    display: flex;
    justify-content: space-between;
}

.section1 header .desktop-navbar ul li > * {
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.section1 header .desktop-navbar ul li > *:hover {
    color: var(--primary-color);
}

.section1 header .desktop-navbar ul li .here {
    color: var(--primary-color);
}


/* Mobile NavBar */

.section1 header .mobile-navbar {
    width: 80vw;
}

.section1 header .mobile-navbar .logo {
    position: relative;
}

.section1 header .mobile-navbar .menu {
    position: absolute;
    z-index: 2;
    cursor: pointer;
}

.section1 header .mobile-navbar ul {
    position: fixed;
    background-color: var(--text-color);
    height: 100vh;
    width: 40vw;
    margin: 0;
    top: 0%;
    right: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* sliding animation */
    animation: slide 0.5s ease;
}

@keyframes slide {
    0% {
        right: -60vw;
    }
    100% {
        right: 0%;
    }
}

.section1 header .mobile-navbar ul li {
    padding-top: 20px;
}

.section1 header .mobile-navbar ul li > * {
    font-weight: 700;
    color: var(--background-color);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.section1 header .mobile-navbar ul li > *:hover {
    color: var(--primary-color);
}

.section1 header .mobile-navbar ul li .here {
    color: var(--primary-color);
}

/* Hero section */

.section1 .hero {
    width: 1239px;
    height: 80vh;
    /* background-color: gray; */
    display: flex;
    /* justify-content: center; */
}

.section1 .hero .left {
    width: 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-self: flex-start;
}

.section1 .hero .left h1 {
    color: var(--text-color);
    font-size: 3.5rem;
    font-weight: 700;
    align-self: center;
}

.section1 .hero .left p {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 200;
}

.section1 .hero .left button {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    align-self: flex-start;
    margin-top: 40px;
    height: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section1 .hero .left button:hover {
    background-color: var(--text-color);
}

.section1 .hero .right {
    width: 50%;
    display: flex;
    justify-content: end;
}

.section1 .hero .right img{
    width: 80%;
}

/* Section 2 */
.section2 {
    max-width: 1239px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section2 h1 {
    color: var(--text-color);
    text-align: center;
    font-size: clamp(1.7rem, 2.5vw, 3.5rem);
}

.section2 .cards p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.section2 .cards {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    justify-content: center;
}

.section2 .cards .row1 .card{
    display: flex;
    flex-direction: column;
}

.section2 .cards .row2 .card{
    display: flex;
    flex-direction: column;
}

/* Section 3 */

.section3 {
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
}

.section3 .row1 .first-square {
    display: flex;
    flex-direction: row;
    background-color: var(--secondary-color);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    justify-content: space-between;
}

.section3 .row1 .first-square .left {
    width: 60%;
    align-self: center;
}

.section3 .row1 .first-square .right {
    width: clamp(200px, 30vw, 400px);
}

.section3 .row1 .first-square h2 {
    color: var(--text-color);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: left;
}

.section3 .row1 .first-square p {

    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.section3 .row2 {
    display: inline-flex;
    /* flex-direction: row;
    justify-content: space-around; */
    width: 80vw;
    color: var(--text-color);
    row-gap: 20px;
    column-gap: 20px;;
}

.section3 .row2 .square2 {
    background-color: var(--secondary-color);
    width: 50%;
    height: 225px;
    position: relative;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.section3 .row2 .square2 h2 {
    font-size: 2.8rem;
    margin: 0;
}

.section3 .row2 .square3 h2 {
    font-size: 2.8rem;
    margin: 0;
}

.section3 .row2 .square3 {
    background-color: var(--secondary-color);
    width: 50%;
    height: 225px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.section3 .row2 .square2 a {
    width: 100%;
}

.section3 .row2 .square2 button {
    background-color:rgba(16, 182, 235, 0.08);
    width: 50%;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.section3 .row2 .square2 button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* .section3 .row2 .square3 a {
    width: 100%;
} */

.section3 .row2 .square3 button {
    background-color:rgba(16, 182, 235, 0.08);
    width: 50%;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.section3 .row2 .square3 button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.section3 .row3 {
    width: 80vw;
}

.section3 .row3 .final-square {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color);
    border-radius: 0 0 20px 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.section3 .row3 .final-square p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    margin-top: 20px;
}

.section3 .row3 .final-square h2 {
    color: var(--text-color);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.section3 .row3 .final-square h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.section3 .row3 .final-square a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section3 .row3 .final-square button {
    margin-top: 30px;
    background-color:rgba(16, 182, 235, 0.08);
    width: 30%;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 700;
    align-self: center;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.section3 .row3 .final-square button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Media Queries */
/* 1240 px reduce navbar and font-size */
@media screen and (max-width: 1240px) {
    .section1 header .desktop-navbar ul li > * {
        font-size: 0.9rem;
    }

    .section1 header .desktop-navbar .logo {
        width: 800px;
    }

    .section1 header .desktop-navbar ul{
        top: 0;
        left: 44%;
    }
}

/* 800px disable desktop-navbar and enable mobile-navbar */
@media screen and (max-width: 800px) {
    .section1 header .desktop-navbar {
        display: none;
    }

    .section1 header .mobile-navbar {
        display: flex;
        padding-left: 10px;
    }

    .section1 header .mobile-navbar .menu {
        right: 2%;
        top: 28%;
    }
}


/* min 800px to disable mobile-navbar on desktop/tablet display */
@media screen and (min-width: 800px) {
    .section1 header .mobile-navbar {
        display: none;
    }
}

/* hero section */
/* Desktop*/

@media screen and (min-width: 1240px) {
    .section1 .hero {
        margin-top: 40px;
        height: 85vh;
    }

    .section1 .hero .left {
        padding-top: 150px;
    }

    .section1 .hero .left p {
        max-width: 400px;
    }
}
/* Tablet */
@media screen and (max-width: 1240px) and (min-width: 800px) {
    .section1 .hero {
        margin-top: 100px;
        width: 800px;
        height: 80vh;
        align-items: start;
    }

    .section2 {
        margin-top: 15%;
    }

    .section1 .hero .left p {
        font-size: 1rem;
    }

    .section1 .hero .left {
       padding: 0;
    }

    .section1 .hero .left h1 {
        font-size: 2.5rem;
    }

    .section1 .hero .left button {
        font-size: 0.8rem;
        height: 40px;
    }

    .section1 .hero .right {
        width: 50%;
    }
}
/* Phone */
@media screen and (max-width: 800px){
    .section1 .hero {
        width: 100%;
        height: 90vh;
        align-items: center;
        margin: 0;
    }

    .section1 .hero .left {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .section1 .hero .left button {
        align-self: center;
    }

    .section1 .hero .left h1 {
        font-size: 2.4rem;
    }

    .section1 .hero .left p {
        justify-self: center;
        text-align: center;
        font-size: 1rem;
    }
    .section1 .hero .right {
        display: none;
    }
}

/* Section 2*/
/* Phone */
@media screen and (max-width: 800px) {
    .section2 .cards .row1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section2 .cards .row2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section2 .cards .row1 .card {
        width: clamp(300px, 80vw, 400px);
    }

    .section2 .cards .row2 .card {
        width: clamp(300px, 80vw, 400px);
    }
}

/* Section 3*/
/* Phone */
@media screen and (max-width: 800px) {
    .section3 {
        margin-top: 100px;
    }

    .section3 .row1 .first-square .left {
        width: 100%;
        height: fit-content;
    }

    .section3 .row1 .first-square .left h2 {
        font-size: 1.5em;
        text-align: center;
    }

    .section3 .row2 .square2 h2 {
        font-size: 1.5em;
    }

    .section3 .row2 .square3 h2 {
        font-size: 1.5em;
    }

    .section3 .row1 .first-square .left p {
        text-align: center;
    }

    .section3 .row1 .first-square .right {
        display: none;
    }

    .section3 .row2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .section3 .row2 .square2 {
        /* same width as first-square */
        width: -webkit-fill-available;
    }
    .section3 .row2 .square3 {
        /* same width as first-square */
        width: -webkit-fill-available;
    }

    .section3 .row2 .square2 button {
        width: 80%;
    }
    .section3 .row2 .square3 button {
        width: 80%;
    }
    .section3 .row3 .final-square button {
        width: 80%;
    }
    .section3 .row3 .final-square h2 {
        font-size: 1.5em;
    }
}

/* Desktop */
@media screen and (min-width: 1240px){
    .section3 {
        max-width: 1239px;
        margin-top: 150px;
    }
    .section3 .row2 {
        max-width: 1239px;
    }
    .section3 .row3 {
        max-width: 1239px;
    }
    .section3 .row1 .first-square .right {
        margin-right: 50px;
    }

    .section3 .row1 .first-square .left {
        padding: 60px;
    }
}


/* Tablet */
@media screen and (max-width: 1240px) and (min-width: 800px) {
    .section3 {
        margin-top: 125px;
    }
    .section3 .row1 .first-square .left h2 {
        font-size: 2.5rem;
    }

    .section3 .row1 .first-square .left p {
        margin-top: 10px;
    }
    .section3 .row1 .first-square p {
        padding-top: 30px;
    }
    
    .section3 .row2 .square2 button {
        font-size: 0.8rem;
        width: 80%;
    }

    .section3 .row2 .square3 button {
        font-size: 0.8rem;
        width: 80%;
    }

    .section3 .row3 .final-square button {
        font-size: 0.8rem;
    }

    .section1 {
        height: 100vh;
    }

    .section2 {
        max-width: 800px;
    }
}
