/* ==================================
   TRIMMED GAMING PORTFOLIO CSS
   Only styles actually in use
   ================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Enhanced Gaming Palette */
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --primary-light: #4dffa8;
    --secondary-color: #ff6b35;
    --secondary-dark: #e55520;
    --secondary-light: #ff8b5a;
    --accent-color: #8a2be2;
    --accent-dark: #6a1bb3;
    --accent-light: #a855f7;
    
    /* Gaming Interface Colors - Matching Reference Image */
    --gaming-bg: #f5f1e8;
    --gaming-bg-dark: #e8dcc6;
    --gaming-bg-light: #faf7f0;
    --gaming-border: #8b4513;
    --gaming-border-dark: #654321;
    --gaming-text: #3c2414;
    --gaming-text-light: #654321;
    --gaming-text-muted: #8b7355;
    
    --background-dark: #0a0a0a;
    --background-medium: #1a1a1a;
    --background-light: #2a2a2a;
    --background-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-accent: #00ff88;
    --border-color: #333333;
    --border-light: #404040;
    --success-color: #00ff88;
    --warning-color: #ffd166;
    --error-color: #ef476f;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-xxl: 2rem;
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;
    
    /* Typography */
    --font-family-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-hover: 0 0 30px rgba(0, 255, 136, 0.5);
    --shadow-accent: 0 0 20px rgba(138, 43, 226, 0.3);
    --shadow-accent-hover: 0 0 30px rgba(138, 43, 226, 0.5);
    
    /* Border radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Global Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background: var(--background-dark);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--background-dark) 0%, #0f0f0f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-medium);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--accent-light));
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: var(--background-dark);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--background-dark);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    z-index: 10001;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-round);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Main Game Container */
.game-container {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Game Header */
.game-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.nav-tab {
    background: linear-gradient(135deg, var(--background-light), var(--background-medium));
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 120px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    transition: left var(--transition-slow);
}

.nav-tab:hover::before,
.nav-tab:focus::before {
    left: 100%;
}

.nav-tab:hover,
.nav-tab:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--gaming-bg) 0%, var(--gaming-bg-dark) 100%);
    border-color: var(--gaming-border);
    color: var(--gaming-text);
    box-shadow: 
        var(--shadow-lg), 
        inset 0 2px 4px rgba(139, 69, 19, 0.2),
        inset 0 -2px 4px rgba(245, 241, 232, 0.3);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-icon {
    font-size: var(--font-size-lg);
}

.nav-text {
    font-weight: 700;
}

/* Main Content */
.game-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
    width: 100%;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 100px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Special styling for perks section */
.game-content:has(#perks-section.active) {
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc6 100%);
    padding: var(--spacing-lg);
}

.game-section {
    display: none;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    flex: 1;
    position: relative;
    z-index: 1;
    animation: fadeIn var(--transition-slow) ease-out;
}

.game-section.active {
    display: flex;
    flex-direction: column;
}

/* Special styling for active perks section */
.game-section#perks-section.active {
    background: transparent;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3xl);
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

/* Profile Section */
.profile-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(30, 30, 30, 0.6));
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-2xl);
}

.player-avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: var(--spacing-lg);
}

.player-avatar::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color)) border-box;
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.7);
        transform: scale(1.08);
    }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-round);
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    transition: all var(--transition-normal);
    filter: brightness(1.1) contrast(1.2);
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-hover);
    filter: brightness(1.2) contrast(1.3);
}

.status-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border: 3px solid var(--background-dark);
    border-radius: var(--radius-round);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.profile-info {
    position: relative;
}

.profile-info h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.profile-info h2 {
    font-size: var(--font-size-xl);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 119, 0, 0.3);
    position: relative;
    z-index: 2;
}

.profile-bio {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    font-size: var(--font-size-lg);
}

.personal-interests h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.personal-interests p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
    flex: 1;
    overflow: hidden;
    align-content: start;
    height: 100%;
}

/* Perks Section - Gaming Skill Tree Style */
.perks-container {
    display: flex;
    gap: var(--spacing-xl);
    height: 100%;
    background: linear-gradient(135deg, var(--gaming-bg) 0%, var(--gaming-bg-dark) 100%);
    border: 3px solid var(--gaming-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(245, 241, 232, 0.4),
        inset 0 -2px 4px rgba(139, 69, 19, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.perks-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(160, 82, 45, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(245, 241, 232, 0.1) 50%, transparent 60%);
    pointer-events: none;
    opacity: 0.7;
}

.perks-grid {
    display: flex;
    gap: var(--spacing-3xl);
    flex: 1;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.perk-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    min-width: 120px;
}

.column-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gaming-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.3), rgba(232, 220, 198, 0.2));
    border: 2px solid var(--gaming-border);
    border-radius: var(--radius-md);
}

.perk-tree {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
}

.perk-tree::before {
    content: '';
    position: absolute;
    top: 35px;
    bottom: 35px;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.4) 20%, 
        rgba(160, 82, 45, 0.3) 80%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 1px;
}

.perk-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 4px solid;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.perk-item.unlocked {
    background: linear-gradient(135deg, var(--gaming-bg-light) 0%, var(--gaming-bg) 50%, var(--gaming-bg-dark) 100%);
    border-color: var(--gaming-border);
    color: var(--gaming-text);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(139, 69, 19, 0.3);
}

.perk-item.locked {
    background: linear-gradient(135deg, #d3d3d3 0%, #a8a8a8 100%);
    border-color: #808080;
    color: #666;
    opacity: 0.7;
    filter: grayscale(100%) brightness(0.8);
}

.perk-item:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(139, 69, 19, 0.4);
}

