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

:root {
    --bg: #050506;
    --bg-alt: #0d0d0f;
    --text: #f0f0f0;
    --text-dim: #888888;
    --accent: #a82020;
    --accent-glow: rgba(168, 32, 32, 0.4);
    --border: #1f1f23;
    --card-bg: #0a0a0c;
    --gradient-1: linear-gradient(135deg, #a82020 0%, #5a1010 100%);
    --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('normal cursor.cur'), auto;
    background-image: url('bg.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cursor {
    display: none;
}

.cursor-follower {
    display: none;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 26, 26, 0.05) 0%, transparent 50%),
        rgba(10, 10, 11, 0.85);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.avatar {
    width: 140px;
    height: 140px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(168, 32, 32, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px var(--accent-glow), 0 0 120px rgba(168, 32, 32, 0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-bottom: 32px;
}

.name {
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #f0f0f0 0%, #a82020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(168, 32, 32, 0.3);
}

.tagline {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.status-dot.online {
    background: #22c55e;
}

.status-dot.idle {
    background: #f59e0b;
}

.status-dot.dnd {
    background: #ef4444;
}

.status-dot.offline {
    background: #6b7280;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.activity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.activity-icon {
    font-size: 14px;
}

.activity-text {
    font-size: 12px;
}

.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.spotify-icon {
    font-size: 14px;
}

.spotify-text {
    font-size: 12px;
}

.rainbow-text {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icon:hover::before {
    opacity: 0.2;
}

.social-icon svg {
    width: 28px;
    height: 28px;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon:hover {
    border-color: var(--accent);
    transform: translateY(-6px) rotate(5deg);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.favicon-img {
    width: 28px;
    height: 28px;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-icon:hover .favicon-img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .name {
        font-size: 32px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .socials {
        gap: 12px;
    }
    
    .social-link {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}
