:root {
    --obsidian: #0B0D10;
    --gold-crest: #D4AF37;
    --gold-light: #F3E5AB;
    --silver-bright: #F8FAFC;
    --navy-deep: #0F172A;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.4); }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.animate-slide-in {
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.guitar-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.guitar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}


/* Full Mobile Optimization (@media max-width: 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4.5rem) !important;
        line-height: 1.1 !important;
    }

    .modal-box {
        max-width: 95vw !important;
        padding: 1.25rem !important;
        margin: 1rem !important;
    }

    /* Stack cards cleanly without overflow */
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .guitar-card {
        max-width: 100% !important;
    }
}


/* Strict Viewport & Mobile Zero-Overflow Rules */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

*, *:before, *:after {
    box-sizing: inherit !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.25rem, 9vw, 3.5rem) !important;
        line-height: 1.15 !important;
    }
    .grid-cols-1 md:grid-cols-3,
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    aside {
        width: 100% !important;
    }
    #dashboard {
        flex-direction: column !important;
    }
}
