/* Base Styles */
:root {
    --text-color: #1a1c20;
    --link-color: #ffffff;
    --background-color: #eeeff1;
    font-size: 25px; /* Set the base font size */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* Adjust this value based on the height of your nav bar */
}

@font-face {
    font-family: "Alex";
    src: url("fonts/alex-font.ttf");
}

body {
    font-family: 'Alex', sans-serif;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

nav {
    background-color: #bfd6c4;
    display: flex;
    justify-content: space-between;
    padding: 0 3.125rem;
    height: 5rem;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(191, 214, 196, 0.9);
    backdrop-filter: blur(5px);
}

nav .left a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    font-size: 1.375rem;
    margin: 0 0.625rem;
}

nav .right a:hover {
    color: var(--link-color);
    transition: color 0.3s ease-in-out;
}

/* General Section Styles */
section {
    padding: 8rem 2rem;
    min-height: 80vh; /* Reduce the default minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

section:nth-of-type(odd) {
    background-color: #f8f8f8; /* Light gray for odd sections */
}

section:nth-of-type(even) {
    background-color: #ffffff; /* White for even sections */
}

/* Section Heading Styles */
section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: #bfd6c4;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
#about-section {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

#about-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#about-section .headshot {
    margin-bottom: 2rem;
}

#about-section .headshot img {
    width: 20rem;
    margin-top: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .bio {
    margin-bottom: 2rem;
    padding: 0 2rem;
    max-width: 56.25rem;
}

#about-section .bio p {
    font-size: 1.25rem;
    font-weight: 300;
}

#about-section .social-links {
    font-size: 2.25rem;
}

#about-section .social-links a {
    padding: 0;
    margin: 0 0.75rem;
}

#about-section .social-links a:hover i {
    color: #a5d6b0;
    transform: scale(1.2);
    transition: transform 0.3s, color 0.3s;
}

#about-section .social-links i {
    color: #588061;
    font-weight: 500;
}

/* Experience Section */
#experience-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#experience-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#experience-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    /* text-decoration: underline; */
}

/* Removed centering styles for experience-scroll-container */
.experience-scroll-container {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1600px;
    overflow-x: auto; /* Horizontal scrolling enabled */
}

/* Experience Box */
.experience-box {
    flex: 0 0 16rem; /* Fixed width for the boxes */
    text-align: center;
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling */
}

.experience-box:hover {
    transform: scale(1.05); /* Grow the box slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Experience Box Image */
.experience-box img {
    width: 100%;
    height: 12rem; /* Set a fixed height to make the images consistent */
    object-fit: contain; /* Make the image cover the container while maintaining aspect ratio */
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.experience-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.experience-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.experience-box p {
    font-size: 1rem;
    font-weight: 300;
    color: #1a1c20;
}

/* Keep experience boxes in a horizontal layout on smaller screens */
@media (max-width: 768px) {
    .experience-scroll-container {
        flex-direction: row; /* Keep horizontal scrolling */
        align-items: center;
        overflow-x: auto; /* Ensure horizontal scrolling is still allowed */
    }

    .experience-box {
        flex: unset;
        width: 20rem; /* Keep the box width consistent */
    }
}

/* Certifications Section*/
#certifications-section{
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#certifications-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#certifications-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.certifications-subsection{
    width : 100%;
    margin-bottom: 4rem;
}

.certifications-scroll-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1600px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    margin: 0 auto;
}

.certification-box {
    flex: 0 0 16rem; /* Fixed width for the boxes */
    text-align: center;
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling */
}

.certification-box:hover {
    transform: scale(1.05); /* Grow the box slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.certification-box img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.certification-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.certification-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.certification-box p {
    font-size: 1rem;
    font-weight: 300;
    color: #1a1c20;
}



/* Projects Section */
#projects-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#projects-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.project-subsection {
    width: 100%;
    margin-bottom: 4rem; /* Add space between subsections */
}

.projects-scroll-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1600px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    margin: 0 auto;
}

.project-box {
    flex: 0 0 16rem; /* Fixed width for the boxes */
    text-align: center;
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling */
}

.project-box:hover {
    transform: scale(1.05); /* Grow the box slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-box img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.project-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-box p {
    font-size: 1rem;
    font-weight: 300;
    color: #1a1c20;
}

/* Skills Section */
#skills-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; /* Add gap between elements */
}

#skills-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#skills-section .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Add gap between icons */
}

#skills-section i {
    font-size: 3rem;
    color: #588061;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem 0; /* Add margin to ensure proper spacing */
}

#skills-section i:hover {
    transform: scale(1.2);
    color: #a5d6b0;
}

/* Leave a Message Section */
#leave-message-section {
    min-height: 50vh; /* Make it half the viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

#leave-message-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#leave-message-section p {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    line-height: 1.6;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #a5d6b0;
    outline: none;
}

#contact-form button {
    padding: 0.75rem 1.5rem;
    background-color: #588061;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #3d614f;
}

#form-status {
    margin-top: 1rem;
    font-size: 1rem;
    color: #333;
}


footer {
    background-color: #909090;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1rem;
        margin: 0 0.5rem;
    }

    #about-section .headshot img {
        width: 18rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem; /* Adjust width for smaller screens */
    }

    #skills-section i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1.1rem;
        margin: 0 0.375rem;
    }

    #about-section .headshot img {
        width: 16rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section i {
        font-size: 2rem;
    }

    #skills-section .skills-container {
        gap: 1.25rem;
     }
}

@media (max-width: 576px) {
    nav {
        padding: 0 1rem;
    }

    nav .left a {
        font-size: 1.1rem;
    }

    nav .right a {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }

    #about-section .social-links {
        font-size: 1.75rem;
    }

    #about-section h2 {
        font-size: 2.4rem;
    }

    #about-section .headshot img {
        width: 12rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section i {
        font-size: 1.5rem;
    }

    #skills-section .skills-container {
       gap: 1rem;
    }

    section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #projects-section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #leave-message-section {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
    }
}
