/* ========================================
   PORTFOLIO AYANN BRUNEL — BTS SIO SISR
   Thème sombre inspiré SkyGency
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #06060b;
    --bg-secondary: #0c0c14;
    --bg-card: #11111b;
    --bg-card-hover: #16162a;
    --border: #1a1a2e;
    --border-light: #2a2a4a;
    --text-primary: #f0f0f5;
    --text-secondary: #acacc4;
    --text-muted: #8585a2;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --accent-gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
    --blue: #3b82f6;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-link { color: var(--accent-light); }
.accent-link:hover { color: #fff; }


/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 6, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ========================================
   HERO — VISUAL HEADER
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Grid background */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Floating orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
    top: -120px; left: -100px;
    animation: orbFloat1 8s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    bottom: -80px; right: -60px;
    animation: orbFloat2 10s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
    top: 50%; left: 60%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -30px) scale(1.05); }
    66% { transform: translate(40px, -50px) scale(0.9); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.15); }
}

/* Rotating rings */
.hero-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.08);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 {
    width: 400px; height: 400px;
    animation: ringRotate 30s linear infinite;
    border-style: dashed;
    border-color: rgba(124, 58, 237, 0.06);
}
.ring-2 {
    width: 600px; height: 600px;
    animation: ringRotate 45s linear infinite reverse;
    border-color: rgba(59, 130, 246, 0.05);
}
.ring-3 {
    width: 800px; height: 800px;
    animation: ringRotate 60s linear infinite;
    border-style: dotted;
    border-color: rgba(124, 58, 237, 0.04);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating geometric shapes */
.hero-geometric {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.geo {
    position: absolute;
    transition: transform 0.3s ease-out;
}
.geo-hex {
    top: 12%; left: 8%;
    animation: geoFloat 7s ease-in-out infinite;
}
.geo-tri {
    top: 20%; right: 12%;
    animation: geoFloat 9s ease-in-out infinite 1s;
}
.geo-diamond {
    bottom: 25%; left: 15%;
    animation: geoFloat 8s ease-in-out infinite 0.5s;
}
.geo-circle {
    bottom: 15%; right: 10%;
    animation: geoFloat 11s ease-in-out infinite 2s;
}
.geo-hex2 {
    top: 55%; left: 5%;
    animation: geoFloat 10s ease-in-out infinite 1.5s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(8deg); opacity: 1; }
}

/* Floating code snippets */
.hero-code-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: rgba(136, 136, 160, 0.15);
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.code-kw { color: rgba(124, 58, 237, 0.25); }
.code-str { color: rgba(59, 130, 246, 0.2); }

.cl-1 { top: 18%; left: 3%; animation: codeSlide 12s linear infinite; }
.cl-2 { top: 72%; right: 2%; animation: codeSlide 15s linear infinite 3s; }
.cl-3 { top: 40%; left: 75%; animation: codeSlide 18s linear infinite 6s; }
.cl-4 { bottom: 20%; left: 5%; animation: codeSlide 14s linear infinite 1s; }

@keyframes codeSlide {
    0% { opacity: 0; transform: translateX(-20px); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(20px); }
}

/* Hero content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-subtitle strong { color: var(--text-primary); }

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}


/* ========================================
   SECTIONS GENERAL
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
}
.section-alt { background: var(--bg-secondary); }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.05rem;
    margin-bottom: 60px;
}


/* ========================================
   PARCOURS
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.98rem;
}
.about-text strong { color: var(--text-primary); }

.about-qualities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.quality {
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-light);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}
.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -29px; top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition);
}
.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}
.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 6px 0 4px;
}
.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}


/* ========================================
   COMPETENCES
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.skill-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}
.skill-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.skill-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-tags span {
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
}


/* ========================================
   CERTIFICATIONS
   ======================================== */
.certif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.certif-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(15px);
}
.certif-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.certif-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.1);
}

.certif-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.certif-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.certif-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.certif-date {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 3px 12px;
    border-radius: 50px;
}

/* Subsection title */
.subsection-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

/* Certifications Pro */
.certif-pro-grid {
    margin-bottom: 0;
}

.certif-pro {
    position: relative;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(59, 130, 246, 0.03));
    border-color: rgba(124, 58, 237, 0.15);
    padding-right: 100px;
}
.certif-pro:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

.certif-icon-img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
}

.certif-score {
    font-size: 0.82rem;
    color: #34d399;
    margin-top: 4px;
}
.certif-score strong {
    color: #34d399;
}

