/* ========================================
   VISION 2026 - MULTI-PAGE EXPERIENCE
   Dynamic Backgrounds + Enhanced Animations
   ======================================== */

/* ----------------------------------------
   IMPORTS & VARIABLES
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Deep Space Colors */
    --bg-deep: #030308;
    --bg-surface: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.05);

    /* Accent Colors */
    --accent-primary: #00ff46;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #3b82f6;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff00aa;
    --accent-glow: rgba(0, 255, 70, 0.6);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ----------------------------------------
   ANIMATED BACKGROUND - AURORA NEBULA
   ---------------------------------------- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-deep);
}

/* Aurora Gradient Orbs */
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-aurora 15s ease-in-out infinite;
}

.aurora-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.aurora-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.aurora-orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation-delay: -10s;
}

.aurora-orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation-delay: -7s;
    opacity: 0.25;
}

@keyframes float-aurora {

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

    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.35;
    }

    75% {
        transform: translate(-50px, -20px) scale(1.05);
        opacity: 0.45;
    }
}

/* Floating Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

/* Floating Decorative Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    top: 60%;
    left: 80%;
    animation-delay: -3s;
}

.shape-3 {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    box-shadow: 0 0 25px var(--accent-cyan);
    top: 80%;
    left: 25%;
    animation-delay: -6s;
}

.shape-4 {
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    top: 35%;
    right: 20%;
    animation-delay: -9s;
}

.shape-5 {
    width: 10px;
    height: 10px;
    background: var(--accent-tertiary);
    box-shadow: 0 0 30px var(--accent-tertiary);
    top: 10%;
    right: 35%;
    animation-delay: -12s;
}

.shape-ring {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 255, 70, 0.2);
    background: transparent;
    top: 50%;
    left: 5%;
    animation: rotate-ring 30s linear infinite;
}

.shape-ring-2 {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: transparent;
    bottom: 10%;
    right: 10%;
    animation: rotate-ring 40s linear infinite reverse;
}

@keyframes float-shape {

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

    25% {
        transform: translate(20px, -30px);
    }

    50% {
        transform: translate(-15px, 20px);
    }

    75% {
        transform: translate(25px, 15px);
    }
}

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

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

/* ----------------------------------------
   NAVIGATION CAPSULE
   ---------------------------------------- */
.nav-capsule {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 255, 70, 0.05);
}

.nav-link {
    padding: 0.7rem 1.3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 255, 70, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 70, 0.2);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 255, 70, 0.15);
    text-shadow: 0 0 20px var(--accent-glow);
    box-shadow: 0 0 30px rgba(0, 255, 70, 0.3);
}

.nav-link i {
    margin-right: 0.4rem;
}

/* ----------------------------------------
   PAGES CONTAINER
   ---------------------------------------- */
.pages-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* ----------------------------------------
   PAGE SECTIONS
   ---------------------------------------- */
.page-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.page-section.fade-out {
    opacity: 0;
    transform: translateY(-30px);
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 70, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 70, 0.5));
    }
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------
   HOME PAGE
   ---------------------------------------- */
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

/* ════════════════════════════════════
   ZONE 1 — Avatar SVG Ring + Status
   ════════════════════════════════════ */
.hero-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
}

.hero-avatar-ring {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-img img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.4));
}

.hero-avatar-status {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 10, 20, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    font-size: 0.7rem;
    color: #00ff88;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff88;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 6px #00ff88;
    }

    50% {
        opacity: 0.3;
        box-shadow: none;
    }
}

/* ════════════════════════════════════
   ZONE 2 — Typewriter Text
   ════════════════════════════════════ */
.hero-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(0, 255, 136, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.hero-role {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #00ff88;
    font-weight: 600;
    min-height: 2rem;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 520px;
}

.cursor-blink {
    color: #00ff88;
    animation: cursor-blink-anim 1s step-end infinite;
    font-weight: 300;
}

@keyframes cursor-blink-anim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ════════════════════════════════════
   ZONE 3 — Hero Badges (5 colored)
   ════════════════════════════════════ */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px currentColor;
}

