/* ============================================
   FLORENT HOUX - PORTFOLIO V2
   Gaming / Space / Tech Edition
   ============================================ */

/* === VARIABLES === */
:root {
    /* Couleurs principales */
    --neon-cyan: #00fff5;
    --neon-magenta: #ff00ff;
    --neon-purple: #bf00ff;
    --neon-blue: #00a8ff;
    --neon-green: #39ff14;
    --neon-orange: #ff6b00;
    --neon-pink: #ff0080;

    /* Couleurs de fond */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-white: #ffffff;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Couleurs texte */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    /* Gradients */
    --gradient-cyber: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    --gradient-space: linear-gradient(180deg, #0a0a0f 0%, #1a1a2f 50%, #0a0a0f 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Fonts */
    --font-main: 'Rajdhani', 'Orbitron', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', var(--font-main);

    /* Sizes */
    --nav-height: 70px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-neon: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 255, 245, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* === FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500&display=swap');

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    cursor: none;
}

/* === CUSTOM CURSOR === */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor.hover {
    width: 20px;
    height: 20px;
    background: var(--neon-magenta);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--neon-magenta);
}

/* === SPACE BACKGROUND === */
#space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2f 0%, #0a0a0f 70%, #050508 100%);
}

/* === SCANLINES OVERLAY === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 3px);
    opacity: 0.3;
}

/* === HOLOGRAPHIC GRID === */
.holo-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 255, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 245, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* === HUD NAVIGATION === */
.hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 245, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scanLine 3s linear infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
}

.hud-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
}

/* Logo */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-bracket {
    color: var(--neon-cyan);
    animation: bracketPulse 2s ease-in-out infinite;
}

@keyframes bracketPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.logo-text {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 245, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.3), inset 0 0 20px rgba(0, 255, 245, 0.1);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Nav Stats */
.nav-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: var(--text-muted);
}

.stat-bar {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 245, 0.3);
}

.stat-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 4px;
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.stat-value {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 1rem;
}

/* === SECTIONS GENERAL === */
.section {
    min-height: 100vh;
    padding: var(--section-padding) 40px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.deco-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.title-decoration i {
    color: var(--neon-cyan);
    font-size: 1rem;
    animation: rotateDeco 4s linear infinite;
}

@keyframes rotateDeco {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === GLITCH EFFECT === */
.glitch {
    position: relative;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--neon-magenta);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--neon-cyan);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(3px);
    }

    40% {
        transform: translateX(-3px);
    }

    60% {
        transform: translateX(2px);
    }

    80% {
        transform: translateX(-2px);
    }
}

/* === HERO SECTION === */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    z-index: 1;
}

/* Hero Avatar */
.hero-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    position: relative;
    z-index: 2;
    animation: avatarFloat 4s ease-in-out infinite;
}

.logoheader { width: 30px; height: 30px;border-radius: 50%;    object-fit: cover; animation: avatarFloat 4s ease-in-out infinite; box-shadow: var(--shadow-neon); background: white; }

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(0, 255, 245, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 10s linear infinite;
}

.avatar-ring.ring-2 {
    width: 360px;
    height: 360px;
    border-color: rgba(255, 0, 255, 0.2);
    animation: ringRotate 15s linear infinite reverse;
}

.avatar-ring.ring-3 {
    width: 400px;
    height: 400px;
    border-color: rgba(0, 168, 255, 0.15);
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.avatar-status {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 25px;
    height: 25px;
    background: var(--neon-green);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    z-index: 3;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(57, 255, 20, 0);
    }
}

/* Hero Info */
.hero-info {
    flex: 1;
}

.hero-title-container {
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.neon-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    transition: all var(--transition-normal);
}

.neon-tag:hover {
    background: rgba(0, 255, 245, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.4);
    transform: translateY(-3px);
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 255, 245, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrowAnimate 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrowAnimate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* === SKILLS SECTION === */
.skills-section {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 245, 0.02), transparent);
    overflow: visible;
}

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

/* === RPG SKILL TREE === */
.skill-tree {
    width: 100%;
}

/* Center Node - Avatar */
.tree-center-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.center-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--neon-cyan);
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 245, 0.5),
        0 0 60px rgba(0, 255, 245, 0.3),
        inset 0 0 30px rgba(0, 255, 245, 0.2);
    animation: centerPulse 3s ease-in-out infinite;
}

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