.certif-pdf-btn {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius);
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all var(--transition);
}
.certif-pdf-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* CV Viewer block */
.cv-viewer-block {
    margin-top: 20px;
}

.cv-viewer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cv-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 500px;
    position: relative;
}

.cv-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 24px;
    gap: 16px;
}

.cv-icon-large {
    color: var(--accent-light);
    margin-bottom: 8px;
    opacity: 0.8;
}

.cv-placeholder h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.cv-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cv-frame {
    display: none;
    width: 100%;
    height: 800px;
    border: none;
    background: #fff;
}

.cv-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ========================================
   EXPERIENCES / STAGES
   ======================================== */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-card {
    display: flex;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(15px);
}
.exp-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.exp-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
}

.exp-left {
    flex-shrink: 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.exp-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px;
}

.exp-period {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exp-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.exp-right h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.exp-duration {
    font-size: 0.78rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.exp-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.exp-tags span {
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
}


/* ========================================
   PROJETS — SKYGENCY SHOWCASE
   ======================================== */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-hero-card {
    display: flex;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.project-hero-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.project-hero-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.project-hero-left {
    flex-shrink: 0;
}

.project-logo-wrapper {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 24px;
    padding: 24px;
    transition: all var(--transition);
}
.project-hero-card:hover .project-logo-wrapper {
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

.project-hero-right {
    flex: 1;
}

.project-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.project-hero-right h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.project-hero-right p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
}
.project-tags span {
    padding: 5px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-light);
}

.project-actions {
    margin-top: 8px;
}

/* Project features */
.project-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(15px);
}
.pf-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.pf-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.pf-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.pf-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.pf-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ========================================
   CONTACT
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}
.contact-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}
.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}
.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.contact-item a:hover { color: var(--accent-light); }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}


/* ========================================
   VEILLE TECHNOLOGIQUE
   ======================================== */
.veille-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.veille-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.veille-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.veille-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.veille-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.veille-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.veille-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.veille-tags span {
    padding: 5px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-light);
}


/* ========================================
   PROCEDURES TECHNIQUES
   ======================================== */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.procedure-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(15px);
}
.procedure-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.procedure-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.procedure-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
}

.procedure-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.procedure-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ========================================
   RESSOURCES BTS
   ======================================== */
.ressources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ressource-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-decoration: none;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(15px);
}
.ressource-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.ressource-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.ressource-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
}

.ressource-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ressource-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.ressource-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
}
.ressource-card:hover .ressource-link {
    color: #fff;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 12px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.82rem;
}


/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.8s ease forwards; }
.hero-tag { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-buttons { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1280px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .project-features { grid-template-columns: repeat(2, 1fr); }
    .certif-pro { padding-right: 100px; }
    .procedures-grid { grid-template-columns: repeat(2, 1fr); }
    .ressources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(6, 6, 11, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; z-index: 1001; }

    .hero { padding: 100px 24px 60px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }

    .section { padding: 80px 0; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .skills-grid { grid-template-columns: 1fr; }
    .certif-grid { grid-template-columns: 1fr; }
    .certif-pro { padding-right: 24px; padding-bottom: 70px; }
    .certif-pdf-btn {
        position: absolute;
        top: auto;
        bottom: 16px;
        right: 24px;
        transform: none;
        flex-direction: row;
    }
    .certif-pdf-btn:hover { transform: scale(1.05); }

    .exp-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .exp-left { min-width: unset; flex-direction: row; align-items: center; gap: 16px; }
    .exp-logo { width: 44px; height: 44px; }

    .project-hero-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 28px;
        text-align: center;
    }
    .project-logo-wrapper { width: 140px; height: 140px; margin: 0 auto; }
    .project-tags { justify-content: center; }
    .project-actions { text-align: center; }
    .project-features { grid-template-columns: repeat(2, 1fr); }

    .procedures-grid { grid-template-columns: 1fr; }
    .ressources-grid { grid-template-columns: 1fr; }
    .veille-card { padding: 28px 24px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { flex-direction: column; gap: 24px; }

    .cv-preview { min-height: 400px; }
    .cv-placeholder { min-height: 400px; }
    .cv-frame { height: 500px; }
    .cv-actions { flex-direction: column; align-items: center; }

    /* Hide some visual elements on mobile */
    .hero-code-lines { display: none; }
    .hero-geometric { opacity: 0.4; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .project-features { grid-template-columns: 1fr; }
}
