/* Base Styles */
:root {

    font-size: 17px;

    --text-color: #1f2937;
    /* dark gray */
    --link-color: #f59e0b;
    /* blue */
    --background-color: #ffffff;
    /* light gray */

    --section-1: #ffffff;
    --section-2: #f3f4f6;

    --card-bg: #ffffff;
    --accent: #f59e0b;

    p {
        font-family: 'Poppins', sans-serif
    }


}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;

}

@font-face {
    font-family: 'Roboto Mono';
    src: url('../fonts/RobotoMono-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('../fonts/RobotoMono-Regular.ttf') format('truetype');
    font-weight: bold;
}

body {
    font-family: 'Roboto Mono', monospace;
}

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

/* Navigation Style / Header Style
includes the left and right side for the navigation */

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

nav .leftnav a {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}

nav .rightnav a {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.625rem;
}

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

/* General Section Styles */

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

section:nth-of-type(odd) {
    background-color: var(--section-1); /* slightly darker for odd sections */
}

section:nth-of-type(even) {
    background-color: var(--section-2); /* slightly brighter for even sections */
}

/* Section Header 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: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Home Section */

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

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

#home-section .headshot {
    width: 350px;
    height: 350px;
    overflow: hidden;
    margin: 1rem auto;
    border-radius: 50%;
}

#home-section .headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#home-section .headshot img:hover {
    transform: scale(1.2);
}

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

#home-section .bio p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Social Links */
#home-section .social-links {
    font-size: 2rem;
}

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

#home-section .social-links a i {
    transition: transform 0.3s, color 0.3s ease;
}

#home-section .social-links i {
    color: #003566;
    font-weight: 500;
}

#home-section .social-links a:hover i {
    color: #f59e0b;
    transform: scale(1.3);
}


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

}

.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: 500;
}

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

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.project-box {
    display: block;
    width: 280px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;

}

.project-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #888;
}

.project-box,
.contact-wrapper {
    background-color: var(--card-bg);
    border: 1px solid #e5e7eb;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



/* Skills Section */

#skills-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
    justify-content: center;
    width: 100%;
}

.skills-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
    max-width: 450px;
}

.skills-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skills-divider {
    width: 2px;
    background-color: #e5e7eb;
    align-self: stretch;
    min-height: unset;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 400px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item i {
    font-size: 3rem;
    color: #494a4a;
    transition: transform 0.3s, color 0.3s ease;
}

.skill-item i:hover {
    color: #f59e0b;
    transform: scale(1.2);
}

.skill-item img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(25%); /*Makes devicon images match the color scheme*/
}

.skill-item img:hover {
    transform: scale(1.2);
}

.skill-item p {
    font-size: 0.85rem;
    color: #494a4a;
}

/* Resme Section */
#resume-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    text-align: center;
}


.resume-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.resume-btn {
    padding: 0.75rem 2.5rem;
    background-color: #003566;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resume-btn:hover {
    background-color: #f59e0b;
    color: #ffffff;
    transform: scale(1.05);
}


/* Contact Section */

#contact-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

#contact-form {
    width: 100%;
    max-width: 800px;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    background-color: #f9f9f9;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}


.contact-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 0;
}

.contact-email {
    font-size: 1rem;
    font-weight: 600;
    color: #494a4a;
    margin-bottom: 0.5rem;
}

.contact-left input {
    padding: 0.75rem 1rem;
    border: 2px solid #003566;
    border-radius: 50px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    background-color: transparent;
    color: #494a4a;
    outline: none;
}

.contact-right {
    flex: 1.3 1 0;
    display: flex;
    margin-top: 2.5rem;
}

.contact-right textarea {
    width: 100%;
    height: 190px;
    padding: 0.75rem 1rem;
    border: 2px solid #003566;
    border-radius: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    background-color: transparent;
    color: #494a4a;
    outline: none;
    resize: none;
}

.contact-left input:focus,
.contact-right textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.4);
}

.contact-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2.5rem;
    background-color: #003566;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
    background-color: #f59e0b;
    transform: scale(1.05);
}

.contact-btn:disabled {
    opacity: 0.85;
    cursor: default;
}



/* Mobile Tweaks */


@media (max-width: 768px) {

    nav {
        padding: 0 0.75rem;
        height: 4rem;
        flex-wrap: wrap;
    }

    nav .leftnav a,
    nav .rightnav a {
        font-size: 0.7rem;
    }

    nav .rightnav a {
        margin: 0 0.2rem;
    }

    section {
        padding: 5rem 1rem 3rem;
        min-height: auto;
        gap: 1rem;
    }

    #home-section {
        min-height: auto;
        padding: 6rem 1rem 3rem;
        gap: 1rem;
    }

    #home-section h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    #home-section .headshot {
        width: 20rem;
        height: 20rem;
        overflow: hidden;
        margin-top: 1rem;
        margin-bottom: 37px;
        border-radius: 50%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    #home-section .headshot img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    #home-section .headshot img:hover {
        transform: scale(1.2);
    }

    #home-section .bio {
        max-width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    #home-section .bio p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    #home-section .social-links {
        font-size: 1.5rem;
    }

    #home-section .social-links a {
        margin: 0 0.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .projects-grid,
    .skills-wrapper,
    .contact-wrapper,
    .resume-buttons {
        flex-direction: column;
        align-items: center;
    }

    .skills-divider {
        display: none;
    }

    .project-box {
        width: 100%;
        max-width: 350px;
        padding: 1.25rem;
        font-size: 1rem;
        transition: all 0.25s ease;
    }

   .project-box:active {
        transform: scale(0.97);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .project-box h4 {
        font-size: 1.2rem;
    }

    .project-box p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-wrapper {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-right {
        margin-top: 0;
        width: 100%;
    }

    .contact-right textarea,
    .contact-left input,
    .contact-btn,
    .resume-btn {
        width: 100%;
        font-size: 1rem;
    }
}