.perk-item.unlocked:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(205, 133, 63, 0.6);
}

.perk-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perk-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.perk-icon .icon-placeholder {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.perk-number {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--gaming-text) 0%, #2c1810 100%);
    color: var(--gaming-bg-light);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gaming-bg-light);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-panel {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border: 3px solid var(--gaming-border-dark);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: #fff;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    stroke: rgba(139, 69, 19, 0.3);
    stroke-width: 4;
}

.progress-bar {
    stroke: #00ff88;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: #fff;
    line-height: 1;
}

.progress-total {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.7);
}

.progress-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
}

.progress-details h4 {
    color: #00ff88;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.progress-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.reward-section {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.reward-label {
    color: #00ff88;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.reward-text {
    color: #fff;
    font-size: var(--font-size-sm);
}

.progress-status {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--font-size-sm);
}

.current-progress {
    color: rgba(255, 255, 255, 0.8);
}

.next-progress {
    color: #00ff88;
    font-weight: var(--font-weight-semibold);
}

.skill-card {
    background: linear-gradient(145deg, var(--background-light) 0%, var(--background-medium) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.skill-card:hover::before,
.skill-card:focus-within::before {
    transform: scaleX(1);
}

.skill-card:hover,
.skill-card:focus-within {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

.skill-card h3 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: var(--font-size-sm);
}

/* Skill Level Indicator */
.skill-level {
    margin-top: var(--spacing-md);
    background: var(--background-dark);
    border-radius: var(--radius-sm);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.skill-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    transition: width 1s ease-out 0.5s;
    width: 0;
}

.skill-card[data-skill="csharp"] .skill-level::before { width: 90%; }
.skill-card[data-skill="java"] .skill-level::before { width: 85%; }
.skill-card[data-skill="python"] .skill-level::before { width: 88%; }
.skill-card[data-skill="cpp"] .skill-level::before { width: 80%; }
.skill-card[data-skill="web"] .skill-level::before { width: 92%; }
.skill-card[data-skill="javascript"] .skill-level::before { width: 87%; }
.skill-card[data-skill="sql"] .skill-level::before { width: 85%; }
.skill-card[data-skill="tools"] .skill-level::before { width: 90%; }

/* Experience Section */
.experience-timeline {
    position: relative;
    padding-left: var(--spacing-lg);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

.exp-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border: 3px solid var(--background-dark);
    border-radius: var(--radius-round);
    box-shadow: var(--shadow-md);
}

.exp-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.exp-year {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: var(--font-size-sm);
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.exp-content h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.exp-content h4 {
    color: var(--secondary-color);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.exp-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.exp-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.exp-highlights li {
    color: var(--text-secondary);
    padding: var(--spacing-sm) 0;
    position: relative;
    padding-left: var(--spacing-lg);
}

.exp-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tutorials Section */
.tutorials-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: var(--spacing-3xl);
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-medium) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.tutorials-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0;
    opacity: 0.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-lg);
}

.project-card {
    background: linear-gradient(145deg, var(--background-card) 0%, var(--background-medium) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
    transform: translateZ(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: var(--primary-color);
}

.project-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--background-dark);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: brightness(0.8) contrast(1.1);
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.3);
}

.project-info {
    padding: var(--spacing-xl);
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(30, 30, 30, 0.7));
}

.project-info h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.project-tech {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(255, 107, 53, 0.2));
    border-radius: var(--radius-full);
    border: 1px solid var(--accent-color);
    display: inline-block;
    transition: all var(--transition-normal);
}

.project-tech:hover {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(255, 107, 53, 0.3));
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: var(--spacing-lg);
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--background-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
}

.modal-title {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.modal-close {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--font-size-xxl);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    transform: scale(1.1);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.modal-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--background-light);
}

.modal-image img {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal);
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modal-description p {
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.modal-tech-stack h3,
.modal-features h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin: 0 0 var(--spacing-md) 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-lg);
}

.modal-features li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: var(--font-size-sm);
}

.modal-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.modal-button:hover,
.modal-button:focus {
    background: var(--primary-color);
    color: var(--background-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.demo-button {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.demo-button:hover,
.demo-button:focus {
    background: var(--secondary-color);
    color: var(--background-dark);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.github-button {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.github-button:hover,
.github-button:focus {
    background: var(--text-secondary);
    color: var(--background-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.button-icon {
    font-size: var(--font-size-md);
}

/* Focus Management and Accessibility */
.nav-tab:focus,
.skill-card:focus,
.project-card:focus,
.contact-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-content {
        padding: var(--spacing-sm) var(--spacing-xs);
        height: calc(100vh - 60px);
    }
    
    .nav-tabs {
        justify-content: space-around;
        gap: var(--spacing-xs);
    }
    
    .nav-tab {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
        flex-direction: column;
    }
    
    .perks-container {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .perks-grid {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .perk-column {
        flex-direction: row;
        gap: var(--spacing-md);
        min-width: unset;
    }
    
    .perk-tree {
        flex-direction: row;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .perk-item {
        width: 50px;
        height: 50px;
    }
    
    .perk-icon {
        width: 30px;
        height: 30px;
    }
    
    .perk-icon img {
        width: 24px;
        height: 24px;
    }
    
    .progress-panel {
        min-width: unset;
        width: 100%;
    }
    
    .profile-panel {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .exp-year {
        position: static;
        display: inline-block;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .skill-card {
        padding: var(--spacing-sm);
        min-height: 80px;
    }
    
    .skill-icon {
        width: 28px;
        height: 28px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
