@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --surface: #0B0D10;
    --bg: #141820;
    --primary: #2446A8;
    --primary-lighter: #3e62ce;
    --accent: #D99A16;
    --text: #F2F4F7;
    --muted: #A7AFBD;
    --error: #FF4C4C;

    --accent-lighter: #f3b93b;

    --color-transition: transition: color 0.2s ease-in-out;
    --scale-transition:
        transition: transform 5.0s ease-in-out;

    --heading-font: "Bricolage Grotesque";

    --card-color: rgba(0, 0, 0, 0.3);
}

::selection {
    background-color: var(--primary);
    color: var(--text);
}

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

    font-family: "Bricolage Grotesque", 'inter';

    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    display: grid;
    grid-template-areas:
        "header header"
        "main main"
        "footer footer";
    min-height: 100dvh;
    gap: 0px;
    z-index: 1;
}

body::-webkit-scrollbar {
    display: none;
}

h1 {
    color: var(--text);
    font-family: "Bricolage Grotesque";
    font-weight: 800;
}

h2 {
    font-family: "inter";
    color: var(--muted);
    font-weight: 600;
}

h3 {
    font-family: "inter";
    color: var(--muted);
    font-weight: 500;
    font-size: 1.2em;
}

h4 {
    font-family: "inter";
    color: var(--muted);
    font-weight: 400;
    font-size: 1.1em;
}

a {
    text-decoration: none;
    color: var(--text);
}

a[href^="tel"],
a[href^="mailto"] {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    font-size: 1.15em;
    font-weight: 400;
}

.polka-dot-bg {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.025) 10%, transparent 20%),
        radial-gradient(rgba(255, 255, 255, 0.035) 10%, transparent 20%);
    background-size: 40px 40px, 40px 40px;
    width: inherit;
    height: fit-content;

    background-position: 0 0, 20px 20px;

    z-index: 0 !important;

    pointer-events: none;
}

button {
    font-weight: 600;
}

button,
a {
    pointer-events: auto;
    z-index: 1;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow-x: hidden;
    grid-area: header;
    min-height: fit-content;
    height: 55px;

    scrollbar-gutter: stable;
    background-color: rgba(0, 0, 0, 0);

    backdrop-filter: blur(10px);

    @media (max-width: 768px) {
        background-color: var(--surface);
    }

}

footer {
    grid-area: footer;
    background-color: black;
    backdrop-filter: blur(10px);
    opacity: 50%;
    color: var(--muted);
    max-width: inherit;
    min-height: 70px;

    display: flex;
    flex-direction: row;

    gap: 2%;
    justify-content: center;
    align-items: center;

    padding-top: 5px;
}

hr {
    width: 90%;
    align-self: center;
    opacity: 20%;
    margin: auto;
}

nav {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    gap: 30%;
    min-height: 30px;
    min-width: 100%;
    padding: 0% 25% 0% 1%;

    @media (max-width: 768px) {
        display: flex;
        width: 100%;
        gap: 34%;
        justify-items: space-between;
    }

    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: clamp(30%, 15dvw, 40%);
    justify-items: center;
}

.nav-link {
    transition: all 0.3s ease;
    transform-origin: var(--scale-transition);
}

.open {
    display: flex;
    flex-direction: column;
}

nav:has(.nav-links.open) {

    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    width: 100dvw;

    text-align: center;
}

.nav-links.open>a:hover {
    background-color: var(--card-color);
    transition: all 0.5s ease;
}

.nav-toggle {
    background-color: rgba(0, 0, 0, 0);
    color: var(--text);
    border: none;
    cursor: pointer;
    display: none;
    width: 48px;
    height: 48px;
    font-size: 2em;

    @media (max-width: 768px) {
        display: inline-block;
        justify-self: end;
    }

    transition: all 0.3s ease;
}

.nav-toggle:hover {
    color: var(--primary-lighter)
}

.footer-link {
    transition: all 0.3s ease;
}

