@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
    background-color: #f5f5f5;
}

body.scrollable-page {
    overflow-y: auto;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

html:has(body.scrollable-page) {
    overflow-y: auto;
}

p {
    color: rgb(85, 85, 85);
}
/* Transition Effects */
a, .btn {
    transition: all 300ms ease;
}

/*Desktop Nav */

nav,
.nav-links {
    display: flex;
    
}

nav {
    justify-content: space-around;
    align-items: center;
    padding: 2rem 2rem;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-underline-offset: 1rem;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 2rem;
}
.logo:hover {
    cursor: default;
}

#hamburger-nav {
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}

    .hamburger-icon.open span:nth-child(2){
        opacity: 0;

    }

    .hamburger-icon.open span:last-child{
        transform: rotate(-45deg) translate(10px, -5px);
    }   

    .hamburger-icon span:first-child{
        transform: none;
    }

    .hamburger-icon span:nth-child(2){
        opacity: 1;
    }
    .hamburger-icon span:last-child{
        transform: none;
    }

    /* Sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

#Profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.sections__pic_container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.sections__pic_container img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sections__text {
    align-self: center;
    text-align: center;
}

.sections__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    font-size: 1rem;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.title {
    font-size: 3rem;
    text-align: center;
    margin: 0;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.icon {
    cursor: pointer;
    height: 2rem;
}

/* Buttons */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
}

/* Footer */

footer {
    height: auto;
    padding: 2rem 1rem;
    margin: 0;
    text-align: center;
}

footer p {
    text-align: center;
}

/* Projects Section */

#projects {
    padding: 4rem 2rem;
    text-align: center;
}

#projects .title {
    margin-bottom: 3rem;
}

.projects-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.project-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: rgb(85, 85, 85);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
    line-height: 1.4;
}

.project-btn-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.project-btn-container .btn {
    padding: 0.75rem;
    width: 7rem;
    font-size: 0.9rem;
}

/* About Section */

#about {
    padding: 2rem 0;
    overflow-y: auto;
}

#about h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: rgb(53, 53, 53);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about-section h2 {
    color: rgb(53, 53, 53);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    border-bottom: 2px solid rgb(53, 53, 53);
    padding-bottom: 0.5rem;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.about-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.about-section a {
    color: rgb(53, 53, 53);
    font-weight: 600;
}

.about-section a:hover {
    color: rgb(0, 0, 0);
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    color: rgb(53, 53, 53);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-item .date {
    color: rgb(100, 100, 100);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.experience-item .role {
    color: rgb(85, 85, 85);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-item ul {
    margin-top: 0.5rem;
}
