body{
    background-color: rgb(247, 255, 255);
}

/* Navbar */
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: lightblue;
    text-align: center;
    z-index: 9999;
    pointer-events: auto;
}

.navbar ul{
    list-style-type: none;
    padding: 20px;
    margin: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 70px;
    overflow: visible;
}

.navbar li{
    font-family: sans-serif;
}

.navbar li:hover{
    background-color: aliceblue;
    border-radius: 9px;
}

.navbar a{
    color: rgb(108, 100, 100);
    text-decoration: none;
    padding: 10px;
    display: block;
    text-align: center;
    font-size: 1.2em;
    font-family: sans-serif;
    line-height: 1.2em;
}

/* Dropdown container */
.dropDownAboutMe {
    position: relative;
}

/* Dropdown content (hidden by default) */
.dropDownAboutMeContent {
    display: none;
    position: absolute;
    background-color: lightblue;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 9px;
    text-align: left;
    top: 100%;
    left: 0;
    z-index: 1000;
    visibility: hidden;
}

/* Links inside the dropdown */
.dropDownAboutMeContent a {
    color: rgb(108, 100, 100);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1em;
    font-family: sans-serif;
    line-height: 1.2em;
}

/* Change color on hover */
.dropDownAboutMeContent a:hover {
    background-color: aliceblue;
    border-radius: 9px;
}

/* Show dropdown when hovering over parent */
.dropDownAboutMe:hover .dropDownAboutMeContent {
    display: block;
    visibility: visible;
}

/* Main content */
main{
    display: block;
    padding-top: 130px;
}

/* Home Container */
#homeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 70px 20px 50px 20px;
    margin: 100px auto 150px auto;
    border: solid rgb(230, 230, 205);
    border-radius: 150px;
    background-image: url('back_img_intro.jpg');
    background-size: cover;
    background-position: center;
    width: 80%;
    max-width: 1200px;
}

#myIcon{
    image-rendering: crisp-edges;
    margin-top: 50px;
    background-color: rgb(162, 193, 220);
    border-radius: 30px;
    max-width: 100%;
    height: auto;
}

#introMyself{ 
    font-family: sans-serif;
    font-size: 3em;
    font-weight: bold;
    margin-top: 70px;
    margin-bottom: 30px;
}

#introMyselfJob{
    font-size: 1.3em;
    font-family: sans-serif;
    width: auto;
    margin-bottom: 10px;
}

#contactMeBtn{
    cursor: pointer;
    background-color: white;
    border: 1px solid;
    text-align: right;
    padding: 15px;
    margin-top: 30px;
}

#contactMeBtn:hover{
    background-color: rgb(201, 199, 199);
}

#contactMeBtn a{
    text-decoration: none;
    color: black;
    font-size: 1.3em;
}

#contentContainer{
    text-align: left;
}

/* Scroll Reminder */
.scrollRemind{
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollDownImage{
    margin-top: 20px;
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* About Me Containers */
.aboutMeContainerFormat{
    display: block;  
    width: 85%;
    margin: 0 auto;  
    margin-bottom: 50px;
}

.aboutMeHeader{
    font-family: sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.aboutMeSmallHeader{
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.aboutMeContentContainer{
    font-family: sans-serif;
    font-size: 1.2em;
    min-height: 60vh;
    height: auto;
    line-height: 50px;
    padding: 50px;
    padding-top: 20px;
    padding-bottom: 50px;
    border: dotted rgb(162, 193, 220);
    border-radius: 50px;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.aboutMeContentContainer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('back_img_about_me.jpg.webp.avif');
    background-size: cover;
    background-position: center;
    opacity: 0.15;  
    border-radius: 50px;
    z-index: -1;
    pointer-events: none; /* CRITICAL FIX FOR CHROME */
}

#aboutMeEducationContentContainer{
    min-height: 50vh;
    height: auto;
    padding-bottom: 50px;
}

#aboutMeWEContentContainer{
    min-height: 80vh;
    height: auto;
}

label{
    font-family: sans-serif;
    font-weight: bold;
    
}

#projectBtn{
    font-family: sans-serif;
    font-size: 0.8em;
    padding: 7px 13px;
    border-radius: 25px;
    background: rgb(248, 229, 181);
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px gray;
}

#projectBtn a{
    color: rgb(80, 79, 79);
    text-decoration: none;
}

