* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
  --color-bg: #0f1115;
  --color-surface: #161a22;
  --color-border: #222633;

  --color-text-primary: #e6e6e6;
  --color-text-muted: #c4c7cc;

  --color-accent: #4f8cff;
  --color-accent-muted: #6f8ed3;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: "Nunito", sans-serif;
}

h1 {
    font-size: 4rem;
}

img {
    width: 20px;
}

.page-wrapper {
    display: flex;
    height: 100vh;
}

/* ---------------------------------------------------- */
/* Navigation */

.sidebar {
    position: fixed;
    height: 100vh;
    left: -10rem;
    flex-shrink: 0;
    padding: 6rem 3rem;
    transition: left 0.3s ease-out;
}

.sidebar:hover {
    left: 0;
}

.sidebar-flex {
    display: flex;
}

/* Sidebar Collapsed */

.sidebar_icon, .sidebar_icon_collapsed {
    width: 28px;
    vertical-align: middle;
}

.collapsed-sidebar {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar:hover .sidebar_icon_collapsed {
    display: none;
}

.sidebar_icon_collapsed, .expanded-sidebar li {
    margin-bottom: 5rem;
}

/* Sidebar expanded */

.expanded-sidebar {
    list-style: none;
    min-width: 150px;
}

.expanded-sidebar li a {
    display: flex;
    text-decoration: none;
    color: var(--color-text-muted);
    gap: .5rem;
    align-items: center;
    transform: scale(1);
    transition: color .3s ease, transform .3s ease;
}
.expanded-sidebar li a:hover {
    color: var(--color-text-primary);
    transform: scale(1.02);
}

/* ---------------------------------------------------- */
/* Content */

.content {
    flex: 1;
    overflow-y: auto;
    padding-left: calc(150px + 3rem);

    background: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
}

/* Header */

header {
    padding-top: 10rem;
    height: calc(100vh - 10rem);
    position: relative;
}

.title-wrapper h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 4.7rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.title-wrapper h4 {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.prog-lang-wrapper {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
}

.prog-lang-tag {
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(0deg, #1a1a1a, #1e1e1e);
    border: 1px solid #292929;
    color: #dadada;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.prog-lang-tag p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prog-lang-icon {
    width: 18px;
    height: 18px;
}

.prog-lang-tag:hover {
    background: linear-gradient(0deg, #1c1c1c, #202020);
    border-color: #2b2b2b;
    cursor: pointer;
    transform: scale(1.02);
}

.prog-lang-tag:active {
    transform: scale(0.97);
}

.bg-code-image-sect {
    position: absolute;
    bottom: 3rem;
    right: 1rem;
    transform: rotate3d(1, -1, 0, 50deg);
    opacity: 0.4;
    transition: transform .5s ease-out, opacity .5s ease-out;
}

.bg-code-image-sect:hover {
    transform: rotate3d(1, -1, 0, 45deg);
    opacity: 0.6;
}

.bg-code-image-sect img {
    width: 45rem;
}

.arrow-down-wrapper {
    position: absolute;
    bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
}

.arrow-down {
    border: solid rgb(197, 197, 197);
    border-radius: 2px;
    border-width: 0 4px 4px 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/* Featured Projects */

#feat-project-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-sect {
    margin-right: 92px;
}

.proj-cards-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.proj-card {
    position: relative;
    flex: 1 1 0px;
    background: linear-gradient(10deg, #1f2d43, #2B3545);

    border-radius: 30px;
    padding: 1rem;

    transition: transform .2s ease-out;
}

.proj-card:hover {
    transform: translateY(-3px);
}

.proj-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

@media screen and (min-width: 950px) {
    .proj-img-wrapper{ aspect-ratio: 16 / 9;}
}

.feat-proj-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    opacity: 0.75;
    transition: opacity .3s ease-out;
}

.proj-card:hover .feat-proj-img {
    opacity: 0.9;
}

.proj-text-sect {
    padding: 1rem;

    margin-bottom: 3.5rem;
}

.proj-text-sect h4 {
    font-size: 2rem;
    margin-bottom: .25rem;
    color: #F5F5F5;
}

.proj-text-sect p {
    color: #BDBDBD;
}

.proj-btn-wrapper {
    position: absolute;
    bottom: 1.5rem;
}

.project-btn {
    display: inline-block;
    padding: .75rem 1rem;
    background: linear-gradient(0deg, #2954ab, #3A69C8);
    color: #F5F5F5;

    border-radius: 10px;
    font-size: .9rem;
    text-decoration: none;

    transition: transform .2s ease;
}

.project-btn:hover {
    transform: scale(1.02);
}

.project-btn:active {
    transform: scale(0.98);
}

/* Skillset */

.skills-sect {
    margin-top: 7rem;
    margin-right: 92px;
}

#skillset-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;

    margin: 1rem 0rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    margin-right: 1.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    width: 100px;
    height: 80px;
    align-items: center;
    justify-content: center;

    background: linear-gradient(0deg, #1d1d1d, #1f1f1f);

    border-radius: 15px;
    border-style: solid;
    border-width: 1px;
    border-color: #6f6f6f;

    transition: all .3s ease-out;
}

.skill-card:hover {
    background: linear-gradient(0deg, #1f1f1f, #222222);
    transform: scale(1.02);
    cursor: pointer;
}

.skill-card:active {
    transform: scale(0.98);
}

.skill-card img {
    width: 40px;
}

.skill-card p {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin: 3rem 0rem;
    color: #c4c7cc;
}
