:root {
    --neon-cyan: #00f0ff;
    --neon-pink: #ff2d95;
    --neon-purple: #a855f7;
    --neon-orange: #ff6b35;
    --bg-dark: #05020a;
    --bg-card: rgba(10, 15, 35, 0.7);
    --text-primary: #e8edf2;
    --text-muted: #8892a6;
    --glass: rgba(255, 255, 255, 0.03);
    --border-neon: 1px solid rgba(0, 240, 255, 0.2);
}

body.light-mode {
    --bg-dark: #f5f5f5;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #1f2937;
    --text-muted: #6b7280;
    --neon-cyan: #0066cc;
    --neon-pink: #e91e63;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: all 0.5s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

/* World Canvas */
#worldCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: linear-gradient(180deg, #060310 0%, #0b0720 60%);
    display: block;
    pointer-events: none;
}

body.in-game #worldCanvas {
    pointer-events: auto;
}

/* Content layers above canvas */
nav, section, footer, .container, main {
    position: relative;
    z-index: 2;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    z-index: 999;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: linear-gradient(180deg, rgba(5, 2, 10, 0.95), rgba(10, 7, 20, 0.85));
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: var(--border-neon);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem 5%;
    background: rgba(5, 2, 10, 0.98);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle, .lang-toggle, #gameToggle {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 149, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.theme-toggle:hover, .lang-toggle:hover, #gameToggle:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 45, 149, 0.25));
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 3px;
    transition: all 0.3s;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    margin-bottom: 0;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 45, 149, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}
html {
    font-size: 80%; /* Réduit la taille de base à 80%. 1rem passe de 16px à 12.8px */
    scroll-behavior: smooth;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #00c8d7);
    color: var(--bg-dark);
    border: 1px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.hero-image {
    position: relative;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.hero-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 400px at 20% 50%, rgba(0, 240, 255, 0.1), transparent);
    pointer-events: none;
}

.hero-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 50px rgba(0, 240, 255, 0.25);
    transform: translateY(-10px);
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category {
    display: flex;
    gap: 1rem;
}

.category-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.category-content {
    flex: 1;
}

.category-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 100px;
    font-weight: 600;
}

.skill-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 10px;
    animation: fillBar 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: var(--percentage); }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

/* Scroll Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    padding: 6rem 5%;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

section:nth-child(even) {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.02), rgba(255, 45, 149, 0.01));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    clear: both;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* ===== PROJECTS SECTION ===== */
.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-color: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
/* --- EMPTY STATE / WELCOME SCREEN --- */
.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-primary);
    padding: 1rem;
    animation: fadeIn 0.5s ease-out;
}

.bot-avatar-large {
    position: relative;
    font-size: 3.5rem;
    background: rgba(0, 240, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.avatar-emoji {
    animation: float 3s ease-in-out infinite;
}

.status-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--neon-pink);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.chat-placeholder h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.version-tag {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    color: var(--text-muted);
}

.intro-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.intro-text b {
    color: var(--text-primary);
}

/* Barre de chargement IA */
.brain-loading {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(0, 240, 255, 0.3);
}

.brain-loading span {
    font-size: 0.8rem;
    color: var(--neon-purple);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 65%; /* Simulation de progression */
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 10px;
    animation: loadingStripes 2s linear infinite;
    background-size: 20px 20px;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
}

@keyframes loadingStripes {
    from { background-position: 40px 0; }
    to { background-position: 0 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hint-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chip {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: var(--neon-cyan);
    color: #000;
    transform: translateY(-2px);
}
.project-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 500px at 50% 50%, rgba(0, 240, 255, 0.1), transparent);
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 45, 149, 0.08));
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
}

.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--accent-warm);
    font-weight: 500;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-cyan);
}

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

.timeline-dot {
    position: absolute;
    left: -18px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--neon-cyan);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
    border-color: var(--neon-cyan);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 45, 149, 0.08));
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.timeline-date {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-badge {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 45, 149, 0.1));
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(0, 240, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-type {
    background: var(--neon-pink);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.timeline-company svg {
    width: 16px;
    height: 16px;
}

.timeline-tasks {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-tasks li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.timeline-tasks li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: 700;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Game Section */
.game-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

#gameCanvas {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: linear-gradient(135deg, var(--secondary), var(--surface-light));
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
    display: block;
    cursor: move;
}

.game-info {
    text-align: center;
    color: var(--text-muted);
}

.game-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.game-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.legend-item {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 500px at 50% 50%, rgba(0, 240, 255, 0.1), transparent);
    pointer-events: none;
}

.certificate-card:hover {
    border-color: var(--neon-cyan);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 45, 149, 0.08));
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
}

.certificate-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.certificate-logo {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.certificate-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.certificate-body {
    position: relative;
    z-index: 1;
}

.certificate-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.certificate-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding-top: 1rem;
}

.certificate-date {
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(21, 26, 51, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card:hover::before {
    opacity: 0.5;
}

.stat-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.stat-card canvas {
    position: relative;
    z-index: 1;
    max-height: 300px;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 107, 53, 0.1));
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.contact-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    color: var(--text);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(10, 14, 39, 0.5);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 5% 4rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
        transform: rotate(0deg);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin: 0 0 0 3rem;
        width: calc(100% - 3rem);
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-header,
    .timeline-item:nth-child(odd) .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-company,
    .timeline-item:nth-child(odd) .timeline-company {
        justify-content: flex-start;
    }

    .timeline-tasks li,
    .timeline-item:nth-child(odd) .timeline-tasks li {
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .timeline-tasks li::before,
    .timeline-item:nth-child(odd) .timeline-tasks li::before {
        content: '→';
        left: 0;
        right: auto;
    }

    .timeline-tech,
    .timeline-item:nth-child(odd) .timeline-tech {
        justify-content: flex-start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

/* Responsive: Mobile & Tablet fixes */
@media (max-width: 900px) {
    .hero {
        padding: 8rem 4% 6rem;
        margin-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        width: 100%;
    }

    .hero-card {
        width: 100%;
        padding: 1.5rem;
    }

    .project-filters {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .skill-categories {
        gap: 1rem;
    }

    .skill-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-bar-container {
        height: 6px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    /* Ensure mobile menu toggle is visible and nav collapses into it */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10,12,20,0.95);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        z-index: 200;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
    }

    /* When mobile menu is opened via JS, add .open on body to show nav */
    body.mobile-nav-open .nav-links {
        display: flex;
    }
}

/* Chat button in nav */
.chat-open-btn {
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    border-radius: 10px;
}

.chat-open-btn:hover {
    transform: translateY(-2px);
}

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.1rem;
    }
}