.hero-badge--gold {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.hero-badge--cyber {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.06);
}

.hero-badge--purple {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.06);
}

.hero-badge--green {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.06);
}

.hero-badge__icon {
    font-size: 0.9em;
}

/* ════════════════════════════════════
   ZONE 4 — Animated Stats
   ════════════════════════════════════ */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    justify-content: center;
}

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

.hero-stat__value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    line-height: 1;
}

.hero-stat__unit {
    font-size: 1rem;
    color: #00ff88;
    font-weight: 600;
}

.hero-stat__label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* ════════════════════════════════════
   2-Column Desktop Layout
   ════════════════════════════════════ */
@media (min-width: 1024px) {
    .home-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4rem;
        text-align: left;
    }

    .hero-avatar-wrapper {
        margin: 0;
        width: 220px;
        height: 220px;
        order: 2;
        grid-row: 1 / 4;
    }

    .hero-text {
        order: 1;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-stats {
        grid-column: 1 / -1;
    }

    .hero-desc {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 1rem;
    }

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

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

.hero-cta {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.5);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.cta-secondary:hover {
    background: rgba(0, 255, 70, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 70, 0.2);
}

/* ----------------------------------------
   PROJECTS PAGE
   ---------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Animated border gradient */
.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: gradient-rotate 5s linear infinite;
    transition: opacity 0.3s ease;
}

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

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

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

.project-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-surface);
    border-radius: 19px;
    z-index: -1;
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    animation: icon-float 4s ease-in-out infinite;
}

@keyframes icon-float {

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

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

.project-card:hover .project-icon {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    color: white;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
    transform: scale(1.1) rotate(5deg);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Project Date Badge */
.project-date {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    opacity: 0.6;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* Project Icon Emoji */
.project-icon-emoji {
    font-size: 2rem;
    line-height: 1;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.7rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a78bfa;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 20px var(--accent-glow);
    gap: 0.75rem;
}

/* ----------------------------------------
   SKILLS PAGE — 4 Catégories avec Barres
   ---------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skills-category--cyber {
    border-left: 3px solid var(--accent-cyan);
}

.skills-category--dev {
    border-left: 3px solid var(--accent-secondary);
}

.skills-category--management {
    border-left: 3px solid var(--accent-primary);
}

.skills-category--soft {
    border-left: 3px solid #f59e0b;
}

.skills-category:hover {
    border-color: rgba(0, 255, 70, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.skills-category__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-category__title i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item-row {
    padding: 0.1rem 0;
}

.skill-item__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.skill-item__name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
}

.skill-item__level {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.skill-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: monospace;
    letter-spacing: 0.03em;
}

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

.skill-bar__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.skill-bar__fill--cyber {
    background: linear-gradient(90deg, var(--accent-cyan), #0099bb);
}

.skill-bar__fill--dev {
    background: linear-gradient(90deg, var(--accent-secondary), #7c3aed);
}

.skill-bar__fill--management {
    background: linear-gradient(90deg, var(--accent-primary), #00cc3a);
}

.skill-bar__fill--soft {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* ----------------------------------------
   CONTACT PAGE
   ---------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    padding-left: 1rem;
    border-color: rgba(0, 255, 70, 0.2);
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 255, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: var(--accent-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-item span {
    font-size: 1rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-deep);
    border-color: var(--accent-primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 255, 70, 0.3);
}

.ctf-section h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.ctf-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ctf-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.ctf-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.ctf-link i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.ctf-link span {
    flex: 1;
    font-weight: 500;
}

.ctf-link .arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.ctf-link:hover .arrow {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Contact Form */
.contact-form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 255, 70, 0.1), 0 0 30px rgba(0, 255, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.form-footer i {
    color: var(--accent-primary);
}

.form-footer span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* CV Download Button */
.cv-download-section {
    margin-top: 2rem;
}

.cv-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #9D6EF7 0%, #F7B42C 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(245, 158, 11, 0.3);
}

.cv-download-btn:hover::before {
    opacity: 1;
}

.cv-download-btn span,
.cv-download-btn i {
    position: relative;
    z-index: 1;
}

.cv-download-btn i:first-child {
    font-size: 1.2rem;
}

.cv-download-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cv-download-btn:hover i:last-child {
    transform: translateY(3px);
    animation: bounce-download 0.6s ease infinite;
}

@keyframes bounce-download {

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

    50% {
        transform: translateY(4px);
    }
}

/* ----------------------------------------
   TOAST NOTIFICATION
   ---------------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 10, 15, 0.95);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 70, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 70, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ----------------------------------------
   SCROLL REVEAL
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ----------------------------------------
   CYBER NEWS PAGE
   ---------------------------------------- */

/* Audio Card */
.cyber-audio-card {
    background: rgba(0, 255, 70, 0.03);
    border: 1px solid rgba(0, 255, 70, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cyber-audio-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan), var(--accent-primary));
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: gradient-rotate 5s linear infinite;
    transition: opacity 0.3s ease;
}

.cyber-audio-card:hover::before {
    opacity: 0.5;
}

.cyber-audio-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-surface);
    border-radius: 19px;
    z-index: -1;
}