@keyframes centerPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 245, 0.5), 0 0 60px rgba(0, 255, 245, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 255, 245, 0.7), 0 0 100px rgba(0, 255, 245, 0.4);
    }
}

.center-label {
    display: block;
    margin-top: 15px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Tree Branches Container - Grid Layout */
.tree-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Individual Branch */
.tree-branch {
    opacity: 1;
    transition: all 0.5s ease;
}

.tree-branch.visible {
    opacity: 1;
}

/* Branch Line - Hidden in grid mode */
.branch-line {
    display: none;
}

/* Category Node - Card Style */
.category-node {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-node:hover::before {
    transform: scaleX(1);
}

.category-node:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 245, 0.2);
    transform: translateY(-5px);
}

.category-node .node-glow {
    display: none;
}

.category-node .node-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.category-node .node-content i {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 245, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.category-node .node-points {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    background: rgba(0, 255, 245, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.category-node .node-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    flex: 1;
}

.category-node .node-tier {
    position: absolute;
    top: 15px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}

.category-node .expand-indicator {
    width: 35px;
    height: 35px;
    background: rgba(0, 255, 245, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-node:hover .expand-indicator {
    background: rgba(0, 255, 245, 0.3);
}

/* Tier Colors */
.tier-bronze {
    border-color: #cd7f32 !important;
}

.tier-bronze .node-content i {
    color: #cd7f32;
}

.tier-bronze .node-tier {
    color: #cd7f32;
    border: 1px solid #cd7f32;
}

.tier-silver {
    border-color: #c0c0c0 !important;
}

.tier-silver .node-content i {
    color: #c0c0c0;
}

.tier-silver .node-tier {
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
}

.tier-gold {
    border-color: #ffd700 !important;
}

.tier-gold .node-content i {
    color: #ffd700;
}

.tier-gold .node-tier {
    color: #ffd700;
    border: 1px solid #ffd700;
}

.tier-platinum {
    border-color: #00d4ff !important;
}

.tier-platinum .node-content i {
    color: #00d4ff;
}

.tier-platinum .node-tier {
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.tier-diamond {
    border-color: var(--neon-cyan) !important;
}

.tier-diamond .node-content i {
    color: var(--neon-cyan);
}

.tier-diamond .node-tier {
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.tier-legendary {
    border-color: var(--neon-magenta) !important;
    animation: legendaryPulse 1.5s ease-in-out infinite;
}

.tier-legendary .node-content i {
    color: var(--neon-magenta);
}

.tier-legendary .node-tier {
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 245, 0.2));
}

@keyframes legendaryPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.8), 0 0 60px rgba(0, 255, 245, 0.4);
    }
}

/* Skill Nodes Container */
.skill-nodes-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.skill-nodes-container.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: 15px;
    overflow: visible;
}

.skill-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    padding-bottom: 120px;
    /* Espace pour les tooltips en bas */
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: visible;
}

/* Individual Skill Node */
.skill-node {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-node:hover {
    transform: scale(1.15);
    z-index: 100;
}

.skill-node .skill-connector {
    display: none;
}

.skill-node-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.skill-node.unlocked .skill-node-inner {
    border-color: rgba(0, 255, 245, 0.5);
}

.skill-node.locked .skill-node-inner {
    filter: grayscale(80%);
    opacity: 0.5;
}

.skill-node-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 245, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-node:hover .skill-node-glow {
    opacity: 1;
}

.skill-node-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 1;
}

.skill-node-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Circular Progress Ring */
.skill-node-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
}

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

.skill-node-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.skill-node-ring .ring-progress {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 1s ease;
}

.skill-node.tier-bronze .ring-progress {
    stroke: #cd7f32;
}

.skill-node.tier-silver .ring-progress {
    stroke: #c0c0c0;
}

.skill-node.tier-gold .ring-progress {
    stroke: #ffd700;
}

.skill-node.tier-platinum .ring-progress {
    stroke: #00d4ff;
}

.skill-node.tier-diamond .ring-progress {
    stroke: var(--neon-cyan);
}

.skill-node.tier-legendary .ring-progress {
    stroke: var(--neon-magenta);
}

