* {
    font-family: "Be Vietnam Pro", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

body {
    overflow-x: hidden;
    color: #363F33;
}

hr {
    border: none;
}

hr.dotted {
    border: none;
    border-top: 3px dotted #666;
    width: 70%;
}

hr.double {
    border: none;
    border-top: 6px double #333;
    width: 80%;
}

/* Header & Navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px 60px;
}

nav img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Home Section */

.hero {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.intro h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: #137373;
    border: 1px solid #137373;
    background-color: #19919115;
    border-radius: 9999px;
    padding: 4px 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2.5rem;
}

/* Tag Buttons */
.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-buttons .icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.tag-buttons .icon-button i {
    font-size: 25px;
}

.icon-button .fa-brands.fa-discord,
.icon-button .fa-regular.fa-envelope {
    font-size: 20px;
}


.tag-buttons a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 9999px;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tag-buttons span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 9999px;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tag-buttons a:hover {
    border-color: #aaa;
    color: #363F33;
}

/* Experience */

.experience {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.experience h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.experience-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 6rem;
}

.experience-card nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.experience-card nav h3 {
    font-weight: 500;
}

.experience-card nav figure {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.visit-site {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    color: #363F33;
}

.visit-site:hover {
    color: #586553;
    transition: all 0.2s ease;
}

.visit-site {
    color: #363F33;
    transition: all 0.2s ease;
}

.visit-site .material-symbols-rounded {
    font-size: 1.2rem;
    vertical-align: middle;
}

.card-content {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    column-gap: 70px;
    row-gap: 1.5rem;
    align-items: start;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.left-section section {
    display: flex;
    flex-direction: column;
}

.title-field,
.period-field,
.description-field {
    font-weight: 700;
    color: #363F33;
    margin-bottom: 0.25rem;
    display: flex;
}

.title-content,
.period-content,
.description-content {
    font-weight: 400;
    color: #383838;
    line-height: 1.5;
}

.description {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.card-content .left-section .title {
    display: flex;
    flex-direction: column;
}

.card-content .left-section .period {
    display: flex;
    flex-direction: column;
}

/* Projects */

.projects {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.projects .mini-header {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    color: #757575;
    margin-bottom: 2rem;
}

.project {
    margin-bottom: 7rem;
}

.project h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project p {
    color: #353535;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project nav {
    margin-top: 1.9rem;
    margin-bottom: 4rem;
}

.project img {
    width: 100%;
    border-radius: 30px;
}

/* About Me */
.about {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.about h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about main .information {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #353535;
    font-weight: 400;
    line-height: 1.6rem;
}

.about main img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .about main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about main img {
        order: -1;
    }
}

/* Contact */
.contact {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact main p {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #353535;
    font-weight: 400;
    line-height: 1.6rem;
}

.contact main img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact main img {
        order: -1;
    }
}

/* Footer */

footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}


.left-footer figure img {
    margin-bottom: 2rem;
    width: 30rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.info-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #f5f5f5;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 400px;
}

.info-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.info-button .text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-button .title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.info-button .subtitle {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.3;
}

.info-button:hover {
    background-color: #e9e9e9;
}

.info-button:active {
    background-color: #d1d1d1;
}

@media (max-width: 1600px) {
    .button-grid {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 1.5rem;
        margin: 0 auto;
    }
}

/* Responsive things*/

@media (max-width: 768px) {
    .navbar nav {
        align-items: center;
        padding: 20px;
        width: 100%;
    }

    .navbar nav ul {
        gap: 15px;
        margin-top: 10px;
    }
}


@media (max-width: 480px) {
    .hero {
        margin: 40px 0;
    }

    .intro h1 {
        font-size: 1.8rem;
        white-space: pre-wrap;
    }

    .intro h1 .badge {
        margin-top: 20px;
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 0;
        display: inline-block;
    }

    .intro h1 .badge::before {
        content: "";
        display: block;
    }


    .subtitle {
        font-size: 1rem;
    }
}


.card-content {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    column-gap: 70px;
}


@media (max-width: 768px) {
    .card-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .description {
        grid-column: 1;
        grid-row: auto;
    }
}


@media (max-width: 768px) {
    .project img {
        width: 100%;
        height: auto;
        margin-top: 1rem;
    }
}


@media (max-width: 768px) {
    .about main {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about main img {
        order: -1;
        margin-bottom: 1rem;
    }
}


footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}


@media (max-width: 1390px) {
    footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .left-footer p {
        max-width: 600px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .left-footer figure img {
        width: 400px;
        margin: 0 auto 1rem;
    }

    .button-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .info-button {
        width: 100%;
    }
}

@media (max-width: 739px) {
    .left-footer figure img {
        width: 300px;
        margin: 0 auto 1rem;
    }
}

@media (min-width: 850px) {
    .left-footer figure img {
        width: 550px;
        margin: 0 auto 1rem;
    }
}

@media (min-width: 1000px) {
    .left-footer figure img {
        width: 550px;
        margin: 0 auto 1rem;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 1.5rem;
    }
}


@media (max-width: 480px) {
    .tag-buttons {
        justify-content: center;
    }
}