:root {
    --bg-primary: #0b0f1a;
    --bg-card: rgba(17, 24, 39, 0.75);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-light: rgba(59, 130, 246, 0.15);
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 24s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 60px) scale(1.2); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    z-index: 10;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
    min-height: auto;
}

.hero-left {
    max-width: 500px;
}

.hero-name {
    font-size: clamp(42px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 0%, var(--accent) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-aka {
    display: block;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: none;
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.clickable-brand {
    color: var(--accent);
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
}

.clickable-brand:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.clickable-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: left;
}

.clickable-brand:hover::after {
    transform: scaleX(1);
}

.hero-statement {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Discord Card */
.discord-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: var(--spacing-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    max-width: 440px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.discord-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px var(--accent-glow);
}

.discord-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-banner.active {
    opacity: 0.5;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.discord-card:hover .card-glow {
    opacity: 0.15;
}

.discord-skeleton {
    display: flex;
    gap: var(--spacing-md);
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--accent-glow) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 18px;
    background: var(--border-light);
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
    width: 100%;
    animation: skeleton 1.5s ease infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.discord-content {
    display: none;
    position: relative;
    z-index: 2;
}

.discord-profile {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Avatar Ring Styles */
.avatar-ring {
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring.online {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
    animation: ringPulse 2s ease infinite;
}

.avatar-ring.idle {
    background: linear-gradient(145deg, #eab308, #ca8a04);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}

.avatar-ring.dnd {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.avatar-ring.offline {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.3);
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 1); }
}

.avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
}

.discord-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Corner Dot */
.status-corner-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-corner-dot.online {
    background: #22c55e;
    animation: dotPulse 2s ease infinite;
}

.status-corner-dot.idle {
    background: #eab308;
}

.status-corner-dot.dnd {
    background: #ef4444;
}

.status-corner-dot.offline {
    background: #6b7280;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.5); }
}

.discord-user {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discord-username {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.discord-tag {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.discord-custom-status {
    font-size: 14px;
    color: var(--text-secondary);
    display: none;
}

.discord-custom-status.active {
    display: block;
}

.discord-activity {
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-md);
    display: none;
}

.discord-activity.active {
    display: block;
}

.activity-type {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.activity-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-details {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Spotify Card */
.spotify-card {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
}

.spotify-card.active {
    display: flex;
}

.spotify-album {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.spotify-info {
    flex: 1;
}

.spotify-song {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.spotify-artist {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s linear;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stack {
    margin: var(--spacing-3xl) 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.stack-card {
    height: 120px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    cursor: default;
}

.stack-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.stack-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.stack-card:hover .stack-icon {
    transform: scale(1.1);
}

.stack-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hub {
    margin: var(--spacing-3xl) 0;
}

.hub-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: var(--spacing-xl);
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hub-card:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 50px var(--accent-glow);
}

.hub-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.hub-card:hover .hub-icon {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.server-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-content {
    flex: 1;
}

.hub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hub-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hub-meta {
    font-size: 14px;
    color: var(--accent);
}

.socials {
    margin: var(--spacing-3xl) 0;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-link {
    width: 52px;
    height: 52px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    color: var(--accent);
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: var(--spacing-xl) 0 0;
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-3xl);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-button {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px var(--accent-glow);
    margin-top: var(--spacing-sm);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
    background: #2563eb;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-left {
        margin: 0 auto;
    }

    .discord-card {
        margin: 0 auto;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    :root {
        --spacing-3xl: 50px;
    }

    .container {
        padding: var(--spacing-md);
    }

    .stack-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .hub-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .social-grid {
        gap: var(--spacing-sm);
    }

    .modal-container {
        padding: var(--spacing-lg);
    }
}