/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ===== VARIABLES & RESET ===== */
:root {
    --bg-dark: #060b18;
    --bg-card: rgba(12, 20, 38, 0.7);
    --bg-card-hover: rgba(18, 30, 55, 0.8);
    --bg-section-alt: #070d1a;
    --accent: #5b9cf5;
    --accent-light: #8bb8f8;
    --accent-dark: #3a6ec4;
    --accent-glow: rgba(91, 156, 245, 0.2);
    --green-status: #4ade80;
    --green-glow: rgba(74, 222, 128, 0.2);
    --blue-primary: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.2);
    --purple-accent: #a78bfa;
    --purple-glow: rgba(167, 139, 250, 0.15);
    --red-alert: #f87171;
    --text-primary: #f1f5f9;
    --text-secondary: #c0cbda;
    --text-muted: #8a9bb2;
    --border-color: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(91, 156, 245, 0.2);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection {
    background: rgba(91, 156, 245, 0.25);
    color: #fff;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ===== NETWORK CANVAS ===== */
#network-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ===== MATRIX RAIN ===== */
#matrix-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.02;
}

/* ===== SCANLINES OVERLAY ===== */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.015) 3px,
        rgba(0, 0, 0, 0.015) 6px
    );
}

/* ===== CIRCUIT DECORATION ===== */
.circuit-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.circuit-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.04;
}

.circuit-h {
    height: 1px;
    animation: circuitFlowH 8s linear infinite;
}

.circuit-v {
    width: 1px;
    animation: circuitFlowV 10s linear infinite;
}

.circuit-node {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: nodeFlash 4s ease-in-out infinite;
}

@keyframes circuitFlowH {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 0.08; }
    90% { opacity: 0.08; }
    100% { transform: translateX(100vw); opacity: 0; }
}

@keyframes circuitFlowV {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes nodeFlash {
    0%, 100% { opacity: 0; box-shadow: none; }
    50% { opacity: 0.5; box-shadow: 0 0 8px var(--accent-glow); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(91, 156, 245, 0.08), 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(91, 156, 245, 0.06);
    padding: 0.8rem 3rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 400;
}

.logo-shield {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.logo-shield svg {
    width: 22px; height: 22px;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.nav-links a::before {
    content: '>';
    position: absolute;
    left: 2px;
    opacity: 0;
    color: var(--accent);
    transition: var(--transition);
    font-size: 0.7rem;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(91, 156, 245, 0.04);
}

.nav-links a:hover::before {
    opacity: 1;
    left: -2px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 28px; height: 2px;
    background: var(--accent);
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 0 4px var(--accent-glow);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
    /* subtle accent */
}

.hero-subtitle .typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 4px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero-title span {
    color: var(--accent);
    display: block;
    /* clean accent */
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--accent);
    z-index: -1;
    animation: glitch1 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--purple-accent);
    z-index: -2;
    animation: glitch2 2s infinite linear alternate-reverse;
}

@keyframes glitch1 {
    0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    93% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
    95% { clip-path: inset(50% 0 10% 0); transform: translate(3px, -1px); }
    97% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch2 {
    0%, 94%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    95% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
    97% { clip-path: inset(40% 0 30% 0); transform: translate(-3px, 1px); }
}

.hero-sub-name {
    font-size: 1.6rem !important;
    color: var(--text-muted) !important;
    font-weight: 300 !important;
    letter-spacing: 6px;
    font-family: var(--font-body) !important;
}

.hero-line {
    width: 80px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.8rem auto;
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent-glow);
    position: relative;
}

.hero-line::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--accent-glow);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-description strong { color: var(--accent-light); }

.hero-ambition {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    font-weight: 400;
}

.hero-ambition strong { color: var(--accent); }

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HERO DECORATION ===== */
.hero-decoration {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Shield / Lock SVG Animation */
.cyber-shield {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    opacity: 0.06;
}

.cyber-shield svg {
    width: 100%; height: 100%;
}

.cyber-shield .shield-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.5;
    animation: shieldRotate 20s linear infinite;
    transform-origin: center;
}

@keyframes shieldRotate {
    to { transform: rotate(360deg); }
}

.hex {
    position: absolute;
    border: 1px solid rgba(91, 156, 245, 0.06);
    transform: rotate(45deg);
    border-radius: 8px;
    backdrop-filter: blur(1px);
}

.hex-1 {
    width: 120px; height: 120px;
    top: 15%; right: 12%;
    animation: hexFloat 12s ease-in-out infinite;
}

.hex-2 {
    width: 80px; height: 80px;
    bottom: 20%; left: 8%;
    animation: hexFloat 10s ease-in-out infinite reverse;
}

.hex-3 {
    width: 50px; height: 50px;
    top: 60%; right: 25%;
    animation: hexFloat 14s ease-in-out infinite 2s;
}

@keyframes hexFloat {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50% { transform: rotate(55deg) translate(10px, -15px); opacity: 1; }
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(91, 156, 245, 0.05);
    border-radius: 50%;
}

.orbit-1 {
    width: 400px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 30s linear infinite;
}

.orbit-2 {
    width: 600px; height: 600px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 45s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 25px rgba(91, 156, 245, 0.2);
}

@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.scan-line {
    position: absolute;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(91, 156, 245, 0.12), transparent);
    animation: scanLine 5s ease-in-out infinite;
    top: 0;
    box-shadow: 0 0 15px rgba(91, 156, 245, 0.05);
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Data Stream decoration */
.data-stream {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0.06;
    white-space: nowrap;
    pointer-events: none;
}

.data-stream-left {
    left: 2%; top: 30%;
    writing-mode: vertical-rl;
    animation: dataScroll 20s linear infinite;
}

.data-stream-right {
    right: 2%; top: 60%;
    writing-mode: vertical-rl;
    animation: dataScroll 15s linear infinite reverse;
}

@keyframes dataScroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    animation: fadeInUp 1s ease 2s both;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(91, 156, 245, 0.3);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px; height: 8px;
    background: var(--accent);
    border-radius: 3px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s ease infinite;
    box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(91, 156, 245, 0.1), inset 0 0 15px rgba(91, 156, 245, 0.05);
}

