/* General Formatting */

:root {
    --background-color: #f8f8ff;
    --body-color: #000C36;
    --text-color-1: #333;
    --text-color-2: #fff;
    --accent-color-1: #30c7fa;
    --accent-color-2: #0051ff;
    --secondary-color: #044960;
    --keeper: #007ea7;
}

*,
*::before,
*::after {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color-1);
    overflow-x: hidden;
    width: 100%;
}

section {
    width: 100%;
    overflow-x: hidden;
}

.section-content {
    width: 100%;
    margin: 0 auto 10vh;
    overflow-x: hidden;
}

.section-title {
    width: 60%;
    margin: 0 auto;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    /* color: rgb(0, 126, 167); */
    color: var(--text-color-1);
    text-align: center;
    padding-bottom: 1rem;
    /* border-bottom: 1px solid rgba(100, 255, 218, 0.5); */
    border-bottom: 3px solid var(--accent-color-2);
}

.section-content p {
    margin: 0 auto;
    font-size: 1.15em;
    color: var(--text-color-1);
    line-height: 1.8;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 4;
    /* background-color: rgba(18, 43, 82, .85); */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 5%;
    height: 3em;
}

.navbar-bg {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 1.5em 0;
    z-index: 2;
    background-color: #000C36;
    min-height: 3em;
}

.nav-name-desktop,
.nav-name-mobile {
    color: var(--text-color-2);
    font-weight: 900;
    font-size: 1.75em;
}

.nav-name-desktop a,
.nav-name-mobile a {
    text-decoration: none;
    color: var(--text-color-2);
}

.nav-name-desktop span,
.nav-name-mobile span {
    color: var(--accent-color-1);
}

.nav-name-mobile {
    display: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2em;
    /* width: 100%; */
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color-2);
    text-decoration: none;
    font-size: 1.15em;
    padding: 0.5em 1em;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color-1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-color-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1.5em 2.5%;
    }

    .nav-links {
        gap: 0.5em;
    }

    .nav-links a {
        font-size: 1em;
        padding: 0.5em;
    }
}

@media screen and (max-width: 480px) {
    .nav-name-desktop {
        display: none;
    }

    .nav-name-mobile {
        display: block;
    }

    .nav-links li:nth-child(1) {
        display: none;
    }
}

/* Home */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(180deg, var(--body-color) 0%, #0051ff 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    z-index: 3;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: var(--text-color-2);
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(120deg,
            #96b9f3 0%,
            #0051ff 25%,
            #ee4545 50%,
            #0051ff 75%,
            #96b9f3 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 12s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content h2 {
    font-size: 2.25em;
    margin-bottom: 1.25em;
    color: var(--text-color-2)
}

#typewriter {
    /* color: #00a7e1; */
    color: var(--accent-color-1);
}

.social-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    margin: 0.75em 0;
    font-size: 2em;
    color: var(--text-color-2);
    cursor: pointer;
}

.social-icons a {
    text-decoration: none;
    color: var(--text-color-2);
    transition: all 0.2s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.15);
}

.hero-content>a {
    text-decoration: none;
    color: var(--text-color-2);
    padding: 1em 1.75em;
    border: 2px solid var(--text-color-2);
    border-radius: 0.5em;
    font-size: 1.15em;
    background-color: transparent;
    transition: all .3s ease-in-out;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.hero-content>a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 1em rgba(255, 255, 255, 0.85);
}

/* About */
#about {
    padding-top: 10vh;
}

.about-section p {
    width: 60%;
}

.tech-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, .75fr);
    column-gap: 10px;
    row-gap: 20px;
    width: 80%;
    margin: 20px auto;
}

.tech-item {
    width: 90%;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1em;
    border-radius: 0.5em;
    box-shadow: 0px 0px 1em rgba(0, 0, 0, 0.1);
    transition: all .3s ease-in-out;
    /* border: 2px solid var(--accent-color-2); */
}

.tech-item:hover {
    transform: scale(1.05);
    /* box-shadow: 0 0 1.2em rgba(0, 126, 167, 0.7); */
}

.tech-item span {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-self: start;
    gap: 0.5em;
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.tech-item span img {
    width: 2em;
    height: 2em;
    user-select: none;
}

.tech-item p {
    width: 100%;
    font-size: 1em;
}

/* Project */
#projects {
    padding-top: 10vh;
}

.project-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 1em;
    width: 85%;
    margin: 20px auto;
}

.project-item {
    width: 32%;
    height: 100%;
    /* margin: auto; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1em;
    border-radius: 0.5em;
    /* box-shadow: 0px 0px 1em rgba(0, 0, 0, 0.1); */
    transition: all .3s ease-in-out;
    /* border: 2px solid rgba(0, 126, 167, 0.5); */
    cursor: pointer;
}

.project-item:hover {
    transform: scale(1.05);
    /* box-shadow: 0 0 1.2em rgba(0, 126, 167, 0.7); */
}

