/* ======================================================================
   PORTFOLIO — MARLON REYNAUD
   Design System v10.0 — Premium Cyber-Luxury
   Inspired by Esteban Guillermin (eguillermin.vercel.app)
 ====================================================================== */

:root {
    /* Color Palette - Cyber-Blue v2.0 - Refined for Ultra-Premium */
    --brand-solid: #00f2ff; /* Pure Cyber Cyan */
    --brand-glow: rgba(0, 242, 255, 0.5);
    --brand-blue: #0ea5e9; 
    --brand-deep: #0c4a6e;
    --brand-gradient: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 40%, #00f2ff 80%, #ffffff 100%); 
    --brand-background: rgba(0, 242, 255, 0.05);
    --brand-playful: rgba(255, 255, 255, 0.1); 
    
    --bg-page: #010409; /* Ultra dark GitHub-like obsidian */
        --bg-card: rgba(255, 255, 255, 0.03);
 /* Extreme transparency */
    --bg-card-hover: rgba(22, 27, 34, 0.25);
    --bg-navbar: rgba(1, 4, 9, 0.25);

    --text-strong: #f8fafc;
    --text-medium: #cbd5e1;
    --text-weak: #94a3b8;
    
    --glass-blur: 25px;
    --glass-reflection: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 40%);
    --card-shadow-premium: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    --neon-glow: 0 0 25px var(--brand-glow);

    --radius-m: 8px;
    --radius-l: 12px;
    --container-max: 1400px;
    --header-height: 72px;

    --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
    --bg-page: #f8fafc; /* Slate 50 - Very clean and premium */
        --bg-card: rgba(255, 255, 255, 0.25);

    --bg-card-hover: rgba(255, 255, 255, 0.65);
    --bg-navbar: rgba(255, 255, 255, 0.5);
    --text-strong: #0f172a; /* Slate 900 */
    --text-medium: #334155; /* Slate 700 */
    --text-weak: #64748b; /* Slate 500 */
    --brand-solid: #0ea5e9; 
    --brand-subtle: rgba(14, 165, 233, 0.08);
    --brand-glow: rgba(14, 165, 233, 0.15);
    --glass-blur: 40px;
    --card-shadow-premium: 0 20px 60px rgba(15, 23, 42, 0.05);
    --scanline-opacity: 0.001;
}

:root[data-theme="light"] .aurora-container {
    background: #e8f0fe;
    opacity: 0.5;
}

:root[data-theme="light"] .blob-1 {
    background: radial-gradient(circle, #ede9fe, #8b5cf6);
}

:root[data-theme="light"] .blob-2 {
    background: radial-gradient(circle, #f5f3ff, #a78bfa);
}

:root[data-theme="light"] .blob-3 {
    background: radial-gradient(circle, #fae8ff, #d946ef);
}

:root[data-theme="light"] .blob-4 {
    background: radial-gradient(circle, #e0e7ff, #818cf8);
}

/* ============================================================
   BASE STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body,
.admin-login-body {
    background-color: var(--bg-page);
    color: var(--text-medium);
    font-family: var(--font-body);
    font-weight: var(--font-weight-body);
    letter-spacing: var(--letter-spacing);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition-theme);
}

/* Background Cyber Grid Effect (Blackbox.ai / BTS SIO Inspired) */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #02040a; /* Deep blackbox-like background */
    overflow: hidden;
    pointer-events: none;
    /* Grid Pattern */
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.aurora-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 10%, #02040a 90%);
    z-index: -1;
}

/* We repurpose the aurora blobs into glowing data nodes / servers */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: nodeFloat 20s infinite alternate ease-in-out;
}

/* Cyber Data Streams (BTS SIO) */
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #0ea5e9, #00f2ff);
    top: -10%; left: -5%;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6366f1, #8b5cf6);
    top: 20%; right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0284c7, #0ea5e9);
    bottom: -10%; left: 20%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.blob-4 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #38bdf8, #0ea5e9);
    bottom: 30%; right: 20%;
    animation-duration: 28s;
    animation-delay: -15s;
}

@media (max-width: 1024px) {
    .aurora-container {
        background-size: 20px 20px;
    }
    .aurora-blob { filter: blur(50px); animation-duration: 40s !important; }
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 200px; height: 200px; }
    .blob-4 { width: 150px; height: 150px; }
}

@keyframes nodeFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(50px, -30px, 0) scale(1.1); }
    100% { transform: translate3d(-30px, 50px, 0) scale(0.9); }
}

