@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,700&display=swap');

:root {
    --primary-blue: #047aed;
    --secondary-blue: #1c3fa8;
    --dark-color: #002240;
    --light-color: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
}

ul {
    list-style-type: none;
}

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

h1,
h2 {
    font-weight: 300;
    line-height: 1.2;
    margin: 10px 0;
}

h1 a {
    color: inherit;
    margin: 0;
    padding: 0;
}

p {
    font-size: 1em;
    margin: 10px 0;
}

img {
    width: 100%;
}


/* Navigation */
.navbar .flex {
    justify-content: space-between;
}

.navbar {
    background-color: var(--light-color);
    color: #fff;
    height: 100px;
}

.navbar ul {
    display: flex;
}

.navbar a {
    /* color: #fff; */
    color: #000;
    padding: 10px;
    margin: 0 5px;
}

.navbar h1 a {
    padding: 0;
    margin: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.4em;
}

a .navbar a:hover {
    /* color: #fff; */
    color: var(--primary-blue);
    border-bottom: 2px var(--primary-blue) solid;
}

/* Showcase */

.showcase .grid {
    grid-template-columns: 55% 45%;
    gap: 30px;
    overflow: visible;
}

.showcase {
    background-color: var(--primary-blue);
    color: #fff;
    height: 400px;
    position: relative;
}

.showcase h1 {
    font-size: 40px;
}

.showcase p {
    margin: 20px 0;
}

.showcase-form {
    height: 350px;
    justify-self: flex-end;
    padding: 40px;
    position: relative;
    top: 60px;
    width: 400px;
    z-index: 100;
}

.showcase-form .form-control {
    margin: 30px 0;
}

.showcase-form input[type='text'],
.showcase-form input[type='email'] {
    border: 0;
    border-bottom: 1px solid #b4becb;
    width: 100%;
    padding: 3px;
    font-size: 16px;
}

.showcase-form input:focus {
    outline: none;
}

/* Stats */

.stats {
    padding-top: 100px;
}

.stats-heading {
    max-width: 500px;
    margin: auto;
}

.stats .grid h3 {
    font-size: 3em;
}

.stats .grid p {
    font-size: 1.4em;
    font-weight: bold;
}

/* Cli */

.cli .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1 fr);
}

.cli .grid>*:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

/* Cloud */


/* Languages */

.languages .flex {
    flex-wrap: wrap;
}

.languages .card {
    text-align: center;
    margin: 18px 10px 40px;
    transition: 0.2s ease-in;
}

.languages .card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.languages .card:hover {
    transform: translateY(-15px);
}

/* Features */

.features-head img,
.docs-head img {
    justify-self: end;
    width: 200px;
}

.features-sub-head img {
    justify-self: end;
    width: 300px;
}

.features-main .card>i {
    margin-right: 20px;
}

.features-main .grid-3 {
    padding: 30px;
}

.features-main .grid>*:first-child {
    grid-column: 1 / span 3;
}

.features-main .grid>*:nth-child(2) {
    grid-column: 1 / span 2;
}


/* Docs */

.docs-main h3 {
    margin: 20px 0;
}

.docs-main .grid {
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
}

.docs-main nav li {
    font-size: 17px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    /* border-bottom: 1px #ccc solid; */
}

/* About Aflredo Fernandez  */
.grid.prof {
    display: grid;
}

.grid.prof img {
    justify-self: start;
}


/* About Test */

.about .grid div:first-child {
    background-color: blue;
    grid-column: 1 / span 2;
}


/* Services */

.card.services h2 {
    text-align: center;
    font-weight: bold;
}

.card.services {
    text-align: left;
}

.container.grid div:not(:first-child) {
    grid-column-start: 2;
}

.svc-nav li {
    text-align: left;
    border-bottom: none;
    list-style: circle;
    margin-left: 10px;
}

.svc-details {
    padding: 2%;
    border: solid 1px #f3f3f3;
    /* background-color: rgb(33 245 33 / 50%); */
    background-color: var(--light-color);
    border-radius: 5px;
}

.svc-details h5 {
    font-size: 1em;
    font-family: 'Lato';
    font-weight: 700;
    border-bottom: solid 1px #666;
    margin-bottom: 10px;
}

.svc-details button {
    padding: 0.25em 0.5em;
    background-color: var(--primary-blue);
    color: #fff;
    font-family: 'Lato';
    font-size: 1em;
    border: none;
    border-radius: 5px;
}

.svc-details li {
    font-size: 1em;
    margin-bottom: 5px;
}

.svc-details strong {
    font-weight: 700;
}

.svc-details a {
    color: var(--primary-blue);
}

/* Hero */

.hero-sec {
    background-image: url('../images/family.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 80vh;
    width: 100%;
}


.hero div {
    display: grid;
    padding: 2%;
}

.hero h1 {
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.hero div p {
    color: #fff;
    width: 80%;
    margin: 0 auto 25px;
    padding: 2%;
    font-size: 1.4rem;
    font-weight: lighter;
    border-bottom: solid 1px;
    border-top: solid 1px;
}

.hero div img {
    grid-column: 1;
    grid-row: 1;
}

.hero div .hero-contact {
    display: flex;
    padding: 0% 2% 2% 9%;
}

.hero a {
    display: inline-block;
    padding: 2%;
    background-color: var(--secondary-blue);
    border-radius: 10px;
    font-size: 1.2em;
    color: #f6f6f6;
    border: solid 5px var(--primary-blue);
    text-transform: capitalize;
    margin-right: 15px;
}

.showcase-text {
    margin: 10px 0 0 49%;
    background-color: rgba(4, 122, 237, .85);
    margin-top: 100px;
    border-radius: 10px;
    padding: 1%;
}

/* Footer */

.f-grid {
    display: grid;
    grid-template-columns: 2fr 5fr 1fr 1fr;
}

.f-grid div:nth-child(1) {
    flex: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.f-grid div:nth-child(2) {
    flex: 6;
    align-items: center;
    margin: auto;
    display: flex;
    justify-content: space-evenly;
}

.f-grid img {
    width: 100px;
    margin: 0 10px;
}

nav.f-nav {
    flex: 2;
}

.soc-nav li img {
    width: 25px;
}


@media(max-width: 768px) {


    .about .grid div:first-child {
        background-color: yellow;
        grid-column: 1 / span 1;
    }

    .grid,
    .features-head .grid,
    .features-sub-head .grid,
    .features-main .grid,
    .showcase .grid,
    .stats .grid,
    .cli .grid,
    .cloud .grid,
    .docs-main .grid,
    .about .grid,
    .features-main .grid>*:first-child,
    .features-main .grid>*:nth-child(2) {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    /* .features-main .grid {
        background-color: blue;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    } */

    .showcase {
        height: auto;
    }

    .showcase-text {
        text-align: center;
        margin-top: 40px;
    }

    .showcase-form {
        justify-self: center;
        margin: auto;
    }

    .cli h3 {
        text-align: center;
    }

    .cli .grid>*:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .features-main .grid>*:first-child,
    .features-main .grid>*:nth-child(2) {
        grid-column: 1;
    }

    .features-head,
    .features-sub-head,
    .docs-head {
        text-align: center;
    }

    .features-head img,
    .features-sub-head img,
    .docs-head img {
        justify-self: center;
    }
}

@media(max-width: 500px) {
    .navbar {
        height: 110px;
    }

    .navbar .flex {
        flex-direction: column;
    }

    .navbar ul {
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.1);
    }
}