* {
    box-sizing: border-box;
}

/* Slow pulsing outer glow animation */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(187, 138, 87, 0.4),
            0 0 20px rgba(187, 138, 87, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(187, 138, 87, 0.8),
            0 0 40px rgba(187, 138, 87, 0.4),
            0 0 60px rgba(187, 138, 87, 0.2);
    }
}

/* Override browser default blue focus styles with golden theme */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #bb8a57;
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(187, 138, 87, 0.6);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Ensure all interactive elements use golden focus */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #bb8a57;
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(187, 138, 87, 0.6);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Pulsing edge glow animation */
@keyframes edgePulse {

    0%,
    100% {
        box-shadow: inset 0 0 60px rgba(187, 138, 87, 0.3),
            inset 0 0 120px rgba(187, 138, 87, 0.15);
    }

    50% {
        box-shadow: inset 0 0 100px rgba(187, 138, 87, 0.5),
            inset 0 0 200px rgba(187, 138, 87, 0.25);
    }
}

/* General Body & Background */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #000;
    /* Fallback for when image is loading */
    word-wrap: break-word;
}

/* Pulsing edge glow overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    animation: edgePulse 4s ease-in-out infinite;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    animation: backgroundZoomPan 45s infinite ease-in-out;
    z-index: -2;
    /* Deepest layer */
    opacity: 0.7;
    /* Soften the background image a bit */
}

@keyframes backgroundZoomPan {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    25% {
        transform: scale(1.2) translate(-5%, 5%);
    }

    50% {
        transform: scale(1.1) translate(5%, -5%);
    }

    75% {
        transform: scale(1.2) translate(5%, 5%);
    }

    100% {
        transform: scale(1.1) translate(0, 0);
    }
}

@keyframes glow {

    0%,
    100% {
        color: rgba(255, 255, 255, 0.7);
        /* Dimmed white */
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        color: #e0b080;
        /* Golden/bronze glow */
        text-shadow: 0 0 15px #e0b080, 0 0 25px #e0b080, 0 0 35px #e0b080;
    }
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Slightly more transparent */
    backdrop-filter: blur(15px);
    /* Increased blur for a more frosted glass effect */
    -webkit-backdrop-filter: blur(15px);
    /* For Safari */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
}

.artist-name {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    font-weight: bold;
    animation: glow 5s ease-in-out infinite;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-nav li {
    margin-left: 1.5rem;
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid transparent;
    /* Transparent border for glowing effect */
    position: relative;
    overflow: hidden;
}

.top-nav a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    /* Slightly lighter transparent background on hover */
    color: #ffffff;
    /* Keep text white for better contrast with glow */
    border-color: rgba(224, 176, 128, 0.7);
    /* Soft glowing border color */
    box-shadow: 0 0 10px rgba(224, 176, 128, 0.7), inset 0 0 5px rgba(224, 176, 128, 0.5);
    /* Refined glowing effect */
}

/* YouTube link red glow on hover */
.top-nav a[href*="youtube"]:hover,
.top-nav a[href*="youtube"]:active {
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 30px rgba(255, 0, 0, 0.4), inset 0 0 5px rgba(255, 0, 0, 0.3);
    background-color: rgba(255, 0, 0, 0.15);
}

/* Content Sections */
.content-wrapper {
    position: relative;
    z-index: 1;
}

.main-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
    border-bottom: 1px solid #222;
}

/* Give the first section extra padding at the top to clear the nav bar */
#home {
    padding-top: 10rem;
}

.main-section h2 {
    font-size: 1.5rem;
    /* Match artist-name size */
    font-weight: bold;
    /* Match artist-name weight */
    letter-spacing: 0.2rem;
    /* Match artist-name spacing */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    /* Add this for consistency */
}

.main-section h3 {
    font-size: 3rem;
    /* Slightly larger */
    font-weight: 900;
    /* Extra bold */
    margin-bottom: 2.5rem;
    /* More space below */
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    /* More prominent letter spacing */
    color: #f0f0f0;
    /* Ensure good contrast */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for impact */
}

.content-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem 5%;
    /* Use percentage for horizontal padding */
    border-radius: 8px;
    width: 100%;
    /* Make it full width of its parent */
    max-width: 1200px;
    /* But keep content readable inside */
    margin: 0 auto;
    /* Center the content-box within the main-section */
    text-align: left;
}

.content-box p {
    line-height: 1.7;
    font-size: 1.1rem;
}

.content-box ul {
    list-style-position: inside;
    padding-left: 0;
}

/* About Page Photo */
.about-photo {
    float: left;
    width: 250px;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #888;
    position: relative;
    z-index: 5;
}

/* Home Page Image & Caption */
.home-image-figure {
    margin: 6rem 0 2rem 0;
    /* Top, Right, Bottom, Left */
}