/* Glass Grain Overlay */
.aurora-container::after {
    content: '';
    position: absolute;
    inset: 0;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--text-alpha);
    border-radius: 10px;
    border: 2px solid var(--bg-page);
}

/* ==========================================================================
   PREMIUM BADGES
   ========================================================================== */
.premium-badge {
    position: relative;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: badgeReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    animation-delay: 0.2s;
}

.badge-pdf {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.9), rgba(255, 140, 0, 0.9));
}

.badge-ekloud {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
}

@keyframes badgeReveal {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-solid);
}

.container {
    width: 92%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Resolution Optimization */
@media screen and (min-width: 2560px) {
    :root {
        --container-max: 2000px;
        font-size: 18px;
    }
}

@media screen and (min-width: 3840px) {
    :root {
        --container-max: 2800px;
        font-size: 22px;
    }
}

/* Structural Glass Panels */
.glass-panel {
    background: var(--bg-glass-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 6rem 5rem;
    backdrop-filter: blur(120px) saturate(180%);
    -webkit-backdrop-filter: blur(120px) saturate(180%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    margin-bottom: 7rem;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, backdrop-filter;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-panel:hover::after {
    opacity: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: glassSweep 12s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes glassSweep {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.glass-panel-grain {
    content: '';
    position: absolute;
    inset: 0;
    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.60' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
    color: var(--text-strong);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--brand-solid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(96, 165, 250, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-solid);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-github {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.5);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.badge-pdf {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(251, 113, 133, 0.1) 100%);
    color: #fda4af;
    border: 1px solid rgba(251, 113, 133, 0.5);
    box-shadow: 
        0 0 20px rgba(225, 29, 72, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.badge-doc {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: 
        0 0 20px rgba(37, 99, 235, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.badge-github::after, .badge-pdf::after, .badge-doc::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* ============================================================
   NAVBAR & MENU
   ============================================================ */
/* ── Premium Navbar (PC & Mobile) ── */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-max);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.logo-btn {
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-strong) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
}

.logo-btn span {
    color: var(--brand-solid) !important;
    text-shadow: 0 0 15px var(--brand-glow) !important;
}

.logo-btn:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

#nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

#nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-weak);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#nav-menu li a i {
    font-size: 0.9rem;
    opacity: 0.5;
    transition: 0.3s;
}

#nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-strong);
}

#nav-menu li a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

#nav-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-strong);
    box-shadow: none;
}

#nav-menu li a.active i {
    opacity: 1;
    color: var(--brand-solid);
}

/* Dropdown Logic */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    font-size: 0.8rem;
    color: var(--brand-solid);
    opacity: 0.6;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-solid);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-strong);
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-page) !important;
        opacity: 1 !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 2000;
        clip-path: circle(0% at top right);
        transition: clip-path 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        pointer-events: none;
        will-change: clip-path;
        backface-visibility: hidden;
    }

    #nav-menu.active {
        clip-path: circle(150% at top right);
        pointer-events: all;
    }

    #nav-menu li a {
        font-size: 1.5rem;
        color: var(--text-strong) !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-display);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, background 0.3s ease;
    cursor: pointer;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.btn:hover {
    box-shadow: 0 15px 40px var(--brand-glow);
}

.btn:active {
    transform: scale(0.92) !important;
}

.primary-btn {
    background: var(--brand-solid);
    color: #ffffff; /* White text for better contrast */
    font-weight: 800;
    box-shadow: 0 10px 30px var(--brand-glow);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-solid);
}

.secondary-btn.active {
    background: var(--brand-solid) !important;
    color: #000 !important;
    border-color: var(--brand-solid) !important;
    box-shadow: 0 0 25px var(--brand-glow), inset 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 800;
}

.btn.active {
    background: var(--brand-solid) !important;
    color: #000 !important;
    border-color: var(--brand-solid) !important;
    box-shadow: 0 0 20px var(--brand-glow) !important;
}

/* Category Specific Button Colors */
.btn.filter-github.active {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4) !important;
}

.btn.filter-documentation.active {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
}

/* Badge Modifiers */
.section-badge.badge-github {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.4);
    background: rgba(129, 140, 248, 0.1);
}

.section-badge.badge-pdf {
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.1);
}

.section-badge.badge-doc {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.1);
}

.danger-btn {
    background: var(--accent-solid);
    color: #fff;
}

