:root {
    --bg-dark: #050510;
    --grid-line: rgba(0, 243, 255, 0.1);
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --text-main: #e0e0e0;
    --glass-bg: rgba(5, 5, 16, 0.7);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1000px;
}

/* CRT Scanline Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--neon-cyan), #fff, var(--neon-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 4rem;
    display: block;
}

/* Sections */
section {
    margin-bottom: 5rem;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.5s; }

.panel {
    background: var(--glass-bg);
    border: 1px solid var(--neon-cyan);
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1), inset 0 0 20px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(5px);
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-magenta));
    z-index: -1;
    opacity: 0.5;
}

.panel-header {
    border-bottom: 1px solid var(--grid-line);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.avatar-frame {
    width: 250px;
    height: 250px;
    border: 4px solid var(--neon-magenta);
    border-radius: 50%; /* Circular for avatar */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
    margin: 0 auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--neon-magenta);
}

.avatar-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px var(--neon-magenta);
}

/* Skills */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: default;
}

.tag:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.tag.pro {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    background: rgba(255, 0, 255, 0.1);
}

.tag.pro:hover {
    background: var(--neon-magenta);
    color: #000;
    box-shadow: 0 0 15px var(--neon-magenta);
}

/* Games & Data */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.data-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-left: 3px solid var(--neon-cyan);
}

.data-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary); /* Fallback */
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.data-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
}

/* Navigation */
.back-btn {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Coffee Status */
.coffee-status {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.coffee-bar-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.coffee-bar {
    height: 100%;
    /* Coffee color gradient: dark brown -> orange */
    background: linear-gradient(90deg, #8B4513, #FF8C00); 
    width: 0%; /* JS will calculate this */
    box-shadow: 0 0 10px #FF8C00;
    transition: width 0.5s ease;
}

.buy-coffee-btn {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid #FF8C00;
    color: #FF8C00;
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.buy-coffee-btn:hover {
    background: rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
}
/* Gaming Grid */
.gaming-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gaming-card {
    position: relative;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.gaming-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.gaming-card.playing::before {
    opacity: 0.6;
}

.gaming-platform {
    position: relative;
    z-index: 2;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.gaming-status {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.gaming-offline {
    text-align: center;
    opacity: 0.5;
}

.offline-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.offline-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gaming-now-playing {
    text-align: center;
    width: 100%;
}

.game-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.game-platform-tag {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .gaming-grid {
        grid-template-columns: 1fr;
    }
}
