/* ========================================
   M6 PORTFOLIO — NIA PREMIUM DESIGN
   Neural Interface Aesthetics Standard
   ======================================== */

/* === DESIGN TOKENS === */
:root {
    --primary: #02040a;
    --secondary: #050811;
    --surface: #0a0f1a;
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --text-primary: #e2e8f0;
    --text-secondary: #64748b;
    --text-muted: #475569;
    --glass-bg: rgba(2, 4, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --depth-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.8);
    --shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1e293b #02040a;
}

body {
    background: var(--primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { text-decoration: none; color: inherit; cursor: none; }
ul { list-style: none; }

/* === CUSTOM CURSOR === */
.cursor {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, border-color 0.3s;
}

.cursor.active { width: 12px; height: 12px; background: var(--accent); }
.cursor-follower.active { border-color: var(--accent); }

/* === BACKGROUND EFFECTS === */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 500px; height: 500px;
    background: rgba(14, 165, 233, 0.12);
    top: -10%; right: -10%;
    animation: float 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: rgba(212, 175, 55, 0.08);
    bottom: -5%; left: -5%;
    animation: float 10s ease-in-out infinite reverse;
}

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

/* === NAVIGATION === */
.glass-nav {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(2, 4, 10, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(2, 4, 10, 0.9);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-counter {
    color: var(--accent);
    margin-right: 0.5rem;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links a.active-link {
    color: var(--gold);
}

.btn-resume {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-resume:hover {
    background: var(--gold);
    color: var(--primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 850px;
    position: relative; z-index: 2;
}

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.shimmer-text {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--gold) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

.hero-buttons {
    display: flex; gap: 1.5rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-primary:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* === STATS SECTION === */
.stats-section {
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    white-space: nowrap;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--glass-border);
    }
}

/* === SECTIONS === */
section {
    padding: 8rem 10%;
    position: relative;
}

.section-header {
    display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}

.line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    max-width: 300px;
}

/* === ABOUT & SKILLS === */
.about-container {
    max-width: 900px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-category {
    padding: 1.5rem;
    border-radius: 8px;
}

.skill-category h4 {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skill-category h4 i {
    width: 18px; height: 18px;
}

.skill-category ul {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}

.skill-category li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

/* === GLASS CARDS === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* === PROJECTS === */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 8rem;
}

.featured-project.inverted {
    direction: rtl;
}

.featured-project.inverted > * {
    direction: ltr;
}

.project-content {
    position: relative;
}

.project-overline {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-description {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-tech-list {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tech-list li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-links {
    display: flex; gap: 1rem;
}

.project-links a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.project-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.project-image {
    position: relative;
}

.img-placeholder {
    aspect-ratio: 16/10;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.dashboard-bg {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 4, 10, 0.9));
}

.ecommerce-bg {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(2, 4, 10, 0.9));
}

.social-bg {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(2, 4, 10, 0.9));
}

.crypto-bg {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(2, 4, 10, 0.9));
}

.health-bg {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(2, 4, 10, 0.9));
}

.ai-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(2, 4, 10, 0.9));
}

.radar-bg {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(2, 4, 10, 0.9));
}

.placeholder-icon {
    width: 80px; height: 80px;
    color: var(--accent);
    opacity: 0.5;
}

/* === OTHER PROJECTS GRID === */
.other-projects-title {
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.other-projects-title h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    border-radius: 8px;
}

.card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}

.folder i {
    width: 40px; height: 40px;
    color: var(--accent);
}

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

.links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.links a:hover {
    color: var(--accent);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.card-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}

.card-tags li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* === ANDROID SECTION === */
.android-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.android-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.android-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.android-app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.android-app-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon i {
    width: 30px;
    height: 30px;
    color: white;
}

.android-app-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.android-app-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.tech-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 20px;
}

.download-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-top: 2rem;
}

.download-section h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* === CONTACT === */
.contact-section {
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    color: var(--text-secondary);
}

.detail-item i {
    width: 18px; height: 18px;
    color: var(--accent);
}

.detail-item a:hover {
    color: var(--accent);
}