.project-item:hover .project-title i {
    transform: scale(1.25) rotate(45deg);
}

.project-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: space-between; */
    width: 100%;
    font-size: 1.15em;
    font-weight: 500;
    /* margin-bottom: 0.5em; */
}

.project-title h2 {
    font-size: inherit;
    text-decoration: underline;
}

.project-title i {
    font-size: 1.25em;
    transform: rotate(45deg);
    transition: all .3s ease-in-out;
}

.project-description {
    line-height: 1.5;
    margin-bottom: 0.5em;
    /* border-bottom: 2px solid rgba(0, 126, 167, 0.5); */
}

.project-item p {
    margin-top: 0.5em;
}

.project-tech-row {
    /* border-top: 2px solid rgba(0, 126, 167, 0.5); */
    padding-top: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-self: flex-end;
    gap: 0.5em;
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.project-tech-row img {
    width: 1.25em;
    height: 1.25em;
}

.project-item hr {
    background-color: var(--accent-color-2);
    height: 1px;
    border: none;
    width: 100%;
}

.project-item>img {
    width: 100%;
    border-radius: 0.5em;
    margin-bottom: 0.5em;
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        margin: 0 auto 0.5em;
        width: 80%;
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.75em;
    }

    .about-section p {
        width: 80%;
    }

    .tech-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, .75fr);
        column-gap: 20px;
        width: 90%;
    }

    .project-container {
        /* grid-template-columns: repeat(1, 1fr); */
        /* grid-template-rows: repeat(6, .75fr); */
        width: 95%;
    }

    .project-item {
        width: 90%;
        margin: 0 auto;
    }
}

/* Contact */

#contact {
    padding-top: 10vh;
}

#contact .section-title {
    width: 100%;
    text-align: center;
    max-width: 800px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.contact-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1em;
}

.contact-form .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form .form-group label {
    color: var(--text-color-1);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.contact-form .form-group .form-control {
    width: 100%;
    padding: 14px 16px;
    margin: 0.5em 0;
    background-color: transparent;
    color: var(--text-color-1);
    border-radius: 0.5rem;
    border: 2px solid var(--text-color-1);
    font-size: 1.15em;
}

.contact-form .form-group .form-control::placeholder {
    color: color-mix(in srgb, var(--text-color-1) 50%, transparent);
    font-size: 1.15rem;
}

.contact-form .form-group.contact-group {
    grid-area: span 1 / span 2;
}

.contact-form .form-group.contact-group textarea {
    resize: none;
    height: 150px;
}

.contact-form .contact-form-btn {
    grid-area: span 1 / span 2;
    width: 100%;
    padding: 0;
    margin: 0.5em 0;
    background-color: var(--text-color-1);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form .contact-form-btn::after {
    content: " ";
    width: 0%;
    height: 100%;
    background: var(--accent-color-2);
    position: absolute;
    transition: all 0.4s ease-in-out;
    right: 0;
}

.contact-form .contact-form-btn:hover::after {
    right: auto;
    left: 0;
    width: 100%;
}

.contact-form .contact-form-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    position: relative;
    width: 100%;
    padding: 1em 1.5em;
    border-radius: 0.5rem;
    color: var(--text-color-2);
    font-size: 1.15rem;
    letter-spacing: 0.3em;
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}

.contact-form .contact-form-btn:hover span {
    color: var(--text-color-2);
}

@media screen and (max-width: 480px) {
    .contact-form {
        display: flex;
        flex-direction: column;
    }

}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--body-color);
    color: var(--text-color-2);
    padding: 2em 5%;
    margin-top: 5vh;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
    padding-bottom: 1.5em;
}

.footer-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.footer-title-link {
    display: flex;
    align-items: center;
    gap: 0.75em;
    text-decoration: none;
    color: var(--text-color-2);
}

.footer-subtitle {
    color: var(--text-color-2);
    font-size: 1.15em;
    font-weight: 500;
    margin-bottom: 0.5em;
    text-align: center;
}

.footer-name {
    color: var(--text-color-2);
    font-weight: 900;
    font-size: 1.5em;
    margin: 0;
}

.footer-name span {
    color: var(--accent-color-1);
}

.footer-social-icons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-social-icons h2 {
    font-size: 1.5em;
    font-weight: 600;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: var(--text-color-2);
    font-size: 1em;
    transition: all 0.2s ease-in-out;
}

.footer-social-icons a i {
    font-size: 1.5em;
    color: var(--text-color-2);
    transition: all 0.2s ease-in-out;
}

.footer-social-icons a:hover {
    color: var(--accent-color-1);
    transform: translateY(-2px);
}

.footer-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color-2);
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5em;
    }

    .footer-social-icons {
        width: 100%;
        align-items: center;
    }

    .footer-copyright {
        text-align: center;
        font-size: 0.85em;
    }
}