@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Book.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    /* Enables smooth scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Circular Std", sans-serif;
}

/* html {
    scrollbar-gutter:stable;
} */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 24px 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(248, 249, 250);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 21px 0px;
    z-index: 10;
}

.logo {
    height: 64px;
}

.links {
    list-style: none;
    display: flex;
    align-items: center;
}

.links li {
    padding: 16px;
}

.links li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 500;
    transition: 0.15s ease;
    position: relative;
}

.links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -6px;
    left: 0;
    background-color: #000000;
    visibility: hidden;
    transform: scaleX(0);
    transition: 0.3s ease-in-out;
}

.links li a:hover::after {
    visibility: visible;
    transform: scaleX(0.99);
}

.links li:nth-child(4) {
    padding: 16px 0 16px 16px;
}

.links li:last-child {
    padding: 0 !important;
}

.sideNav {
    position: fixed;
    right: -250px;
    /* Hide sidebar initially */
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 100;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 0px 21px 0px;
    transition: right 0.3s ease-out;
}

.sideNav.display {
    right: 0;
    /* Show sidebar when class "display" is added */
}

.sidelogo {
    height: 64px;
    margin: 12px;
}

.sidelinks {
    list-style: none;
}

.sidelinks li {
    padding: 12px 24px;
    transition: 0.15s;
    cursor: pointer;
}

.sidelinks li:hover {
    background-color: hsl(0, 0%, 90%);
}

.sidelinks li a {
    text-decoration: none;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidenav-logos {
    height: 18px;
    width: 18px;
}

.menu-icon {
    width: 32px;
    height: 32px;
    display: none;
    transition: 0.15s;
    cursor: pointer;
}

.menu-icon:hover {
    opacity: 0.4;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.overlay.display {
    opacity: 1;
    pointer-events: auto;
}

/* Content */

.content {
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 76px;
    width: 1024px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    /* border: 1px solid red; */
    column-gap: 24px;
    /* padding: 72px 100px; */
}

/* .col1,
.col2 {
    border: 1px solid blue;
    height: 100vh;
} */

.col1 {}

.col2 {}

.headerCont {
    position: relative;
    margin-bottom: 32px;
}

.cover {
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 24px;
}

.coverImg {
    width: 100%;
}

.pfp {
    position: absolute;
    bottom: -24px;
    left: 24px;
    border: 6px solid #fff;
    border-radius: 50%;
    width: 108px;
    height: 108px;
    overflow: hidden;
}

.pfpImg {
    width: 100%;
}

.nickname {
    font-weight: 300;
}

.detailsCont {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.detail {
    display: flex;
    gap: 8px;
    font-weight: 300;
    align-items: center;
    font-size: 16px;
}

.detailIcon {
    width: 20px;
    height: 20px;
}

.cardCont {
    margin-top: 24px;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.cardHead {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cardCont p {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 300;
}

.bio {
    line-height: 2;
}

.socials {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 8px;
}

.socials>a {
    text-decoration: none;
    display: flex;
    gap: 8px;
    color: black;
    align-items: center;
    font-weight: 300;
    transition: 0.15s;
}

.socials>a:hover {
    color: #3498db;
}


.socialIcon {
    width: 16px;
    height: 16px;
}

.cardCont2 {
    /* margin-top: 24px; */
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.cardCont2 p {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 300;
}

.gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pics {
    overflow: none;
}

.pic {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.freelancePic {
    margin-top: 12px;
    width: 100%;
    border-radius: 8px;
}

/* Footer */

.mainfooter {
    background-color: #212529;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    column-gap: clamp(88px, 10vw, 180px);
    row-gap: 32px;
    padding: 60px 100px;
}

.mainfooter h3 {
    color: #F8F9FA;
}

.mainfooter ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mainfooter div ul li {
    list-style: none;
}

.mainfooter div ul li a {
    text-decoration: none;
    color: #a2a7ab;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.15s;
}

.mainfooter div ul li a:hover {
    color: #F8F9FA;
}

.quick-links,
.contact-info,
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-logos {
    display: flex;
    flex-direction: row !important;
    gap: 8px !important;
}

.subfooter {
    padding: 16px;
    text-align: center;
    background-color: #16181b;
    color: white;
    font-weight: 300;
}



@media all and (max-width: 1097px) {
    #home {
        display: flex;
        flex-direction: column;
        gap: 48px;
        padding: 36px;
    }

    .mainfooter {
        padding: 60px 60px;
    }
}

@media all and (max-width: 1025px) {
    .content {
        box-sizing: border-box;
        margin-top: 76px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        padding: 24px 60px;
        /* border: 1px solid red; */
        row-gap: 24px;
        column-gap: 24px;
        /* padding: 72px 100px; */
    }
}

@media all and (max-width: 760px) {
    .content {
        padding: 24px 60px;
    }

    .projectList {
        margin-top: 48px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 24px;
        grid-row-gap: 40px;
    }
}

@media all and (max-width: 676px) {
    .navbar {
        padding: 4px 24px;
    }

    .menu-icon {
        display: block;
    }

    .links li:not(:last-child) {
        display: none;
    }

    .content {
        padding: 24px 36px;
    }

    .projectList {
        margin-top: 48px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 24px;
        grid-row-gap: 40px;
    }

    .mainfooter {
        padding: 60px 36px;
    }
}

@media all and (max-width: 426px) {
    .navbar {
        padding: 4px 16px;
    }

    .menu-icon {
        display: block;
    }

    .links li:not(:last-child) {
        display: none;
    }

    .content {
        padding: 24px;
    }

    .mainfooter {
        padding: 40px 24px;
    }
}