/* Points Dots */
.skill-points-dots {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}

.point-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.point-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* Skill Tooltip */
.skill-node-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    padding: 15px;
    background: rgba(10, 10, 20, 0.98);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 255, 245, 0.3), 0 0 20px rgba(0, 255, 245, 0.2);
}

.skill-node:hover .skill-node-tooltip {
    opacity: 1;
    visibility: visible;
}

.skill-node-tooltip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--neon-cyan);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tooltip-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tooltip-tier {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
}

.tooltip-tier.tier-bronze {
    color: #cd7f32;
    border: 1px solid #cd7f32;
}

.tooltip-tier.tier-silver {
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
}

.tooltip-tier.tier-gold {
    color: #ffd700;
    border: 1px solid #ffd700;
}

.tooltip-tier.tier-platinum {
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.tooltip-tier.tier-diamond {
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.tooltip-tier.tier-legendary {
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
}

.tooltip-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tooltip-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tooltip-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 3px;
}

.tooltip-level {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    min-width: 35px;
    text-align: right;
}

.tooltip-points {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tooltip-points i {
    color: #ffd700;
    margin-right: 5px;
}

/* Skill Legend */
.skill-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-bar {
    width: 30px;
    height: 6px;
    border-radius: 3px;
}

.legend-bar.beginner {
    background: linear-gradient(90deg, #ff6b6b, #ffa502);
}

.legend-bar.intermediate {
    background: linear-gradient(90deg, #ffa502, #ffd93d);
}

.legend-bar.expert {
    background: linear-gradient(90deg, #00d2d3, var(--neon-cyan));
}

.legend-bar.master {
    background: var(--gradient-cyber);
}

/* === SKILL TREE RESPONSIVE === */
@media (max-width: 1200px) {
    .skill-tree {
        min-height: auto;
        padding: 40px 20px;
    }

    .tree-center-node {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 40px;
    }

    .tree-branches {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .tree-branch {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1;
    }

    .branch-line {
        display: none;
    }

    .category-node {
        position: relative;
        left: auto;
        top: auto;
        transform: none !important;
        width: 100%;
        height: auto;
        border-radius: 10px;
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .category-node:hover {
        transform: none !important;
    }

    .category-node .node-glow {
        display: none;
    }

    .category-node .node-content {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .category-node .node-label {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 0.9rem;
    }

    .category-node .node-tier {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .category-node .expand-indicator {
        position: relative;
        bottom: auto;
        right: auto;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .skill-nodes-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none !important;
        margin-top: 15px;
    }

    .skill-nodes {
        max-width: 100%;
        justify-content: center;
    }
}

/* === TIMELINE SECTION === */
.timeline-section {
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02), transparent);
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-progress {
    width: 100%;
    height: 0%;
    background: var(--gradient-cyber);
    border-radius: 2px;
    transition: height 0.5s ease;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 50%;
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

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

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--neon-cyan);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px var(--neon-cyan), 0 0 50px rgba(0, 255, 245, 0.5);
    }
}

.node-year {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
    white-space: nowrap;
}

.timeline-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 10px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-card::before {
    transform: scaleX(1);
}

.timeline-item:hover .timeline-card {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 245, 0.2);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header i {
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at bottom right, rgba(0, 255, 245, 0.1), transparent);
    pointer-events: none;
}

/* === PROJECTS SECTION === */
.projects-section {
    background: linear-gradient(180deg, transparent, rgba(0, 168, 255, 0.02), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.2);
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.project-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--bg-white);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    padding: 5px 12px;
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.project-team {
    display: flex;
    align-items: center;
    gap: -10px;
    margin-bottom: 20px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    object-fit: cover;
    margin-left: -10px;
}

.team-avatar:first-child {
    margin-left: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.project-link:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

/* Projects CTA */
.projects-cta {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.projects-cta .cyber-btn {
    font-size: 1rem;
    padding: 18px 40px;
}

/* Clients Section */
.clients-section {
    margin-top: 80px;
}

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subsection-title i {
    color: var(--neon-cyan);
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.clients-track {
    display: flex;
    gap: 40px;
    animation: scrollClients 30s linear infinite;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.client-item:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* === CONTACT SECTION === */
.contact-section {
    background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.02), transparent);
}

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

.contact-terminal {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red {
    background: #ff5f56;
}

.term-btn.yellow {
    background: #ffbd2e;
}

.term-btn.green {
    background: #27ca40;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.prompt {
    color: var(--neon-green);
}

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

.terminal-output {
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.terminal-output p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-output i {
    color: var(--neon-cyan);
    width: 20px;
}

.socials {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    transition: all var(--transition-normal);
}

.social-link:hover {
    color: var(--neon-magenta);
    transform: translateX(5px);
}

.input-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

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

.contact-btn {
    padding: 15px 30px;
    font-size: 0.9rem;
}

.contact-btn.secondary {
    background: transparent;
    border: 2px solid var(--neon-magenta);
    color: var(--neon-magenta);
}

.contact-btn.secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

/* === FOOTER === */
.footer {
    padding: 40px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 255, 245, 0.2);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-copyright a {
    color: var(--neon-cyan);
}

.footer-decoration {
    margin-top: 30px;
}

.data-stream {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--neon-cyan);
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-right-color: var(--neon-magenta);
    animation-delay: 0.2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-bottom-color: var(--neon-purple);
    animation-delay: 0.4s;
}

@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-dots {
    animation: dotPulse 1s infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-cyber);
    width: 0%;
    animation: loadingProgress 2s ease forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loading-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === AUDIO TOGGLE === */
.audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    cursor: none;
    z-index: 999;
    transition: all var(--transition-normal);
}

.audio-toggle:hover {
    background: rgba(0, 255, 245, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.3);
}

/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
}

.hamburger:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 245, 0.3);
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-inner {
    position: relative;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Hamburger active state */
.hamburger.active .hamburger-inner {
    background: transparent;
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--neon-magenta);
}

.hamburger.active .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--neon-magenta);
}

.hamburger-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-stats {
        display: none;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding: 0 0 0 60px;
    }

    .timeline-track {
        left: 30px;
    }

    .timeline-node {
        left: 30px;
    }
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button,
    .cyber-btn {
        cursor: pointer;
    }

    /* Hamburger visible on mobile */
    .hamburger {
        display: flex;
    }

    /* Nav menu mobile styles */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 80px 30px 30px;
        border-left: 1px solid rgba(0, 255, 245, 0.2);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu::before {
        content: 'NAVIGATION';
        position: absolute;
        top: 30px;
        left: 30px;
        font-family: var(--font-display);
        font-size: 0.8rem;
        color: var(--text-muted);
        letter-spacing: 3px;
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        justify-content: flex-start;
        border: 1px solid rgba(0, 255, 245, 0.1);
        background: rgba(0, 255, 245, 0.02);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(0, 255, 245, 0.1);
        border-color: var(--neon-cyan);
    }

    .nav-menu .nav-link i {
        font-size: 1.1rem;
        width: 30px;
    }

    /* Mobile overlay active */
    .mobile-menu-overlay.active {
        display: block;
    }

    .section {
        padding: 60px 20px;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .avatar-ring {
        width: 240px;
        height: 240px;
    }

    .avatar-ring.ring-2 {
        width: 280px;
        height: 280px;
    }

    .avatar-ring.ring-3 {
        width: 320px;
        height: 320px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

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

    .contact-links {
        flex-direction: column;
    }
}

/* === ANIMATIONS ON SCROLL === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   ULTRA IMMERSIVE EFFECTS - MIX COMPLET
   Cyberpunk + Sci-Fi Spatial + Retro Gaming
   ============================================ */

/* === ENHANCED CRT / RETRO EFFECT === */
.crt-effect {
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% {
        opacity: 0.97;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

/* VHS Tracking Lines */
.vhs-lines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 9997;
    animation: vhsScroll 10s linear infinite;
}

@keyframes vhsScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100px);
    }
}

/* Chromatic Aberration on hover */
.chromatic-hover:hover {
    animation: chromatic 0.3s ease;
}

@keyframes chromatic {
    0% {
        text-shadow: 0 0 0 transparent;
    }

    25% {
        text-shadow: -2px 0 #ff0000, 2px 0 #00ffff;
    }

    50% {
        text-shadow: 2px 0 #ff0000, -2px 0 #00ffff;
    }

    75% {
        text-shadow: -1px 0 #ff0000, 1px 0 #00ffff;
    }

    100% {
        text-shadow: 0 0 0 transparent;
    }
}

/* === PIXEL CORNERS (Retro Gaming) === */
.pixel-corners {
    position: relative;
}

.pixel-corners::before,
.pixel-corners::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 3px solid var(--neon-cyan);
}

.pixel-corners::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
    animation: pixelBlink 1s step-end infinite;
}

