:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.8);
    --accent-primary: #2f81f7;
    --accent-secondary: #a371f7;
    --text-main: #e6edf3;
    --text-muted: #7d8590;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

/* --- BACKGROUND FX --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.glow-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    mix-blend-mode: screen;
}

@media (min-width: 768px) {
    .glow-spot {
        width: 600px;
        height: 600px;
    }
}

/* --- UI ELEMENTS --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #7d8590 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* --- SKILL TAGS --- */
.skill-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(56, 139, 253, 0.1);
    color: #58a6ff;
    border: 1px solid rgba(56, 139, 253, 0.2);
    display: inline-block;
    margin: 3px;
}

@media (min-width: 768px) {
    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin: 4px;
    }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

@media (min-width: 768px) {
    nav {
        padding: 20px 50px;
    }
}

/* Menu mobile retiré - navigation uniquement sur desktop */

/* Liste avec puces carrées blanches */
.list-square {
    list-style-type: square;
}

.list-square li {
    color: var(--text-main);
}

/* --- SKELETON LOADING --- */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(22, 27, 34, 0.8) 0%,
        rgba(48, 54, 61, 0.4) 50%,
        rgba(22, 27, 34, 0.8) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

.skeleton-project-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-project-video {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .skeleton-project-video {
        height: 200px;
    }
}

.skeleton-project-title {
    width: 70%;
    height: 1.5rem;
    margin-top: 0.5rem;
}

.skeleton-project-description {
    width: 100%;
    height: 0.875rem;
    margin-bottom: 0.25rem;
}

.skeleton-project-description:nth-child(2) {
    width: 85%;
}

.skeleton-project-category {
    width: 30%;
    height: 1.25rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.skeleton-project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skeleton-project-link {
    width: 80px;
    height: 2rem;
    border-radius: 8px;
}

.skeleton-parcours-item {
    position: relative;
    padding-left: 1rem;
}

.skeleton-parcours-point {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(48, 54, 61, 0.6);
}

@media (min-width: 768px) {
    .skeleton-parcours-point {
        left: -2.75rem;
        width: 1.5rem;
        height: 1.5rem;
        border-width: 4px;
    }
}

.skeleton-parcours-title {
    width: 80%;
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.skeleton-parcours-school {
    width: 60%;
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-parcours-mention {
    width: 50%;
    height: 0.875rem;
    margin-top: 0.25rem;
}

/* --- SECTIONS --- */
section {
    padding: 60px 20px;
    position: relative;
}

@media (min-width: 768px) {
    section {
        padding: 100px 10vw;
    }
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.project-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #161b22;
    /* Placeholder color */
    opacity: 0.8;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .project-img {
        height: 200px;
    }
}

.glass-card:hover .project-img {
    opacity: 1;
}

/* Project card styles */
.project-video {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #161b22;
    opacity: 0.8;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .project-video {
        height: 200px;
    }
}

.glass-card:hover .project-video {
    opacity: 1;
}

.project-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.glass-card:hover .project-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.project-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: rgba(47, 129, 247, 0.1);
    color: #58a6ff;
    border: 1px solid rgba(47, 129, 247, 0.2);
    margin-top: 0.5rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(48, 54, 61, 0.6);
    color: var(--text-main);
}

.project-link:hover {
    background: rgba(47, 129, 247, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

