/* Kevin Oulai - Bold Tech Portfolio */

:root {
    --bg-primary: #f6f7fb;
    --bg-secondary: #ffffff;
    --bg-elevated: #eef1f7;
    --text-primary: #0c111b;
    --text-secondary: #435065;
    --text-muted: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: rgba(15, 23, 42, 0.12);
    --accent: #2b6df7;
    --accent-strong: #0a4bff;
    --accent-warm: #ff7a59;
    --accent-neon: #b6ff4d;
    --accent-projects: #2b6df7;
    --accent-skills: #8c6bff;
    --accent-about: #ff7a59;
    --accent-contact: #06b6d4;
    --accent-projects-rgb: 43, 109, 247;
    --accent-skills-rgb: 140, 107, 255;
    --accent-about-rgb: 255, 122, 89;
    --accent-contact-rgb: 6, 182, 212;
    --border: rgba(15, 23, 42, 0.12);
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.12);
    --gradient-primary: linear-gradient(135deg, #2b6df7 0%, #8c6bff 55%, #ff7a59 100%);
    --gradient-soft: radial-gradient(circle at 20% 20%, rgba(43, 109, 247, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 89, 0.25), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(182, 255, 77, 0.18), transparent 60%);
}

[data-theme="dark"] {
    --bg-primary: #0a0d14;
    --bg-secondary: #121826;
    --bg-elevated: #141c2b;
    --text-primary: #f9fafb;
    --text-secondary: #cbd5f0;
    --text-muted: #9aa4b2;
    --text-tertiary: #7f8aa0;
    --border-color: rgba(148, 163, 184, 0.2);
    --accent: #6aa5ff;
    --accent-strong: #3b82f6;
    --accent-warm: #ffb08f;
    --accent-neon: #c8ff6a;
    --accent-projects: #6aa5ff;
    --accent-skills: #a78bfa;
    --accent-about: #fb923c;
    --accent-contact: #22d3ee;
    --accent-projects-rgb: 106, 165, 255;
    --accent-skills-rgb: 167, 139, 250;
    --accent-about-rgb: 251, 146, 60;
    --accent-contact-rgb: 34, 211, 238;
    --border: rgba(148, 163, 184, 0.2);
    --shadow: 0 18px 40px rgba(3, 7, 18, 0.55);
    --shadow-strong: 0 30px 70px rgba(3, 7, 18, 0.65);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #7c3aed 55%, #f97316 100%);
    --gradient-soft: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.2), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(200, 255, 106, 0.18), transparent 60%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body::selection {
    background: rgba(43, 109, 247, 0.2);
}

.backdrop {
    position: fixed;
    inset: 0;
    background: var(--gradient-soft);
    z-index: 0;
    pointer-events: none;
}

.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.2;
}

[data-theme="dark"] .backdrop::before {
    opacity: 0.25;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(43, 109, 247, 0.1);
    z-index: 1200;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(43, 109, 247, 0.5);
}