.pixel-corners::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
    animation: pixelBlink 1s step-end infinite 0.5s;
}

@keyframes pixelBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.5;
    }
}

/* === WARP SPEED TRANSITION === */
.warp-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.warp-transition.active {
    animation: warpSpeed 1s ease-in-out;
}

@keyframes warpSpeed {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    30% {
        opacity: 1;
        background: radial-gradient(circle at center, transparent 0%, #000 30%, var(--neon-cyan) 60%, #000 100%);
    }

    70% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* === HYPERSPACE LINES === */
.hyperspace-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hyperspace-line {
    position: absolute;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
    animation: hyperspaceTravel 2s linear infinite;
}

@keyframes hyperspaceTravel {
    0% {
        height: 0;
        top: 50%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        height: 100vh;
        top: -50%;
        opacity: 0;
    }
}

/* === PLANET / ASTEROID FLOATING === */
.floating-planet {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.planet-1 {
    width: 300px;
    height: 300px;
    right: -100px;
    top: 20%;
    background: radial-gradient(circle at 30% 30%, #4a4a6a 0%, #2a2a4a 50%, #1a1a2a 100%);
    box-shadow:
        inset -30px -30px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 255, 245, 0.2);
    animation: planetFloat 30s ease-in-out infinite;
}

.planet-2 {
    width: 150px;
    height: 150px;
    left: 5%;
    bottom: 20%;
    background: radial-gradient(circle at 40% 40%, #6a4a4a 0%, #4a2a2a 50%, #2a1a1a 100%);
    box-shadow:
        inset -15px -15px 30px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 128, 0.2);
    animation: planetFloat 25s ease-in-out infinite reverse;
}

/* Saturn-like ring */
.planet-1::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    border: 15px solid rgba(0, 255, 245, 0.2);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* === ASTEROID BELT === */
.asteroid {
    position: fixed;
    background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    pointer-events: none;
    z-index: -1;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.5);
    animation: asteroidDrift linear infinite;
}

@keyframes asteroidDrift {
    0% {
        transform: translateX(100vw) rotate(0deg);
    }

    100% {
        transform: translateX(-100px) rotate(360deg);
    }
}

/* === NEON FLICKER INTENSE === */
.neon-flicker {
    animation: neonFlicker 3s infinite;
}

@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px var(--neon-cyan),
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 80px var(--neon-cyan);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* === HOLOGRAM EFFECT === */
.hologram {
    position: relative;
    color: var(--neon-cyan);
}

.hologram::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--neon-cyan);
    opacity: 0.8;
    animation: hologramGlitch 2s infinite;
    clip-path: inset(0 0 50% 0);
}