.nav-link:hover,
.footer-link:hover {
    color: var(--text);
    transform: scale(1.05);
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link,
.nav-title {
    color: var(--muted);
}

.nav-active,
.nav-active:hover {
    color: var(--primary-lighter);
}

.nav-active:hover {
    font-weight: 800;
}

.nav-title {
    justify-content: left;
    padding: 0% 10% 0% 0%;
    font-size: 2.5em;
    color: var(--text);
    font-family: var(--heading-font);
}

main {
    max-height: 100%;
    max-width: 100dvw;
}

section {
    padding: 2.5% 5% 2.5% 5%;
    max-width: 100dvw;
    min-height: 100dvh;
    max-height: fit-content;
    grid-area: main;
    scroll-margin-top: 10px;

    @media (max-width : 768px) {
        scroll-margin-top: 50px;
    }
}

#hero {

    padding: 0% 1% 0% 1%;
    max-width: 100%;
    min-height: 100dvh;
    max-height: 100%;
    display: flex;
    flex-direction: row;

    grid-area: main;
    align-items: stretch;

    scroll-margin-top: 75px;
}

.hero-text {
    padding: 7.5% 0% 0% 1.5%;
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;

    text-align: center;
}

.hero-title {
    font-size: 4.8em;
}

.hero-subtitle {
    margin-top: 2%;
    font-size: 1.2em;
    width: 100%;
    justify-content: center;
}

.important-links {
    padding-bottom: 1%;
    height: auto;
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10%;

    justify-content: center;
}

.github-img,
.linkedin-img {
    width: 100px;
    height: auto;
    justify-self: center;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 5%;
    justify-content: center;
    height: fit-content;
}

.cta-wrapper-primary,
.cta-wrapper-secondary {
    width: 150px;
    max-height: 20%;

    @media (max-width: 768px) {
        max-height: 30%;
    }
}

.cta-primary,
.cta-secondary {
    height: 100%;
    width: 100%;
    padding: 1.5%;
    border-radius: 8px;
    border-style: none;
    margin-top: 50px;
    font-weight: bold;
    font-size: 1.02em;
}

.cta-primary {
    background-image: linear-gradient(var(--primary-lighter), var(--primary));
    color: var(--text);
    text-decoration: bold;
    transition: all 0.3s ease;
    z-index: 100;
}

.cta-primary:hover,
.github-cta-button:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.cta-secondary {
    background-color: var(--bg);
    color: var(--muted);
    border-style: solid;
    border-color: #a7afbd29;
    transition: all 0.3s ease
}

button:hover,
a:hover {
    cursor: pointer;
    color: var(--text);
    border-color: var(--muted);
    transition: all 0.3s ease;
}

.hero-img-container {
    height: auto;
    min-width: 550px;
    max-width: 38%;
    display: flex;
    align-items: flex-end;
}

.hero-img {
    object-fit: fill;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    align-items: flex-end;
}

#about {
    padding: 5%;
    width: 100%;
    max-width: 100dvw;
    background-color: var(--surface);
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: center;
    gap: 0px 1%;
    grid-area: main;
}

.about-text {
    width: 30%;
    border-style: solid;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.15);
    padding: 2.5%;
    background-color: var(--bg);
}


.about-heading {
    color: var(--text);
    padding-bottom: 1%;
    font-size: 2.5em;
    text-align: center;
}

.about-info {
    text-align: center;
    width: 100%;
    justify-self: center;
    font-size: 1.2em;
}

.skills {
    width: 70%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;

    justify-self: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-container {
    border-style: solid;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: fit-content;
    justify-self: left;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
        "heading heading heading heading heading"
        "skill skill skill skill skill"
        "skill skill skill skill skill"
        "skill skill skill skill skill";

    justify-items: center;

    align-self: center;

    padding: 2.5%;

    background-color: var(--bg);
    column-gap: 10px;
}

@media (max-width: 768px) {
    .skills-container {
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        grid-template-rows: auto repeat(4, 1fr);

        grid-template-areas:
            "heading heading"
            "skill skill skill"
            "skill skill skill"
            "skill skill skill";

        height: fit-content;
    }

    .skills-heading {
        grid-area: heading;
    }

    .skill-box {
        column-span: 2;
    }
}

.skills-heading {
    text-align: center;
    padding: 0% 0% 2.5% 0%;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text);
    grid-area: heading;
}