.home-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.home-image-caption {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Spacer Image */
.spacer-image {
    display: block;
    /* Make it take up its own line */
    width: 100%;
    /* Take full width if transparent */
    height: auto;
    /* Maintain aspect ratio if it has content */
    margin-bottom: 1rem;
    /* Add a little space below the spacer */
}

/* About Page Content Images */
.about-content-image {
    display: block;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Links within content boxes */
.content-box a {
    color: #d4a772;
    transition: color 0.3s ease;
}

.content-box a:hover {
    color: #e0b080;
    /* A slightly lighter shade for hover effect */
}

/* Custom Audio Player */
.custom-audio-player {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 1rem;
}

.song-title {
    margin: 0 0 1rem 0;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

audio {
    width: 100%;
    outline: none;
}

/* Chrome/Safari/Edge specific styles for audio player */
audio::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    background-color: #d4a772;
    border-radius: 50%;
}

audio::-webkit-media-controls-timeline {
    background-color: #555;
    border-radius: 4px;
}

/* Firefox specific styles for audio player */
/* Note: Firefox styling is more limited */
audio {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(320deg);
}

/* Song List */
.song-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.song-list h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.song-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
    text-align: center;
}

.song-list li:last-child {
    border-bottom: none;
}

/* --- News Page Image Gallery --- */
.gallery-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.image-gallery {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.wornstar-post {
    flex: 1;
}

.image-placeholder {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    /* Taller vertical orientation */
}

.image-placeholder:hover {
    border-color: rgba(224, 176, 128, 0.7);
    box-shadow: 0 0 15px rgba(224, 176, 128, 0.7), inset 0 0 5px rgba(224, 176, 128, 0.5);
}

.image-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the placeholder without distortion */
    transition: transform 0.3s ease;
}

.image-placeholder:hover .gallery-image {
    transform: scale(1.1);
}

/* --- Image Zoom Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animation for modal */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 2rem;
    max-width: 600px;
    /* Make the form larger */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    /* Add some internal padding */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #f0f0f0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    /* Slightly more opaque for better contrast */
    border: 1px solid #555;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d4a772;
    box-shadow: 0 0 10px rgba(212, 167, 114, 0.5);
}

.btn-submit {
    /* Replicate .top-nav a styles */
    display: block;
    /* So width: 100% works */
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    /* Already transparent in top-nav a */
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    /* Match top-nav a padding */
    border-radius: 5px;
    border: 1px solid transparent;
    /* Transparent border for glowing effect */
    position: relative;
    overflow: hidden;
    /* For inner glow effect on hover if added */

    /* Specific button styling */
    background-color: rgba(0, 0, 0, 0.3);
    /* Match top-nav background */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: rgba(255, 255, 255, 0.12);
    /* Match top-nav a hover */
    color: #ffffff;
    /* Keep text white */
    border-color: rgba(224, 176, 128, 0.7);
    /* Soft glowing border color */
    box-shadow: 0 0 10px rgba(224, 176, 128, 0.7), inset 0 0 5px rgba(224, 176, 128, 0.5);
    /* Refined glowing effect */
}

/* --- Side-by-side Images --- */
.side-by-side-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.side-by-side-images a {
    display: block;
    flex: 1 1 200px;
    /* Allow items to grow/shrink and have a base width */
    max-width: 250px;
    /* Limit individual image size */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    /* Apply vertical aspect ratio */
    overflow: hidden;
    /* Hide overflow from image scale */
}

.side-by-side-images a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(224, 176, 128, 0.7);
}

.side-by-side-images img {
    width: 100%;
    height: 100%;
    /* Fill the aspect-ratio container */
    object-fit: cover;
    border-radius: 8px;
}


/* --- Mobile Responsive Styles --- */

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #d4a772;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background-color: #e0b080;
    box-shadow: 0 0 8px rgba(224, 176, 128, 0.7);
}

@media (max-width: 992px) {
    .gallery-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }

    .side-by-side-images {
        flex-direction: column;
        gap: 1rem;
    }

    .side-by-side-images a {
        max-width: 180px;
    }

    /* Adjust top navigation for smaller screens */
    .top-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .artist-name {
        font-size: 1rem;
        letter-spacing: 0.05rem;
    }

    .top-nav ul {
        display: none;
        /* Hidden by default, shown with JS */
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-nav ul.show {
        display: flex;
    }

    .top-nav li {
        margin-left: 0;
        margin-bottom: 0;
    }

    /* Better touch targets - minimum 44px */
    .top-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Adjust main section padding and font sizes */
    .main-section {
        padding: 5rem 1rem;
    }

    #home {
        padding-top: 8rem;
    }

    .main-section h2 {
        font-size: 1.2rem;
    }

    .main-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .content-box {
        padding: 1.5rem 4%;
    }

    .content-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Audio players on mobile */
    .custom-audio-player {
        padding: 1rem;
    }

    .song-title {
        font-size: 1rem;
    }

    /* Contact form on mobile */
    .contact-form {
        padding: 1rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        padding: 12px;
    }

    .btn-submit {
        padding: 14px 16px;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Adjust floated image on About page for mobile */
    .about-photo {
        float: none;
        display: block;
        width: 80%;
        max-width: 200px;
        margin: 0 auto 1.5rem auto;
    }

    /* Image gallery on mobile */
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .image-placeholder {
        aspect-ratio: 1 / 1;
    }

    /* Modal on mobile */
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .artist-name {
        font-size: 0.9rem;
        letter-spacing: 0.03rem;
    }

    .main-section h3 {
        font-size: 1.5rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .side-by-side-images a {
        max-width: 150px;
    }

    .wornstar-post {
        padding: 0 0.5rem;
    }

    .wornstar-post p {
        font-size: 0.95rem;
    }
}

/* Animated hamburger menu transformation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile menu animation */
.top-nav ul {
    transition: all 0.3s ease;
}

.top-nav ul.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure images scale properly on all devices */
img {
    max-width: 100%;
    height: auto;
}

/* Better touch interaction for mobile */
@media (hover: none) and (pointer: coarse) {
    .top-nav a:active {
        background-color: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }

    .image-placeholder:active .gallery-image {
        transform: scale(1.05);
    }

    .side-by-side-images a:active {
        transform: scale(0.98);
    }
}

/* Prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
}

/* Smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
}