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

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header"
        "main aside"
        "footer footer";
    gap: 2rem;
    min-height: 100vh;
}


header {
    grid-area: header;
    padding: 2rem 0;
    border-bottom: 2px solid #333;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s;
}

nav a:hover {
    border: 1px solid #fff;
    border-radius: 4px;
}

/* Main Content Area */
main {
    grid-area: main;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    margin-bottom: 2rem;
    display: block;
}

/* CSS FLEXBOX - Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    border: 2px solid #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-item:hover {
    background-color: #111;
    transform: translateX(10px);
}

.project-item a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1.5rem;
}

.project-item p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Iframes for Extra Credit */
iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: 2px solid #333;
    border-radius: 8px;
}

#video iframe {
    max-width: 560px;
    height: 315px;
}


aside {
    grid-area: aside;
    padding: 1.5rem;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

aside h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

aside ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

aside a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s;
}

aside a:hover {
    background-color: #222;
    padding-left: 1rem;
}

/* CSS FLEXBOX - Footer */
footer {
    grid-area: footer;
    padding: 2rem 0;
    border-top: 2px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}


@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "aside"
            "footer";
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    aside {
        position: static;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    iframe {
        height: 300px;
    }
    
    #video iframe {
        height: 200px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    nav a {
        font-size: 1rem;
    }
}