/* Global Design Tokens & Variables */
:root {
    --bg-dark: #0A0A0A;
    --accent-red: #FF2A2A;
    --accent-red-glow: rgba(255, 42, 42, 0.4);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-white: #E5E2E1;
    --text-muted: #AFA09E;
    --card-hover-bg: rgba(26, 26, 26, 0.8);
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 10px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

/* Base resets & styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Premium Typography Rules */
.font-display {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.font-mono-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 11px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass Card Interactive Hover States */
.glass-card:hover, .glass-panel:hover {
    border-color: rgba(255, 42, 42, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(255, 42, 42, 0.05);
    transform: translateY(-4px);
}

/* Elite Red Accent Glows */
.red-glow-text {
    text-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
}

.red-glow-border:focus, .red-glow-border.active {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.15) !important;
}

/* Bento Grid Alignment Helpers */
.bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom button states */
.btn-primary-red {
    background-color: var(--accent-red);
    color: #FFF;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.2);
}

.btn-primary-red:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(255, 42, 42, 0.45);
    transform: scale(1.02);
}

.btn-primary-red:active {
    transform: scale(0.98);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-glass:hover {
    border-color: var(--accent-red);
    background: rgba(255, 42, 42, 0.05);
    color: #FFF;
}

/* Custom Zoom Container for Detail Page Gallery */
.zoom-container {
    overflow: hidden;
    position: relative;
}

.zoom-image {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Accordions transition */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-open .accordion-content {
    max-height: 500px;
}

/* Custom inputs */
input, textarea, select {
    background-color: rgba(14, 14, 14, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--text-white) !important;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.15) !important;
    outline: none !important;
}

/* Custom check toggles */
.custom-checkbox:checked {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}