.skill-box {
    min-width: 1%;
    width: 100%;
    max-width: 100%;
    height: 40px;

    color: var(--muted);
    padding: 3%;
    background-color: var(--card-color);

    border-radius: 8px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    border-width: 2px;

    text-align: center;
    justify-self: center;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 2.5%;

    z-index: 2;

    transition: all 0.5s ease;

    cursor: default;

    font-size: clamp(0.5rem, 2.5vw, 1.25rem);
}

.skill-box:hover {
    transform: scale(1.05);
    transition: all 0.5s ease;
    border-color: var(--primary-lighter);
    color: var(--text);
    font-weight: 800;
}

.skill-logo {
    height: clamp(50%, 2.5vw, 1.25rem);
    width: auto;
    max-width: auto;
}

.invert-svg {
    filter: invert(1);
}

.education-container {
    padding: 1%;
    border-style: solid;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.15);

    background-color: var(--bg);

    display: flex;
    flex-direction: column;

    height: 150px;
}

.education-heading {
    color: var(--text);
    text-align: center;
}

.school-name {
    color: var(--text);
}

.accent {
    background-image: linear-gradient(rgb(141, 187, 244), var(--primary-lighter), var(--primary));

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    display: inline-block;

    font-weight: 1000;
}

#projects {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
}

.projects-container {

    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0% 0% 2% 0%;
    justify-content: center;
    gap: 60px;
}

.projects-row {
    display: flex;
    flex-direction: row;
    gap: 5%;
    justify-content: center;
}

.projects-heading {
    font-size: 2.5em;
    color: var(--text);
    text-align: center;
    padding: 2% 0% 2% 0%;
    justify-self: flex-start;
}

.project-title {
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text);
}

.project-card {
    width: 25%;
    background-color: var(--surface);
    padding: 1.5%;

    border-radius: 16px;
    border-style: none;
    box-shadow: 4px 8px 8px 8px rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    min-height: 50dvh;

    gap: 20px;

}

.project-card>hr {
    margin: 0% 0% 0% 0%;
}

.project-description {
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    width: 90%;
}

.project-link {
    width: 60%;
    min-height: 50px;
}

.project-link__button {
    padding: 2.5%;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: var(--primary);
    border-style: solid;
    border-color: var(--card-color);

    transition: all 0.45s ease;

    justify-self: end;
}

#contact {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    background-color: var(--surface);
}

.contact-heading {
    font-size: 2.5em;
    color: var(--text);
    text-align: center;
    padding: 0% 0% 2% 0%;
    justify-self: flex-start;
}

