/* ----------------Initial Configurations---------------- */

* {
    box-sizing: border-box;
}
html {
    height: 100vh;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #1F2421;
    color: #DCE1DE;
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

hr{
    margin-top: 50px;
    width: 70%;
}

/* -----------------Root------------------------------- */
:root {
    --font-color: #DCE1DE;
    --footer-background: #000000;
    --navbar-background: #49A078;
    --box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* ------------------Navbar---------------------------- */
nav {
    background-color: var(--navbar-background);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: all .3s ease-in-out;
}
nav .nav-list ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}
nav .nav-list ul li {
    margin-left: 20px;
    color: var(--font-color);
}
nav .nav-list ul li:hover {
    opacity: 80%;
}
.name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--font-color);
}

/* ------------------Navbar Mobile Hamburger---------------------------- */
.navbar-mobile {
    display: none; /* Hidden by default */
}
.navbar-mobile.active {
    display: block; /* Show hamburger menu when active */
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 15;
}
.hamburger div {
    width: 100%;
    height: 3px;
    background-color: #fff;
}
.navbar-mobile ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--navbar-background);
    padding: 10px 20px;
    margin: 0;
}
.navbar-mobile ul li {
    margin-bottom: 15px;
}
.navbar-mobile ul li:last-child {
    margin-bottom: 0;
}
.navbar-mobile ul li a {
    color: var(--font-color);
    text-decoration: none;
}

/* ------------------Profile--------------------------- */
.profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
}
.pfp-pic {
    height: 250px;
    width: 250px;
    border-radius: 50%;
    border: 4px solid #49A078;
}
.bio {
    margin-top: 20px;
    font-size: 1.2rem;
    max-width: 800px;
    color: #DCE1DE;
}

/* ------------------Skills-------------------------- */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
}

.skills h2 {
    font-size: 2rem;
    color: var(--font-color);
    margin-bottom: 20px;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #333;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--box-shadow);
}
.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.2);
}
.box img {
    height: 80px;
    width: 80px;
    margin-bottom: 10px;
}

/* ------------------Footer--------------------------- */
footer {
    background-color: #1F2421;
    color: #DCE1DE;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
}

/* ------------------Projects Section--------------------- */
.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    padding: 0 20px;
}
.projects h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--font-color);
    margin-bottom: 30px;
    text-align: center;
}
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.project-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.2);
}
.project-box img {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--font-color);
    margin-bottom: 10px;
}
.project-description {
    font-size: 1rem;
    color: #DCE1DE;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

    .hamburger {
        display: flex;
    }

    .navbar-mobile {
        display: none;
    }

    .navbar-mobile.active {
        display: block;
    }

    .profile .pfp-pic {
        height: 200px;
        width: 200px;
    }
    .skills h2 {
        font-size: 1.5rem;
    }
    .box-container {
        grid-template-columns: 1fr 1fr;
    }
    .bio {
        font-size: 1.1rem;
    }
}

@media (max-width: 520px) {
    .profile {
        margin-top: 30px;
    }
    .bio {
        font-size: 1rem;
        margin-left: 20px;
        margin-right: 20px;
    }
    .box-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .box img {
        height: 60px;
        width: 60px;
    }
}
@media (max-width: 768px) {
    .projects h2 {
        font-size: 1.8rem;
    }
    .project-container {
        grid-template-columns: 1fr 1fr;
    }
    .project-box {
        padding: 15px;
    }
    .project-box img {
        height: 120px;
        width: 120px;
    }
}

@media (max-width: 520px) {
    .projects {
        padding: 0 10px;
    }
    .project-container {
        grid-template-columns: 1fr;
    }
    .project-box {
        padding: 15px;
    }
    .project-box img {
        height: 100px;
        width: 100px;
    }
    .project-title {
        font-size: 1.2rem;
    }
    .project-description {
        font-size: 0.9rem;
    }
}
