/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Merriweather", serif;
    font-weight: 500;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

.logo {
    cursor: pointer;
}

/* TRANSITION */
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */
nav, 
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

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

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

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

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */
#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: transparent;
    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);
}

/* SECTIONS */
section {
    padding: 4rem 10rem;
    min-height: auto;
    height: auto;
    margin: 0 10rem;
    box-sizing: border-box;
}

.section-container {
    display: flex;
    gap: 4rem;
    height: auto;
    flex-wrap: wrap;
}

/* PROFILE SECTION */
#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: auto;
    padding-top: 4vh;
}

.section_pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

#profile .section_pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

#about .section_pic-container {
    width: 400px;  /* Base width */
    height: 600px; /* Height for 2:3 ratio (400 * 1.5) */
    border-radius: 2rem;
    overflow: hidden;
}

#about .section_pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

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

.section__text_p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.1rem;
}

.section__text__p2 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

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

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

/* ICONS */
.icon {
    cursor: pointer;
    height: 2rem;
    transition: all 300ms ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* BUTTONS */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 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.15rem solid;
}

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

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

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

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

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

/* ABOUT SECTION */
#about {
    position: relative;
    overflow: visible;
    padding-bottom: 2rem;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 0;
    flex-wrap: wrap;
}

.about-details-containers {
    flex: 1;
    min-width: 300px;
    justify-content: center;
    flex-direction: column;
    display: flex;
    font-size: larger;
}

.about-containers,
.about-details-containers {
    display: flex;
}

.text-container {
    margin-top: 1rem;
    max-width: 100%;
}

.about-pic {
    border-radius: 2rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: transparent;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
    transition: all 300ms ease;
}

.details-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgb(53, 53, 53);
}

/* PORTFOLIO SECTION */
#portfolio {
    position: relative;
    padding: 4vh 0;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.color-container {
    background: rgb(250, 250, 250);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(100% / 3 - 2rem);
    min-width: 270px;
    position: relative;
    padding-bottom: 80px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: all 300ms ease;
}

.color-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    border-radius: 1rem;
    width: 90%;
    height: auto;
    margin: auto;
    cursor: pointer;
    transition: all 300ms ease;
    border: 2px solid transparent;
}

.project-img:hover {
    transform: scale(1.02);
    border-color: rgb(163, 163, 163);
}

.project-title {
    margin: 1rem 0;
    color: black;
    padding: 0 1rem;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.article-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    flex-grow: 1;
}

/* CONTACT SECTION */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto !important;
}

.contact-content-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem !important;
    margin-bottom: 0 !important;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.linkedin-btn {
    background-color: transparent;
    color: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-btn:hover {
    background-color: #0a66c2;
    color: #ffffff;
    transform: translateY(-2px);
}

.linkedin-btn i {
    font-size: 1.25rem;
}

/* COMPACT SECTION */
.compact-section {
    min-height: auto !important;
    padding: 2rem 0 !important;
    margin: 0 !important;
}

section + .compact-section {
    margin-top: -2rem !important;
}

/* FOOTER */
footer {
    height: auto;
    margin: 0 1rem;
    padding: 2rem 0;
}

footer p {
    text-align: center;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

footer .nav-links {
    justify-content: center;
}