.hologram::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--neon-magenta);
    opacity: 0.5;
    animation: hologramGlitch 3s infinite reverse;
    clip-path: inset(50% 0 0 0);
}

@keyframes hologramGlitch {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.8;
    }

    10% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(2px);
        opacity: 0.5;
    }

    30% {
        transform: translateX(-1px);
    }

    40% {
        transform: translateX(1px);
        opacity: 0.9;
    }

    50% {
        transform: translateX(0);
    }
}

/* === MATRIX RAIN EFFECT (for special sections) === */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-green);
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: matrixFall linear infinite;
    text-shadow: 0 0 10px var(--neon-green);
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200vh);
    }
}

/* === POWER-UP EFFECT === */
.power-up {
    position: relative;
    overflow: visible;
}

.power-up::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: -1;
}

.power-up:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.3;
}

/* === ENERGY SHIELD === */
.energy-shield {
    position: relative;
}

.energy-shield::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple), var(--neon-cyan)) border-box;
    animation: shieldRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.energy-shield:hover::after {
    opacity: 1;
}

@keyframes shieldRotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* === DATA CORRUPTION EFFECT === */
.data-corrupt:hover {
    animation: dataCorrupt 0.3s steps(2) infinite;
}

@keyframes dataCorrupt {
    0% {
        clip-path: inset(20% 0 30% 0);
        transform: translateX(-3px);
    }

    25% {
        clip-path: inset(50% 0 10% 0);
        transform: translateX(3px);
    }

    50% {
        clip-path: inset(10% 0 60% 0);
        transform: translateX(-2px);
    }

    75% {
        clip-path: inset(40% 0 20% 0);
        transform: translateX(2px);
    }

    100% {
        clip-path: inset(0);
        transform: translateX(0);
    }
}