.danger-btn:hover {
    background: #ff1a53;
    transform: translateY(-3px);
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-6 {
    grid-column: span 6;
}

.span-7 {
    grid-column: span 7;
}

.span-8 {
    grid-column: span 8;
}

.span-9 {
    grid-column: span 9;
}

.span-10 {
    grid-column: span 10;
}

.span-11 {
    grid-column: span 11;
}

.span-12 {
    grid-column: span 12;
}

@media (max-width: 1024px) {
    .bento-grid {
        gap: 1.5rem;
    }

    .span-8, .span-9, .span-6, .span-4, .span-3, .span-2 {
        grid-column: span 12 !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .glass-panel {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .bento-grid {
        gap: 1rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.markdown-body {
    color: var(--text-medium);
    line-height: 1.8;
}

.markdown-body {
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 1rem;
    padding: 3rem;
    overflow-y: auto;
    height: 100%;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: var(--brand-solid);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-display);
    font-weight: 800;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.markdown-body h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.markdown-body h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.markdown-body p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body code {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.markdown-body pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    overflow-x: auto;
}

.markdown-body blockquote {
    border-left: 4px solid var(--brand-solid);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #cbd5e1;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ── Markdown Tables ── */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.88rem;
    overflow-x: auto;
    display: block;
}

.markdown-body table thead tr {
    background: rgba(96, 165, 250, 0.08);
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.markdown-body table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--brand-solid);
    text-transform: uppercase;
    white-space: nowrap;
}

.markdown-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-medium);
    vertical-align: top;
    line-height: 1.5;
}

.markdown-body table tbody tr:hover {
    background: rgba(96, 165, 250, 0.04);
}

.markdown-body table tbody tr:last-child td {
    border-bottom: none;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-spring);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    will-change: transform, box-shadow, border-color;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(96, 165, 250, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-panel {
    position: relative;
    overflow: hidden;
    background: rgba(13, 17, 23, 0.2);
    backdrop-filter: blur(80px) saturate(200%);
    -webkit-backdrop-filter: blur(80px) saturate(200%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(96, 165, 250, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover::after {
    opacity: 1;
}

/* Premium Project Cards */
.project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-header {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #000;
}

.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Zoom sur les images projet désactivé */

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
}

.tag {
    font-size: 0.65rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-strong);
}

/* Horizontal Card (Desktop) */
@media (min-width: 1024px) {
    .horizontal-card {
        flex-direction: row !important;
        grid-column: span 12 !important;
    }

    .horizontal-card .project-card-header {
        width: 400px;
        aspect-ratio: auto;
    }
}

/* ============================================================
   MODAL SYSTEM
   ============================================================ */
/* MODAL SYSTEM DEPRECATED — MOVED TO READER.HTML */

}

/* ============================================================
   THEME SWITCH (DAY/NIGHT TOGGLE)
   ============================================================ */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 68px;
}

.theme-switch input {
    display: none;
}

.slider {
    background: rgba(255, 255, 255, 0.05);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.slider:before {
    background-color: #60a5fa;
    bottom: 4px;
    content: "";
    height: 24px;
    left: 4px;
    position: absolute;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(96, 165, 250, 0.4);
    z-index: 2;
}

input:checked + .slider {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

input:checked + .slider:before {
    transform: translateX(34px);
    background-color: #f59e0b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(245, 158, 11, 0.5);
}

.slider i {
    font-size: 0.85rem;
    z-index: 1;
    transition: 0.3s;
}

.fa-moon { color: #60a5fa; }
.fa-sun { color: #f59e0b; }

[data-theme="light"] .fa-moon { opacity: 0.3; transform: scale(0.8); }
[data-theme="dark"] .fa-sun { opacity: 0.3; transform: scale(0.8); }

.theme-switch:hover .slider {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* ============================================================
   PROJECT CARDS & BENTO (ULTRA-PREMIUM)
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    padding: 1rem 0;
}

.project-card, .card {

    position: relative;
        background: var(--bg-card);

        border: 1px solid rgba(255, 255, 255, 0.1);

        border-top: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 28px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
        backdrop-filter: blur(var(--glass-blur)) saturate(200%);

        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(200%);

    box-shadow: var(--card-shadow-premium);
}

/* Card Size Variants */
.project-card.span-12 { grid-column: span 12; min-height: 400px; }
.project-card.span-8 { grid-column: span 8; min-height: 380px; }
.project-card.span-6 { grid-column: span 6; min-height: 380px; }
.project-card.span-4 { grid-column: span 4; min-height: 380px; }

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(96, 165, 250, 0.08), 
                transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    opacity: var(--scanline-opacity);
    pointer-events: none;
    z-index: 2;
}

.project-card:hover, .card:hover {

    transform: translateY(-8px);
        border-color: var(--brand-solid);

        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 30px var(--brand-glow);

}

.project-card:hover::before {
    opacity: 1;
}

/* Card Content Styling */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    z-index: 3;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1px;
}

/* Nav Status Monitor */
.nav-status-monitor {
    display: flex;
    gap: 1rem;
    margin-right: 1.5rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    
    border-radius: 14px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
}

.status-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-strong);
    white-space: nowrap;
}

.mini-bar-wrapper {
    width: 30px;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-left: 2px;
}

.mini-bar {
    height: 100%;
    background: var(--brand-solid);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--brand-glow);
}

@media (max-width: 1024px) {
    .nav-status-monitor {
        display: none; /* Masqué sur mobile pour laisser de la place au menu */
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #10b981; }
    50% { transform: scale(1.5); opacity: 0.6; box-shadow: 0 0 15px #10b981; }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #10b981; }
}

.project-type-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.type-github { color: #818cf8; border-color: rgba(129, 140, 248, 0.3); background: rgba(129, 140, 248, 0.05); }
.type-pdf { color: #fb7185; border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.05); }

.project-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-strong);
    letter-spacing: -0.8px;
    line-height: 1.1;
    z-index: 3;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-weak);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    z-index: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
    z-index: 3;
}

.tech-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-medium);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.05);
}

