/* ===============================
   OpenPlayground - Responsive Design System
   Mobile-First Approach with Enhanced Responsiveness
   =============================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties - Light Theme */
:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent Colors */
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;

    /* Semantic Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface: #ffffff;
    --surface-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;

    --border-light: #e2e8f0;
    --border-default: #cbd5e1;
    --border-focus: var(--primary-500);

    /* Effects */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px var(--primary-500);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);

    /* Spacing - Mobile First */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

    scroll-behavior: smooth;
}

/* Dark Theme */
html[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --surface: #1e293b;
    --surface-elevated: #334155;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-disabled: #64748b;

    --border-light: #334155;
    --border-default: #475569;

    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    --shadow-glow: 0 0 60px -10px var(--primary-400);

    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-secondary) 100%);

    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(71, 85, 105, 0.5);
}

/* Base Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===============================
   RESPONSIVE NAVBAR
   =============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    z-index: 9999;
    transition: all var(--transition-slow);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-logo i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links a {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Animated Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 22px;
    height: 22px;
    overflow: visible;
    opacity: 0.;
    transition: transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.sun-core {
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-rays {
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.moon-bite {
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-icon {
    transform: rotate(0deg);
}

[data-theme="light"] .sun-core {
    transform: scale(1);
}

[data-theme="light"] .sun-rays {
    transform: scale(1.1);
    opacity: 1;
}

[data-theme="light"] .moon-bite {
    transform: translate(20px, -20px);
}

[data-theme="dark"] .theme-icon {
    transform: rotate(-10deg);
}

[data-theme="dark"] .sun-core {
    transform: scale(1.4);
}

[data-theme="dark"] .sun-rays {
    transform: scale(0.1);
    opacity: 0;
}

[data-theme="dark"] .moon-bite {
    transform: translate(5px, -1.5px) scale(0.6);
}

/* ===============================
   RESPONSIVE HERO SECTION
   =============================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--space-4);
    padding-top: calc(var(--space-20) + 70px);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-600);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ===============================
   SECTION HEADERS
   =============================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
    padding: 0 var(--space-4);
}

.section-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-muted);
}

/* ===============================
   RESPONSIVE PROJECTS SECTION
   =============================== */
.projects-section {
    padding: var(--space-20) var(--space-4);
}

/* Controls */
.controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-4);
}

.search-box,
.sort-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    transition: all var(--transition-fast);
    min-width: 200px;
}

.search-box:focus-within,
.sort-box:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box i,
.sort-box i {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.search-box input,
.sort-box select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.sort-box select {
    cursor: pointer;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
    padding: 0 var(--space-4);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Projects Grid - Mobile First */
.projects-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
    .projects-container {
        gap: var(--space-3);
        padding: 0 var(--space-3);
    }

    .card {
        margin-bottom: var(--space-2);
    }
}

/* Project Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.card-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-500);
    background: var(--gradient-subtle);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.card-cover i {
    transition: transform var(--transition-spring);
}

.card:hover .card-cover i {
    transform: scale(1.2) rotate(5deg);
}

.card-content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.card-heading {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.category-tag {
    flex-shrink: 0;
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.card-tech {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.card-tech span {
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    flex-wrap: wrap;
    padding: 0 var(--space-4);
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ===============================
   CONTRIBUTE SECTION
   =============================== */
.contribute-section {
    position: relative;
    padding: var(--space-24) var(--space-4);
    background: var(--gradient-subtle);
    overflow: hidden;
}

.contribute-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.steps-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.step-number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
}

.step-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.code-block {
    margin-top: var(--space-4);
    background: #1e293b;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: relative;
    overflow-x: auto;
}

.code-block code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #e2e8f0;
    word-break: break-all;
    white-space: pre-wrap;
}

/* ===============================
   CONTRIBUTORS SECTION
   =============================== */
.contributors-section {
    padding: var(--space-20) var(--space-4);
}

.contributors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-5);
}

.contributor-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.contributor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.contributor-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    object-fit: cover;
    border: 3px solid var(--bg-tertiary);
    transition: all var(--transition-base);
}

.contributor-card:hover .contributor-avatar {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.contributor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: var(--space-16) var(--space-4);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-light);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: var(--space-2) 0 0 0;
}

.footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.footer-social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-size: 1.2rem;
    border: 1px solid var(--border-light);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.footer-contact-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-contact-info a {
    color: var(--primary-500);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact-info a:hover {
    color: var(--accent-500);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    padding-top: var(--space-8);
}

.footer-bottom-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.heart {
    color: #ef4444;
    animation: pulse-heart 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-heart {

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

    50% {
        transform: scale(1.2);
    }
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-bottom-links {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--primary-500);
    transition: color var(--transition-base);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom-links a:hover {
    color: var(--accent-500);
    text-decoration: underline;
}

.divider {
    color: var(--text-muted);
}

/* ===============================
   CHATBOT STYLES
   =============================== */
.chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 26px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-base);
}

.chatbot-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 320px;
    max-width: calc(100vw - 50px);
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    border: 1px solid var(--border-light);
}

