/* Custom Styles - High Performance Modern Tech Bento & Glassmorphic Design (#661519 Edition) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky floating navbar */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
    background-color: #faf8f8;
    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 28s linear infinite;
}

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

:root {
    --brand-primary: #661519;
    --brand-dark: #4d0f12;
    --brand-light: #fdf3f3;
    --brand-soft: #fae4e5;
    --tech-cyan: #9e2228;
}

/* Crisp Modern Tech UI Utilities & Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(102, 21, 25, 0.16);
    border-radius: 1.5rem;
}

.glass-panel-dark {
    background: rgba(20, 8, 9, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(102, 21, 25, 0.45);
    border-radius: 1.5rem;
}

.glass-pill {
    background: #ffffff;
    border: 1px solid rgba(102, 21, 25, 0.22);
    border-radius: 9999px;
}

.subtle-mesh-bg {
    background-color: #faf8f8;
    background-image: 
        radial-gradient(at 15% 0%, rgba(102, 21, 25, 0.07) 0px, transparent 55%),
        radial-gradient(at 85% 100%, rgba(102, 21, 25, 0.05) 0px, transparent 55%);
}

.dark-mesh-bg {
    background-color: #0d0607;
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 21, 25, 0.45) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(158, 34, 40, 0.25) 0px, transparent 50%),
        radial-gradient(at 50% 20%, rgba(102, 21, 25, 0.22) 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: #661519;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -10px rgba(102, 21, 25, 0.22);
}

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

/* Brand Primary Button Accent */
.btn-brand {
    background-color: #661519;
    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: #4d0f12;
    box-shadow: 0 8px 24px rgba(102, 21, 25, 0.38);
}

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

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

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

.bento-card:hover {
    border-color: #661519;
    box-shadow: 0 14px 30px -5px rgba(102, 21, 25, 0.18);
}

.bento-card-dark {
    background: #140809;
    border-radius: 1.5rem;
    border: 1px solid rgba(102, 21, 25, 0.40);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card-dark:hover {
    border-color: #9e2228;
    box-shadow: 0 14px 30px -5px rgba(102, 21, 25, 0.35);
}

.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(102, 21, 25, 0.16);
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-standing-card:hover {
    border-color: #661519;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(102, 21, 25, 0.22);
}

.vertical-standing-card-dark {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #140809;
    border-radius: 2rem;
    border: 1px solid rgba(102, 21, 25, 0.45);
    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: #9e2228;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(102, 21, 25, 0.40);
}

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