.card-footer {
    display: flex;
    gap: 12px;
    z-index: 3;
}

.btn-primary-glass {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: var(--font-display);
    letter-spacing: 1px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    text-transform: uppercase;
}

.btn-primary-glass:hover {
    background: var(--brand-solid);
    color: #000;
    box-shadow: 0 0 20px var(--brand-glow);
    transform: translateY(-2px);
}

.btn-secondary-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-strong);
    transform: translateY(-2px);
}

/* Stats Section Modernization */
.system-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0 4rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 24px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-solid), transparent);
    opacity: 0.3;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px var(--brand-glow);
}

.stat-label {
    font-size: 0.55rem;
    color: var(--text-weak);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 1.8rem;
    }
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .span-1,
    .span-2,
    .span-3,
    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-9,
    .span-10,
    .span-11,
    .span-12 {
        grid-column: span 1 !important;
    }

    .horizontal-card .project-card-header {
        width: 100% !important;
        height: 220px;
    }

    .horizontal-card {
        flex-direction: column !important;
    }

    .card {
        padding: 1.8rem;
        border-radius: 20px;
        backdrop-filter: blur(20px) saturate(140%);
        /* Lighter blur for mobile performance */
        -webkit-backdrop-filter: blur(20px) saturate(140%);
    }

    header {
        width: calc(100% - 20px);
        top: 10px;
    }

    .navbar {
        padding: 0 1.2rem;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100000 !important;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #00f2ff);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.8), 0 0 40px rgba(96, 165, 250, 0.4);
    transition: width 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 10px;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    filter: blur(2px);
}

.scroll-percentage {
    position: fixed;
    top: 10px;
    right: 25px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-solid);
    text-shadow: 0 0 10px var(--brand-glow);
    z-index: 100001;
    pointer-events: none;
    opacity: 0.8;
    letter-spacing: 1px;
    background: rgba(13, 17, 23, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

section, .card, .project-card, .bento-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px; /* Aide le navigateur à anticiper la taille avant le rendu */
}

.card, .project-card {
    contain: paint; /* Isole le rendu de la carte */
    backface-visibility: hidden;
}

.reveal {
    will-change: transform, opacity;
    transform: translate3d(0, 15px, 0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.aurora-blob {
    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    perspective: 1000px;
    pointer-events: none;
    contain: strict;
    filter: blur(60px); /* Un peu moins de flou pour plus de performance GPU */
}

/* Base Styles */
:root {
}

/* Inputs & Forms - Liquid Glass Style */
input,
textarea,
select,
.admin-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-strong);
    font-family: var(--font-body);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

/* Consolidation of PIN Styles moved to end for clarity */
/* Premium Primary Button - Cyber-Violet */
.btn.primary-btn {
    background: var(--brand-gradient);
    color: #000;
    font-weight: 800;
    border: none;
    box-shadow: 0 10px 25px var(--brand-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px var(--brand-glow);
    filter: brightness(1.1);
}

.section-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-solid);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Admin Dashboard Specific Glass */
.admin-dashboard-body {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(100px) saturate(200%);
    -webkit-backdrop-filter: blur(100px) saturate(200%);
    min-height: 100vh;
}

.admin-input {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.admin-input:focus {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: var(--brand-solid) !important;
    box-shadow: 0 0 15px var(--brand-glow) !important;
}

/* Status Badges (Glow Style) */
.status-badge {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-solid), transparent);
    opacity: 0.3;
}

