/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#main-container {
    position: relative;
}

#background-image {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    
}

#content-container {
    position: absolute;
    /* center the content container */
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#background-image-img {
    object-fit: fill;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: url('./images/smoove_tree_1.webp');
    background-size: 100vh 100vh;
    background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed;
     */
    /* background: url('./images/smoove_tree_1.png') center/cover fixed; */
    /* background-image: image-set(
        url('./images/smoove_tree_1.webp') type('image/webp'),
        url('./images/smoove_tree_1.png') type('image/png')
    ); */
    
}

/* Color Palette - Reggae Inspired */
:root {
    --primary-green: #2d5a27;
    --secondary-gold: #f1c40f;
    --accent-red: #e74c3c;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --section-bg: #f8f9fa;
}

/* Navigation Styles */
.nav-top, .nav-bottom {
    background: rgba(45, 90, 39, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.nav-top {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--secondary-gold);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.2rem;
}

.logo .subtitle {
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin: 0;
}

.logo .subtitle .red {
    color: var(--accent-red);
}

.logo .subtitle .gold {
    color: var(--secondary-gold);
}

.logo .subtitle .green {
    color: #90EE90;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}



/* Section Styles */
.section {
    padding: 4rem 0;
    margin-top: 80px;
}

.section:first-of-type {
    margin-top: 120px; /* Increased for mobile nav height */
}

.section:nth-child(even) {
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #90EE90;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Video Section */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

/* Video Playlist Styles */
.video-playlist {
    max-width: 800px;
    margin: 0 auto;
    padding-top: -0px;
}

.video-item {
    margin-bottom: 3rem;
}

.video-item:last-child {
    margin-bottom: 0;
}

.video-item h4 {
    color: #90EE90;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Audio Section */
.audio-players {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.audio-player {
    /* background: transparent; */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.audio-player h4 {
    color: var(--secondary-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.audio-player audio {
    width: 100%;
    margin-top: 1rem;
}

/* Set List Section */
.setlist-single {
    max-width: 600px;
    margin: 0 auto;
}

.song-category {
    background: transparent;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.song-category h4 {
    color: var(--secondary-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--secondary-gold);
    padding-bottom: 0.5rem;
}

.song-list {
    list-style: none;
}

.song-list li {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: background 0.3s ease;
}

.song-list li:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 1rem;
}

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

.song-title {
    color: white;
    font-weight: 500;
}

.song-artist {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h4 {
    color: var(--secondary-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.contact-form {
    background: transparent;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-green), #1e3a1a);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

/* Bottom Navigation */
.nav-bottom {
    margin-top: 0;
}

.nav-bottom .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.social-links p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Mobile device specific background fix */
@media only screen and (max-width: 768px) and (hover: none) and (pointer: coarse) {
    /* Use a fixed pseudo-element for iOS Safari so background stays fixed */
    /* body {
        background: none;
        background-color: #000;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                    url('./images/smoove_tree_1.png') center top / auto 100vh no-repeat;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    /* Prefer dynamic viewport units when supported */
    /* @supports (height: 100dvh) {
        body::before {
            background-size: auto 100dvh;
        }
    }  */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* Center the logo and subtitle on mobile */
    .logo {
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    /* Increase first section margin for mobile nav */
    .section:first-of-type {
        margin-top: 150px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section h3 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .video-container {
        margin: 0 1rem;
    }
    
    .audio-players {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-bottom .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* Further increase margin for very small screens */
    .section:first-of-type {
        margin-top: 120px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}
