:root {
    --ff-poppins: 'Poppins', sans-serif;
    --white-1: hsl(0, 0%, 100%);
    --white-2: hsl(0, 0%, 98%);
    --smoky-black: hsl(0, 0%, 7%);
    --orange-yellow-crayola: hsl(45, 100%, 72%);
    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
    --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
    --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease-in-out;
    --eerie-black-1: hsl(240, 2%, 13%);
    --eerie-black-2: hsl(240, 2%, 12%);
    --light-gray: hsl(0, 0%, 84%);
    --light-gray-70: hsla(0, 0%, 84%, 0.7);
    --jet: hsl(0, 0%, 22%);
    --onyx: hsl(240, 1%, 17%);

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-5: 15px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
    --fw-300: 300;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;

    --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 68%));
}

/* reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img,
ion-icon,
a,
button,
time,
span {
    display: block;
}

button {
    font: inherit;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

input,
textarea {
    display: block;
    width: 100%;
    background: none;
    font: inherit;
}

::selection {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

:focus {
    outline-color: var(--orange-yellow-crayola);
}

html {
    font-family: var(--ff-poppins);
}

body {
    background: var(--smoky-black);
    min-height: 100vh;
}

/* reused style */
.sidebar,
article {
    padding: 30px;
    border-radius: 20px;
    background: var(--eerie-black-2);
    box-shadow: var(--shadow-5);
    border: 1px solid var(--jet);
}

h2,
h3,
h4,
h5 {
    color: var(--white-2);
    text-transform: capitalize;
}
h2 {
    font-size: var(--fs-1);
}
h3 {
    font-size: var(--fs-2);
}
h4 {
    font-size: var(--fs-4);
}

/* main */
main {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-inline: auto;
    margin-top: 60px;
    gap: 25px;
}

/* sidebar */
.sidebar {
    position: sticky;
    top: 60px;
    padding-top: 60px;
}
.sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
}
.avatar-box {
    border-radius: 30px;
    overflow: hidden;
}
.avatar-box img {
    width: 150px;
}
.info-content .name {
    margin-bottom: 15px;
    text-align: center;
    white-space: nowrap;
    color: var(--white-2);
}
.info-content .title {
    width: max-content;
    margin-inline: auto;
    padding: 5px 18px;
    border-radius: 8px;
    color: var(--white-1);
    background: var(--onyx);
    font-size: var(--fs-8);
}

/* main-content */
.main-content {
    min-width: 75%;
    width: 75%;
}

.article-title {
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-weight: var(--fw-600);
    position: relative;
}

.article-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 5px;
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.project-item > a:hover img{
    transform: scale(1.1);
}

.project-img{
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
}
.project-img img{
    width: 100%;
    height: 195px;
    object-fit: cover;
    transition: var(--transition-1);
}
.project-title{
    color: var(--white-2);
    font-size: var(--fs-5);
    text-transform: capitalize;
    line-height: 1.3;
}
.project-category{
    color: var(--light-gray-70);
    font-size: var(--fs-6);
    font-weight: var(--fw-300);
}