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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Container - CSS Grid Layout */
.container {
    display: grid;
    grid-template-areas: 
        "header header"
        "content content"
        "footer footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #2c3e50;
    color: #ecf0f1;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
}

/* Navigation - Flexbox */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

/* Content Wrapper - Grid for Main and Aside */
.content-wrapper {
    grid-area: content;
    display: grid;
    grid-template-areas: "main sidebar";
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

main {
    grid-area: main;
}

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

/* Bio Section */
.bio-section {
    margin-bottom: 2rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin: 0 2rem 1rem 0;
    border: 5px solid #3498db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bio-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.bio-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Map and Video Sections */
.map-section,
.video-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.map-section h3,
.video-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-section iframe,
.video-section iframe {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Aside/Sidebar */
aside h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

aside h3:not(:first-child) {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #bdc3c7;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside li {
    margin-bottom: 0.8rem;
}

/* Projects List Styling */
.projects-list {
    margin-bottom: 1.5rem;
}

.projects-list a:link {
    color: #27ae60;
    font-weight: 600;
    background-color: #d5f4e6;
}

.projects-list a:visited {
    color: #16a085;
}

.projects-list a:hover {
    color: #fff;
    background-color: #27ae60;
}

/* Link Styles - LVHA Order */
aside a:link {
    color: #2980b9;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

aside a:visited {
    color: #8e44ad;
}

aside a:hover {
    color: #fff;
    background-color: #3498db;
    transform: translateX(5px);
}

aside a:active {
    color: #fff;
    background-color: #2c3e50;
}

/* Footer - Flexbox */
footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #ecf0f1;
    font-weight: 500;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        grid-template-areas: 
            "header"
            "content"
            "footer";
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    header h1 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-wrapper {
        grid-template-areas: 
            "main"
            "sidebar";
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }

    .bio-section p {
        text-align: left;
    }

    aside {
        position: static;
        margin-top: 2rem;
    }

    .map-section,
    .video-section {
        padding: 1rem;
    }

    .video-section iframe {
        height: 200px;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}