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

/* // reusable property variable for bg color */
:root {
    --bg-color: #d5e4e2;
    --raised-bg-color: rgb(237, 237, 237);
    --dark-bg-color : #4b615e;
    --primary-color: #1f1f1f;
    --icon-btn-color: #82cdff;
    --icon-btn-hover-color: #c5c5c4;
    --link-color: #363636;
}


body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--bg-color);
    color: var(--primary-color);
    width: 900px;
    margin: 0 auto;
    padding: 0 0;
}

@media screen and (max-width: 768px) {
    body {
        width: 100%;
        padding: 0 2rem;
    }
}

a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
}

li {
    list-style: none;
}

/* Navbar */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--bg-color);
}

.nav-container .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-container .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 2rem;
}

.link {
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
}

.cta-btn {
    background-color: var(--icon-btn-color);
    color: var(--link-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    display: inline-block;
}

.cta-btn:hover {
    background-color: var(--icon-btn-hover-color);
}

/* Footer */
hr {
    border: none;
    background-color: var(--link-color);
    height: 1px;
    width: 80%;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    hr {
        width: 100%;
    }
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 0;
    background-color: var(--bg-color);
}

.footer-container p {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.footer-container .social_icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 1rem;
}

.footer-container .social_icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.5s ease-in-out;
}

.footer-container .social_icons a:hover {
    color: var(--icon-btn-hover-color)
}

/* Hero */

.hero-container {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 0;
}

.hero-container .profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}

.hero-container .hero-text {
    text-align: center;
    margin: 1rem 0;
    width: 80%;
}

@media screen and (max-width: 768px) {
    .hero-container .hero-text {
        width: 100%;
    }
}

.hero-container .hero-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-container .hero-text p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-container .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 1rem;
}

.hero-container .social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.5s ease-in-out;
}

.hero-container .social-icons a:hover {
    color: var(--icon-btn-hover-color);
}

/* About */
.about-container {
    padding: 2rem 0;
}

.about-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-container .flex-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 2rem;
}

.about-container .flex-about .about-text {
    width: 50%;
}

.about-container .flex-about .about-text p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.about-container .flex-about .about-img {
    width: 50%;
}

.about-container .flex-about .about-img .profile-img {
    overflow: hidden;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 2px solid var(--bg-color);
    filter: grayscale(100%);
    transition: all 0.5s ease-in-out;
    cursor: cell;
}

.about-container .flex-about .about-img .profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .about-container .flex-about {
        flex-direction: column;
    }

    .about-container .flex-about .about-text {
        width: 100%;
    }

    .about-container .flex-about .about-img {
        width: 100%;
    }
}

/* Projects */
.projects-container {
    padding: 2rem 0;
}

.projects-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.projects-column {
    display: inline;
    gap: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.project-card {
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
}

.project-card p,
.project-card h3 {
    margin-bottom: 10px;
}

.project-card .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-card .project-header p {
    padding: 10px;
}

.project-card .folder-icon {
    font-size: 35px;
    color: var(--icon-btn-color)
}

.project-header .small-icons {
    display: flex;
    gap: 0 5px;
}

.project-card .small-icons a {
    margin-right: 5px;
    cursor: pointer;
    transition: all .5s ease;
}

.project-card .small-icons a:hover {
    color: var(--icon-btn-hover-color)
}

.project-card .project h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-card .project p {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* contact */
.contact-container {
    padding: 4rem 0 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .contact-container {
        width: 100%;
    }
}

.contact-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-container p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
}

/* blog */
.blog-container {
    padding: 2rem 0;
    background-color: var(--raised-bg-color);
    border-radius: 15px;
    color: var(--primary-color);
}

/* project */
.project-container {
    padding: 2rem 0;
    background-color: var(--raised-bg-color);
    border-radius: 15px;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* project-page */
.project-page-logo {
    display: flex;
    width: 30rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.project-page-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    padding: 2rem;
    gap: 0.5rem;
    width: 100%;
}

.project-page-grid img {
    width: 100% ;
    height: 100%;
    outline: 0.3rem solid var(--dark-bg-color);
    object-fit: cover;
}

.project-page-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-page-card p {
    padding: 0.5rem;
}

.project-page-card ul {
    padding: 0.5rem;
}

.project-page-card li {
    list-style: inside;
}

.project-page-figure {
    /* display: grid;
    grid-template-rows: 0.9fr 0.1fr;
    gap: 0.5rem; */
    padding: 1rem;
    width: 100%;
} 

.project-page-figure img {
    width: 100% ;
    height: 100%;
    outline: 0.3rem solid var(--dark-bg-color);
    object-fit: cover;
}

.project-page-figure p {
    font-weight: 600;
    display: flex;
    justify-content: center;
    font-size: smaller;
} 