.portfolio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(246, 247, 251, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .portfolio-header {
    background: rgba(10, 13, 20, 0.85);
}

[data-variant="light"] .portfolio-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-variant="dark"] .portfolio-header {
    background: rgba(15, 15, 15, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.command-hint-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
}

.command-hint-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.command-hint-btn i {
    font-size: 14px;
}

.command-hint-btn .hint-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-toggle {
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: #ffffff;
}

.main-content {
    position: relative;
    z-index: 2;
}

.hero-section {
    padding: 140px 2rem 100px;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .hero-badge {
    background: rgba(18, 24, 38, 0.75);
}

[data-variant="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-variant="dark"] .hero-badge {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1.05;
    margin: 1.2rem 0 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-meta {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    min-height: 360px;
}

.signal-orbit {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(43, 109, 247, 0.35);
    animation: orbitPulse 6s ease-in-out infinite;
}

.signal-orbit.orbit-two {
    inset: 70px;
    border-color: rgba(255, 122, 89, 0.4);
    animation-delay: 1.2s;
}

.signal-orbit.orbit-three {
    inset: 110px;
    border-color: rgba(182, 255, 77, 0.35);
    animation-delay: 2.2s;
}

.signal-card {
    position: absolute;
    inset: auto 20px 20px 20px;
    padding: 1.4rem 1.6rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(12px);
}

.signal-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.signal-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.signal-card-meta {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
}

.section {
    padding: 90px 2rem;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 1rem 0 1.2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: growWidth 0.6s ease;
}

@keyframes growWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .project-card {
    background: rgba(18, 24, 38, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-variant="light"] .project-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-variant="dark"] .project-card {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-card.project-skeleton {
    min-height: 320px;
    background: linear-gradient(120deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.12));
    background-size: 200% 200%;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(43, 109, 247, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-media {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(140deg, rgba(43, 109, 247, 0.25), rgba(255, 122, 89, 0.15));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

@media (max-width: 640px) {
    .project-image,
    .project-media {
        height: 200px;
    }
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 17, 27, 0.04), rgba(12, 17, 27, 0.55));
    z-index: 0;
}

.project-media-badge {
    position: relative;
    z-index: 1;
}

.project-media-badge {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

[data-theme="dark"] .project-media-badge {
    background: rgba(18, 24, 38, 0.85);
}

[data-variant="light"] .project-media-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-variant="dark"] .project-media-badge {
    background: rgba(26, 26, 26, 0.9);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-content {
    padding: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.skills-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.skill-card {
    padding: 1.6rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card.skill-skeleton {
    min-height: 180px;
    background: linear-gradient(120deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.12));
    background-size: 200% 200%;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.skill-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.skill-name {
    font-size: 1.1rem;
    margin-top: 0.8rem;
}

.skill-description {
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.about-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.2rem;
    border-radius: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.about-card a:hover {
    text-decoration: underline;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.3rem;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
    border-radius: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-info-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.contact-info-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-info-cards {
    display: grid;
    gap: 1rem;
}

.info-card {
    padding: 1rem;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.info-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-value {
    font-weight: 600;
}

.contact-form {
    padding: 2rem;
    border-radius: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input,
.form-textarea {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 109, 247, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.8rem 0;
}

.form-status.is-error {
    color: #ef4444;
}

.form-status.is-success {
    color: #16a34a;
}

.form-submit {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
    border: none;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="scale"] {
    transform: scale(0.96);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reduced-motion [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

@keyframes orbitPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes skeletonPulse {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
}

@media (max-width: 960px) {
    .portfolio-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        min-height: 280px;
        order: -1;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description,
    .hero-meta {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 1rem 1.2rem;
    }

    .hero-section {
        padding: 100px 1.2rem 60px;
    }

    .section {
        padding: 60px 1.2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .form-textarea {
        min-height: 120px;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-strong);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Section-specific accent colors */
#projects {
    --accent: var(--accent-projects);
}

#projects .section-title::after,
#projects .btn-primary {
    background: var(--accent-projects);
}

#skills {
    --accent: var(--accent-skills);
}

#skills .section-title::after,
#skills .btn-primary {
    background: var(--accent-skills);
}

#about {
    --accent: var(--accent-about);
}

#about .section-title::after,
#about .btn-primary {
    background: var(--accent-about);
}

#contact {
    --accent: var(--accent-contact);
}

#contact .section-title::after,
#contact .btn-primary {
    background: var(--accent-contact);
}

#github-activity {
    --accent: var(--accent-projects);
}

#github-activity .section-title::after {
    background: var(--accent-projects);
}

/* Animated section divider */
.section-divider {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section-divider svg {
    width: 100%;
    height: 100%;
    opacity: 0.18;
    position: relative;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

[data-theme="dark"] .section-divider svg {
    opacity: 0.25;
    filter: brightness(1.1) saturate(1.2);
}

/* Multi-layer wave animations with parallax effect */
.section-divider .wave-back {
    animation: waveFlowBack 20s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    will-change: transform;
}

.section-divider .wave-mid {
    animation: waveFlowMid 15s cubic-bezier(0.33, 0.42, 0.67, 0.58) infinite;
    will-change: transform;
}

.section-divider .wave-front {
    animation: waveFlowFront 12s cubic-bezier(0.37, 0.48, 0.62, 0.52) infinite;
    will-change: transform;
}

/* Enhanced visibility in dark theme */
[data-theme="dark"] .section-divider .wave-back {
    opacity: 0.4;
}

[data-theme="dark"] .section-divider .wave-mid {
    opacity: 0.6;
}

[data-theme="dark"] .section-divider .wave-front {
    opacity: 0.8;
}

/* Light theme wave visibility */
[data-variant="light"] .section-divider .wave-back {
    opacity: 0.3;
}

[data-variant="light"] .section-divider .wave-mid {
    opacity: 0.5;
}

[data-variant="light"] .section-divider .wave-front {
    opacity: 0.7;
}

/* Different animations for alternating waves */
.wave-2 .wave-back, .wave-4 .wave-back {
    animation: waveFlowBackAlt 18s cubic-bezier(0.4, 0.5, 0.6, 0.5) infinite reverse;
}

.wave-2 .wave-mid, .wave-4 .wave-mid {
    animation: waveFlowMidAlt 14s cubic-bezier(0.35, 0.45, 0.65, 0.55) infinite reverse;
}

.wave-2 .wave-front, .wave-4 .wave-front {
    animation: waveFlowFrontAlt 11s cubic-bezier(0.38, 0.47, 0.61, 0.53) infinite reverse;
}

/* Smooth flowing wave animations */
@keyframes waveFlowBack {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    25% {
        transform: translateX(-25px) translateY(-8px) scaleX(1.02) scaleY(0.95);
    }
    50% {
        transform: translateX(-50px) translateY(0) scaleX(1) scaleY(1.05);
    }
    75% {
        transform: translateX(-25px) translateY(8px) scaleX(0.98) scaleY(1);
    }
}

@keyframes waveFlowMid {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    30% {
        transform: translateX(-35px) translateY(10px) scaleX(1.03) scaleY(1.05);
    }
    60% {
        transform: translateX(-70px) translateY(-5px) scaleX(0.97) scaleY(0.95);
    }
    85% {
        transform: translateX(-35px) translateY(5px) scaleX(1.01) scaleY(1.02);
    }
}

@keyframes waveFlowFront {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    20% {
        transform: translateX(-45px) translateY(-12px) scaleX(1.04) scaleY(1.08);
    }
    55% {
        transform: translateX(-90px) translateY(8px) scaleX(0.96) scaleY(0.92);
    }
    80% {
        transform: translateX(-45px) translateY(-5px) scaleX(1.02) scaleY(1.04);
    }
}

/* Alternative animations (reversed direction) */
@keyframes waveFlowBackAlt {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    25% {
        transform: translateX(30px) translateY(10px) scaleX(0.98) scaleY(1.05);
    }
    50% {
        transform: translateX(60px) translateY(-5px) scaleX(1.02) scaleY(0.95);
    }
    75% {
        transform: translateX(30px) translateY(-8px) scaleX(1) scaleY(1.02);
    }
}

@keyframes waveFlowMidAlt {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    35% {
        transform: translateX(40px) translateY(-12px) scaleX(0.97) scaleY(1.06);
    }
    65% {
        transform: translateX(80px) translateY(6px) scaleX(1.03) scaleY(0.94);
    }
    90% {
        transform: translateX(40px) translateY(-4px) scaleX(0.99) scaleY(1.03);
    }
}

@keyframes waveFlowFrontAlt {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleX(1) scaleY(1);
    }
    22% {
        transform: translateX(50px) translateY(15px) scaleX(0.96) scaleY(1.09);
    }
    58% {
        transform: translateX(100px) translateY(-10px) scaleX(1.04) scaleY(0.91);
    }
    82% {
        transform: translateX(50px) translateY(6px) scaleX(0.98) scaleY(1.05);
    }
}

/* Wave divider height adjustments */
.section-divider {
    height: 80px;
}

[data-theme="dark"] .section-divider {
    height: 80px;
}

/* Glassmorphism for all cards */
.skill-card,
.stat-card,
.contact-info,
.contact-form {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form {
    background: rgba(18, 24, 38, 0.5);
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-variant="light"] .skill-card,
[data-variant="light"] .stat-card,
[data-variant="light"] .contact-info,
[data-variant="light"] .contact-form {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-variant="dark"] .skill-card,
[data-variant="dark"] .stat-card,
[data-variant="dark"] .contact-info,
[data-variant="dark"] .contact-form {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Smooth button transitions with glow on hover */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(43, 109, 247, 0.35);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
}

/* ==================== COMMAND PALETTE ==================== */

.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.command-palette.active {
    opacity: 1;
    pointer-events: auto;
}

.command-palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

[data-variant="light"] .command-palette-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-variant="dark"] .command-palette-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.command-palette-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-input-wrapper {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    padding: 0;
}

.command-input::placeholder {
    color: var(--text-tertiary);
}

.command-results {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.command-group {
    padding: 8px 0;
}

.command-group:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.command-group-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    color: var(--text-primary);
}

.command-item.active,
.command-item:hover {
    background-color: rgba(var(--accent-projects-rgb), 0.1);
}

.command-item.active {
    background-color: rgba(var(--accent-projects-rgb), 0.15);
    border-left: 3px solid var(--accent-projects);
}

.command-title {
    font-size: 14px;
    font-weight: 500;
}

.command-keys {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

.command-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

.command-footer kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 4px;
    font-family: 'IBM Plex Mono', monospace;
}

/* ==================== MINI GAMES ==================== */

.mini-game-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.mini-game-container.active {
    display: flex;
}

.mini-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.mini-game-box {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.mini-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.mini-game-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.mini-game-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mini-game-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.mini-game-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#game-canvas {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
}

.game-info {
    display: flex;
    gap: 40px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 600;
}

.game-score,
.game-high-score {
    color: var(--text-secondary);
}

.game-score span,
.game-high-score span {
    color: var(--accent);
    margin-left: 8px;
}

.game-controls {
    display: flex;
    gap: 12px;
}

.game-btn {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-projects-rgb), 0.4);
}

/* Game Layout */
.game-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    min-height: 400px;
}

#game-canvas {
    display: block;
    margin: 0 auto;
}

.game-leaderboard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-leaderboard h4 {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 20px 0;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.leaderboard-entry .rank {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 20px;
}

.leaderboard-entry .name {
    color: var(--text-secondary);
    flex: 1;
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-entry .score {
    color: var(--accent);
    font-weight: 600;
}

/* Name Input Modal */
.name-input-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.name-input-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.name-input-box h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.name-input-box p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-size: 14px;
}

.name-input-box input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.name-input-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-projects-rgb), 0.1);
}

