* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #1A1A1A;
    --text-color: #F3F4F6;
    --nav-bg: #0F172A;
    --accent: #2563EB;
    --hover: #60A5FA;
    --footer-bg: #111827;
    --footer-text: #9CA3AF;
}

body {
    color: var(--text-color);
    text-align: center;
    background-color: var(--bg-color);
}

i {
    color: var(--accent);
}

a{
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--nav-bg);
    position: sticky;
    z-index: 10;
}

#logo {
    width: 250px;
    padding: 20px;
}

.menu-toggle, .hide-menu {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    font-size: 18px;
    transition: 0.3s;
}

#home-link a, .nav-links a:hover {
    color: var(--hover);
    text-decoration: underline;
}

.site-container {
    display: grid;
    margin: 0 auto;
}

.hero-window, .about-window {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: 80%;
    margin: 0.2rem auto;
    padding-bottom: 0.5rem;
}

.hero-window{
    padding-bottom: 4rem;
}

.about-window{
    padding-bottom: 2rem;
}

/*.hero-window{
    align-items: center;
}

.about-window{
    align-items: flex-start;
}*/

#hero-photo, #about-photo {
    margin-top: 2rem;
}

#hero-photo img, #about-photo img {
    width: 70%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}

#hero-photo img {
    border-radius: 50%;
}

.hero p, .about p, #subject-title, #subject-role, #resume-link{
    text-align: left;
}

#subject-title, #subject-role, #resume-link{
    padding-bottom: 10px;
}

#subject-role, #resume-link{
    padding-top: 10px;
}

.hero p, .about p {
    font-size: 1rem;
    line-height: 2;
}

.education > li {
    font-size: 1rem;
    line-height: 1.5;
    list-style-type: disc;
    text-align: left;
    margin-left: 2rem;
}

#resume-link {
    display: inline-block;
    background: var(--accent);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    transition: 0.3s ease;
}

#resume-link:hover {
    background: var(--hover);
}

.featured-projects-window{
    margin-top: 20px;
}

.featured-header {
    padding-top: 50px;
    padding-bottom: 25px;
    font-size: 2rem;
}

#projects-page-link{
    text-decoration: underline;
}

.featured-projects-row{
    display: grid; 
    grid-gap: 50px;
    justify-content: center;  /*Centers the information inside the columns*/
    grid-template-columns: repeat(3, calc(25% - 70px)); 
    margin-top: 30px;
}

.featured-projects-row .project-info {
    transition: transform 0.3s ease-in-out;
}

.featured-projects-row .project-info:hover {
    transform: scale(1.05);
}

.project-info img{
    max-width: 300px;
    width: 100%;
    padding-bottom: 10px;
    object-fit: cover;
}

.project-info a:hover{
    color: var(--hover);
    transition: 0.3s;
}

#project-name{
    padding-top: 10px;
    padding-bottom: 10px;
}

footer {
    background: var(--footer-bg);
    margin-top: auto;
}

.site-footer {
    width: 100%;
    height: 100%;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px;
    margin-top: 8rem;
}

.site-index {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
    margin-bottom: 15px;
}

.site-index ul {
    text-align: center;
}

.site-index a {
    color: var(--text-color);
    transition: 0.3s;
}

.site-index a:hover {
    color: var(--hover);
}

#copyright {
    color: var(--text-color);
    text-align: center;
}

@media screen and (max-width: 960px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 0.625rem;
        z-index: 9999;
    }
    
    .nav-links.active {
        display: flex;
        text-align: center;
    }

    .nav-links li {
        padding: 0.625rem 0;
        margin-bottom: 10px;
    }

    .nav-link{
        padding-left: 20px;
    }

    /*.about-window{
        align-items: flex-start;
    }*/
    
    #logo {
        margin-left: 0.5rem;
    }
    
    .menu-toggle, .hide-menu {
        display: block;
    }
    
    .hide-menu {
        position: absolute;
        top: 20px;
        right: 30px;
    }    

}

@media screen and (max-width: 768px) { /*Landscape Mode*/
    .featured-header, #projects-page-link{
        padding-left: 10px;
    }

    .hero-window{
        padding-top: 4rem;
    }

    .about-window{
        align-items: flex-start;
    }

    .hero, .about {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    /*.about{
        padding-top: 2rem;
    }*/

    .featured-projects-row .project-info {
        transition: none !important; /*Disables animation*/
    }

    .featured-projects-row{
        grid-template-columns: repeat(3, calc(30% - 50px)); /*Calculation adjusted to maintain gap of columns when shown in devices in landscape mode*/
    }

    .project-info img{
        width: 200px; /*Ensures that the item pictures don't get cut in multiple screens while maintaing column gap in landscape mode and both header and footer remain filled*/
    }

    .project-info p {
        padding-left: 0.75em;
    }
}

@media screen and (max-width: 704px) { /*Portrait Mode*/
    .hero-window, .about-window {
        display: block;
        text-align: center;
    }

    .featured-header {
        font-size: 1.5rem;
        padding-top: 30px;
    }

    .hero p, #subject-title, #subject-role, #resume-link{
        text-align: center;  /*Centers the resume link*/
    }
    
    .featured-projects-row{
        display: flex;            
        flex-direction: column;  /*Shows featured items in a column*/
    }

    .project-info img{
        margin-left: 5px;
    }

    .site-index {
        flex-direction: column;
        align-items: center;
    }

    .site-index ul {
        text-align: center;
    }
}