.status-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 255, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.status-dot.green {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: pulse-green 2s infinite;
}

.status-value {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-weak);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Fin Status Badges */

/* PIN Entry Styles */
.pin-dot {
    width: 50px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--brand-solid);
    font-size: 1.8rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 60px;
    /* Force vertical center */
}

.pin-dot:focus {
    outline: none !important;
    border-color: var(--brand-solid) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    box-shadow: 0 0 20px var(--brand-glow), inset 0 0 10px rgba(59, 130, 246, 0.2) !important;
    transform: scale(1.08);
}

.pin-dot.success {
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.pin-dot.error {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: shake 0.4s ease;
}

#pin-status {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    height: 1.5rem;
    transition: 0.3s;
}

#pin-status.success {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

#pin-status.error {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ============================================================
   ADMIN DASHBOARD LAYOUT (MISSION CONTROL)
   ============================================================ */
#dashboard-section {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: transparent;
}

/* Sidebar Styles (PC Only) */
.admin-sidebar {
    width: 260px;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 1001;
    transition: var(--transition-smooth);
}

.sidebar-header {
    margin-bottom: 3rem;
}

.sidebar-header .logo {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.system-tag {
    font-size: 0.5rem;
    font-family: var(--font-mono);
    color: var(--brand-solid);
    letter-spacing: 2px;
    opacity: 0.6;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-weak);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.sidebar-nav .nav-item i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-strong);
}

.sidebar-nav .nav-item.active {
    background: rgba(96, 165, 250, 0.1);
    color: var(--brand-solid);
    box-shadow: inset 0 0 15px rgba(96, 165, 250, 0.05);
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logout-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.logout-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.admin-main-content {
    flex: 1;
    margin-left: 260px; transition: margin-left 0.4s ease;
    padding: 3rem;
    max-width: 1600px;
}

/* Status Monitor Overrides for Sidebar */
.admin-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

.admin-status .status-item {
    font-size: 0.6rem;
    font-family: var(--font-mono);
}

/* Mobile Topbar Styles */
.admin-topbar {
    display: none; /* Hidden on PC */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1rem 0 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-weak);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-family: var(--font-mono);
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.admin-nav-item i {
    font-size: 1rem;
    opacity: 0.7;
}

.admin-nav-item:hover {
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.03);
}

.admin-nav-item.active {
    color: var(--brand-solid);
    border-bottom-color: var(--brand-solid);
    background: rgba(96, 165, 250, 0.05);
}

/* Custom scrollbar for topbar nav */
.topbar-nav::-webkit-scrollbar {
    height: 4px;
}
.topbar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.topbar-nav::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 4px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(20px);
}

.admin-section {
    display: none;
    animation: adminSectionFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-section.active {
    display: block;
}

@keyframes adminSectionFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.item-info h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.item-info p {
    font-size: 0.65rem;
    color: var(--text-weak);
    font-family: var(--font-mono);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-weak);
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-strong);
    transform: scale(1.1);
}

.item-btn.edit-btn:hover { color: var(--brand-solid); border-color: var(--brand-solid); }
.item-btn.delete-btn:hover { color: #ef4444; border-color: #ef4444; }

.admin-form-group {
    margin-bottom: 2rem;
}

.admin-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-weak);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.admin-input-premium {
    width: 100%;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.admin-input-premium:focus {
    border-color: var(--brand-solid) !important;
    background: rgba(96, 165, 250, 0.05) !important;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.1);
    outline: none;
}

/* ============================================================
   NOTIFICATION SYSTEM
   ============================================================ */
