.hamburger {
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
}

/* Invisible added click-able area */
.hamburger::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.hamburger-line {
    background-color: white;
    height: 4px;
    width: 30px;
    /* margin: 6px 0;  */
    /* margin-bottom: 6px; */
    margin-bottom: 0px;
    transition: margin 0.4s ease-in-out, opacity 0.4s ease-in-out;  /* Animate margin */
}

#line-1, #line-2 {
    margin-bottom: 6px;
}

.hamburger-line.expand {
    opacity: 0.5;
}

#line-1.expand, #line-2.expand {
    margin-bottom: 20px;
}

.header {
    padding-top: 15px;
    padding-bottom: 0px;
    /* padding-left: 20px; */
    text-align: center;
    background: #0077b5;
    color: white;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header h1 {
    text-align: left;
    font-size: 36px;
    /* margin: 5px 0; */
    /* margin-top: 5px; */
    margin-bottom: 5px;
    padding-left: 20px;
}

.header p {
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0px;
    padding-left: 20px;
}

@media (max-width: 320px) {
    .header h1, .header p {
        text-align: center;
        padding-left: 0px;
    }
    .hamburger {
        position: static;  /* Reset to static positioning */
        display: flex;  /* Use flexbox to center the hamburger lines */
        justify-content: center;  /* Center align */
        padding-top: 20px;
        margin-bottom: 0px;
    }
    .hamburger::before {
        position: static;
        display: flex;
        justify-content: center;
    }
}

.header ul {
    list-style-type: none;
    /* padding: 0; */
    padding-top: 10px;
    padding-left: 0px;
    padding-right: 0px;
    /* padding: 0; */
    margin: 0;
    display: inline-block;
    overflow: hidden;
    /* display: none; */
    max-height: 0px;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* After menu click */
.header ul.active {
    max-height: 600px; /* Adjust based on your needs */
    opacity: 1;
}

.header li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
}

.header li a:hover {
    /* Darker blue for hover */
    /* background-color: #005a8c; */
    color: #d1aa00;
}

/* .header li:not(:last-child)::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, white, transparent);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(70vw);
} */

.footer {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    /* background: #0077b5;*/
    background: #c9c9c9;
    color: black;
    bottom: 0;
    /* left: 0;
    width: 100%;  /* Full width */
    /* box-sizing: border-box; */
}

.footer-icon {
    margin: 0 10px;  /* Horizontal spacing */
}

.footer-icon:hover {
  text-decoration: none;  /* Remove underline */
}

.icon-container {
    display: block;
}

.footer-icon {
    margin: 0 8px;
    text-decoration: none;
}

.copyright {
    font-size: 12px;
    display: block;
    margin-top: 10px;
}

/* Gray horizontal line */
.section-divider {
    border: 0;
    height: 1px;
    /* background: linear-gradient(to right, transparent, #ccc, transparent); */
    background-color: #ccc;
    margin: 30px 0;
}

/* Gray horizontal line */
.subsection-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    /* width: 200px; */
    width: 40%;
    margin: 30px auto;
}

#summary {
    /* This is set dynamically */
    margin-top: 0px;
}

.content-section {
    /* margin: 20px 20px; */
    width: 80%;
    margin: 20px auto;
}

.content-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 18px;
}

.content-section h4 {
    font-size: 15px;
}

/* Subheading style */
.content-section .subheading {
    font-size: 18px;
    color: #5A6B7C;
    /* margin-top: 20px; */
    margin-bottom: 20px;
}

p {
    font-size: 14px;
}

a {
    color: #d1aa00;
    font-size: 14px;
    text-decoration: underline;
    /* text-decoration-style: dotted; */
    /* text-underline-offset: 0.4em; */
}

a:hover {
    color: #d1aa00;
    text-decoration: none;
    /* text-decoration-style: none; */
}

blockquote {
    margin: 10px;
    /* padding: 10px; */
    padding-left: 10px;
    border-left: 2px solid #ccc;
    font-style: italic;
    font-size: 14px;
}

.flex-container-skill {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.column {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    /* min-width: 300px; */
}

/* Remove left padding for the first column in each row */
.column:nth-child(odd) {
    padding-left: 0;
}

/* Remove right padding for the second column in each row */
.column:nth-child(even) {
    padding-right: 0;
}

@media (max-width: 700px) {
    .flex-container {
        flex-direction: column;
    }
    .column {
        min-width: 100%;
        padding: 0;
    }
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100%;
}

.flex-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.responsive-image {
    width: 60%;
    height: auto;
}

.flex-container a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* right: 0;
    bottom: 0; */
    width: 100%;
    height: 100%;
    background-color: rgba(110, 110, 110, 0); /* Gray with 0 alpha */
    transition: background-color 0.4s ease; /* Transition effect */
    z-index: 1;
    pointer-events: none; /* Allow click events to pass through */
}

.flex-container a:hover::before {
    background-color: rgba(110, 110, 110, 0.5); /* Gray with 0.5 alpha */
}

.flex-container a:hover::after {
    content: "View Repo";
    font-size: 16px;
    position: absolute;
    opacity: 1;
    z-index: 2;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: rgb(255, 255, 255, 1.0);
    border: 2px solid white; 
    padding: 10px;
}


.flex-container a#repo:hover::after {
    content: "View Repo";
}

/* Custom hover text for element with ID 'publication' */
.flex-container a#publication:hover::after {
    content: "View Publication";
}

.flex-container a#presentation:hover::after {
    content: "View Presentation";
}

#headshot {
    border-radius: 50%;  /* Circular crop */
    width: 150px;  /* Set width */
    height: 150px;  /* Set height */
    object-fit: cover;  /* Cover entire element box */
    margin-bottom: 10px;
}

.summary-container {
    padding-top: 10px;
    display: flex;
    align-items: center;
    max-width: 550px;
    justify-content: center;
    margin: auto;
}

.summary-container .subheading {
    flex: 1;
    padding-left: 20px;
    margin-bottom: 0px;
}

@media (max-width: 500px) {
    #headshot {
        width: 110px;
        height: 110px;
    }
    .summary-container {
        flex-direction: column;  /* Stack items vertically */
        align-items: center;  /* Center items horizontally */
    }
    .summary-container .subheading {
        padding-left: 0;  /* Remove left padding */
        text-align: center;  /* Center text */
    }
}