@import url("https://www.nerdfonts.com/assets/css/webfont.css");

@font-face {
    font-family: Rubik;
    src: url(assets/fonts/Rubik-VariableFont_wght.ttf);
}

:root {
    --bg0:     #2e3440;
    --bg1:     #434c5e;
    --fg0:     #d8dee9;
    --accent0: #81a1c1;
    --accent1: #8fbcbb;
    font-size: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Rubik, Arial;
    background: var(--bg0);
    color: var(--fg0);
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.3;
}

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

ul {
    list-style-type: circle;
}

/* NAV BAR */
nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 50px;
}

nav .left a {
    color: var(--fg0);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
   margin: 0 10px; 
   font-size: 0.8rem;
}

nav .right a:last-child {
    background-color: var(--accent0);
    color: var(--bg0);
    border-radius: 5px;
    padding: 0.4rem;
    transition: filter 0.3s ease;
    font-weight: 500;
}

nav .right a:last-child:hover {
    filter: brightness(1.2);
}

.section {
    padding: 0 50px;
    margin-bottom: 50px;
}

.section h2 {
    text-align: left;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Section 1: Hero */
.about-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 50px;
    gap: 10px;
}

.about-me .text {
    flex: 7;
}

.about-me .text h2 {
    padding-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-me .text .links {
    font-size: 0.9rem;
    margin-top: 25px;
}

.about-me .text .links a {
    display: inline-block;
    padding: 0.4rem;
    border: 2px solid var(--accent1);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.2s ease-in-out;
}

.about-me .text .links a:hover {
    color: var(--fg0);
    border: 2px solid var(--fg0);
}

.about-me .headshot {
    flex: 2;
    display: flex;
    justify-content: left;
}

.about-me .headshot img {
    width: 185px;
    border-radius: 10%;
}

/* Section 2: Skills */
.skills {
    padding: 0 50px;
}

.skills h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills .text {
    margin-bottom: 20px;
}

.skills .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.skills .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.skills .cells .cell img {
    width: 80pX;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.skills .cells .cell img:hover {
    transform: scale(1.3);
}

/* Footer */
footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 0.7rem;
}

/* ------------------------------- */
/* --------Responsive------------- */
/* ------------------------------- */
@media(max-width: 850px) {

    /* Section 1: About Me */
    .about-me .headshot img {
        transform: scale(0.9);
    }
}

@media(max-width: 750px) {

    /* Section 1: About Me */
    .about-me {
        flex-direction: column;
    }
}

@media(max-width: 650px) {

    /* NAVBAR */
    nav {
        margin: 20px 20px;
    }

    nav .right a {
        font-size: 1.2rem;
    }
    nav .right a span {
        display: none;
    }

    nav .right a:last-child {
        background-color: transparent;
        color: var(--accent1);
        padding: 0;
    }

    /* Section 1: About Me */
    .about-me {
        padding: 0 20px;
    }
    .about-me .headshot img {
        border-radius: 50%;
    }

    /* Section 2: Skills */
    .skills {
        padding: 0 20px;
    }
}