.notify {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 18px 32px;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateX(120%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.notify.visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notify.success {
    border-left: 4px solid #27c93f;
    box-shadow: 0 20px 40px rgba(39, 201, 63, 0.15);
}

.notify.error {
    border-left: 4px solid #ff4444;
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.15);
}

/* Mobile Dashboard Adjustments */
@media (max-width: 1024px) {
    #dashboard-section {
        flex-direction: column;
    }

    .admin-sidebar {
        display: none; /* Hide sidebar on mobile */
    }

    .admin-topbar {
        display: block; /* Show topbar on mobile */
    }

    .admin-main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .topbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 1rem;
    }

    .topbar-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .topbar-nav::-webkit-scrollbar {
        display: none;
    }

    .topbar-nav .nav-item {
        padding: 10px 15px;
        border-radius: 10px;
        background: rgba(255,255,255,0.03);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: 98%;
        padding: 0 0.5rem;
    }

    .glass-panel {
        padding: 2rem 1rem;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    header {
        top: 10px;
        height: 60px;
        width: 98%;
    }

    .card {
        padding: 1.5rem !important;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   PREMIUM CHATBOT WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-body);
}

.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    z-index: 4001;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.chat-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.chat-fab::after {
    content: '🤖';
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.chat-fab svg {
    display: none;
}

.chat-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 14px 40px rgba(59, 130, 246, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.chat-window {
    width: 360px;
    height: 520px;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 24px;
    margin-bottom: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 4001;
    animation: chatOpen 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

@keyframes chatOpen {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window.active {
    display: flex;
}

.chat-tooltip {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 260px;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 18px;
    color: var(--text-medium);
    font-size: 0.85rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 4002;
    animation: tooltipPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--bg-card);
}

.chat-tooltip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-weak);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.3s;
}

.chat-tooltip-close:hover {
    background: var(--accent-solid);
    color: #fff;
}

.chat-tooltip h5 {
    color: var(--text-strong);
    font-size: 0.95rem;
    margin: 0;
}

.chat-tooltip p {
    margin: 0;
    line-height: 1.4;
}

.chat-tooltip .cta {
    color: var(--brand-solid);
    font-weight: 700;
    cursor: pointer;
}

@keyframes tooltipPop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    padding: 20px 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-strong);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: radial-gradient(circle at top right, var(--brand-background), transparent 40%);
}

.msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
        animation: msgReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;

    will-change: transform, opacity;
}

.msg.bot::before {
    content: '🤖';
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.msg.bot {
        background: rgba(255, 255, 255, 0.08);

    color: var(--text-medium);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.msg.user {
    flex-direction: row-reverse;
        background: var(--brand-solid);

        color: #fff;

    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
        box-shadow: 0 10px 20px var(--brand-glow);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.msg-content strong {
    color: var(--text-strong);
    font-weight: 700;
}

.msg-time {
    font-size: 0.6rem;
    opacity: 0.4;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: var(--border-subtle);
}

.chat-input {
    flex: 1;
    background: var(--brand-background);
    border: var(--border-subtle);
    border-radius: 14px;
    padding: 12px 18px;
    color: var(--text-strong);
    outline: none;
    transition: 0.3s;
}

.chat-input:focus {
    border-color: var(--brand-solid);
    background: rgba(0, 255, 255, 0.05);
}

.chat-send {
    background: var(--brand-solid);
    border: none;
        border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--brand-glow);
}
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
    }
}

/* ============================================================
   FOXIT-STYLE PDF VIEWER (PREMIUM)
   ============================================================ */
/* OLD PDF VIEWER DEPRECATED */
/* ============================================================
   ULTRA-LUXURY STYLE INJECTION (ANTIGRAVITY)
   ============================================================ */

/* PREMIUM CYBER-BADGE LOGO DESIGN */
.logo, a.logo, .navbar .logo, .sidebar-header .logo, .topbar-header .logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: rgba(13, 17, 23, 0.6) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    border-radius: 12px !important;
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(96, 165, 250, 0.1) !important;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
}

/* Glowing Indicator Dot */
.logo::before, a.logo::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-solid);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-solid);
    animation: badgePulse 2s infinite;
}

/* Colored span styling */
.logo span, a.logo span {
    color: var(--brand-solid) !important;
    text-shadow: 0 0 15px var(--brand-glow) !important;
    text-decoration: none !important;
}

/* Hover effects */
.logo:hover, a.logo:hover {
    background: rgba(30, 40, 60, 0.8) !important;
    border-color: var(--brand-solid) !important;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3), inset 0 0 20px rgba(96, 165, 250, 0.2) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Scanning effect on the logo badge */
.logo::after, a.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 50%, transparent 75%);
    transform: rotate(30deg);
    animation: btnScan 5s infinite linear;
    pointer-events: none;
}