.btn-primary:hover {
    background: rgba(91, 156, 245, 0.1);
    box-shadow: 0 0 30px rgba(91, 156, 245, 0.2), inset 0 0 30px rgba(91, 156, 245, 0.05);
    transform: translateY(-2px);
    
}

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91, 156, 245, 0.1), transparent);
    transition: 0.6s;
}

.btn-primary:hover .btn-shine { left: 100%; }

.btn-outline {
    border: 1px solid rgba(91, 156, 245, 0.2);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(91, 156, 245, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(91, 156, 245, 0.15);
    
}

/* Corner brackets on buttons */
.btn::before, .btn::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    transition: var(--transition);
}

.btn::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.btn::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.btn:hover::before, .btn:hover::after {
    width: 14px; height: 14px;
}

/* ===== HERO ANIMATIONS ===== */
.anim-fade-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.8s ease 0.3s forwards;
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.anim-scale-x {
    transform: scaleX(0);
    animation: scaleX 0.6s ease 0.8s forwards;
}

.delay-1 { animation-delay: 0.9s !important; }
.delay-2 { animation-delay: 1.1s !important; }
.delay-3 { animation-delay: 1.3s !important; }

@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleX { to { transform: scaleX(1); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(15px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 7rem 2rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-alt { background: var(--bg-section-alt); }

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--accent);
    /* subtle accent */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem auto 0;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-tag {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 3rem;
    opacity: 0.7;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* Section decorations */
.section-decor {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decor-line {
    position: absolute;
    width: 1px; height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(91, 156, 245, 0.1), transparent);
}

.decor-line-left { left: 8%; top: 20%; animation: floatLine 8s ease-in-out infinite; }
.decor-line-right { right: 8%; bottom: 15%; animation: floatLine 10s ease-in-out infinite reverse; }

@keyframes floatLine {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* ===== TERMINAL COMPONENT ===== */
.terminal-window {
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid rgba(91, 156, 245, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(91, 156, 245, 0.03);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    background: rgba(10, 18, 36, 0.9);
    border-bottom: 1px solid rgba(91, 156, 245, 0.06);
}

.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.9;
    color: var(--green-status);
    min-height: 160px;
}

.terminal-line {
    display: block;
    margin-bottom: 2px;
    opacity: 0;
    animation: terminalType 0.3s ease forwards;
}

.terminal-line .prompt {
    color: var(--accent);
}

.terminal-line .path {
    color: var(--blue-primary);
}

.terminal-line .command {
    color: var(--text-primary);
}

.terminal-line .output {
    color: var(--green-status);
    opacity: 0.8;
}

.terminal-line .error {
    color: var(--red-alert);
}

.terminal-line .success {
    color: var(--green-status);
}

@keyframes terminalType {
    to { opacity: 1; }
}

.terminal-cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--green-status);
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* ===== REVEAL CARDS ===== */
.reveal-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card glow effect */
.card-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none;
    transition: 0.3s;
    z-index: 0;
}

/* Cyber Card Base */
.cyber-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.cyber-card:hover::before { opacity: 1; }

.cyber-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(91, 156, 245, 0.05);
}

/* Animated border for special cards */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle), transparent 70%, var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.animated-border:hover::after { opacity: 1; }

@keyframes borderRotate {
    to { --angle: 360deg; }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 400;
}

.about-text strong { color: var(--text-primary); }