/* === RETRO ARCADE BUTTON === */
.arcade-btn {
    position: relative;
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bg-dark);
    background: var(--neon-cyan);
    border: none;
    border-radius: 0;
    box-shadow:
        0 6px 0 #00b3aa,
        0 8px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
    cursor: none;
}

.arcade-btn:hover {
    transform: translateY(2px);
    box-shadow:
        0 4px 0 #00b3aa,
        0 6px 8px rgba(0, 0, 0, 0.4);
}

.arcade-btn:active {
    transform: translateY(6px);
    box-shadow:
        0 0 0 #00b3aa,
        0 2px 4px rgba(0, 0, 0, 0.4);
}

/* === COIN INSERT ANIMATION === */
.coin-slot {
    position: relative;
    overflow: hidden;
}

.coin-slot::before {
    content: 'INSERT COIN';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--neon-orange);
    animation: coinBlink 1s step-end infinite;
}

@keyframes coinBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* === SCORE COUNTER === */
.score-display {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    letter-spacing: 3px;
}

.score-display::before {
    content: 'SCORE: ';
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === ACHIEVEMENT POPUP === */
.achievement {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 350px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-left: 5px solid var(--neon-green);
    border-radius: 5px;
    z-index: 10000;
    transition: right 0.5s ease;
    box-shadow: 0 0 30px rgba(0, 255, 245, 0.3);
}

.achievement.show {
    right: 20px;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-cyber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: achievementPop 0.5s ease;
}

@keyframes achievementPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.achievement-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.achievement-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === HEALTH/MANA BARS (for fun) === */
.game-stats {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-bar {
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.game-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
}

.game-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

.health-bar .game-bar-fill {
    background: linear-gradient(90deg, #ff0044, #ff4488);
    width: 85%;
}

.mana-bar .game-bar-fill {
    background: linear-gradient(90deg, #0044ff, #4488ff);
    width: 70%;
}

.exp-bar .game-bar-fill {
    background: var(--gradient-cyber);
    width: 45%;
}

.game-bar-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: white;
    text-shadow: 1px 1px 2px black;
    z-index: 1;
}

/* === CURSOR TRAIL === */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    animation: trailFade 0.5s ease forwards;
}

@keyframes trailFade {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* === KONAMI CODE EASTER EGG === */
.konami-mode .hero-avatar {
    animation: konamiSpin 1s ease infinite;
}

.konami-mode .glitch {
    animation: konamiGlitch 0.1s infinite;
}

.konami-mode {
    filter: hue-rotate(90deg);
}

@keyframes konamiSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes konamiGlitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }

    25% {
        transform: translate(-5px, 5px);
        filter: hue-rotate(90deg);
    }

    50% {
        transform: translate(5px, -5px);
        filter: hue-rotate(180deg);
    }

    75% {
        transform: translate(-5px, -5px);
        filter: hue-rotate(270deg);
    }

    100% {
        transform: translate(0);
        filter: hue-rotate(360deg);
    }
}

/* === PARALLAX DEPTH LAYERS === */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    perspective: 1000px;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-layer.back {
    transform: translateZ(-300px) scale(1.3);
}

.parallax-layer.mid {
    transform: translateZ(-150px) scale(1.15);
}

.parallax-layer.front {
    transform: translateZ(0);
}

/* === ELECTRIC BORDER === */
.electric-border {
    position: relative;
    overflow: visible;
}

.electric-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,
            var(--neon-cyan),
            var(--neon-magenta),
            var(--neon-purple),
            var(--neon-blue),
            var(--neon-cyan));
    background-size: 400% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: electricFlow 3s linear infinite;
    filter: blur(3px);
}

