:root {
    --color-text: #FFCEE4;
    --color-primary: #B25A66;
    --color-secondary: #7F1F3A;
    --color-tertiary: #D01257;
    --color-bg: #1A1A1A;
    --max-width: 1200px;
    --spacing: 2rem;
}

* {
    box-sizing: border-box;
}

/* GLOBAL TAG STYLES */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: "Kode Mono", monospace;
    letter-spacing: 0.08em;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: normal;
}

nav,
main,
footer {
    padding: var(--spacing);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* ------------------- */

/* GLOBAL CLASS STYLES */
.stack {
    flex-direction: row;
    gap: 1.4rem;
    flex-wrap: wrap;
    color: var(--color-tertiary);
    font-size: 0.9rem;
}

/* ------------------- */

/* MAIN LAYOUT STYLES */
nav {
    position: relative;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

nav li {
    margin: 0;
}

.hamburger {
    all: unset;
    display: none;
    background: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--color-tertiary);
    display: inline-block;
    transition: color 0.3s ease;
}

.hamburger:not(.active) i {
    transform: translateY(0.25rem);
}

.hamburger.active i::before {
    content: "\f00d";
    font-size: 2.1rem;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer ul {
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

footer li {
    margin: 0;
}

footer i {
    font-size: 3rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

footer i:hover {
    color: var(--color-secondary);
}

#copyright {
    color: var(--color-primary);
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 1rem 0;
}

/* ------------------- */

/* SECTION STYLES BY ID */
#header,
#about,
#skills,
#experience,
#projects,
#contact {
    padding: 4rem 0;
}

/* HEADER */
#header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

#header h1 {
    color: var(--color-secondary);
    font-size: clamp(4rem, 10vw, 7rem);
    letter-spacing: 0.15rem;
    font-weight: 300;
    margin: 2rem 0;
}

#header h2 {
    color: var(--color-primary);
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin: 0;
}

#header p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
}

/* ABOUT */
#about .description {
    line-height: 2;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

/* SKILLS */
#skills ul {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

#skills li {
    flex: 0 0 calc(25% - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

#skills i {
    font-size: 3.8rem;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

#skills li:hover i {
    color: var(--color-tertiary);
}

#skills span {
    font-size: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

#skills li:hover span {
    color: var(--color-tertiary);
}


/* EXPERIENCE */
#experience .job-list {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

#experience .role {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--color-tertiary);
    margin: 0.75rem 0;
}

#experience .company {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    color: var(--color-primary);
    margin: 0.75rem 0;
}

#experience .dates {
    color: var(--color-secondary);
    font-size: 1rem;
    margin: 0.75rem 0;
}

#experience .duties {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.5rem 0;
}

#experience .duties li {
    line-height: 1.6;
    padding-left: 2.3rem;
    text-indent: -2.3rem;
}

#experience .duties li::before {
    content: "// ";
    color: var(--color-tertiary);
    margin-right: 0.3rem;
}

#experience .stack {
    justify-content: center;
    color: var(--color-tertiary);
    margin: 1rem 0;
}

#experience .resume {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 2rem;
}

/* PROJECTS */
#projects .project-list {
    width: 100%;
    flex-direction: column;
    gap: 5rem;
    padding-top: 2rem;
}

#projects .project-list>li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#projects .project-list li:nth-child(even) .media {
    order: 2;
}

#projects .project-list li:nth-child(even) .details {
    order: 1;
}

#projects .media {
    aspect-ratio: 16 / 9;
}

#projects .media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

#projects .details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#projects .project-name {
    color: var(--color-primary);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0;
}

#projects .project-description {
    line-height: 1.6;
    margin: 0;
}

#projects .project-list li:nth-child(odd) .project-name,
#projects .project-list li:nth-child(odd) .project-description {
    text-align: right;
}

#projects .stack {
    justify-content: flex-start;
    color: var(--color-primary);
    margin: 0rem 0;
}

#projects .learn-more {
    gap: 3rem;
    justify-content: center;
    margin: 1rem 0;
}

#projects li:nth-child(odd) .stack {
    justify-content: flex-end;
}

/* CONTACT */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
    padding: 2rem 0;
}

#contact .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#contact .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

#contact form label {
    color: var(--color-primary);
    font-weight: 400;
}

#contact form input,
#contact form textarea {
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-secondary);
    padding: 0.75rem 1rem;
    font-family: "Kode Mono", monospace;
    font-size: 1rem;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

#contact form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact form input:focus,
#contact form textarea:focus {
    outline: none;
    border-color: var(--color-tertiary);
}

#contact .primary-button {
    align-self: flex-end;
}

#thank-you {
    color: var(--color-tertiary);
}

/* ------------------- */

/* BUTTONS */
.primary-button,
.secondary-button {
    background-color: var(--color-bg);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    font-family: "Kode Mono", monospace;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.primary-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.primary-button:hover {
    color: var(--color-tertiary);
    box-shadow: 0 0px 2px 2px var(--color-tertiary);
}

.secondary-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.secondary-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

/* ------------------- */

/* MEDIA MOBILE STYLES */
@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        gap: 2rem;
        padding: 5rem 2rem 2rem 2rem;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        position: absolute;
        left: var(--spacing);
        top: var(--spacing);
    }

    #header,
    #about,
    #skills,
    #experience,
    #projects,
    #contacts {
        padding: 3rem 0;
    }

    #header h1 {
        margin: 1rem 0;
    }

    #skills li {
        flex: 0 0 calc(50% - 2rem);
        padding: 1rem 0;
    }

    #projects .project-list li {
        grid-template-columns: 1fr;
    }

    #projects .project-list li:nth-child(even) .media,
    #projects .project-list li:nth-child(even) .details {
        order: unset;
    }

    #contact .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing: 0.75rem;
    }

    #header,
    #about,
    #skills,
    #experience,
    #projects,
    #contacts {
        padding: 2rem 0;
    }

    #header {
        gap: 0.5rem;
    }

    #header h1 {
        letter-spacing: 0.1rem;
    }
}