section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* margin-bottom: 30px; */
}

.main-content {
    margin: 0;
}

.content {
    /* width: calc(1400px - 2 * var(--margin-x)); */

    width: calc(1024px - 2 * var(--margin-x));
    margin: var(--margin-y) auto;
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 100px;
    text-align: left;
}

.content h1 {
    text-align: left;
    /* margin: auto; */
}

.head-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.head-item-image-container {
    background-color: var(--color-foreground);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0px;
    /* margin-bottom: 20px; */
}

.head-item-image-container p {
    color: var(--color-background);
}

.head-item-image-container h3 {
    color: var(--color-background);
    font-size: 18px;
}

.head-item-image-container h1 {
    font-size: 32px;
    color: var(--color-background);
    margin-bottom: 0;
}

.head-item-image-container a {
    color: var(--color-background);
}
.head-buttons{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.head-buttons button {
    background-color: var(--color-foreground);
    color: var(--color-background);
    border: 2px solid var(--color-foreground);
    padding: 5px 10px;
    margin: 0px;
    transition: all .3s ease-in-out;
}

.head-buttons button:hover {
    background-color: var(--color-foreground);
    color: var(--color-background);
    border: 2px solid var(--color-foreground);
}

.head-item-image {
    width: 340px;
}

.head-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.head-description {
    width: 100%;
    font-size: 16px;
    /* color: var(--color-gray); */
}

.head-email h1 {
    font-size: 20px;
    margin: 0;
}

.education{
    display: flex;
    flex-direction: row;
}

.education .education-label {
    /* color: var(--color-gray); */
}

.head-container strong {
    /* color: var(--color-gray); */
}

.label {
    color: var(--color-primary-dark2);
    font-weight: 400;

    font-family: 'ArchivoBlack', sans-serif;
}

.education-label {
    padding-left: 40px;
    width: 110px;
}

.education-minors {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.highlight {
    /* color: var(--color-primary-dark); */
    /* text-decoration: underline; */
    font-weight: 700;
}

.highlight:hover {
    color: var(--color-primary-dark);

}

.experience-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.experience-item-description {
    color: var(--color-foreground);
    width: calc(100% - 140px - 150px);
}
.experience-item-date {
    color: var(--color-gray);
    width: 150px;
    text-align: right;
}

.experience-item {
    background-color: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.experience-item-title {
    color: var(--color-foreground);
    width: 140px;
    font-weight: 600;
}


.skills-section {
    position: relative;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.skill-category {
    padding: 40px 20px;
    background-color: var(--color-foreground);
}

.skill-category h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.skill-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--color-primary-light);
    height: calc(100% - 80px);
}

.skill-list h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--color-black);
}

.skill-list p {
    margin-bottom: 5px;
    color: var(--color-black);
}

.skills-section img {
    position: absolute;
    top: -30px;
    right: -100px;
    width: 200px;
    height: 200px;
    rotate: 230deg;
    z-index: -1;
}

.more-about-section {
    width: 100%;
}

.interests-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.interest-item {
    padding: 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interest-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.interest-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

/* Adjust grid for different numbers of images */
.interest-item:nth-child(1) .interest-images {
    grid-template-columns: repeat(3, 1fr);
}

.interest-item:nth-child(2) .interest-images {
    grid-template-columns: repeat(2, 1fr);
}

.interest-item:nth-child(3) .interest-images {
    grid-template-columns: repeat(3, 1fr);
}

.interest-item:nth-child(4) .interest-images {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.interest-item:nth-child(4) .interest-images img {
    aspect-ratio: 3 / 2;
}

.interest-item:nth-child(5) .interest-images {
    grid-template-columns: repeat(2, 1fr);
}

.interest-item:nth-child(6) .interest-images {
    grid-template-columns: repeat(2, 1fr);
}

.interest-item:nth-child(7) .interest-images {
    grid-template-columns: repeat(2, 1fr);
}

.interest-item:nth-child(8) .interest-images {
    grid-template-columns: repeat(5, 1fr);
}

.interest-item h3 {
    font-size: 20px;
    font-family: 'ArchivoBlack', sans-serif;
    margin: 0;
    color: var(--color-black);
}

.interest-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    margin: 0;
}

@media (max-width: 768px) {
    .experience-item {
        padding: 20px;
    }

    .experience-item h2 {
        font-size: 24px;
    }

    .interests-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .interest-item {
        padding: 0;
    }

    .interest-images {
        gap: 12px;
        margin-top: 12px;
    }

    .interest-item:nth-child(4) .interest-images {
        max-width: 100%;
    }

    .interest-item:nth-child(8) .interest-images {
        grid-template-columns: repeat(3, 1fr);
    }
}