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

/* Dark Theme & Font Settings */
body {
    font-family: 'Roboto', sans-serif; 
    background-color: #1a1a2e; 
    color: #f0f0f0; 
    line-height: 1.6;
    font-weight: 400; 
}

/* Layout Container */
header, main, footer {
    max-width: 900px; 
    margin: 0 auto; 
    padding: 1em;
}

/* Header Styling */
header {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between logo and nav/button */
    align-items: center; /* Vertically center items */
    padding-top: 1em; /* Reduced top padding */
    padding-bottom: 1em;
    border-bottom: 3px solid #FFD300; 
    margin-bottom: 2em;
    position: relative; /* Needed for absolute positioning of mobile nav */
}

/* Logo Image Styling */
#logo {
    display: block; 
    /* Adjusted max-width for desktop - can be different from mobile */
    max-width: 350px;  
    height: auto; 
    margin: 0; /* Remove auto margins from flex */
}

/* Hamburger Button - Hidden on Desktop */
.hamburger-button {
    display: none; /* Hide by default */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110; /* Ensure button is above mobile nav */
}

.hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD300; /* Gold lines */
    margin: 5px 0;
    transition: background-color 0.3s ease;
}

/* Desktop Navigation Styling */
#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Reset margin */
}

#main-nav ul li {
    display: inline-block; /* Horizontal nav for desktop */
    margin: 0 0.8em; 
}

#main-nav ul li:last-child {
    margin-right: 0; /* Remove margin from last item */
}

#main-nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold; 
    padding: 0.5em;
    transition: color 0.3s ease, background-color 0.3s ease; 
}

#main-nav ul li a:hover,
#main-nav ul li a:focus {
    color: #FFD300; 
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 4px;
}

/* --- Sections Styling --- */

section {
    padding: 2em 1em;
    margin-bottom: 2em;
    background-color: rgba(0, 0, 0, 0.1); 
/* Commented out base border - it won't show on desktop either unless uncommented
    border-left: 5px solid #A338E8; 
    border-radius: 5px;
 */
}

section h2 {
    color: #FFD300; 
    margin-bottom: 1em;
    border-bottom: 1px solid #A338E8; 
    padding-bottom: 0.3em;
    font-weight: 700; 
}

section h3 {
    color: #f0f0f0;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700; 
}

/* Link Styling */
a {
    color: #FFD300; 
    text-decoration: none; 
}
body a { /* Reset default link weight */
   font-weight: inherit;
}

#main-nav ul li a, /* Nav links */
.button, /* Buttons */
#contact ul li a, /* Social links */
section h2 a, /* Heading links (if any) */
section h3 a { /* Sub-heading links (if any) */
   font-weight: 700; /* Make specific important links bold */
}


a:hover, a:focus {
    text-decoration: underline; 
    color: #fff; 
}

/* Button Styling */
.button {
    display: inline-block;
    background-color: #FFD300; 
    color: #1a1a2e; 
    padding: 0.8em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700; 
    margin: 0.5em 0.5em 0.5em 0;
    border: 2px solid #FFD300;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover, .button:focus {
    background-color: #A338E8; 
    border-color: #A338E8;
    color: #f0f0f0; 
    text-decoration: none; 
}

/* List Styling */
section ul {
    list-style: none; 
    padding-left: 0; 
}

section ul li {
    margin-bottom: 0.5em;
    padding-left: 1.2em; 
    position: relative;
}

section ul li::before {
    content: '★'; 
    color: #A338E8; 
    position: absolute;
    left: 0;
    top: 0; 
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; 
    margin: 1.5em auto; 
    border: 3px solid #A338E8; 
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; 
}


/* Placeholder Styling (Kept in case you use it elsewhere) */
.placeholder-image {
    border: 2px dashed #A338E8; 
    padding: 3em 1em;
    text-align: center;
    margin: 1em 0;
    background-color: rgba(255, 255, 255, 0.05);
    color: #aaa;
    min-height: 150px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Default Photo Gallery Styling */
.photo-gallery {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 1em; 
    margin-top: 1em;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #A338E8; 
    color: #aaa; 
    font-size: 0.9em;
}

/* Base image styling within sections */
section img {
    max-width: 100%; 
    height: auto;    
    display: block;  
    margin: 1.5em auto; 
}

/* --- Mobile / Responsive Styles --- */
/* Using 768px as breakpoint */
@media (max-width: 768px) { 
    #logo {
        max-width: 90%; /* Your preferred mobile logo width */
    }

    /* Show Hamburger Button */
    .hamburger-button {
        display: block; 
    }

    /* Mobile Navigation Menu - Hidden by default */
    #main-nav {
        position: absolute; 
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: #1a1a2e; /* Match body background */
        display: none; /* Hide nav content initially */
        padding: 0; /* Remove padding */
        z-index: 100; /* Ensure nav is above main content */
        border-top: 2px solid #FFD300; /* Add separator */
    }

    /* Mobile Navigation Menu - Styling when open */
    #main-nav.nav-open {
        display: block; /* Show the nav when class is added */
    }

    #main-nav ul {
        padding: 0; /* Reset padding */
    }

    #main-nav ul li {
        display: block; /* Stack links vertically */
        margin: 0; /* Reset margins */
        text-align: center;
        border-bottom: 1px solid #A338E8; /* Separator lines */
    }
     #main-nav ul li:last-child {
        border-bottom: none; /* No border on last item */
    }

    #main-nav ul li a {
        display: block; /* Make link fill the li */
        padding: 1em; /* Add padding for touch targets */
        font-weight: normal; /* Use normal weight for mobile links */
    }

    #main-nav ul li a:hover,
    #main-nav ul li a:focus {
        background-color: #A338E8; /* Purple background on hover */
        color: #f0f0f0;
    }

    /* Section styling for mobile */
    section {
        padding: 1.5em 0.8em;
        border-left: none; /* Remove the left border */
    }
    
    /* Image styling within sections on mobile */
    section img {
        max-width: 90%; /* Adjust percentage as needed */
    }
    
    /* Photo gallery styling for mobile */
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    }
    
    /* The duplicate section {} and .photo-gallery {} rules that were here have been removed */

} /* End of @media query */