/* Professional Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b6b;
}

/* Accessibility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header and Nav */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

ul {
    list-style: none;
    display: flex;
}

ul li {
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    padding: 120px 20px 50px;
    text-align: center;
    background: url('https://via.placeholder.com/1920x600?text=Music+Background') no-repeat center/cover; /* Add a real background image */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

/* Features */
.features {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Music Player */
.music-player-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.music-player-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.music-player {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.album-art img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.album-art img:hover {
    transform: scale(1.05);
}

.track-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.track-info p {
    font-weight: 300;
    opacity: 0.8;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    border-radius: 50%;
    padding: 0.5rem;
}

.controls button:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.controls button:focus {
    outline: 2px solid #ff6b6b;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 10px;
    margin: 2rem 0;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 300;
}

.volume-control {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#volume-slider {
    width: 150px;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 3rem 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

footer p {
    margin-bottom: 1rem;
}

footer ul {
    justify-content: center;
    margin-top: 1rem;
}

footer li {
    margin: 0 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    ul {
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .music-player {
        padding: 2rem;
    }

    .album-art img {
        width: 120px;
        height: 120px;
    }

    .controls {
        gap: 1rem;
    }

    .controls button {
        font-size: 1.5rem;
    }
}

/* Print Styles (for accessibility) */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .hero, .music-player {
        display: none;
    }
}