/* Essential styles for music page only */
:root {
    /* Light mode colors */
    --bg-primary: rgb(241, 241, 241);
    --bg-secondary: white;
    --bg-tertiary: rgba(0, 0, 0, 0.8);
    --text-primary: black;
    --text-secondary: #666;
    --text-inverse: white;
    --accent-color: burlywood;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: rgba(0, 0, 0, 0.95);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-inverse: #ffffff;
    --accent-color: burlywood;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 12%;
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.logo {
    font-size: 25px;
    color: var(--text-inverse);
    font-weight: 600;
    transition: 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
    text-shadow: 0 0 25px var(--accent-color), 0 0 50px var(--accent-color);
    transform: scale(1.1);
}

span {
    color: var(--accent-color);
}

.navbar a {
    font-size: 18px;
    color: var(--text-inverse);
    font-weight: 500;
    margin: 0 20px;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.contact {
    padding: 10px 28px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
}

.contact:hover {
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color);
    color: var(--text-inverse);
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
    width: 50px;
}

.gallery-container {
    padding: 120px 12% 60px;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background 0.3s ease;
}

.gallery-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.music-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.music-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.3s ease;
}

.music-card:hover {
    box-shadow: 0 8px 20px rgba(222, 184, 135, 0.2);
}

.music-info {
    padding: 20px 20px 10px;
}

.music-info h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-info h3 i {
    color: var(--accent-color);
}

.music-info p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.audio-player {
    padding: 0 20px 20px;
    margin-top: auto;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.track-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

.track-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.track-details i {
    color: var(--accent-color);
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .header {
        padding: 20px 4%;
    }

    .navbar a {
        margin: 0 15px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 3%;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 3%;
        background: rgba(0, 0, 0, 0.9);
        border-top: 1px solid rgba(222, 184, 135, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        margin: 15px 0;
        text-align: center;
        font-size: 18px;
    }

    .contact {
        display: none;
    }

    .gallery-container {
        padding: 100px 4% 40px;
    }

    .gallery-title {
        font-size: 32px;
        margin: 30px 0;
    }

    .music-intro {
        padding: 0 20px;
        font-size: 16px;
    }

    .music-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .music-card {
        margin: 0 10px;
    }
}

@media (max-width: 450px) {
    .gallery-title {
        font-size: 28px;
    }
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-color);
    color: var(--text-inverse);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--accent-color);
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        top: auto;
        bottom: 80px;
        right: 20px;
        transform: none;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .dark-mode-toggle:hover {
        transform: scale(1.1);
    }
}