.about-info { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-glow);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.info-card:hover::before { opacity: 1; }

.info-icon {
    font-size: 1.5rem;
    z-index: 1;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 156, 245, 0.05);
    border: 1px solid rgba(91, 156, 245, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.info-card h4 { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; z-index: 1; }
.info-card p { color: var(--text-secondary); font-size: 0.85rem; z-index: 1; }

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover::before { opacity: 1; }

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(91, 156, 245, 0.05);
}

.skill-icon-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(91, 156, 245, 0.04);
    border: 1px solid rgba(91, 156, 245, 0.08);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.skill-icon-wrap svg {
    width: 28px; height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 2px var(--accent-glow));
}

.skill-card:hover .skill-icon-wrap {
    background: rgba(91, 156, 245, 0.08);
    border-color: rgba(91, 156, 245, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(91, 156, 245, 0.1);
}

.skill-icon { font-size: 1.6rem; }

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.skill-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.skill-bar {
    width: 100%; height: 3px;
    background: rgba(91, 156, 245, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    border-radius: 3px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 8px var(--accent-glow);
}

.skill-fill::after {
    content: '';
    position: absolute;
    right: 0; top: -2px;
    width: 7px; height: 7px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.skill-percent {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-align: right;
    margin-top: 0.4rem;
    opacity: 0.7;
}

/* ===== NETWORK TOPOLOGY (interactive section) ===== */
.network-section-canvas {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(91, 156, 245, 0.06);
    border-radius: 12px;
    margin-top: 2rem;
    background: rgba(3, 7, 18, 0.5);
    cursor: crosshair;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), rgba(91, 156, 245, 0.1), transparent);
    box-shadow: 0 0 6px rgba(91, 156, 245, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -3.15rem; top: 0.5rem;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 2;
}

.timeline-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2.5s ease-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.timeline-content:hover::before { opacity: 1; }

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 15px rgba(91, 156, 245, 0.03);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ===== STAGES ===== */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stage-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stage-card:hover::before { opacity: 1; }

.stage-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(91, 156, 245, 0.04);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stage-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    
}

.stage-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(91, 156, 245, 0.05);
    color: var(--accent);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(91, 156, 245, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stage-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.stage-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 300;
}

.stage-tasks { list-style: none; padding: 0; }

.stage-tasks li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.4rem 0;
    padding-left: 1.6rem;
    position: relative;
    transition: var(--transition);
    font-weight: 300;
}

.stage-tasks li:hover { color: var(--accent-light); transform: translateX(4px); }

.stage-tasks li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.8rem;
    transition: var(--transition);
    
}

.stage-tasks li:hover::before { color: var(--accent-light); content: '>>'; left: -4px; }

/* ===== DOCUMENTS ===== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.doc-card {
    background: var(--bg-card);
    padding: 2.8rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.doc-card:hover::before { opacity: 1; }

.doc-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(91, 156, 245, 0.05);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: rgba(91, 156, 245, 0.03);
    border: 1px solid rgba(91, 156, 245, 0.06);
    border-radius: 12px;
}

.doc-icon svg {
    width: 32px; height: 32px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.doc-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.doc-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
    font-weight: 300;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    padding: 2.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.contact-card:hover::before { opacity: 1; }

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(91, 156, 245, 0.05);
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background: rgba(91, 156, 245, 0.04);
    border: 1px solid rgba(91, 156, 245, 0.08);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-icon svg {
    width: 24px; height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 2px var(--accent-glow));
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(91, 156, 245, 0.08);
    border-color: rgba(91, 156, 245, 0.2);
    box-shadow: 0 0 15px rgba(91, 156, 245, 0.1);
}

.contact-card h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    word-break: break-word;
    font-weight: 400;
}

.contact-card a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent);
    
}

/* ===== STATUS BAR ===== */
.status-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 1rem;
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid rgba(91, 156, 245, 0.06);
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green-status);
    box-shadow: 0 0 6px var(--green-glow);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-secure {
    color: var(--green-status);
    
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem 4rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
}

.footer-line {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 8px rgba(91, 156, 245, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.72rem;
    transition: var(--transition);
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent);
    
}

