/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 16px;
    font-family: "Futura", Arial, sans-serif;
    background-color: #e4dcc2;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #37491b 0%, #4a5c2a 100%);
    color: #eeede3;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

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

nav a {
    color: #eeede3;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #df0070;
    border-bottom-color: #df0070;
}

/* Main Content Section */
section {
    display: flex;
    gap: 20px;
    flex: 1;
}

/* About Section */
main#about {
    flex: 2;
    padding: 2rem;
    background-color: #f9f7f3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

main#about h2 {
    color: #37491b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

main#about p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Bio Image */
.bio-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 1.5rem;
    border: 4px solid #37491b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Extras Section */
.extras {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
}

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

/* Sidebar */
aside {
    flex: 1;
    padding: 2rem;
    background-color: #f9f7f3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

aside h3 {
    color: #37491b;
    margin-top: 0;
    font-size: 1.3rem;
}

/* Fun Facts */
.fun-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fact {
    background-color: #f0ebe0;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #37491b;
    min-height: 160px;  /* Add this line */
}

.fact h4 {
    color: #37491b;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.fact p {
    color: #555;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Exercise Links */
aside ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.8rem;
}

aside a {
    display: inline-block;
    color: #37491b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

aside a:hover {
    background-color: #e8e0d0;
    color: #df0070;
    transform: translateX(4px);
}

aside a:visited {
    color: #6a4c93;
}

/* Projects Gallery Section */
main#projects {
    padding: 2rem;
    background-color: #f9f7f3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

main#projects h2 {
    color: #37491b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.gallery-item {
    flex: 0 1 calc(25% - 1.5rem);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item h4 {
    color: #37491b;
    margin: 1rem 1rem 0.5rem 1rem;
    font-size: 1.1rem;
}

.gallery-item p {
    color: #555;
    margin: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #37491b 0%, #4a5c2a 100%);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #df0070;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 12px;
        gap: 15px;
    }

    .container {
        gap: 15px;
    }

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

    header h1 {
        font-size: 1.5rem;
    }

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

    nav a {
        display: block;
        padding: 0.75rem;
    }

    section {
        flex-direction: column;
        gap: 15px;
    }

    main#about {
        flex: 1;
        padding: 1.5rem;
    }

    .bio-image {
        width: 150px;
        height: 150px;
    }

    .extras {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .extras iframe {
        width: 100% !important;
        max-width: 400px;
    }

    aside {
        flex: 1;
        padding: 1.5rem;
    }

    main#projects {
        padding: 1.5rem;
    }

    main#projects h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        gap: 1.5rem;
    }

    .gallery-item {
        flex: 0 1 calc(50% - 0.75rem);
    }

    .gallery-item img {
        height: 150px;
    }
}