/* ====== ROOT VARIABLES ====== */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --gradient-pink: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);

    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ====== ANIMATED BACKGROUND ====== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.bg-gradient-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.bg-gradient-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    top: 50%;
    right: -300px;
    animation-delay: 7s;
}

.bg-gradient-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #4facfe 0%, transparent 70%);
    bottom: -225px;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ====== CONTAINER ====== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* ====== HEADER ====== */
.header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: pulse 3s ease-in-out infinite;
}

.logo-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====== SEARCH & FILTER ====== */
.search-filter-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 3.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), var(--shadow-lg);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    stroke-width: 2;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.category-icon {
    font-size: 1.2rem;
}

.category-btn:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ====== CARDS GRID ====== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: var(--transition-fast);
}

.card h3:hover {
    color: var(--primary-light);
}

.card-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

/* Example Box */
.example-box {
    background: rgba(20, 20, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.example-label {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code Block */
.code {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #a0a0b0;
    overflow-x: auto;
    position: relative;
}

.code::selection {
    background: rgba(102, 126, 234, 0.3);
}

/* Copy Indicator */
.copy-indicator {
    position: absolute;
    top: -30px;
    right: 0;
    padding: 0.5rem 1rem;
    background: var(--success);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.copy-indicator.show {
    opacity: 1;
    top: -35px;
}

/* ====== NO RESULTS ====== */
.no-results {
    text-align: center;
    padding: var(--spacing-xl) 0;
    animation: fadeIn 0.5s ease;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ====== FOOTER ====== */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 0.5rem 0;
}

.heart {
    color: #ec4899;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .container {
        padding: var(--spacing-md);
    }

    .logo-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .logo-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-filter {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #818cf8 0%, #9d77c7 100%);
}

/* ====== DETAIL VIEW ====== */
.detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    /* Premium Page Feel */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(240, 147, 251, 0.05) 0%, transparent 40%);
}

.detail-view.active {
    opacity: 1;
    visibility: visible;
}

/* Flying Title for Transition */
.flying-title {
    position: fixed;
    z-index: 2000;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-primary);
    transform-origin: top left;
    /* Critical for smooth scaling */
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Premium easing */
    margin: 0;
    line-height: 1.2;
    will-change: transform;
    /* Hint to browser to use GPU */
    white-space: nowrap;
}

.detail-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.detail-view.active .detail-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.detail-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--primary);
}

.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.detail-view.active .detail-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.detail-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 40px;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Placeholder for the title transition */
.detail-title-placeholder {
    height: clamp(3rem, 7vw, 5rem);
    margin-bottom: 20px;
    opacity: 0;
    /* Invisible, holds space */
}

.detail-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.detail-category {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Detailed Sections */
.detail-section {
    margin-bottom: 80px;
}

.detail-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-section h2::before {
    content: '';
    width: 6px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.detail-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 900px;
}

/* Syntax Cards (New Layout) */
.syntax-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.syntax-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.syntax-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-md);
}

.syntax-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.syntax-property {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 700;
}

.syntax-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.syntax-body {
    padding: 30px;
}

.syntax-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.syntax-example-code {
    font-family: 'JetBrains Mono', monospace;
    color: #a0a0b0;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: block;
    border-left: 3px solid var(--primary);
}

.syntax-visual-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Ensure diagrams fit nicely */
.syntax-visual-container>div {
    max-width: 100%;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.detail-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Live Mini Examples in Cards */
.mini-example {
    height: 140px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Large Hero Example */
.detail-example-hero {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .detail-content {
        padding: 80px 20px;
    }

    .detail-section h2 {
        font-size: 1.8rem;
    }

    .detail-example-hero {
        padding: 30px 20px;
        min-height: 300px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix grid class name */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}