/* Custom Styles - High Performance Flat & Bento Design */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky navbar */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
    background-color: #faf7f4;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

/* Infinite Smooth Marquee Animation (GPU accelerated) */
@keyframes scrollMarquee {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: scrollMarquee 25s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

:root {
    --brand-primary: #CE5728;
    --brand-dark: #b3471d;
    --brand-light: #fdebe3;
    --brand-soft: #fdf5f0;
}

/* Crisp High-Performance UI Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #fbd0bc;
    border-radius: 1.5rem;
}

.glass-panel-dark {
    background: rgba(23, 14, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(206, 87, 40, 0.25);
    border-radius: 1.5rem;
}

.glass-pill {
    background: #ffffff;
    border: 1px solid #fbd0bc;
    border-radius: 9999px;
}

.subtle-mesh-bg {
    background-color: #faf7f4;
    background-image: 
        radial-gradient(at 0% 0%, rgba(206, 87, 40, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(179, 71, 29, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(253, 245, 240, 0.9) 0px, transparent 50%);
}

.dark-mesh-bg {
    background-color: #120b08;
    background-image: 
        radial-gradient(at 0% 0%, rgba(206, 87, 40, 0.32) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(143, 54, 20, 0.28) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(221, 106, 58, 0.18) 0px, transparent 50%);
}

/* Fast, Lightweight Transitions */
.transition-smooth {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.card-hover-lift {
    border-radius: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover-lift:hover {
    border-color: #CE5728;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(206, 87, 40, 0.15);
}

.glow-effect {
    position: relative;
    border-radius: 1.5rem;
}

/* Brand Primary Button Accent */
.btn-brand {
    background-color: #CE5728;
    color: #ffffff;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand:hover {
    background-color: #b3471d;
    box-shadow: 0 4px 14px rgba(206, 87, 40, 0.35);
}

.btn-brand-outline {
    background-color: transparent;
    color: #CE5728;
    border: 1.5px solid #CE5728;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-brand-outline:hover {
    background-color: #CE5728;
    color: #ffffff;
}

/* Rounded Bento Card Utilities */
.bento-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #fed7c3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    border-color: #CE5728;
    box-shadow: 0 10px 25px -5px rgba(206, 87, 40, 0.12);
}

.bento-card-dark {
    background: #170e0a;
    border-radius: 1.5rem;
    border: 1px solid #2d1810;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card-dark:hover {
    border-color: #CE5728;
    box-shadow: 0 10px 25px -5px rgba(206, 87, 40, 0.2);
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Custom Accordion Details Marker Reset */
details summary::-webkit-details-marker {
    display: none;
}
details summary {
    list-style: none;
}