@keyframes electricFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* === TELEPORT EFFECT === */
.teleport-in {
    animation: teleportIn 0.5s ease forwards;
}

.teleport-out {
    animation: teleportOut 0.5s ease forwards;
}

@keyframes teleportIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
        filter: blur(20px) brightness(3);
    }

    50% {
        filter: blur(10px) brightness(2);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
    }
}

@keyframes teleportOut {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
    }

    50% {
        filter: blur(10px) brightness(2);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        filter: blur(20px) brightness(3);
    }
}

/* === SOUND WAVE VISUALIZER === */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.sound-bar {
    width: 4px;
    background: var(--neon-cyan);
    border-radius: 2px;
    animation: soundPulse 0.5s ease-in-out infinite alternate;
}

.sound-bar:nth-child(1) {
    animation-delay: 0s;
    height: 10px;
}

.sound-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 20px;
}

.sound-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 30px;
}

.sound-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 20px;
}

.sound-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 10px;
}

@keyframes soundPulse {
    0% {
        transform: scaleY(0.3);
    }

    100% {
        transform: scaleY(1);
    }
}

/* === RADAR SWEEP === */
.radar {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 245, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    transform-origin: left center;
    animation: radarSweep 3s linear infinite;
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === LOADING PIXEL ART === */
.pixel-loader {
    display: flex;
    gap: 5px;
}

.pixel-block {
    width: 15px;
    height: 15px;
    background: var(--neon-cyan);
    animation: pixelLoad 1s step-end infinite;
}

.pixel-block:nth-child(1) {
    animation-delay: 0s;
}

.pixel-block:nth-child(2) {
    animation-delay: 0.1s;
}

.pixel-block:nth-child(3) {
    animation-delay: 0.2s;
}

.pixel-block:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes pixelLoad {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* === BOSS HEALTH BAR === */
.boss-bar-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
    display: none;
}

.boss-bar-container.active {
    display: block;
    animation: bossAppear 0.5s ease;
}

@keyframes bossAppear {
    0% {
        transform: translateX(-50%) scaleX(0);
    }

    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

.boss-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--neon-orange);
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.boss-health {
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid var(--neon-orange);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.boss-health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6600, #ffaa00);
    width: 100%;
    transition: width 1s ease;
    position: relative;
}

.boss-health-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

/* === SCREEN SHAKE === */
.screen-shake {
    animation: screenShake 0.5s ease;
}

@keyframes screenShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-10px) rotate(-1deg);
    }

    20% {
        transform: translateX(10px) rotate(1deg);
    }

    30% {
        transform: translateX(-8px) rotate(-0.5deg);
    }

    40% {
        transform: translateX(8px) rotate(0.5deg);
    }

    50% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(5px);
    }

    70% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    90% {
        transform: translateX(-1px);
    }
}

/* === COMBO COUNTER === */
.combo-display {
    position: fixed;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--neon-orange);
    text-shadow:
        0 0 10px var(--neon-orange),
        0 0 20px var(--neon-orange),
        0 0 40px var(--neon-orange);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
}

.combo-display.active {
    opacity: 1;
    animation: comboHit 0.3s ease;
}

@keyframes comboHit {
    0% {
        transform: translateY(-50%) scale(1.5);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.combo-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* === RESPONSIVE ADJUSTMENTS FOR NEW EFFECTS === */
@media (max-width: 768px) {
    .game-stats {
        display: none;
    }

    .planet-1,
    .planet-2 {
        display: none;
    }

    .achievement {
        width: 280px;
    }

    .boss-bar-container {
        width: 95%;
    }

    .combo-display {
        font-size: 2rem;
        right: 20px;
    }
}

/* ============================================
   AVATAR SECRET EASTER EGG STYLES
   ============================================ */

.hero-avatar-container {
    cursor: pointer;
}

.avatar-secret-hint {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.avatar-secret-hint.visible {
    opacity: 1;
    transform: scale(1);
    animation: secretHintPulse 1s ease-in-out infinite;
}

@keyframes secretHintPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    }
}

.hero-avatar-container.secret-activated {
    animation: secretActivate 1.5s ease-in-out;
}

@keyframes secretActivate {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(0.9) rotate(-5deg);
        box-shadow: 0 0 100px rgba(255, 0, 255, 1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(0);
    }
}