:root {
    /* Color Palette */
    --bg-dark: #0f0f11;
    --bg-card: #1a1a1f;
    --bg-player: rgba(20, 20, 24, 0.95);
    --bg-modal: rgba(15, 15, 17, 0.85);

    --text-main: #f5f5f5;
    --text-muted: #a0a0a5;
    
    --accent-primary: #e6192b; /* Vibrant Red */
    --accent-hover: #ff3344;
    --gold: #f1c40f; /* Optional gold for premium feel */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-player: 0 -10px 30px rgba(0,0,0,0.5);
    
    /* Layout */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 90px; /* Space for the fixed audio player */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 25, 43, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo h1 {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.cart-toggle {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15,15,17,0.3) 0%, rgba(15,15,17,1) 100%), 
                url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -1;
    opacity: 0.6;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content .tagline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-content .accent {
    color: var(--accent-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Beat Store Section */
.beat-store {
    background-color: var(--bg-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-header h2 {
    font-size: 2.5rem;
}

.store-filters {
    display: flex;
    gap: 1rem;
}

.store-filters input, .store-filters select {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
}

.store-filters input:focus, .store-filters select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Beat List Grid */
.beat-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.beat-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    margin-bottom: 0.5rem;
    border-radius: 6px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.beat-item:hover {
    background: #222228;
    transform: translateX(5px);
}

.beat-item.playing {
    border-left: 3px solid var(--accent-primary);
}

.beat-title-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beat-art {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.beat-art .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 1.5rem;
}

.beat-art:hover .play-overlay,
.beat-item.playing .play-overlay {
    opacity: 1;
}

.beat-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.beat-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.beat-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.beat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-player);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: var(--shadow-player);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.audio-player.active {
    transform: translateY(0);
}

.player-controls {
    display: flex;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 25%;
}

.track-artwork {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.track-details h4 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.track-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-main-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    gap: 0.5rem;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-pause-btn {
    font-size: 2.5rem;
    color: var(--text-main);
}

.play-pause-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    width: 0%;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.player-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 25%;
}

#volume-slider {
    width: 80px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* Modals & Overlays */
.cart-overlay, .license-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-modal);
    backdrop-filter: blur(5px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.cart-overlay.show, .license-modal.show {
    opacity: 1;
    pointer-events: all;
}

.cart-modal, .license-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.cart-overlay.show .cart-modal, 
.license-modal.show .license-content {
    transform: translateY(0);
}

.cart-header, .license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-items {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cart-checkout {
    width: 100%;
}

/* Licensing Options */
.license-content {
    max-width: 800px;
}

.license-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.license-card {
    background: #222228;
    padding: 1.5rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.license-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.license-card.selected, .license-card:active {
    border-color: var(--accent-primary);
    background: rgba(230,25,43,0.05);
}

.license-card h4 {
    margin-bottom: 0.5rem;
}

.license-card .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.license-card ul {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.license-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.license-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* About & Contact */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: url('https://images.unsplash.com/photo-1516280440502-8610eb6752da?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer {
    background: #0a0a0c;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form input, .contact-form textarea {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
}

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

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 900px) {
    .beat-list-header, .beat-item {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .header-tags, .beat-tags {
        display: none;
    }
    .about-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    .license-options {
        grid-template-columns: 1fr;
    }
    .player-track-info {
        width: 30%;
    }
    .player-main-controls {
        width: 40%;
    }
    .player-actions {
        width: 30%;
    }
}

@media (max-width: 600px) {
    .hero-content .tagline {
        font-size: 2.5rem;
    }
    .beat-list-header {
        display: none;
    }
    .beat-item {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }
    .beat-title-col {
        grid-column: 1 / -1;
    }
    .beat-time, .beat-bpm {
        font-size: 0.8rem;
        color: var(--text-muted);
    }
    .beat-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    .player-controls {
        flex-direction: column;
        gap: 1rem;
    }
    .player-track-info, .player-main-controls, .player-actions {
        width: 100%;
        justify-content: center;
    }
    .audio-player {
        padding: 1rem;
    }
    body {
        padding-bottom: 180px; 
    }
    .nav-links {
        display: none; /* simple mobile handling */
    }
}
