:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(18, 20, 29, 0.7);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --kick-color: #53fc18;
    --twitch-color: #9146ff;
    --youtube-color: #ff0000;
    --telegram-color: #0088cc;
    --tiktok-color: #ff0050;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.orb-1 { top: -100px; left: -100px; background: var(--primary); }
.orb-2 { bottom: -100px; right: -100px; background: var(--accent); }

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.highlight { color: var(--accent); }
.nav-menu { display: flex; gap: 1.5rem; }

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.live-indicator.is-live .pulse-dot {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--primary-glow);
    border-radius: 20px;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title { font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.hero-avatar-wrapper { position: relative; display: flex; justify-content: center; }
.avatar-card { position: relative; width: 260px; height: 260px; }

.avatar-box {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.avatar-icon { font-size: 6rem; color: var(--primary); }

.avatar-glow {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    filter: blur(25px);
    opacity: 0.3;
    z-index: -1;
}

.stat-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-top { top: -10px; right: -20px; color: var(--twitch-color); }
.badge-bottom { bottom: -10px; left: -20px; color: var(--accent); }

.section-block { margin-top: 4rem; }
.section-title { font-size: 1.75rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }

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

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: var(--transition);
}

.social-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.social-icon { font-size: 2rem; }
.twitch .social-icon { color: var(--twitch-color); }
.kick .social-icon { color: var(--kick-color); }
.youtube .social-icon { color: var(--youtube-color); }
.tiktok .social-icon { color: var(--tiktok-color); }
.telegram .social-icon { color: var(--telegram-color); }

.social-info h3 { font-size: 1.1rem; }
.social-info p { font-size: 0.8rem; color: var(--text-muted); }

.external-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stream-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.player-controls { display: flex; gap: 1rem; margin-bottom: 1rem; }

.player-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.player-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.player-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-fallback { text-align: center; padding: 2rem; }
.live-big-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.clip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.clip-card:hover { transform: translateY(-4px); }

.clip-thumb {
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay { font-size: 2.5rem; color: var(--primary); opacity: 0.8; }

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.clip-body { padding: 1rem; }

.terminal-card {
    background: #0d1117;
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
    font-family: 'Consolas', monospace;
}

.terminal-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title { font-size: 0.85rem; color: var(--text-muted); }
.terminal-body { padding: 1.25rem; font-size: 0.95rem; }
.term-user { color: var(--accent); }
.term-output { color: #8b949e; margin-top: 0.5rem; line-height: 1.6; }

.filter-bar { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.folder-icon { font-size: 1.5rem; color: var(--primary); }
.github-link { color: var(--text-muted); font-size: 1.25rem; }
.github-link:hover { color: var(--text-main); }

.project-card h3 { margin-bottom: 0.5rem; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    color: var(--accent);
}

.footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border-card);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-main); }

@media (max-width: 768px) {
    .hero-section { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
}
