@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,500;0,700;1,100&display=swap');

:root {
    --font-color-dark: #000000;
    --light-dark: #222;
    --font-color-light: #d5d5d5;
    --primary-color: #C0FF6B;
    --secondary-color: #656565;
    --light-color: #d5d5d5;
    --dark-color: #000000;
    --success-color: #5cb85c;
    --error-color: #d9534f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--font-color-dark);
    line-height: 1.6;
    font-weight: 300; 
}

.gototop {
    z-index: 200;
    position: fixed;
    width: 2em;
    height: 2em;
    background: var(--secondary-color);
    bottom: 0.5em;
    right: 0.5em;
    border-radius: 1em;
    text-decoration: none;
    text-align: center;
    color: var(--light-color);
    font-size: 1.5em;
    line-height: 2em;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--font-color-dark);
}

h1, h2 {
    font-weight: 300;
    line-height: 1.2;
    margin: .625em 0;
}

p {
    margin: .625em 0;
}

code, pre {
    background-color: var(--font-color-dark);
    color: var(--font-color-light);
    padding: 0.625em;
}

img {
    width: 100%;
}

.header-bg {
    background-image: url('../images/blob-scene-haikei.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

/* Navigation Styles */
.navbar {
    color: var(--font-color-light);
    padding: 0.625em 0;
}

.navbar .logo-home {
    padding: 0;
    margin: 0;
}

.navbar .logo-home:hover {
    opacity: 1;
}

.navbar h1 {
    color: var(--font-color-light);
    font-weight: 300;
}

.navbar span {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar ul {
    display: flex;
}

.navbar a {
    color: var(--light-color);
    padding: 0.625em;
    margin: 0 0.3125em
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar .active {
    border-bottom: 2px solid var(--primary-color);
}

.navbar .flex {
    justify-content: space-between;
}

/* Showcase Styles */

.showcase {
    height: 80vh;
    color: var(--font-color-light);
    position: relative;
    text-align: center;
}

.showcase .grid {
    grid-template-columns: 55% 45%;
    gap: 2em;
    overflow: visible;
}

.showcase-text h1 span {
    color: var(--light-color);
}

.showcase-form {
    height: auto;
    width: 50%;
    margin: 3em auto;
    padding: 2.5em;
    z-index: 100;
}

.showcase-form h2 {
    font-size: 2em;
    font-weight: 700;
}

.showcase-form .form-control {
    margin: 1.875em 0;
}

.showcase-form input[type='text'],
.showcase-form input[type='tel'],
.showcase-form select,
.showcase-form input[type='email'] {
    -webkit-appearance: none;
    border: 0;
    border-bottom: 1px solid #b4becb;
    width: 100%;
    padding: .25em;
    font-size: 1em;
    border-radius: 0;
    color: #777;
}

.showcase-form input::placeholder {
    color: #b4becb;
    background-color: white;
}

.showcase-form select {
    background-color: white;
}

.showcase-form input:focus, .showcase-form select:focus {
    outline: none;
}

.showcase h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.showcase p {
    margin: 1.25em 0;
}

/* Stats Styles */

.stats {
    padding: 4em 0;
}

.stats-heading {
    max-width: 800px;
    margin: auto;
    font-weight: 500;
}

.stats .grid h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.stats .grid p {
    margin-top: 0;
    font-size: 1em;
    font-weight: 500;
}

.stats i {
    margin-bottom: .25em;
    color: var(--primary-color);
}

/* CLI */

.portfolio {
    padding: 3em 0;
}

.portfolio .grid {
    gap: 4em;
}

.portfolio .container .grid .grid-portfolio-2 i,
.portfolio .container .grid .grid-portfolio-3 i {
    color: var(--secondary-color);
    margin-bottom: 0.5em;
    font-size: 2.5em;
    margin-right: 0.5em;
}

.portfolio .container .grid .grid-portfolio-2 i:last-child,
.portfolio .container .grid .grid-portfolio-3 i:last-child {
    margin-right: 0;
}

.portfolio div {
    justify-content: flex-start;
}

.portfolio h2 {
    font-size: 1.75em;
    font-weight: 700;
}

.portfolio img {
    margin-top: 2em;
    transition: transform 0.5s ease-in;
}

.portfolio img:hover {
    transform: translateY(-1em);
}

.portfolio .btn-primary {
    margin-top: 1em;
    color: var(--dark-color);
}

/* Cloud */

.cloud .grid {
    grid-template-columns: 4fr 3fr;
}

.cloud h2 {
    font-weight: 500;
}

.cloud p {
    font-weight: 300;
}

/* Languages */

.languages h2 {
    margin-top: 1.25em;
    font-weight: 500;
}

.languages .card {
    text-align: center;
    margin: 1.125em 0.625em 2.5em;
    transition: transform 0.5s ease-in-out;
}

.languages .card:hover {
    transform: translateY(-1em);
}

.languages .card h4 {
    font-size: 1.125em;
    margin-bottom: 0.625em;
}

.languages .flex {
    flex-wrap: wrap;
}

/* Features */

.features-head i {
    width: 6em;
    text-align: right;
}

.features-sub-head img {
    width: 18.75em;
    justify-self: flex-end;
}

.features-main .container {
    padding: 2em 0;
    overflow: visible;
}

.features-main .card > i {
    margin-right: 0.5em;
}

.features-main .grid > *:first-child {
    grid-column: 1 / span 3;
}

.features-main .grid > *:nth-child(2) {
    grid-column: 1 / span 2;
}

.features-main i {
    color: var(--secondary-color);
}

.sub-head .container {
    justify-content: center;
    align-items: center;
    height: 40vh;
}

.sub-head .container .btn {
    margin-top: 1em;
}

/* Documentation */

.docs-main h3 {
    margin: 1.125em 0;
}

.docs-main .grid {
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
}

.docs-main nav li {
    font-size: 1em;
    padding-bottom: 0.25em;
    margin-bottom: 0.25em;
    border-bottom: 1px solid #ccc;
}

.docs-main a {
    font-weight: 300;
}

.docs-main a:hover {
    color: var(--secondary-color);
}

.docs-main .active {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Footer */

.footer {
    background-image: url('../images/blob-scene-haikei.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    color: white;
}

.footer-thankyou {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer .flex {
    justify-content: space-between;
}

.footer h1 {
    color: var(--font-color-light);
    font-weight: 300;
}

.footer span {
    color: var(--primary-color);
    font-weight: 700;
}

.footer .social {
    justify-self: flex-start;
}

.footer .social a {
    margin: 0 0.625em;
    color: var(--primary-color);
    transition: 0.5s ease-in;
}

.footer .social a:hover {
    opacity: 0.5;
}

/* Tablet & Under Media Queries */

@media(max-width: 768px) {
    .gototop .show {
        display: block !important;
    }
    
    .navbar .flex {
        flex-direction: column;
    }

    .navbar ul {
        padding: 0.625em;
        background-color: rgba(0, 0, 0, 0.1)
    }
    
    .grid,
    .showcase .grid,
    .stats .grid,
    .cli .grid,
    .cloud .grid,
    .features-main .grid, .docs-main .grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .container {
        max-width: 95%;
    }

    .docs-head {
        text-align: center;
    }
    
    .docs-head img {
        justify-self: center;
    }

    .showcase {
        height: 80vh;
    }

    .showcase-text {
        text-align: center;
        margin-top: 2.5em;
    }

    .showcase-text p {
        margin-bottom: 2.5em;
    }

    .showcase-form {
        width: 90%;
    }

    .cli .grid > *:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .portfolio .grid .grid-portfolio-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio .grid .grid-portfolio-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-head, .docs-head {
        text-align: center;
    }

    .features-head img, .docs-head img {
        justify-self: center;
    }

    .features-sub-head {
        text-align: center;
    }

    .features-sub-head img {
        justify-self: center;
    }

    .features-main .grid > *:first-child {
        grid-column: 1;
    }
    
    .features-main .grid > *:nth-child(2) {
        grid-column: 1;
    }

    .sub-head .container {
        height: auto;
    }

    .footer .flex {
        flex-direction: column;
    }

    .footer {
        text-align: center;
    }

    .footer .social {
        padding-top: 1em;
        justify-self: center;
    }
}

/* Mobile Media Queries */

@media(max-width: 500px) {

    .container {
        max-width: 100%;
    }

    
    .navbar a {
        font-size: 0.9em;
    }

    .features-main .flex {
        flex-direction: column;
    }

    .features-main i {
        margin-bottom: .25em;
    }
    
    .docs-head h1 {
        font-size: 2.25em;
    }

    .footer .social a {
        margin: 0 0.5em;
    }

}