/* Base Styles - Mobile First */
body {
    font-family: "Trebuchet MS", sans-serif;
    margin: 0;
    background-color: #333; /* Dark grey background */
    color: #e0f898; /* Light lime green text */
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent padding on sides */
}

/* Header */
header {
    background-color: #222; /* Darker grey header */
    color: #e0f898;
    padding: 1em 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Flex distribution for H1 and menu icon/desktop nav */
    align-items: center;
    padding: 0 20px; /* Inner padding for header items */
}

header h1 {
    margin: 0;
    font-size: 1.8em; /* Adjusted for mobile view */
    font-weight: bold; /* Make it bold as the main title */
    color: #e0f898; /* Ensure it's lime green */
    flex-grow: 1; /* Allows it to take available space on mobile */
    text-align: left; /* Aligned left for mobile */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis */
}

/* Mobile Hamburger Icon */
.menu-icon {
    width: 30px;
    height: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101; /* Above the header and overlay */
    position: relative;
    margin-left: 15px; /* Space from H1 */
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #e0f898;
    transition: 0.4s;
}

.menu-icon.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 5px);
}

.menu-icon.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -5px);
}

/* Desktop Navigation (initially hidden on mobile) */
#desktop-nav {
    display: none; /* Hidden by default on mobile */
    margin-left: 20px; /* Space from H1 on desktop */
}


/* Mobile Overlay Navigation */
.overlay {
    height: 100%;
    width: 0; /* Initially closed */
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: rgba(51, 51, 51, 0.95); /* Dark grey with more transparency */
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay.open {
    width: 100%; /* Opens to full width */
}

.overlay-content {
    width: 100%;
    text-align: center;
}

.overlay a {
    padding: 15px;
    text-decoration: none;
    font-size: 28px;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
    font-weight: bold;
}

.overlay a:hover, .overlay a:focus {
    color: #e0f898;
    background-color: rgba(0,0,0,0.2);
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    color: #e0f898;
    cursor: pointer;
}

/* Main Content Area */
.main-content-wrapper {
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 40px;
}

.content-section {
    padding: 40px 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(224, 248, 152, 0.3);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

#profile img {
    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    width: 100%;
    height: auto;
    margin: 1em;
    max-width: 250px;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2em;
    color: #e0f898;
    border-bottom: 2px solid #e0f898;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    text-align: left;
    width: 100%;
}

.content-section p, .content-section ul {
    font-size: 1em;
    margin-bottom: 1em;
    max-width: 700px;
}

.content-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.content-section a {
    color: #e0f898;
    text-decoration: underline;
}

.content-section a:hover {
    color: #fff;
}

/* Example Media Content Styling */
.media-placeholder { /* This class is now used for both videos and audio */
    background-color: #444;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    width: 100%; /* Fill available width */
    max-width: 600px; /* Max width for media containers */
    box-sizing: border-box;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-content: center;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* Removed specific iframe styling from here as native audio players are used */
iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 5px;
}

/* Styling for native audio player */
audio {
    width: 100%; /* Ensure audio player takes full width of its container */
    margin-top: 10px; /* Space between text and player */
    background-color: #555; /* Slightly lighter background for the player controls */
    border-radius: 5px;
}


/* Footer */
footer {
    background-color: #222;
    color: #e0f898;
    text-align: center;
    padding: 1em 0;
    width: 100%;
}

/* Media Queries for Desktop View */
@media screen and (min-width: 768px) {
    .header-content {
        justify-content: space-between; /* Distribute H1 and desktop nav */
    }

    header h1 {
        font-size: 2.5em; /* Larger on desktop */
        text-align: left; /* Keep it left-aligned */
        flex-grow: 0; /* Let desktop nav take space */
        margin-right: auto; /* Push desktop nav to the right */
    }

    .menu-icon {
        display: none; /* Hide hamburger icon on desktop */
    }

    #desktop-nav {
        display: block; /* Show desktop navigation */
        margin-left: 20px; /* Space from H1 */
    }

    #desktop-nav a {
        color: #e0f898;
        text-decoration: none;
        padding: 10px 15px;
        display: inline-block;
        transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
        font-size: 1.1em;
        font-weight: bold;
    }

    #desktop-nav a:hover {
        color: #fff;
        background-color: rgba(224, 248, 152, 0.1);
        border-radius: 5px;
    }

    .overlay {
        display: none; /* Hide the mobile overlay on desktop */
    }

    /* Adjust main content padding for a slightly larger header */
    .main-content-wrapper {
        padding-top: 100px; /* More space for header */
    }
}

/* Optional: Even larger screens */
@media screen and (min-width: 1024px) {
    header h1 {
        font-size: 2.8em;
    }
    #desktop-nav a {
        font-size: 1.2em;
        padding: 10px 20px;
    }
}