.audio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 70, 0.15);
    border: 1px solid rgba(0, 255, 70, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.badge-live {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes pulse-live {

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

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

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

/* Custom Audio Player */
.custom-audio-player {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 70, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

#cyber-audio-player {
    display: none;
}

/* Waveform Visualizer */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
    margin-bottom: 1.25rem;
}

.wave-bar {
    width: 4px;
    height: 20%;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.audio-visualizer.playing .wave-bar {
    animation: wave-animation 0.8s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
    animation-delay: 0s;
    height: 30%;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 50%;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.05s;
    height: 35%;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.15s;
    height: 70%;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.08s;
    height: 45%;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.2s;
    height: 80%;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.12s;
    height: 55%;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.18s;
    height: 65%;
}

.wave-bar:nth-child(9) {
    animation-delay: 0.06s;
    height: 40%;
}

.wave-bar:nth-child(10) {
    animation-delay: 0.14s;
    height: 60%;
}

.wave-bar:nth-child(11) {
    animation-delay: 0.1s;
    height: 45%;
}

.wave-bar:nth-child(12) {
    animation-delay: 0.16s;
    height: 25%;
}

@keyframes wave-animation {

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

    50% {
        transform: scaleY(1.8);
    }
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: rgba(0, 255, 70, 0.1);
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 25px rgba(0, 255, 70, 0.5);
    transform: scale(1.05);
}

.audio-play-btn {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
}

.audio-play-btn i {
    margin-left: 2px;
}

/* Progress Bar */
.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audio-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', monospace;
    min-width: 40px;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.audio-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 255, 70, 0.4);
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 10px rgba(0, 255, 70, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.audio-progress-bar:hover .audio-progress-handle {
    opacity: 1;
}

/* Volume Control */
.audio-volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-volume-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.audio-volume-slider {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.volume-level {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.audio-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* News Grid */
.cyber-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cyber-news-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-primary);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cyber-news-item:hover {
    transform: translateY(-5px) translateX(5px);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.news-item-index {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    padding-right: 2rem;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.news-item-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 255, 70, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.news-item-link:hover {
    background: var(--accent-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px rgba(0, 255, 70, 0.4);
}

/* Loading State */
.cyber-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 70, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.cyber-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 100, 100, 0.05);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 15px;
    color: #ff6b6b;
}

.cyber-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Script Section */
.cyber-script-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.script-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.cyber-script-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.cyber-script-content::-webkit-scrollbar {
    width: 6px;
}

.cyber-script-content::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.cyber-script-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 70, 0.3);
    border-radius: 3px;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-capsule {
        width: calc(100% - 2rem);
        justify-content: center;
    }

    .nav-link span {
        display: none;
    }

    .nav-link i {
        margin: 0;
        font-size: 1.2rem;
    }

    .page-section {
        padding: 6rem 1rem 3rem;
    }

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

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

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

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

    .projects-grid,
    .skills-grid,
    .cyber-news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 2rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

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

    .hero-name {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}