:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --code-bg: #f3f4f6;
    --code-text: #1f2937;
    --code-keyword: #7c3aed;
    --code-string: #059669;
    --code-comment: #6b7280;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --code-bg: #1e293b;
    --code-text: #22c55e;
    --code-keyword: #a78bfa;
    --code-string: #34d399;
    --code-comment: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2rem 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* Responsive Grid Layouts */
@media (min-width: 640px) {
    .section { padding: 3rem 0; }
    .grid { gap: 1.5rem; }
    .grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (min-width: 768px) {
    .section { padding: 4rem 0; }
    .grid { gap: 2rem; }
    .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Components */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    min-width: 44px;
}

/* Mobile Touch Targets */
@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.75rem;
        min-height: 48px;
        font-size: 1rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #16a34a);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 32px rgba(34, 197, 94, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #16a34a, var(--primary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border: 2px solid rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary), #16a34a);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

/* Modern Header */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), #16a34a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.6rem;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide desktop navigation on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

/* Modern Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    padding: 0.75rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .mobile-menu {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active { right: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mobile-menu .nav-link {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.mobile-menu .nav-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
    border-color: var(--primary);
}

.mobile-menu .btn {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        gap: 1rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Modern Code Blocks */
.code-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(15, 23, 42, 0.9));
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}

.code-inline {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Syntax highlighting */
.keyword { color: var(--code-keyword); }
.string { color: var(--code-string); }
.comment { color: var(--code-comment); }

/* Documentation specific */
.toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--primary);
}

