/* Enhanced CSS Styles */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #2d3748;
    --light: #f7fafc;
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #fc8181;
    --info: #4299e1;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    box-shadow: 0 0 0 3px var(--primary);
}

/* Dark Theme */
body.dark-theme {
    background: #1a202c;
    color: #e2e8f0;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-theme nav {
    background: #2d3748;
}

body.dark-theme .app-card,
body.dark-theme .skill-category {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .nav-links a {
    color: #e2e8f0;
}

/* Ocean Theme */
body.ocean-theme {
    --primary: #006994;
    --secondary: #00a8cc;
    --accent: #00d4aa;
}

body.ocean-theme .hero {
    background: linear-gradient(135deg, #006994 0%, #00a8cc 100%);
}

/* Sunset Theme */
body.sunset-theme {
    --primary: #ff6b6b;
    --secondary: #feca57;
    --accent: #ff9ff3;
}

body.sunset-theme .hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

/* GitHub Stats Section */
.github-stats {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* GitHub Status */
.github-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, #f6f9fc 0%, #e9ecef 100%);
    padding: 5rem 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.achievement-description {
    color: #718096;
    margin-bottom: 1rem;
}

.achievement-date {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Roadmap Section */
.roadmap {
    background: white;
    padding: 5rem 2rem;
}

.roadmap-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-date {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.timeline-description {
    color: #718096;
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mini Game Section */
.mini-game {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.game-container {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

.game-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-score {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
    }
    
    .github-status {
        bottom: 10px;
        right: 10px;
        font-size: 0.9rem;
    }
    
    .roadmap-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-left: 40px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        margin: 0;
    }
}
