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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
    scroll-behavior: smooth;
}

:root {
    --main-text-color: white;
    --sections-text-color: black;
    --transition-effect-btn: 0.3s ease all;
}

h1, h2, p {
    text-align: center;
    color: var(--sections-text-color); 
    font-weight: 100;
}

p {
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 1px;
}

/*----------- Navigation -------------*/
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: absolute;
    justify-content: center;
}

.logo {
    width: 10rem;
    padding: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem;
}

.nav-links li {
    list-style: none;
}

.nav-links li a, .login {
    text-decoration: none;
    color: var(--main-text-color);
    font-size: 1.25rem;
}

.login {
    margin: 1rem;
    margin-right: 2rem;
    cursor: pointer;
}

.fa-user {
    padding-right: 0.25rem;
}

.login:hover, .nav-links li:hover, .menu-links li a:hover {
    border-bottom: 2px solid rgba(255,255,255, 0.5);
}

.fa-bars {
    visibility: hidden;
    color: white;
    font-size: 1.75rem;
    margin: 1rem;
    cursor: pointer;
    transition: var(--transition-effect-btn);
}


/* dropdown */

.menu-toggle {
    display: none;
}

#menu:checked ~ .side-menu {
    right: 0;
}

#menu:checked + label > i.fa-bars {
  opacity: 0;
}


.side-menu {
    display: none;
}



/*-------- Main --------- */
.bg-image {
    background-image: url("https://images.unsplash.com/photo-1683009686716-ac2096a5a73b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80");
    width: 100%;
    height: 65rem;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    box-shadow: inset 1200px 1200px rgba(0,0,0, 0.5);
    z-index: 1;
}


.main-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main-title {
    color: var(--main-text-color);
    font-size: 6rem;
    text-align: center;
    padding-bottom: 0.5rem;
    letter-spacing: 3px;
}

.main-sub {
    color: var(--main-text-color);
    font-size: 1.25rem;
}

.get-started {
    border: 2px rgb(255,255,255, 0.2) solid;
    background-color: rgb(171, 171, 171, 0.2);
    padding: 0.5rem;
    margin-top: 3rem;
    font-size: 1.25rem;
    color: white;
    transition: 0.3s ease-in-out all;
    cursor: pointer;
}


.get-started:hover {
    border: 2px rgb(255,255,255, 0.5) solid;
    background-color: rgb(171, 171, 171, 0.4);
}


/*---------------- About us ----------------*/

.about-container {
    background: #f0f0f0;
    height: 100%;
    padding-bottom: 2rem;
}

.about-title-container {
    background-color: #e8e8e8;
    box-shadow: 5px 5px rgba(0,0,0, 0.1);
    width: 30rem;
    height: 5rem;
    z-index: 2;
    margin: 0 auto;
    transform: translateY(-2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-title {
    font-size: 2.5rem;
}

.about-sub {
    padding-top: 2rem;
    padding-bottom: 1rem;
    font-size: 3rem;
    letter-spacing: 5px;
    word-spacing: 5px;
}

.about-p {
    max-width: 75ch;
    min-width: 45ch;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* cards */

.about-cards {
    padding-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.card {
    background-color: #d9d7d7;
    height: 50rem;
    width: 20rem;
    flex: 1;
    text-align: center;
    box-shadow: 10px 10px rgba(0,0,0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card img {
    width: 100%;
}

.card-title {
    padding: 1rem;
    font-size: 2rem;
    font-weight: 500;
}

.card p {
    padding: 1.5rem;
    line-height: 1.5rem;
}


.learn-btn, .fa-arrow-right {
    transition: var(--transition-effect-btn);
}

.learn-btn {
    background-color: rgb(61, 61, 61, 0.9);
    border-radius: 5px;
    border: 2px rgb(41, 40, 40, 0.1) solid;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
}

.fa-arrow-right {
    padding-left: 0.5rem;
}


.learn-btn:hover {
    background-color: rgb(61, 61, 61, 0.7);
    border: 2px rgb(41, 40, 40, 0.5) solid;
    padding: 0.7rem;
}

.learn-btn:hover .fa-arrow-right {
    scale: 1.5;
}

.l-contain {
    margin-bottom: 2rem;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
}

/*---------------- Contact ----------------*/

.footer-container {
    background-color: gray;
    padding: 2rem;
}

.contact-info h1 {
    color: white;
}

/*---------------- Media queries ----------------*/


@media screen and (max-width: 1200px) {
    .main-title {
        color: var(--main-text-color);
        font-size: 4rem;
    }

    .main-sub {
        font-size: 1.1rem;
    }

    .get-started {
        font-size: 1rem;
    }
    
    .logo {
        width: 9rem;
    }

    .nav-links li a, .login {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.5rem;
    }
}



@media screen and (max-width: 1000px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-links, .login {
        display: none;
    }
    
    .fa-bars {
        visibility: visible;
    }
    .side-menu {
        position: fixed;
        display: block;
        right: -50%;
        background-color: rgba(0,0,0, 0.5);
        height: 100%;
        width: 20%;
        bottom: 0;
        transition: 0.4s all ease;
    }

    .menu-links {
        margin-top: 3rem;
        height: 100%;
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        list-style: none;
        padding: 1rem;

    }

    .menu-links li a {
        color: var(--main-text-color);
        list-style: none;
        font-size: 1.4rem;
        text-decoration: none;
        line-height: 2
    }

    .top-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 5%;
        padding-right: 1rem;
    }

    .login-menu {
        color: var(--main-text-color);
        font-size: 1.rem;
        cursor: pointer;
        padding-left: 1rem;
    }

    .fa-xmark {
        color: var(--main-text-color);
        font-size: 1.75rem;
        cursor: pointer;
    }
}

@media screen and (max-width: 900px) {

    .card {
        height: 45rem;
        width: 40rem;
    }

    .about-cards {
        flex-direction: column;
    }
    
    .card-title {
        font-size: 1.5rem;
    }

    .card p { 
        padding-top: 0;
        font-size: 0.9rem;
    }
}



