:root {
    --bg-dark: #0a0a0b;
    --bg-card: #121214;
    --bg-card-hover: #1a1a1e;
    --border: #2a2a2e;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --font: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridScroll 40s linear infinite;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    left: -100px;
    animation: glowPulse 8s ease-in-out infinite;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    bottom: -100px;
    right: -100px;
    animation: glowPulse 10s ease-in-out infinite 2s;
}

.bg-glow-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation: glowPulse 12s ease-in-out infinite 4s;
}

.bg-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    opacity: 0.8;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 10, 11, 0.1) 35%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bg-glow-2 { animation-delay: 2s; }
.bg-glow-3 { transform: translateX(-50%); animation-delay: 4s; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem 1.75rem;
    flex-wrap: nowrap;
    max-width: 920px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    padding-bottom: 0.2rem;
}

.nav-link {
    flex: 0 0 auto;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    line-height: 1.1;
    transition: color 0.2s, text-shadow 0.2s, background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.14);
    text-shadow: 0 0 12px var(--accent-glow);
}

main {
    padding-top: 4.5rem;
    max-width: 920px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 4rem;
}

section[id],
.hero {
    scroll-margin-top: 5.25rem;
}

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

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.kv {
    background: rgba(18, 18, 20, 0.65);
    border: 1px solid rgba(42, 42, 46, 0.9);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.kv .k {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.kv .v {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
}

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

.e5-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.e5-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-3px);
}

.e5-card-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.resource-focus {
    background: linear-gradient(145deg, rgba(18, 18, 20, 0.98), rgba(35, 17, 62, 0.55));
    border: 1px solid rgba(139, 92, 246, 0.6);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.3), inset 0 0 0 1px rgba(139, 92, 246, 0.18);
    position: relative;
    overflow: hidden;
}

.resource-focus::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.08), transparent);
    transform: translateX(-100%);
    animation: shimmer 5s linear infinite;
    pointer-events: none;
}

.resource-focus-secondary {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.18), inset 0 0 0 1px rgba(34, 211, 238, 0.12);
    background: linear-gradient(145deg, rgba(18, 18, 20, 0.98), rgba(12, 40, 48, 0.45));
}

.resource-focus-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.resource-tag {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.resource-tag--violet {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.55);
}

.resource-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0 0.5rem;
}

.resource-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
}

.resource-hint {
    opacity: 0.9;
    font-size: 0.82rem;
}

.pdf-preview-panel {
    max-width: 920px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pdf-preview-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pdf-preview-shell {
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(18, 18, 20, 0.98), rgba(9, 14, 26, 0.96));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.18);
}

.pdf-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(42, 42, 46, 0.95);
}

.pdf-preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.pdf-preview-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.pdf-preview-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdf-preview-close:hover {
    background: rgba(139, 92, 246, 0.22);
    transform: translateY(-1px);
}

.pdf-preview-frame {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
    background: #0b0c10;
}

.e5-grid-missions {
    margin-bottom: 1.2rem;
}

.mission-card {
    min-height: 122px;
}

.mission-card-next {
    border-color: rgba(34, 211, 238, 0.35);
}

.mission-card-next:hover {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.next-badge {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.45);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.e5-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.e5-panel-spaced {
    margin-top: 2rem;
}

.epreuves-2e-wrap {
    border-color: rgba(251, 191, 36, 0.28);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.1);
}

.epreuves-2e-wrap:hover {
    border-color: rgba(251, 191, 36, 0.4);
}

.epreuves-grid {
    margin-top: 1rem;
    margin-bottom: 0;
}

.epreuve-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 140px;
}

.epreuve-card .muted {
    margin: 0;
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.e5-panel .muted:last-child {
    margin-bottom: 0;
}

.panel-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.accordions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
}

.acc[open] {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 24px var(--accent-glow);
}

.acc summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1rem;
    font-weight: 700;
    color: var(--text);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.acc summary::-webkit-details-marker {
    display: none;
}

.acc summary::after {
    content: '+';
    color: var(--accent);
    font-weight: 900;
    transform: translateY(-1px);
}

.acc[open] summary::after {
    content: '–';
}