.primary-btn { position: relative; overflow: hidden; }
.primary-btn::after { content: ''; position: absolute; top: -50%; left: -150%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%); transform: rotate(30deg); animation: btnScan 4s infinite linear; }
@keyframes btnScan { 0% { left: -150%; } 20% { left: 150%; } 100% { left: 150%; } }
.card:hover { background: var(--bg-card-hover) !important; border-color: var(--brand-playful) !important; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 40px var(--brand-glow) !important; transform: translateY(-10px) scale(1.01); }
.gradient-text { filter: drop-shadow(0 0 15px var(--brand-glow)); display: inline-block; }
.section-badge { box-shadow: 0 0 15px var(--brand-glow); animation: badgePulse 3s infinite; }
@keyframes badgePulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.02); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
header:hover { border-color: var(--brand-playful); background: rgba(0, 10, 30, 0.6); }
. c a r d  
 . b t n  
 . g l a s s - p a n e l  
 . r e v e a l  
   w i l l - c h a n g e :   t r a n s f o r m ,   o p a c i t y ;   b a c k f a c e - v i s i b i l i t y :   h i d d e n ;   - w e b k i t - f o n t - s m o o t h i n g :   s u b p i x e l - a n t i a l i a s e d ;    
 
/* SECURITY REINFORCEMENT */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
@media print { body { display: none !important; } }

/* About Page Grid - Responsive */
.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-grid aside {
        position: static !important;
    }
}

/* Experience Timeline Enhancement */
#xp-container {
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    margin-left: 1rem;
}

[data-theme="light"] #xp-container {
    border-left-color: rgba(15, 23, 42, 0.1);
}

/* Alternating Timeline Layout */
#xp-container {
    position: relative;
    padding: 2rem 0;
}

#xp-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-solid);
    opacity: 0.3;
}

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

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

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-page);
    border: 3px solid var(--brand-solid);
    border-radius: 50%;
    z-index: 10;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--brand-solid);
    border-radius: 50%;
}

.timeline-content {
    width: 85%;
    margin: 0 40px;
}

@media (max-width: 1024px) {
    #xp-container::before {
        left: 30px;
    }
    .timeline-item, .timeline-item.right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-dot {
        left: 30px;
    }
    .timeline-content {
        width: 100%;
        margin: 0;
    }
}

/* Veille Page Grid - Responsive */
.veille-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .veille-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .veille-grid aside {
        position: static !important;
    }
}


/* Contact Page Grid - Responsive */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@keyframes msgReveal {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============================================================
   PREMIUM APPLE LIQUID GLASS � Skill Cards
   ============================================================ */

.skill-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(0, 242, 255, 0.03) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 24px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative;
    overflow: hidden !important;
}

/* Top glass sheen � Apple signature effect */
.skill-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 60%,
        transparent 100%
    ) !important;
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 0;
    opacity: 1 !important;
}

/* Glow border on hover */
.skill-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 242, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    border-color: rgba(0, 242, 255, 0.5) !important;
    border-top-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 242, 255, 0.25),
        0 0 40px rgba(0, 242, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Skill icon container premium */
.skill-card .skill-icon-box {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(14, 165, 233, 0.08)) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

/* Skill item rows premium */
.skill-item-row {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-item-row {
    background: rgba(0, 242, 255, 0.04) !important;
    border-color: rgba(0, 242, 255, 0.15) !important;
}

/* Light theme overrides for skill cards */
:root[data-theme="light"] .skill-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .skill-card:hover {
    border-color: rgba(14, 165, 233, 0.5) !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.12),
        0 0 30px rgba(14, 165, 233, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* ============================================================
   PREMIUM GLASS � About Page Timeline & Diploma Cards
   ============================================================ */

#xp-container .card,
#diploma-container .card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(0, 242, 255, 0.02) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative;
    overflow: hidden !important;
}

#xp-container .card::before,
#diploma-container .card::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 100%
    ) !important;
    pointer-events: none;
    z-index: 0;
    opacity: 1 !important;
}

#xp-container .card:hover,
#diploma-container .card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0, 242, 255, 0.35) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 242, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

:root[data-theme="light"] #xp-container .card,
:root[data-theme="light"] #diploma-container .card {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3)) !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    border-top: 1px solid rgba(255,255,255,0.95) !important;
    box-shadow: 0 8px 30px rgba(15,23,42,0.07), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}



/* ============================================================
   RESPONSIVE MOBILE & MICRO-INTERACTIONS  Premium Fluidity
   ============================================================ */

