@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* GENERAL */
body {
    font-family: "Montserrat", sans-serif;
    max-width: 60vw;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 1rem;
}

html {
    scroll-behavior: smooth;
}

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

section {
    padding-top: 4vh;
    height: auto;
    margin: 0 auto;
    max-width: 80%;
    box-sizing: border-box;
}

/* transitions */

a,
.btn {
    transition: all 0.3s ease-in-out;
}

img {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: box-shadow 0.3s ease-in-out;
    height: auto;
}

img:hover {
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
}


.highlighted-text {
    position: relative;
    display: inline-block;
}

.highlighted-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: #EFE6DD;
    z-index: -1;
    transition: height 0.3s ease-in-out;
}

.highlighted-text:hover::before {
    height: 90%;
}


/* 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;
    transition: color 0.3s ease-in-out;
}

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

.logo {
    font-size: 2rem;
}

/* 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: 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;
}

.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);
}

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* HOME PAGE */
#profile {
    display: flex;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
}

.section__text p {
    font-weight: 600;
}

.title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.btn-container {
    display: flex;
    gap: 1rem;
    padding: 10px;
}

.btn {
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    background: rgb(245, 245, 245);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-color-1 { /*contact(black)*/
    background: #7A7A7A;
    border: rgb(248, 248, 248) 0.1rem solid;
    color: rgb(255, 255, 253);
}

.btn-color-2 { /*resume(white)*/
    background: rgb(255, 255, 255);
    border: rgb(248, 248, 248) 0.1rem solid;
}

.btn:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: 0.8rem;
    }

    .btn-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ABOUT PAGE */
#about {
    position: relative;
    margin: 0 auto;
    max-width: 80vw;
}

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

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

/* skills section */
.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 80vw;
    margin: 0 auto;
}

.skills-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
    max-width: 80vw;
    box-sizing: border-box;
}

.skills-box h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.skills-box p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .skills-container {
        max-width: 90vw;
    }

    .skills-box {
        max-width: 90vw;
    }
}

/*EXPERIENCE PAGE */
.timeline {
    position: relative;
    margin: 20px auto;
    max-width: 800px;
    padding-left: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;

}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 25px;
    width: 2px;
    height: 100%;
    background-color: #ddd;
}

.timeline-item:last-child::before {
    height: 0;
}

.timeline-content {
    margin-left: 40px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid rgb(100, 97, 97);
    border-radius: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);

}

.timeline-content h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.timeline-content ul {
    margin: 10px 0 0 20px;
    color: #666;
}

.timeline-content ul li {
    list-style-type: circle;
}

.timeline-content img.experience-icon {
    width: 40px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.timeline-content img.experience-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .timeline-content {
        flex-direction: row;
        align-items: center;
    }

    .timeline-content img.experience-icon {
        width: 30px;
        margin-right: 10px;
    }

    .timeline-content h2 {
        font-size: 1.2rem;
    }
}

/* CONTACT PAGE*/
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(163, 163, 163) 0.1rem solid;
    background: rgb(255, 255, 255);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* contact form  */
.contact-form-container {
    margin-top: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bab9b9;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.btn-color-1 {
    background: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-color-1:hover {
    background: #555;
}

/* ERROR PAGE */
#error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 80vh;
    margin: auto;
}

#error-page .text-container p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: rgb(85, 85, 85);
}

#error-page .btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}