.acc-body {
    padding: 0 1rem 1rem 1rem;
}

.acc-body--mission {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.acc-body--mission .mission-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin: 0.85rem 0 0.15rem;
}

.acc-body--mission .mission-sub:first-of-type {
    margin-top: 0.35rem;
}

.acc-body--mission .mission-list {
    margin: 0.15rem 0 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.acc-body--mission .mission-list li::marker {
    color: var(--accent);
}

.checklist {
    list-style: none;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.85);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
    flex: 0 0 10px;
}

.sw {
    background: rgba(18, 18, 20, 0.55);
    border: 1px solid rgba(42, 42, 46, 0.9);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.sw-title {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.hero-content {
    animation: fadeUp 0.8s ease-out;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
    margin-bottom: 1rem;
    object-fit: cover;
}

.hero-pseudo {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 0 28px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    color: #fff;
}

.btn-secondary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 16px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--text);
    text-align: center;
    position: relative;
}

.subsection-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.85rem;
    margin-top: 0.25rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan), transparent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.about-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.6;
    border-radius: 4px 0 0 0;
}

.about-content:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.22);
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-content li {
    margin-bottom: 0.35rem;
}

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

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.6;
    border-radius: 4px 0 0 0;
}

.skill-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 24px var(--accent-glow), inset 0 0 0 1px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.skill-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.badge {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.badge:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.22);
}

.discord-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.25s ease;
    position: relative;
    overflow: visible;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.6;
    border-radius: 4px 0 0 0;
}

.discord-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 28px var(--accent-glow), inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

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

.discord-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discord-pseudo {
    font-weight: 600;
    font-size: 1.1rem;
}

.discord-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discord-badges {
    margin-bottom: 1.5rem;
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.discord-badge-wrap {
    position: relative;
    display: inline-flex;
}

.discord-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.9;
    transition: transform 0.2s, opacity 0.2s;
}

.discord-badge-wrap:hover .discord-badge {
    opacity: 1;
    transform: scale(1.15) translateY(-1px);
}

.discord-badge-wrap[data-badge="certified_moderator"] .discord-badge {
    filter: hue-rotate(148deg) saturate(1.25) brightness(1.08);
}

.discord-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    padding: 6px 10px;
    background: #2e3035;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease 0.2s, transform 0.12s ease 0.2s, visibility 0.12s 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.discord-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border: 4px solid transparent;
    border-top-color: #2e3035;
}

.discord-badge-wrap:hover .discord-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.discord-link {
    display: block;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.projects-grid + .e5-panel-spaced {
    margin-top: 2.25rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.6;
    border-radius: 4px 0 0 0;
}

.project-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 24px var(--accent-glow), inset 0 0 0 1px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.project-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-dark);
    border-radius: 4px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.6;
    border-radius: 4px 0 0 0;
}

.contact-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: text-shadow 0.2s, color 0.2s;
}

.contact-link:hover {
    text-shadow: 0 0 12px var(--accent-glow);
    color: #a78bfa;
}

.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.9), rgba(10, 10, 11, 0.95));
}

.footer-made {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.footer-author {
    font-weight: 700;
    color: var(--accent-cyan);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin: 0;
}

.footer-discord-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.25);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.65rem 0.7rem;
    }

    .nav {
        justify-content: flex-start;
        gap: 0.5rem;
        padding-inline: 0.3rem;
        max-width: 100%;
    }

    .nav-link {
        font-size: 0.78rem;
        padding: 0.35rem 0.55rem;
        border: 1px solid rgba(42, 42, 46, 0.9);
        background: rgba(12, 12, 14, 0.7);
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .section {
        padding: 3rem 0;
    }

    .about-content,
    .discord-card,
    .contact-card {
        padding: 1.5rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .resource-actions .btn {
        width: 100%;
        text-align: center;
    }

    .pdf-preview-panel {
        padding: 0 0.7rem;
    }

    .pdf-preview-actions .btn {
        width: auto;
    }

    .pdf-preview-frame {
        height: min(70vh, 760px);
    }
}

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-card {
        flex-direction: column;
    }
}
