body {
    background-color: #fdf2e6;
    color: #1d1d1d;
    font-family: "Stack Sans Notch", sans-serif;
    font-style: normal;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    font-size: 1.5rem;
    font-weight: 400;
}

.description {
    font-size: 1rem;
    font-weight: 100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.logo {
    font-size: 1rem;
    font-weight: 400;
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    background-color: #fdf2e6;
    border-radius: 25px;
    padding: 15px;
    width: 80%;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    min-width: 130px;
}

.main-nav ul li:hover ul {
    display: block;
    border-radius: 20px;
    padding: 0.5rem; /* Added padding for a tighter fit */
}

.main-nav ul li ul li:hover {
    background-color: #f5f5f5; 
    border-radius: 15px;
}

.main-nav ul li ul li {
    display: block;
    padding: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.main-nav a {
    font-size: .75rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.index-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.intro-overview {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5rem;
    padding: 2rem;
    border-radius: 15px;
}

.intro-overview.hero {
    display: flex;
    padding: 2rem;
    border-radius: 15px;
    align-items: center;
    flex-direction: row;
    justify-content: right;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.intro-overview-image-container {
    display: flex;
    align-items: center;
    justify-content: right;
    margin-left: 5rem;

}

.intro-overview-image-container img {
    border-radius: 500px;
    width: 300px;
    height: 300px;
    box-shadow: 5px 5px 5px #bebebe;
}


.intro-video-section {
    display: flex;
    border-radius: 20px;
    background-image: url(images/san-vicente-background.png);
    flex-grow: 1;
    padding: 5rem;
    margin-bottom: 15rem;
    background-position: center;
    background-size: cover;
    justify-content: center;
    max-width: 800px;
    max-height: 600px;
}

.header.intro {
    font-size: 2rem;
}

.description.intro {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 2rem;
}

.intro-video-container video {
    width: 100%;
    height: auto;
    max-width: 600px;
    max-height: 400px;
    border-radius: 15px;
}

.intro-technical-skills {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: right;
    margin: 5rem;
}

.technical-skills-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-bottom: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.technical-skill-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background-color: #EFEFEF;
    margin-left: 1.5rem;
    max-width: 100px;
    max-height: 90px;
}


.technical-skill-box img {
    width: 80px;
    height: 80px;
}

.technical-skill-box.autocad img {
    width: 100px;
    height: 60px;
}

.technical-skill-box.matlab img {
    width: 65px;
    height: 65px;
}

.technical-skill-box.onshape img {
    width: 100px;
    height: 25px;
}

.technical-skill-box.html img {
    width: 50px;
    height: 50px;
}

.technical-skill-box.c img {
    width: 50px;
    height: 50px;
}

.intro-projects-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 6rem;
}

.project-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 5px 5px 5px #bebebe;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.project-container:hover {
    transform: translateY(-10px);
}

.project-image-container {
    aspect-ratio: 4 / 3; 
    overflow: hidden; 
    background-color: #e2dfdf; 
    border-radius: 20px 20px 0px 0px;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overview {
    padding-left: 1.5rem;
}

.header.contact {
    margin-top: 2rem;
}

.contact-links {
    background-color: #fdf2e6;
    border-radius: 30px;
    padding: 10px;
    width: 65%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.description.contact {
        padding-left: 0;
        white-space: nowrap;
}

@media (max-width: 768px) {
        .intro-projects-overview {
                grid-template-columns: 1fr;
        }
}