.contact-form-container {
    width: 40%;
    padding: 2.5%;
    background-color: var(--bg);
    height: fit-content;
    align-self: center;
    border-radius: 16px;
    align-items: center;
    gap: 10px;
    box-shadow: inset 4px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-form {
    width: 90%;
    min-height: fit-content;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: text;
    pointer-events: auto;
    justify-self: center;
}

.contact-form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form-group>input {
    height: 40px;
    width: 100%;
    padding: 2%;
    background-color: var(--surface);
    border-style: none;
    border-radius: 8px;
    color: var(--text);

    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.45s ease;
}

.contact-form-group>textarea {
    min-width: 100%;
    max-width: 100%;
    min-height: 50px;
    max-height: 200px;
    padding: 1%;
    background-color: var(--surface);
    border-style: none;
    border-radius: 8px;
    color: var(--text);
}

.contact-form-group>textarea {
    padding: 2%;
}

.contact-form-group>label {
    color: var(--muted);
    font-size: 1em;
    margin-right: auto;
}


.contact-form-group>input:focus,
.contact-form-group>textarea:focus {
    outline: none;
    border: 2px solid var(--primary);
    transition: all 0.45s ease;
}

.contact-form-button {
    padding: 2.5%;
    width: 100%;
    height: 50px;
    border-radius: 8px;
    background-color: var(--primary);
    border-style: solid;
    border-color: var(--card-color);

    transition: all 0.45s ease;
}

.notification_container {
    position: fixed;
    top: 20px;
    right: 50%;
    z-index: 10000;
    transform: translateX(50%);
}

.notification {
    background-color: var(--primary);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.9;
    transition: opacity 0.5s ease-in-out;
    text-align: center
}

.error {
    background-color: var(--error);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.github-cta-container {
    width: 65%;
    padding: 2.5%;
    background-color: var(--card-color);
    height: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-self: center;
    border-radius: 16px;
    align-items: center;
    gap: 20px;
}

.github-cta-container>h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.github-cta-button {
    background-image: linear-gradient(var(--primary-lighter), var(--primary));
    color: var(--white);
    border: none;
    padding: 5%;
    border-radius: 8px;
    min-width: 150px;
    min-height: 50px;
    transition: all 0.5s ease;
}

.highlight {
    color: var(--primary-lighter);
}

@media (max-width: 1000px) {


    .nav-title {
        font-size: 2.3em;
        padding-right: 0;
        min-width: 35%;
        text-align: center;
        text-justify: center;
        justify-self: flex-start;
        flex-shrink: 0;
    }

    .nav-links {
        gap: 25%;
    }

    #hero {
        .hero-text {
            text-align: center;
            width: 90%;
            align-content: center;
            justify-content: center;
            align-self: center;
        }

        .hero-img-container {
            display: none;
            height: 50%;
            width: 100%;
            align-self: center;
        }

        .hero-title {
            font-size: 3.8em;
        }

        .hero-subtitle {
            font-size: 2em;
        }

        .cta-buttons {
            height: 250px;
        }

        flex-direction: column;
    }

    #about {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-content {
        width: 100%;
    }

    .about-text {
        align-self: center;
        width: 90%;
    }

    .about-content {
        text-align: center;
        width: 90%;
        align-content: center;
        justify-content: center;
        align-self: center;
    }

    .skills {
        width: 100%;
    }

    .skills-container {
        height: fit-content;
        text-align: center;
        min-width: fit-content;
        align-content: center;
        justify-content: center;
        align-self: center;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: auto;
        row-gap: 20px;
        column-gap: 4px;
    }

    .skill-box {
        justify-content: space-around;
        min-width: fit-content;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .skill-logo {
        max-height: 65%;
        width: auto;
        margin: 0 auto;
        padding: none;
        text-align: left;
        margin: none;
    }

    .projects-row {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 60px;
    }

    .project-title {
        padding: 5%;
        font-size: 1.8em;
    }

    .project-card {
        min-height: fit-content;
        width: 60%;
        height: 350px;
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        justify-content: center;
    }

    .project-description {
        font-size: 1.2em;
    }

    .project-card.hr {
        margin-bottom: 0px;
    }

    .github-cta-text {
        width: 100%;
        text-align: center;
    }

    .contact-form-container {
        width: 80%;
        height: 100%
    }

    .contact-form {
        width: 100%;
        height: 100%;
    }

    .contact-form-button {
        height: 70px;
    }
}

@media (max-width: 768px) {

    nav {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        background-color: var(--background);
        z-index: 1000;
        top: 100%;
        width: 100dvw;
        height: fit-content;
        position: inherit;
        align-content: center;
        align-self: center;
    }

    .nav-link {
        display: block;

        width: 100%;

        padding: 1rem 1.5rem;

        box-sizing: border-box;
    }

    .nav-title {
        font-size: 2em;
    }

    .nav-links {
        gap: 15%;
    }

    #hero {
        .hero-text {
            text-align: center;
            width: 90%;
            align-content: center;
            justify-content: center;
            align-self: center;
        }

        .hero-img-container {
            display: none;
            height: 50%;
            width: 100%;
            align-self: center;
        }

        .hero-title {
            font-size: 3em;
        }

        .hero-subtitle {
            font-size: 1.5em;
        }

        .cta-buttons {
            height: 250px;
        }

        flex-direction: column;
    }

    .project-card {
        width: 80%;
        min-height: fit-content;
    }
}