.name-input-box input::placeholder {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .mini-game-box {
        width: 95%;
        max-width: none;
    }

    .mini-game-content {
        padding: 16px;
    }

    .game-main {
        min-height: 300px;
    }

    #game-canvas {
        max-width: 100%;
        height: auto;
    }

    .game-leaderboard {
        width: 95%;
        max-width: none;
        padding: 16px;
    }

    .game-info {
        gap: 20px;
        font-size: 16px;
    }

    .name-input-box {
        padding: 24px;
    }
}

/* ==================== SKILL RADAR ==================== */

.skill-radar-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin: 60px 0 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.skill-radar {
    width: 300px;
    height: 300px;
    max-width: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.radar-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 200px;
}

.radar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.radar-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.radar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px currentColor;
}

.radar-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

[data-theme="dark"] .radar-item {
    background: rgba(30, 41, 59, 0.6);
}

[data-theme="dark"] .radar-item:hover {
    background: rgba(30, 41, 59, 0.8);
}

@media (max-width: 960px) {
    .skill-radar-container {
        flex-direction: column;
        gap: 30px;
    }

    .skill-radar {
        width: 250px;
        height: 250px;
    }

    .radar-legend {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== GITHUB METRICS DASHBOARD ==================== */

#github-metrics {
    margin: 0;
    padding: 0;
}

.metrics-header {
    display: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

.metric-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-stat {
    grid-column: span 1;
}

.metric-languages,
.metric-trending {
    grid-column: span 2;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.language-tag {
    padding: 4px 8px;
    background: rgba(var(--accent-projects-rgb), 0.15);
    border: 1px solid rgba(var(--accent-projects-rgb), 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-projects);
    font-family: 'IBM Plex Mono', monospace;
}

.repos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.repo-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(var(--accent-projects-rgb), 0.08);
    border: 1px solid rgba(var(--accent-projects-rgb), 0.2);
    border-radius: 4px;
    text-decoration: none;
    color: var(--accent-projects);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.repo-link:hover {
    background: rgba(var(--accent-projects-rgb), 0.15);
    border-color: rgba(var(--accent-projects-rgb), 0.4);
    gap: 4px;
}

.repo-name {
    font-family: 'IBM Plex Mono', monospace;
}

.repo-stars {
    font-size: 11px;
    font-weight: 700;
}

.metrics-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.metrics-updated {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

@media (max-width: 960px) {
    .metric-languages,
    .metric-trending {
        grid-column: span 1;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .metric-icon {
        font-size: 24px;
    }

    .metric-languages,
    .metric-trending {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }
}

/* Reduced motion animations for waves */
@keyframes waveReducedGentle {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(-10px) scaleY(0.99);
    }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.wave-back):not(.wave-mid):not(.wave-front) {
        animation: none !important;
        transition: none !important;
    }

    /* Keep wave animations but make them much gentler and slower */
    .section-divider .wave-back,
    .section-divider .wave-mid,
    .section-divider .wave-front {
        animation: waveReducedGentle 25s ease-in-out infinite !important;
    }

    .scroll-to-top {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .scroll-to-top.is-visible {
        transform: none;
    }

    .scroll-to-top:hover,
    .scroll-to-top:active {
        transform: none;
    }

    /* Command Palette Mobile Adjustments */
    .command-palette-box {
        width: 90vw;
        max-width: 500px;
    }

    .command-input {
        font-size: 16px;
    }

    .command-results {
        max-height: 50vh;
    }
}