.api-section {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.api-method {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.method-signature {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
    font-weight: 500;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.param-table th,
.param-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.param-table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.param-table code {
    background: var(--code-bg);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }

@media (max-width: 768px) {
    .flex.justify-center.space-x-4 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .flex.justify-center.space-x-4 > * + * {
        margin-left: 0;
    }
}
.space-y-4 > * + * { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.bg-alt { background: var(--bg-alt); }

/* Game specific */
.vim-logo {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-weight: bold;
}

.level-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.command-key {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Search Components */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Level Components */
.progress-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.progress-stage {
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    min-width: 120px;
}

.stage-number {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.stage-title {
    font-weight: 600;
    margin: 0.25rem 0;
}

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

.progress-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.level-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.level-number {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.level-number.small {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

.level-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.level-header p {
    color: var(--text-muted);
    margin: 0;
}

.level-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.level-commands {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-alt);
    border-radius: 6px;
}

.command-item code {
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    min-width: 3rem;
    text-align: center;
}

.movement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.movement-key {
    background: var(--code-bg);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    border: 1px solid var(--border);
}

.level-tip {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    font-size: 0.875rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.level-summary {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.level-summary h4 {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.mini-commands {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-commands code {
    background: var(--code-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ASCII Logo */
.ascii-logo {
    font-family: 'Courier New', 'Courier', monospace;
    color: var(--primary);
    font-size: 0.6rem;
    line-height: 1;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    white-space: pre;
    letter-spacing: 0;
    font-variant-ligatures: none;
    text-align: center;
    display: block;
}

/* Mobile ASCII Logo Alternative */
@media (max-width: 767px) {
    .ascii-logo {
        display: none;
    }
    
    .hero::before {
        content: "VimMaster";
        display: block;
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary);
        text-align: center;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    }
}

@media (min-width: 640px) {
    .ascii-logo {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .ascii-logo {
        font-size: 1.2rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
.hero {
    animation: fadeInUp 1s ease-out;
}

.ascii-logo {
    animation: scaleIn 1.2s ease-out 0.3s both;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.card {
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    animation: glow 2s infinite;
}

.logo-icon {
    transition: all 0.3s ease;
}

.logo-icon:hover {
    animation: float 2s ease-in-out infinite;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.search-input:focus {
    animation: glow 0.5s ease-out;
}

.filter-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover {
    transform: translateY(-2px);
}

.level-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--primary);
}

.command-item {
    transition: all 0.3s ease;
}

.command-item:hover {
    transform: translateX(5px);
    background: var(--primary);
    color: white;
}

.command-item:hover code {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grids */
.grid > * {
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
}

/* Monetization Styles */
.support-banner {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.support-banner p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text);
}

.support-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-btn.github {
    background: #24292e;
    color: white;
}

.support-btn.kofi {
    background: #ff5f5f;
    color: white;
}

.support-btn.coffee {
    background: #ffdd00;
    color: #000;
}

.support-btn.patreon {
    background: #ff424d;
    color: white;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sponsor-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.sponsor-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.sponsor-cta p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.sponsor-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 8px;
}

.sponsor-text {
    display: flex;
    flex-direction: column;
}

.sponsor-text strong {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* Consistent Navbar Buttons */
.nav .nav-links .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: auto;
    height: 2.5rem;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-decoration: none;
    border: 2px solid transparent;
}

.nav .nav-links .btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.nav .nav-links .btn-sponsor {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    animation: heartbeat 2s infinite;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.nav .nav-links .btn-sponsor:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    color: white;
    transform: translateY(-2px) scale(1.05);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.footer-support {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-sponsors {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-sponsors a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-sponsors a:hover {
    transform: scale(1.2);
}

/* Footer Donations */
.footer-donations {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-grid {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 100px;
    justify-content: center;
}

.donation-btn img,
.btn img,
.support-btn img,
.sponsor-card img {
    filter: brightness(0) invert(1);
}

.donation-btn.github {
    background: #24292e;
    color: white;
}

.donation-btn.kofi {
    background: #ff5f5f;
    color: white;
}

.donation-btn.coffee {
    background: #ffdd00;
    color: #000;
}

.donation-btn.patreon {
    background: #ff424d;
    color: white;
}

.donation-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .donation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .donation-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        min-width: 80px;
    }
}

/* Modern 2025 Features */

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-nav:focus {
    top: 6px;
}

/* Enhanced Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.command-palette.active {
    display: block;
}

.command-palette-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px) saturate(120%);
    animation: backdropFade 0.3s ease-out;
}

.command-palette-content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 640px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

[data-theme="dark"] .command-palette-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.command-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.command-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.command-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
    box-shadow: 0 1px 0 var(--primary);
}

.command-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.command-results::-webkit-scrollbar {
    width: 6px;
}

.command-results::-webkit-scrollbar-track {
    background: transparent;
}

.command-results::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.command-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.command-category-header {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.command-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.command-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    transition: width 0.3s ease;
    z-index: -1;
}

.command-result:hover::before,
.command-result.selected::before {
    width: 100%;
}

.command-result:hover,
.command-result.selected {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.command-result.selected {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.command-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.command-result:hover .command-icon,
.command-result.selected .command-icon {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.command-content {
    flex: 1;
    min-width: 0;
}

.command-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.command-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-category-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.command-shortcut {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.command-result:hover .command-shortcut,
.command-result.selected .command-shortcut {
    opacity: 1;
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.no-results-hint {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Command Palette Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes backdropFade {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px) saturate(120%);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Mobile Command Palette */
@media (max-width: 768px) {
    .command-palette-content {
        top: 5%;
        width: 95%;
        max-width: 95vw;
        max-height: 85vh;
        margin: 0 auto;
    }
    
    .command-input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .command-results {
        max-height: 65vh;
    }
    
    .command-result {
        padding: 1rem;
        gap: 0.75rem;
        min-height: 60px;
    }
    
    .command-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .command-name {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .command-description {
        font-size: 0.75rem;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .command-category-badge {
        display: none;
    }
    
    .command-shortcut {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .command-palette-content {
        top: 2%;
        width: 98%;
        max-height: 90vh;
    }
    
    .command-result {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .command-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
    }
}

/* Enhanced Social Proof - moved to Fluent 2 section above */

/* Modern Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

/* Modern Newsletter Modal */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.newsletter-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.newsletter-modal.active {
    display: block;
}

.newsletter-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.newsletter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
}

/* Universal 2025 Design System */
.card, .feature-card, .sponsor-card, .newsletter-content, .command-palette-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before, .feature-card::before, .sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.card::after, .feature-card::after, .sponsor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover, .feature-card:hover, .sponsor-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.card:hover::after, .feature-card:hover::after, .sponsor-card:hover::after {
    opacity: 1;
}

[data-theme="dark"] .card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .sponsor-card,
[data-theme="dark"] .newsletter-content,
[data-theme="dark"] .command-palette-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.feature-card {
    animation: float 4s ease-in-out infinite;
    animation-delay: calc(var(--animation-order, 0) * 0.2s);
}

.feature-card:nth-child(1) { --animation-order: 0; }
.feature-card:nth-child(2) { --animation-order: 1; }
.feature-card:nth-child(3) { --animation-order: 2; }
.feature-card:nth-child(4) { --animation-order: 3; }
.feature-card:nth-child(5) { --animation-order: 4; }
.feature-card:nth-child(6) { --animation-order: 5; }

.feature-card {
    padding: 2rem;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.4));
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Skill Bars */
.skill-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #16a34a, var(--primary));
    border-radius: 8px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Global Floating Animation */
.card, .feature-card:not(:hover) {
    animation: float 6s ease-in-out infinite;
}

.card:nth-child(odd) {
    animation-delay: 0s;
}

.card:nth-child(even) {
    animation-delay: 1s;
}

.skill-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Glassmorphism Elements */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 2025 Modern Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.4));
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-number::after {
    opacity: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    position: relative;
}

[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.stat-card:nth-child(1) {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Pulse Effect for Numbers */
@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 30px rgba(34, 197, 94, 0.4);
    }
}

.stat-number {
    animation: pulse-glow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 320px;
        padding: 0 1rem;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        min-width: auto;
        padding: 1rem;
        border-radius: 16px;
        align-items: center;
        min-height: 60px;
    }
    
    .stat-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    .stat-label {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stat-card:nth-child(1),
    .stat-card:nth-child(2),
    .stat-card:nth-child(3) {
        animation: none;
    }
}

/* Bento Card Enhancements */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-card.featured h3 {
    color: white;
    -webkit-text-fill-color: white;
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(8px);
}

.feature-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.code-preview {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.code-line {
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: typewriter 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }

@keyframes typewriter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* Interactive Hover Effects */
.bento-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover .feature-badge {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Mobile Features Grid */
@media (max-width: 640px) {
    .feature-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .feature-header {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .feature-svg {
        width: 28px;
        height: 28px;
    }
    
    .feature-card h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Enhanced Focus Indicators */
.btn:focus,
.nav-link:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode mobile optimizations */
@media (max-width: 768px) {
    [data-theme="dark"] .mobile-menu {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    }
    
    [data-theme="dark"] .card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .social-proof {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 🔥 Advanced 2025 Features Styles */

/* Voice Commands Button */


/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Morphing Shapes */
@keyframes morph {
    0%, 100% { border-radius: 20px; }
    25% { border-radius: 50px 20px 20px 20px; }
    50% { border-radius: 20px 50px 20px 20px; }
    75% { border-radius: 20px 20px 50px 20px; }
}

.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Neon Glow Effects */
.neon-glow {
    box-shadow: 
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 15px var(--primary),
        0 0 20px var(--primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 15px var(--primary),
            0 0 20px var(--primary);
    }
    to {
        box-shadow: 
            0 0 2px var(--primary),
            0 0 5px var(--primary),
            0 0 8px var(--primary),
            0 0 12px var(--primary);
    }
}

/* Holographic Effects */
.holographic {
    background: linear-gradient(
        45deg,
        #ff0080, #ff8c00, #40e0d0, #ff0080
    );
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographic {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .param-table {
        font-size: 0.8rem;
    }
    
    .param-table th,
    .param-table td {
        padding: 0.5rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: auto;
    }
    
    .toc {
        padding: 1rem;
    }
    
    .api-method {
        padding: 1rem;
    }
    
    .method-signature {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    /* Better mobile menu */
    .mobile-menu .nav-link {
        min-height: 48px;
        font-size: 1rem;
    }
    
    #mobile-close {
        width: 24px;
        height: 24px;
        padding: 0;
        font-size: 0.875rem;
    }
    
    /* Responsive tables */
    .param-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Better mobile cards */
    .level-card,
    .command-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile-friendly search */
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better mobile spacing */
    .progress-path {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-arrow {
        transform: rotate(90deg);
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 2rem 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}
    



#mobile-menu-btn {
    display: none;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}