#projectBtn:hover{

    background: rgb(240, 212, 141);

}
#inputName{
    padding: 3px;
    font-family: sans-serif;
    font-size: 1em;
    margin-bottom: 30px;
}

#inputEmail{
    padding: 3px;
    font-family: sans-serif;
    font-size: 1em;
    margin-bottom: 30px;
}

#inputInquiry{
    font-family: sans-serif;
    font-size: 1em;
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    text-align: left;
    vertical-align: top;
}

.contactMeInfo{
    display: flex;
    height: auto;
    justify-content: center;
    width: auto;
    margin-bottom: 60px;
}

#submitBtnContainer{
    display: flex;
    justify-content: center;
    height: auto;
    width: auto;
    margin-top: 40px;
    position: relative;
    z-index: 9999;
}

#submitInfoBtn{
    font-family: sans-serif;
    font-size: 0.8em;
    font-weight: bold;
    color: rgb(54, 54, 54);
    padding: 10px;
    border: none;
    border-radius: 15px;
    background-color: #dddcdc;
    box-shadow: 3px 3px rgb(127, 125, 125);
    cursor: pointer;
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}

#submitInfoBtn:hover{
    background-color: #b8b4b4;
}

/* Tablets and smaller screens */
@media screen and (max-width: 1024px) {
    .navbar ul {
        gap: 40px;
    }
    
    #homeContainer {
        width: 90%;
        margin: 80px auto 100px auto;
    }
    
    #introMyself {
        font-size: 2.5em;
    }
    
    .aboutMeContainerFormat {
        width: 90%;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
        z-index: 9999;
        pointer-events: auto;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .navbar li {
        width: 100%;
    }
    
    .navbar a {
        display: block;
        width: 100%;
        padding: 12px;
    }
    
    .dropDownAboutMeContent {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    main {
        padding-top: 20px;
    }
    
    #homeContainer {
        flex-direction: column;
        width: 95%;
        margin: 20px auto;
        padding: 30px 15px;
        border-radius: 50px;
        gap: 20px;
    }
    
    #myIcon {
        width: 60%;
        margin-top: 20px;
    }
    
    #introMyself {
        font-size: 2em;
        margin-top: 20px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    #introMyselfJob {
        font-size: 1em;
        text-align: center;
    }
    
    #contactMeBtn {
        text-align: center;
        width: 100%;
    }
    
    .scrollRemind {
        display: none;
    }
    
    .aboutMeContainerFormat {
        width: 95%;
    }
    
    .aboutMeHeader {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .aboutMeContentContainer {
        padding: 20px;
        line-height: 30px;
        font-size: 1em;
        min-height: auto;
        margin-bottom: 40px;
    }
    
    .aboutMeSmallHeader {
        font-size: 1.1em;
    }
    
    #aboutMeEducationContentContainer,
    #aboutMeWEContentContainer {
        min-height: auto;
        height: auto;
    }
    
    #submitInfoBtn {
        cursor: pointer;
        pointer-events: auto;
        z-index: 9999;
        position: relative;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    #introMyself {
        font-size: 1.5em;
    }
    
    #introMyselfJob {
        font-size: 0.9em;
    }
    
    .aboutMeHeader {
        font-size: 1.2em;
    }
    
    .aboutMeSmallHeader {
        font-size: 1em;
    }
    
    .aboutMeContentContainer {
        line-height: 25px;
        font-size: 0.9em;
        padding: 15px;
    }
    
    .navbar a {
        font-size: 1em;
        padding: 10px;
    }
    
    #contactMeBtn a {
        font-size: 1em;
    }
    
    .dropDownAboutMeContent a {
        font-size: 0.9em;
        padding: 10px;
    }
}

/* Large screens */
@media screen and (min-width: 1400px) {
    #homeContainer {
        width: 60%;
        max-width: 1400px;
    }
    
    .aboutMeContainerFormat {
        width: 75%;
    }
}