.chatbot-header {
    background: var(--gradient-primary);
    padding: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header span:last-child {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.chatbot-header span:last-child:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    padding: 12px;
    height: 280px;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.bot-msg,
.user-msg {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-msg {
    background: var(--primary-100);
    color: var(--text-primary);
}

.user-msg {
    background: var(--primary-500);
    color: white;
    margin-left: auto;
    text-align: right;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.chatbot-input input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
}

.chatbot-input button {
    background: var(--primary-500);
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.chatbot-input button:hover {
    background: var(--primary-600);
}


/* Empty State */

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin: var(--space-8) auto;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    color: var(--primary-500);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* Loading Skeleton */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.skeleton-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 100px;
    height: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-5);
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .controls-wrapper {
        gap: var(--space-3);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .nav-container {
        padding: var(--space-4) var(--space-6);
    }

    .nav-links {
        gap: var(--space-8);
    }

    .hero-section {
        padding: var(--space-24) var(--space-6);
    }

    .hero-actions {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .footer-content {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .controls-wrapper {
        flex-direction: row;
    }

    .search-box,
    .sort-box {
        min-width: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        gap: var(--space-12);
    }

    .stat-divider {
        display: block;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(20px) saturate(180%);
        padding: var(--space-8);
        gap: var(--space-6);
        display: none;
        z-index: 9999;
        border-top: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .theme-toggle-container {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid var(--border-light);
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero-section {
        min-height: 90vh;
        padding: var(--space-16) var(--space-4);
        padding-top: calc(var(--space-16) + 70px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    .stat-divider {
        display: none;
    }

    .category-filter {
        gap: var(--space-2);
    }

    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }

    .filter-btn i {
        display: none;
    }

    .controls-wrapper {
        flex-direction: column;
    }

    .search-box,
    .sort-box {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }

    .chatbot-container {
        right: var(--space-4);
        left: var(--space-4);
        width: auto;
        height: 70vh;
        max-width: none;
    }

    .chatbot-btn {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    #scrollToTopBtn {
        bottom: 85px;
        right: var(--space-4);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-cover {
        height: 120px;
    }

    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--space-3);
    }

    .contributor-card {
        padding: var(--space-4);
    }

    .contributor-avatar {
        width: 56px;
        height: 56px;
    }

    .step-card {
        padding: var(--space-5);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --text-muted: #000000;
    }

    [data-theme="dark"] {
        --border-light: #ffffff;
        --text-muted: #ffffff;
    }
}

/* Contributor Badge Styles */
.contributor-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
}

.contributor-badge.maintainer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.contributor-badge.developer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.contributor-badge.contributor {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Fix page alignment */
.section-header,
.controls-wrapper,
.category-filter,
.projects-container,
.steps-grid,
.contributors-grid,
.pagination-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure all projects are visible */
.projects-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.card {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}

.card.hidden {
    display: block !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .theme-toggle-container,
    .theme-toggle-container *,
    .theme-toggle,
    .theme-toggle * {
        transition-property: all !important;
        animation-duration: inherit !important;
    }

    .theme-toggle-container .theme-icon {
        transition: transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
        will-change: auto !important;
    }

    .theme-toggle-container .sun-core {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: auto !important;
    }

    .theme-toggle-container .sun-rays {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
        opacity: 0.4s ease !important;
        will-change: auto !important;
    }

    .theme-toggle-container .moon-bite {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: auto !important;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 0 0.25rem;
    }
}

.contributors-show-more {
    text-align: center;
    margin: 2rem auto;
    width: 100%;
}

/* Mentors Grid - Centered Layout */
#mentors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

#mentors-grid .contributor-card {
    flex: 0 0 auto;
}

/* Mentor Badge Styles */
.mentor-card {
    position: relative;
    border: 2px solid var(--primary-500) !important;
}

.mentor-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Attractive Footer Styles */
.attractive-footer {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
    overflow: hidden;
}

.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.animated-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.animated-logo:hover {
    transform: scale(1.05);
}

.animated-logo i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

.social-link.github:hover {
    background: #333;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.discord:hover {
    background: #5865f2;
}

.social-link.email:hover {
    background: #ea4335;
}

.animated-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

.animated-divider {
    background: var(--gradient-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-500);
    }

    to {
        box-shadow: 0 0 20px var(--primary-500);
    }
}

.projects-show-more {
    text-align: center;
    margin: 2rem auto;
    width: 100%;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.view-all-btn:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

/* Footer Alignment */
.footer {
    text-align: center;
}

.footer-content {
    justify-content: center;
    align-items: center;
}

.footer-social-links {
    justify-content: center;
}

/* Fix layout issues on smaller screens */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .content,
  .main-content {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .cards,
  .projects,
  .grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}