/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Futuristic Theme */
    --primary-color: #00d9ff;
    --primary-hover: #00b8d4;
    --secondary-color: #8b5cf6;
    --bg-color: #0a0e27;
    --bg-secondary: #0f1419;
    --card-bg: #1a1f3a;
    --card-hover: #222847;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #2d3548;
    --border-glow: rgba(0, 217, 255, 0.3);
    --accent-dark: #0a0e27;
    --accent-cyan: #00d9ff;
    --accent-purple: #a855f7;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 217, 255, 0.1);
    --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 217, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0;
    box-shadow: var(--shadow), 0 4px 0 var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--primary-color);
}

.header-content {
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Featured Banner */
.featured-banner {
    background: var(--bg-secondary);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.featured-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--card-hover);
    border-color: var(--primary-color);
}

.featured-logo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.featured-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-text {
    flex: 1;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.featured-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.featured-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--primary-color);
}

.featured-content:hover .featured-badge {
    transform: translateX(8px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

/* Telegram Groups Section */
.telegram-section {
    background: var(--bg-color);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.telegram-header {
    text-align: center;
    margin-bottom: 2rem;
}

.telegram-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.telegram-header p {
    color: var(--text-secondary);
}

.telegram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.telegram-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.telegram-btn:hover {
    border-color: var(--primary-color);
    background: var(--card-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.telegram-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.telegram-name {
    flex: 1;
    text-align: left;
}

/* Recruitment Hero Section */
.recruitment-hero {
    background: var(--bg-secondary);
    padding: 4rem 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 0 var(--primary-color), var(--shadow);
}

.recruitment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.recruitment-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recruitment-image {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.recruitment-image:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.recruitment-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recruitment-image-caption {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fbbf24;
    text-align: center;
    padding: 1.25rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.recruitment-image-caption strong {
    color: #fcd34d;
}

.recruitment-text {
    color: white;
}

.recruitment-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.recruitment-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.recruitment-cta {
    font-size: 1.3rem;
    font-weight: 600;
    color: #22d3ee;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Learning Path Section */
.learning-path-section {
    background: var(--bg-color);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.learning-path-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.learning-path-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.learning-path-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.learning-path-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.path-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transition: all 0.3s ease;
}

.path-card-1::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.path-card-2::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.path-card-3::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.path-card-4::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: var(--card-hover);
}

.path-card-1:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), var(--shadow-hover);
}

.path-card-2:hover {
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), var(--shadow-hover);
}

.path-card-3:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), var(--shadow-hover);
}

.path-card-4:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), var(--shadow-hover);
}

.path-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.path-card-1 .path-number {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.path-card-2 .path-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.path-card-3 .path-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.path-card-4 .path-number {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.path-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.path-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.learning-path-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.learning-path-footer p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Social Media Section */
.social-section {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.social-header {
    text-align: center;
    margin-bottom: 3rem;
}

.social-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.social-platform {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-platform:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: var(--card-hover);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.platform-icon {
    font-size: 2rem;
}

.platform-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

/* TikTok */
.social-btn.tiktok:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

/* Instagram */
.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: white;
}

/* YouTube */
.social-btn.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

/* Facebook */
.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

/* Main Content */
.main {
    flex: 1;
    padding: 3rem 0;
    background: var(--bg-color);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

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

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

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: var(--card-hover);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link::after {
    content: '→';
    font-size: 1.2rem;
}

/* Hidden state for filtered cards */
.card.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 0 var(--primary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .featured-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .featured-logo {
        width: 130px;
        height: 130px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-description {
        font-size: 1rem;
    }

    .featured-badge {
        padding: 0.75rem 1.5rem;
    }

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

    .recruitment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .recruitment-text h2 {
        font-size: 2rem;
    }

    .recruitment-text p {
        font-size: 1rem;
    }

    .recruitment-cta {
        font-size: 1.15rem;
    }

    .recruitment-image-caption {
        font-size: 1rem;
        padding: 1rem;
    }

    .learning-path-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .learning-path-header h3 {
        font-size: 1.5rem;
    }

    .learning-path-header p {
        font-size: 1rem;
    }

    .path-card {
        padding: 1.5rem;
    }

    .path-card h4 {
        font-size: 1.25rem;
    }

    .social-platforms {
        grid-template-columns: 1fr;
    }

    .social-header h3 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .header {
        padding: 2rem 0;
    }

    .main {
        padding: 2rem 0;
    }
}

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

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.25rem;
}

/* GitHub Repositories Section */
.github-section {
    background: var(--bg-color);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.github-header {
    text-align: center;
    margin-bottom: 3rem;
}

.github-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.github-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.github-card:hover {
    transform: translateY(-4px);
    border-color: #6e5494;
    background: var(--card-hover);
    box-shadow: 0 0 30px rgba(110, 84, 148, 0.3), var(--shadow-hover);
}

.github-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.github-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.github-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.github-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.github-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.github-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.github-footer {
    text-align: center;
    margin-top: 1rem;
}

.github-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-view-all:hover {
    background: var(--card-hover);
    border-color: #6e5494;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(110, 84, 148, 0.3);
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.featured-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .github-grid {
        grid-template-columns: 1fr;
    }

    .github-header h3 {
        font-size: 1.5rem;
    }

    .video-section {
        padding: 2rem 0;
    }

    .video-wrapper {
        border-radius: 12px;
    }
}