.btn-contact {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-contact:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* === FOOTER === */
.main-footer {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-socials {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* === NEURAL STATUS BAR === */
.neural-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-between;
    padding: 0.6rem 2rem;
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 1000;
}

.bar-left, .bar-right {
    display: flex; gap: 2rem; align-items: center;
}

.status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === FORMS (OUTILS, CONTACT) === */
.field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

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

.field {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border-hover);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.field { resize: vertical; min-height: 7rem; }

.field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.field[aria-invalid="true"] { border-color: #ef4444; }

.field-error, .form-error { color: #f87171; font-size: 0.85rem; min-height: 1.2em; }
.form-success { color: #4ade80; }

button { font: inherit; cursor: none; }
button:disabled { opacity: 0.5; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-card {
    padding: 1.75rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-card.glass-card:hover, .contact-box.glass-card:hover { transform: none; }

.tool-card h4 {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.tool-card h4 i { width: 20px; height: 20px; color: var(--accent); }

.tool-help, .tool-note { color: var(--text-secondary); font-size: 0.85rem; }
.tool-note { color: var(--text-muted); }

.tool-row { display: flex; gap: 0.75rem; }
.tool-row .field { flex: 1; min-width: 0; }
.tool-btn { justify-content: center; padding: 0.75rem 1.4rem; background: transparent; align-self: flex-start; }

.tool-result:empty { display: none; }
.tool-result { border-top: 1px solid var(--glass-border); padding-top: 1rem; }

.score-box {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    column-gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.score-value { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.score-scale { font-family: var(--font-mono); color: var(--text-muted); }
.score-label { font-family: var(--font-mono); font-size: 0.9rem; justify-self: start; padding-left: 0.6rem; }
.score-caption { grid-column: 1 / -1; color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.3rem; }
.tone-good .score-value, .tone-good .score-label { color: #4ade80; }
.tone-warn .score-value, .tone-warn .score-label { color: var(--gold); }
.tone-bad .score-value, .tone-bad .score-label { color: #f87171; }

.finding-list { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--text-secondary); }
.finding-list li { display: flex; gap: 0.6rem; }
.finding-sign { font-family: var(--font-mono); font-weight: 700; width: 1rem; flex-shrink: 0; text-align: center; }
.finding-good .finding-sign { color: #4ade80; }
.finding-bad .finding-sign { color: #f87171; }

.contact-form { text-align: left; display: grid; gap: 1rem; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: 0.2rem; }

/* Champ piège : hors écran, ignoré par les lecteurs d'écran et la navigation clavier. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox-row { display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.9rem; }
.checkbox-row input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.checkbox-row[hidden] { display: none; }

.privacy-note { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }
.contact-form .btn-contact { justify-self: center; background: transparent; }
.form-status { text-align: center; min-height: 1.4em; }

/* Fiche ciblée par une ancre (redirection depuis un domaine dont l'application n'est pas en ligne). */
[id^="projet-"] { scroll-margin-top: 150px; }
.project-card:target,
.featured-project:target .project-description {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 40px var(--accent-glow);
}
.fade-up:target { opacity: 1; transform: none; }

/* === STATUS BADGES === */
.status-badge {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.15rem 0.65rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
    white-space: nowrap;
}

.links .status-badge { margin-left: 0; }

.status-live { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.status-wip { color: var(--gold); background: rgba(212, 175, 55, 0.1); }
.status-code { color: var(--accent); background: rgba(14, 165, 233, 0.1); }

.inline-link {
    color: var(--accent);
    border-bottom: 1px solid rgba(14, 165, 233, 0.3);
}

.inline-link:hover { border-bottom-color: var(--accent); }

/* === PARCOURS (TIMELINE) === */
.timeline {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.5rem;
    border-radius: 8px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-org {
    color: var(--gold);
    font-size: 0.95rem;
}

.timeline-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-grid {
    max-width: 900px;
    margin-top: 0;
}

/* === SCROLL ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-project.inverted {
        direction: ltr;
    }
    
    .project-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    section {
        padding: 5rem 5%;
    }
    
    .hero-section {
        padding: 0 5%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .other-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .android-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        border-right: none;
        padding: 1rem;
    }
    
    .neural-bar {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .tools-grid, .form-grid {
        grid-template-columns: 1fr;
    }

    .tool-row {
        flex-direction: column;
    }

    .contact-box {
        padding: 2rem 1.25rem;
    }
}

/* === PRINT === */
@media print {
    .cursor, .cursor-follower, .orb, .bg-grid, .scanlines, .neural-bar {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
