@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Regular.ttf");
}
:root {
    --primary-color: #dc2626;
    --secondary-color: #ef4444;
    --bg-dark: #0f0f0f;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #9ca3af;
    --accent-red: #dc2626;
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Navigation */
.navbar {
    background-color: var(--bg-darker) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    border-bottom: 1px solid #1f1f1f;
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-red) !important;
}

.navbar-toggler {
    border-color: var(--text-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search and buttons in navbar */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    width: 250px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    color: var(--text-light);
}

.search-box input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-box button:hover {
    color: var(--accent-red);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: block;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(220, 38, 38, 0.1);
    text-decoration: none;
}

.search-result-category {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    background: var(--accent-red);
    color: white;
    border-radius: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
    margin-top: 4px;
}

.search-result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-no-results,
.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-loading i {
    margin-right: 8px;
}

.search-view-all {
    text-align: center;
    color: var(--accent-red) !important;
    font-weight: 600;
    padding: 12px 15px;
    display: block;
    border-top: 2px solid #2a2a2a;
    background: rgba(220, 38, 38, 0.05);
}

.search-view-all:hover {
    background: rgba(220, 38, 38, 0.15);
    text-decoration: none;
}

/* User Dropdown Menu */
.user-dropdown {
    min-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
    margin-top: 10px;
    background-color: var(--bg-card);
}

.user-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.user-dropdown .dropdown-item:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    padding-left: 25px;
}

.user-dropdown .dropdown-item i {
    width: 20px;
}

.user-dropdown .dropdown-header {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 20px;
    text-transform: uppercase;
}

.user-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: #2a2a2a;
}

.user-dropdown .text-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc3545 !important;
}

.dropdown-toggle::after {
    margin-left: 8px;
}

/* Cart Badge */
.navbar-actions .position-relative .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.4em;
    min-width: 18px;
}

.navbar-actions a[href*="cart"] {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.navbar-actions a[href*="cart"]:hover {
    color: var(--accent-red);
}

/* View all results link */
.search-view-all {
    text-align: center;
    color: var(--secondary-color) !important;
    font-weight: 600;
    padding: 12px 15px;
    display: block;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.search-view-all:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.btn-primary-1 {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-light);
}

.btn-primary-1:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-outline-secondary {
    border-color: #333;
    color: var(--text-light);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    border-color: var(--accent-red);
    color: var(--text-light);
    background-color: rgba(220, 38, 38, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-background {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                url('/assets/images/jumbotrons/jumbotron-home.jpg') center/cover;
    padding: 100px 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-caption-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 40px;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 0.9rem;
}

.btn-hero-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.btn-hero-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    color: var(--text-light);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-red);
}

.btn-hero-secondary:hover {
    background-color: var(--accent-red);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Section Headers with Navigation */
.section-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 30px 0;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    color: var(--accent-red);
    font-size: 1.5rem;
}

.section-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 0;
}

.link-lihat-semua {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-lihat-semua:hover {
    color: var(--accent-red);
}

.section-kabar {
    margin-top: 60px;
}

.section-top-instruments {
    margin-top: 60px;
}

.section-events {
    margin-top: 60px;
}



.songs-container {
    position: relative;
    overflow: hidden;
}

.songs-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Instruments Carousel */
.instruments-container-carousel,
.events-container-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.instruments-grid-carousel,
.events-grid-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.instruments-grid-carousel::-webkit-scrollbar,
.events-grid-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 38, 38, 0.8);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
}

.carousel-nav:hover {
    background: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Clickable card links */
.song-card-link,
.instrument-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.song-card-link:hover,
.instrument-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.song-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    border-color: var(--accent-red);
}

.instrument-card,
.event-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transform: translateZ(0); 
    cursor: pointer;
    position: relative;
}

.instrument-card:hover,
.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.4);
    border-color: var(--accent-red);
}

.instrument-card:active,
.event-card:active {
    transform: translateY(-6px) scale(1.01);
}

.song-card-image {
    width: 140px;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.instrument-card-image,
.event-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.song-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instrument-card img,
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.song-card:hover img,
.instrument-card:hover img,
.event-card:hover img {
    transform: scale(1.05);
}

.song-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.instrument-card-body,
.event-card-body {
    padding: 20px 15px;
    background: var(--bg-card);
    flex-grow: 1;
}

.song-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.instrument-title,
.event-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.song-card:hover .song-title,
.instrument-card:hover .instrument-title,
.event-card:hover .event-title {
    color: var(--accent-red);
}

.artist-name {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.song-card:hover .artist-name {
    color: #d1d5db;
}

.instrument-price {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.instrument-card:hover .instrument-price {
    color: #ef4444;
}

/* Badge for cards */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-badge-hot {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}



/* Why Choose Us Section */
.features-section {
    background-color: var(--bg-darker);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #1f1f1f;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: left;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    border-color: var(--accent-red);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid #1f1f1f;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.social-links a:hover {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1f1f1f;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Loading states */
.song-card.loading,
.instrument-card.loading,
.event-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.song-card.loading::after,
.instrument-card.loading::after,
.event-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2a2a2a;
    border-left-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .search-box input {
        width: 200px;
    }

    .navbar-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-background {
        padding: 60px 0;
    }

    .hero-caption-image {
        max-width: 400px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .section-header-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .section-header {
        font-size: 1.2rem;
    }

    .songs-grid-horizontal {
        grid-template-columns: 1fr;
    }

    .song-card {
        flex-direction: row;
    }

    .instrument-card,
    .event-card {
        min-width: 250px;
    }

    .instruments-container-carousel,
    .events-container-carousel {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .user-dropdown {
        min-width: 200px;
    }
    
    .user-dropdown .dropdown-item {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .search-box input {
        width: 150px;
    }

    .section-header {
        font-size: 1.1rem;
    }

    .hero-background {
        padding: 40px 0;
    }

    .hero-caption-image {
        max-width: 280px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-icon {
        font-size: 2rem;
    }

    .song-card {
        flex-direction: column;
    }

    .song-card-image {
        width: 100%;
        height: 180px;
    }

    .instrument-card-image,
    .event-card-image {
        height: 180px;
    }

    .instrument-card,
    .event-card {
        min-width: 220px;
    }

    .instruments-container-carousel,
    .events-container-carousel {
        padding: 0 35px;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .card-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

/* Custom scrollbar for touch devices */
@media (hover: none) and (pointer: coarse) {
    .instruments-grid-carousel,
    .events-grid-carousel {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-red) transparent;
    }

    .instruments-grid-carousel::-webkit-scrollbar,
    .events-grid-carousel::-webkit-scrollbar {
        height: 4px;
        display: block;
    }

    .instruments-grid-carousel::-webkit-scrollbar-track,
    .events-grid-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .instruments-grid-carousel::-webkit-scrollbar-thumb,
    .events-grid-carousel::-webkit-scrollbar-thumb {
        background: var(--accent-red);
        border-radius: 2px;
    }
}