@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0f0f0f;
    --bg-elevated: #1a1a1a;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border-primary: #1f1f23;
    --border-secondary: #27272a;
    --glow-primary: rgba(99, 102, 241, 0.5);
    --glow-secondary: rgba(139, 92, 246, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 2rem;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}


.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 60px var(--glow-primary);
    animation: profileGlow 4s ease-in-out infinite alternate;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    animation: rotate 8s linear infinite;
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--text-tertiary);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-success);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.online {
    background: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success);
}

.status-dot.idle {
    background: var(--accent-warning);
    box-shadow: 0 0 12px var(--accent-warning);
}

.status-dot.dnd {
    background: var(--accent-danger);
    box-shadow: 0 0 12px var(--accent-danger);
}

.status-dot.offline {
    background: var(--text-tertiary);
    box-shadow: none;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.status-dot.idle::after {
    background: var(--bg-primary);
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-radius: 50%;
}

.status-dot.dnd::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 20%;
    background: var(--bg-primary);
    top: 40%;
    left: 20%;
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero .location {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
}


.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
}


.section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.section:hover::before {
    opacity: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}


.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-group:hover::before {
    transform: scaleX(1);
}

.skill-group:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    color: white;
    border-color: var(--accent-primary);
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag span {
    position: relative;
    z-index: 1;
}


.activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.activity-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-item .emoji {
    width: 16px;
    height: 16px;
}


.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.server-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-success), var(--accent-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.server-card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
}

.server-logo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.server-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: var(--text-tertiary);
    box-shadow: none;
    animation: none;
}

.server-role {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.connections-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connection-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.connection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-card:hover {
    border-color: var(--border-secondary);
    transform: translateX(4px);
    color: var(--text-primary);
}

.connection-card:hover::before {
    opacity: 1;
}

.connection-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.connection-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 0.125rem;
}

.connection-info p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}


.github-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.github-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.github-stat:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.github-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.github-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.github-commits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.commit-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.commit-item:hover {
    border-color: var(--border-secondary);
    transform: translateX(2px);
}

.commit-item:hover::before {
    opacity: 1;
}

.commit-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.commit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.commit-repo {
    font-weight: 500;
    color: var(--accent-primary);
}


.languages-bar-chart {
    margin-top: 1rem;
}

.languages-bar-chart h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

#languagesChart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-bar span:first-child {
    min-width: 100px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.language-progress-container {
    flex-grow: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}


.star-button-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.star-button-container:hover {
    transform: translateY(-2px);
    border-color: var(--border-secondary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.star-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.star-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--accent-warning), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.star-button:hover::before {
    opacity: 0.2;
}

.star-icon {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

.star-icon.active {
    color: #fbbf24;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.star-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.star-count.updated {
    transform: scale(1.2);
    color: #fbbf24;
}


.star-particle {
    position: absolute;
    pointer-events: none;
    font-size: 0.8rem;
    color: #fbbf24;
    animation: particleFloat 1s ease-out forwards;
}


.demo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
}

.demo-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}


.loading-skeleton {
    background: var(--bg-tertiary);
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profileGlow {
    0% { box-shadow: 0 0 60px var(--glow-primary); }
    100% { box-shadow: 0 0 80px var(--glow-secondary); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1.1); }
}

@keyframes countBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--random-x, 0), var(--random-y, -30px)) scale(0.5);
    }
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.star-icon.animate {
    animation: starPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-count.animate {
    animation: countBounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .star-button-container {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .star-icon {
        font-size: 1.25rem;
    }
    
    .star-count {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .skill-tags {
        gap: 0.375rem;
    }
    
    .skill-tag {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .server-header {
        gap: 0.75rem;
    }
    
    .staff-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .server-logo {
        width: 40px;
        height: 40px;
    }
    
    .github-stats {
        grid-template-columns: 1fr;
    }
}