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

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #1c1917;
    background-color: #faf7f2;
    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: #97591E;
    --brand-dark: #7d4617;
    --brand-light: #f9efe6;
    --brand-soft: #fdf8f4;
}

/* Crisp Modern UI Utilities & Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(151, 89, 30, 0.15);
    border-radius: 1.5rem;
}

.glass-panel-dark {
    background: rgba(20, 16, 13, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(151, 89, 30, 0.28);
    border-radius: 1.5rem;
}

.glass-pill {
    background: #ffffff;
    border: 1px solid rgba(151, 89, 30, 0.2);
    border-radius: 9999px;
}

.subtle-mesh-bg {
    background-color: #faf7f2;
    background-image: 
        radial-gradient(at 0% 0%, rgba(151, 89, 30, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(125, 70, 23, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(253, 248, 244, 0.95) 0px, transparent 50%);
}

.dark-mesh-bg {
    background-color: #0c0a09;
    background-image: 
        radial-gradient(at 0% 0%, rgba(151, 89, 30, 0.28) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(100, 56, 21, 0.22) 0px, transparent 50%),
        radial-gradient(at 50% 20%, rgba(151, 89, 30, 0.12) 0px, transparent 60%);
}

/* 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: #97591E;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -10px rgba(151, 89, 30, 0.18);
}

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

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

.btn-brand:hover {
    background-color: #7d4617;
    box-shadow: 0 6px 18px rgba(151, 89, 30, 0.35);
}

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

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

/* Rounded Bento Card Utilities */
.bento-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(151, 89, 30, 0.14);
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
    border-color: #97591E;
    box-shadow: 0 14px 30px -5px rgba(151, 89, 30, 0.15);
}

.bento-card-dark {
    background: #14110e;
    border-radius: 1.5rem;
    border: 1px solid rgba(151, 89, 30, 0.22);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card-dark:hover {
    border-color: #97591E;
    box-shadow: 0 14px 30px -5px rgba(151, 89, 30, 0.25);
}

.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;
}

/* Vertical Standing Card Utilities ("Khade Khade Cards") */
.vertical-standing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 2rem;
    border: 1px solid rgba(151, 89, 30, 0.16);
    box-shadow: 0 4px 24px -2px rgba(28, 25, 23, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-standing-card:hover {
    border-color: #97591E;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(151, 89, 30, 0.2);
}

.vertical-standing-card-dark {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #14110e;
    border-radius: 2rem;
    border: 1px solid rgba(151, 89, 30, 0.28);
    box-shadow: 0 6px 30px -4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-standing-card-dark:hover {
    border-color: #97591E;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(151, 89, 30, 0.3);
}

.img-hover-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .img-hover-zoom {
    transform: scale(1.06);
}

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