*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --card: #111111;
    --border: #1e1e1e;
    --border-hover: #2a2a2a;
    --text: #e0e0e0;
    --text-secondary: #777777;
    --text-muted: #444444;
    --white: #ffffff;
    --blue: #3b82f6;
    --max-width: 880px;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url('assets/cursor.png') 16 16, auto;
}

a, button, .avatar-card {
    cursor: url('assets/cursor.png') 16 16, pointer;
}

/* PARTICLES */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

#feathers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.feather {
    position: absolute;
    width: 28px;
    height: auto;
    pointer-events: auto;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.feather.dragging {
    cursor: grabbing;
    z-index: 10;
}

/* NAV */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 18px 24px;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg) 70%, transparent);
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

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

.nav-logo {
    padding: 0 4px;
}

.nav-logo:hover {
    background: transparent;
}

.nav-logo img {
    height: 28px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

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

/* MAIN */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* HERO */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
}

.hero-tag {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
}

/* AVATAR CARD */

.avatar-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.avatar-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.avatar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    height: 18px;
    width: auto;
    flex-shrink: 0;
}

.hero-groups-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 12px;
}

.groups-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.group-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.2s ease;
    cursor: url('assets/cursor.png') 16 16, pointer;
}

.group-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.group-card img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.group-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
}

/* SECTIONS */

.about,
.stats,
.contact {
    padding: 60px 0;
}

/* CARD */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(220, 38, 38, 0.06),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.card-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-text strong {
    color: var(--white);
    font-weight: 600;
}

/* STATS */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
}

.stat {
    background: var(--card);
    padding: 28px 20px;
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: block;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 8px;
    display: block;
}

/* CONTACT */

.email-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 15px;
    color: var(--white);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.email-link:hover {
    border-color: var(--text-secondary);
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ANIMATIONS */

.fade {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade.visible {
    opacity: 1;
    transform: scale(1);
}

.fade:nth-child(1) { transition-delay: 0s; }
.fade:nth-child(2) { transition-delay: 0.08s; }
.fade:nth-child(3) { transition-delay: 0.16s; }

/* MUSIC CONTROLS */

.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    z-index: 200;
    transition: border-color 0.2s ease;
}

.music-controls:hover {
    border-color: var(--border-hover);
}

.music-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: url('assets/cursor.png') 16 16, pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.music-btn:hover {
    color: var(--white);
}

.music-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: url('assets/cursor.png') 16 16, pointer;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    cursor: url('assets/cursor.png') 16 16, pointer;
    transition: transform 0.15s ease;
}

.music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: url('assets/cursor.png') 16 16, pointer;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .nav {
        gap: 16px;
        padding: 14px 16px;
    }

    .nav a {
        font-size: 11px;
    }

    .nav-logo img {
        height: 22px;
    }

    main {
        padding: 0 16px;
    }

    .hero {
        min-height: 65vh;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .card {
        padding: 28px 24px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 24px 16px;
    }

    .stat-num {
        font-size: 26px;
    }

    .about,
    .stats,
    .contact {
        padding: 40px 0;
    }

    .avatar-card {
        padding: 5px 12px 5px 5px;
        gap: 8px;
    }

    .avatar-img {
        width: 28px;
        height: 28px;
    }

    .avatar-name {
        font-size: 13px;
    }

    .groups-row {
        gap: 8px;
    }

    .group-card {
        padding: 4px 10px 4px 4px;
    }

    .group-card img {
        width: 20px;
        height: 20px;
    }

    .group-card span {
        font-size: 11px;
    }
}