/* --- Touch-Optimized Micro-Interactions (Global but mostly for mobile) --- */
@media (hover: none) and (pointer: coarse) {
    /* Add spring physics to touch targets */
    .btn, .card, .project-card, .skill-card, .logo-btn, .nav-dropdown > a {
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    }
    
    .btn:active, .card:active, .project-card:active, .skill-card:active, .logo-btn:active, .nav-dropdown > a:active {
        transform: scale(0.95) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }

    /* Force hardware acceleration on background for better performance on mobile */
    .aurora-container, .glass-panel {
        will-change: transform, opacity;
        transform: translateZ(0);
    }
}

/* ============================================================
   FLUID RESPONSIVE DESIGN (< 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    /* === FLUID LAYOUT & SPACING === */
    .container {
        padding: 0 clamp(1rem, 4vw, 2rem) !important;
    }

    main.container {
        padding-top: clamp(80px, 12vh, 120px) !important;
    }

    /* === PREMIUM FLUID NAVBAR === */
    header {
        width: calc(100% - clamp(16px, 4vw, 32px)) !important;
        top: clamp(8px, 2vw, 16px) !important;
        left: clamp(8px, 2vw, 16px) !important;
        right: clamp(8px, 2vw, 16px) !important;
        transform: none !important;
    }

    .navbar {
        padding: 0 clamp(1rem, 3vw, 1.5rem) !important;
        height: clamp(60px, 8vh, 70px) !important;
        border-radius: 16px !important;
    }

    .logo-btn {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
    }

    /* Mobile Menu Fullscreen with Staggered Animations */
    #nav-menu {
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 4, 10, 0.95) !important;
        backdrop-filter: blur(40px) saturate(150%);
        -webkit-backdrop-filter: blur(40px) saturate(150%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 9998;
        display: flex;
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at top right);
        transition: clip-path 0.8s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.4s ease, visibility 0.8s;
        padding: 2rem;
    }

    #nav-menu.active {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at top right);
    }

    #nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    #nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays for nav items */
    #nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    #nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    #nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    #nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    #nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    #nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }

    #nav-menu li a {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
        letter-spacing: 4px;
        color: var(--text-strong) !important;
    }

    .nav-status-monitor, .theme-switch-wrapper {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 9999;
    }

    /* === FLUID HERO SECTION === */
    #hero {
        min-height: clamp(80vh, 100vh, 100vh) !important;
    }

    #hero h1,
    h1 {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -2px !important;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
    }

    /* === DYNAMIC BENTO GRID (Auto-flowing) === */
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 80vw, 320px), 1fr)) !important;
        gap: clamp(1rem, 3vw, 2rem) !important;
    }

    .bento-grid > div {
        grid-column: span 1 !important;
    }

    .project-card, .card {
        padding: clamp(1.2rem, 4vw, 2rem) !important;
        border-radius: clamp(16px, 4vw, 24px) !important;
    }

    /* === OTHER GRIDS FLUIDITY === */
    .about-grid, .contact-grid, .veille-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: clamp(1.5rem, 5vw, 3rem) !important;
    }

    .about-grid aside, .veille-grid aside {
        position: static !important;
    }

    .system-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: clamp(0.5rem, 2vw, 1rem) !important;
    }

    .stat-value {
        font-size: clamp(0.9rem, 3vw, 1.2rem) !important;
    }

    /* === MISC IMPROVEMENTS === */
    .timeline-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-item.right {
        flex-direction: column !important;
    }

    .timeline-dot {
        display: none !important;
    }

    .filter-buttons-group {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .filter-buttons-group::-webkit-scrollbar { display: none; }

    .section-badge {
        font-size: clamp(0.5rem, 2vw, 0.65rem) !important;
        padding: clamp(4px, 1.5vw, 6px) clamp(10px, 3vw, 16px) !important;
    }

    #chatbot-widget {
        width: calc(100vw - clamp(16px, 4vw, 32px)) !important;
        height: clamp(60vh, 70vh, 80vh) !important;
        bottom: clamp(60px, 10vh, 80px) !important;
        right: clamp(8px, 2vw, 16px) !important;
        left: clamp(8px, 2vw, 16px) !important;
    }

    input, textarea {
        font-size: clamp(0.9rem, 3vw, 1rem) !important;
        padding: clamp(0.8rem, 3vw, 1rem) !important;
    }

    .btn {
        padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px) !important;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem) !important;
    }

    .hide-mobile {
        display: none !important;
    }
}
