/* ============================================
   VARIABLES CSS - THÈME PREMIUM GLASSMORPHISM
   ============================================ */
:root {
    /* Backgrounds purs */
    --bg-base: #030308;
    --bg-surface: rgba(15, 15, 25, 0.4);
    --bg-surface-hover: rgba(25, 25, 40, 0.6);
    --bg-glass: rgba(18, 18, 28, 0.25);

    /* Textes */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accents & Gradients */
    --accent-primary: #00ff88;
    /* Lagon/Emerald */
    --accent-secondary: #00d4ff;
    /* Cyan */
    --accent-tertiary: #9d4edd;
    /* Purple */
    --accent-danger: #ff3366;
    /* Red */
    --accent-warning: #ff9500;
    /* Orange */

    /* Bordures subtiles */
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-light: rgba(255, 255, 255, 0.1);

    /* Ombres & Glow */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(0, 255, 136, 0.2);
    --glow-secondary: 0 0 20px rgba(0, 212, 255, 0.2);

    /* Polices */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1200px;
    --section-spacing: 120px;
    --nav-height: 80px;
}

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

html {
    font-size: 16px;
}

/* ============================================
   LENIS SMOOTH SCROLLING
   ============================================ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ============================================
   GSAP TEXT SPLIT UTILITIES
   ============================================ */
.line-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.word {
    display: inline-block;
    vertical-align: top;
}

.char {
    display: inline-block;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Empêche le rebond sur iOS */
    overscroll-behavior-y: none;
}

.mono {
    font-family: var(--font-mono);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

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

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

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

.text-sm {
    font-size: 0.875rem;
}

/* ============================================
   BACKGROUND EFFECTS (Lueurs & Bruit)
   ============================================ */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: drift 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-tertiary);
    top: -20%;
    left: -10%;
}

.sphere-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-primary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.sphere-3 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-secondary);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    mix-blend-mode: overlay;
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glass-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.border-glow-purple:hover {
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 10px 40px -10px rgba(157, 78, 221, 0.2);
}

.border-glow-red:hover {
    border-color: rgba(255, 51, 102, 0.3);
    box-shadow: 0 10px 40px -10px rgba(255, 51, 102, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass-light);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-primary);
}

.btn-text:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 3, 8, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

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

/* Burger Menu */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(3, 3, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass-light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-icon {
    color: var(--accent-primary);
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Marquee Technology Stack */
.tech-stack-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 500px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.marquee-content span {
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.marquee-content span:hover {
    opacity: 1;
    color: var(--accent-primary);
}

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

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

/* Hero Visuals (3D Cards) */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.server-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg);
    width: 320px;
    padding: 0;
    z-index: 2;
    background: rgba(20, 20, 30, 0.7);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--border-glass-light);
    transform-style: preserve-3d;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-controls span:nth-child(1) {
    background: #ff5f56;
}

.window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background: #27c93f;
}

.card-title {
    margin-left: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-body {
    padding: 1.5rem;
}

/* Custom Scrollbar for Hero Terminal */
#heroTerminalBody::-webkit-scrollbar {
    width: 6px;
}

#heroTerminalBody::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#heroTerminalBody::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#heroTerminalBody::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.float-card-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-card-2 {
    position: absolute;
    bottom: 20%;
    left: 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ============================================
   GLOBAL SECTIONS
   ============================================ */
.section-heading {
    margin-bottom: 4rem;
}

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

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

.section-heading.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-body-lg {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.text-body {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About Visual (Glass Panel) */
.monitoring-panel {
    padding: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass-light);
}

.live-pulse {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-danger);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-pulse::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-danger);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

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

.radial-progress {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) var(--progress), rgba(255, 255, 255, 0.05) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.inner-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.percent {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.interests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.interest-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.interest-item .info {
    flex: 1;
}

.interest-item .name {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.interest-item .bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.interest-item .fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
}

.interest-item:nth-child(1) .fill {
    background: var(--accent-secondary);
}

.interest-item:nth-child(2) .fill {
    background: var(--accent-tertiary);
}

.interest-item:nth-child(3) .fill {
    background: var(--accent-danger);
}

/* ============================================
   EXPERTISE (BENTO GRID)
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minMax(250px, auto);
    gap: 1.5rem;
}

.bento-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cell-large {
    grid-row: span 2;
}

.cell-wide {
    grid-column: span 2;
}

.cell-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.bento-cell h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-cell p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* Arts abstraits dans les cellules */
.sys-art {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.circular-art {
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

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

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-glass-light);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-base);
    border-color: var(--text-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-glass-light), transparent);
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    margin-bottom: 3rem;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-base);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.timeline-content {
    width: 90%;
    padding: 2rem;
    text-align: right;
    cursor: pointer;
}

.timeline-item.right .timeline-content {
    text-align: left;
    margin-left: 10%;
}

.timeline-item.left .timeline-content {
    margin-right: 10%;
}

.timeline-date {
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-alternance {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-stage {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.timeline-role {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

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

/* ============================================
   TERMINAL SECTION
   ============================================ */
.terminal-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.terminal-window {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-glass-light);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass-light);
}

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

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.btn-icon:hover {
    opacity: 1;
}

.terminal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #e5e7eb;
}

.logs-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.terminal-input-line {
    display: flex;
    margin-top: 0.5rem;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    margin-left: 0.5rem;
    outline: none;
}

.terminal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.terminal-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.quick-commands {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cmd-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border-glass-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.cmd-pill:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-glass-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.social-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   DRAWER / MODAL
   ============================================ */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    max-width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass-light);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.drawer-title {
    font-size: 1.5rem;
    margin-right: 2rem;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.drawer-close:hover {
    color: var(--accent-danger);
}

.drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-section {
    margin-bottom: 2.5rem;
}

.drawer-section-title {
    font-size: 0.875rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.drawer-info-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.drawer-info-label {
    width: 120px;
    color: var(--text-muted);
    font-weight: 500;
}

.drawer-info-val {
    flex: 1;
    color: var(--text-primary);
}

.results-list {
    list-style: none;
}

.results-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.results-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cell-wide {
        grid-column: span 1;
    }

    .terminal-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .system-status {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-visual {
        display: none;
    }

    /* Hide 3D element on mobile */
    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .cell-large {
        grid-row: span 1;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item.right {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content,
    .timeline-item.right .timeline-content {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .drawer {
        width: 100%;
    }
}