/* ===== PACKET ANIMATION ===== */
.packet-trail {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.packet {
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: packetMove 3s linear infinite;
}

@keyframes packetMove {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* ===== TOOLTIP CYBER ===== */
.cyber-tooltip {
    position: relative;
}

.cyber-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.4rem 0.8rem;
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid rgba(91, 156, 245, 0.15);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.cyber-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== NETWORK VISUALIZATION ===== */
.cyber-mindmap {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(6, 11, 24, 0.6);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.netmap-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(91,156,245,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,156,245,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.netmap-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Network node */
.net-node {
    position: absolute;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    z-index: 5;
}

.net-node-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(91, 156, 245, 0.06);
    border: 1.5px solid rgba(91, 156, 245, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.net-node:hover .net-node-core {
    background: rgba(91, 156, 245, 0.12);
    border-color: rgba(91, 156, 245, 0.5);
    box-shadow: 0 0 25px rgba(91, 156, 245, 0.15), 0 0 0 6px rgba(91, 156, 245, 0.04);
    transform: scale(1.08);
}

.net-node-inner {
    width: 55%;
    height: 55%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.net-node-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: netShimmer 4s infinite;
}

@keyframes netShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.net-node-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 500;
    color: rgba(241, 245, 249, 0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.net-node:hover .net-node-label {
    opacity: 1;
    color: rgba(241, 245, 249, 0.9);
}

.net-node-info {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(3, 7, 18, 0.9);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-light);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(91, 156, 245, 0.12);
    backdrop-filter: blur(8px);
}

.net-node:hover .net-node-info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.net-node-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(91, 156, 245, 0.2);
    animation: netPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes netPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Connections */
.net-conn {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(91,156,245,0.03) 0%,
        rgba(91,156,245,0.1) 50%,
        rgba(91,156,245,0.03) 100%);
    transform-origin: left center;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1;
}

.net-conn.active {
    background: linear-gradient(90deg,
        rgba(91,156,245,0.1) 0%,
        rgba(91,156,245,0.35) 50%,
        rgba(91,156,245,0.1) 100%);
    height: 2px;
    filter: drop-shadow(0 0 3px rgba(91,156,245,0.15));
}

/* Data packets on connections */
.net-packet {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(91,156,245,0.4);
    opacity: 0;
    top: -2px;
    animation: netPacketTravel var(--pkt-dur, 3s) var(--pkt-delay, 0s) infinite;
}

@keyframes netPacketTravel {
    0% { left: 0%; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { left: 100%; opacity: 0; }
}

/* Floating animation */
.net-float {
    animation: netFloat var(--float-dur, 4s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes netFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Legend inside the mindmap */
.netmap-legend {
    position: absolute;
    bottom: 12px; left: 14px;
    display: flex;
    gap: 14px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(3, 7, 18, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(91,156,245,0.05);
    backdrop-filter: blur(8px);
}

.netmap-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: rgba(148, 163, 184, 0.6);
    letter-spacing: 0.5px;
}

.nl-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ===== VEILLE TECHNOLOGIQUE ===== */
.veille-container {
    max-width: 900px;
    margin: 0 auto;
}

.veille-main-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.veille-main-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--purple-accent), transparent);
    opacity: 0.6;
}

.veille-main-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(91, 156, 245, 0.04);
}

.veille-icon-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

.veille-shield {
    position: relative;
    width: 80px;
    height: 80px;
}

.veille-shield svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.veille-shield-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(91, 156, 245, 0.15);
    animation: veillePulse 3s ease-out infinite;
}

@keyframes veillePulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.veille-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.veille-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.veille-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.9rem;
    background: rgba(91, 156, 245, 0.04);
    border: 1px solid rgba(91, 156, 245, 0.1);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.veille-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.veille-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.8rem;
    background: rgba(91, 156, 245, 0.02);
    border: 1px solid rgba(91, 156, 245, 0.05);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 400;
}

.veille-topic:hover {
    background: rgba(91, 156, 245, 0.06);
    border-color: rgba(91, 156, 245, 0.15);
    color: var(--accent-light);
    transform: translateX(4px);
}

.veille-topic svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

/* ===== RESPONSIVE ===== */
/* === Procedures Grid === */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.procedures-grid .doc-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

.procedures-grid .doc-card h4 {
    margin: 0.8rem 0 0.3rem;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .procedures-grid { grid-template-columns: repeat(2, 1fr); }
    .veille-main-card { grid-template-columns: 1fr; }
    .veille-icon-area { justify-content: flex-start; }
    .veille-topics { grid-template-columns: repeat(2, 1fr); }
    .skills-grid,
    .stages-grid,
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .orbit { display: none; }
    .status-bar { display: none; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 0.8rem 1.5rem; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        border-left: 1px solid rgba(91, 156, 245, 0.06);
    }

    .nav-links.active { right: 0; }
    .burger { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .section { padding: 4.5rem 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .documents-grid,
    .procedures-grid { grid-template-columns: 1fr; }
    .hex { display: none; }
    .cyber-shield { display: none; }
    .data-stream { display: none; }
}

@media (max-width: 500px) {
    .skills-grid,
    .stages-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }
    .scroll-indicator { display: none; }
    .veille-topics { grid-template-columns: 1fr; }
    .cyber-mindmap { height: 380px; }
    .netmap-legend { gap: 8px; flex-wrap: wrap; }
}
