:root {
    --bg-color: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.5);
    --text: #ffffff;
    --text-muted: #a0a0a0;
}

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

body {
    background: radial-gradient(circle at center, #0a0a15 0%, #000000 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    padding: 15vh 0 10vh;
    position: relative;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--accent-glow);
    display: inline-block;
}

.intro-p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* --- BOUTONS --- */
.btn-glow {
    display: inline-block;
    margin-top: 50px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--accent);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-glow:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: scale(1.05);
    color: #fff;
    background: rgba(0, 242, 255, 0.1);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: 0.3s;
}

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

/* --- GRILLE & CARTES --- */
.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    color: #fff;
}

.grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(15px);
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Le GLOW qui suit la souris */
.card-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.card:hover .card-glow {
    opacity: 1;
}

.card-content {
    transform: translateZ(20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.card-img-holder {
    width: 100%;
    height: 175px;
    background: #111;
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    transform: translateZ(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card-img-holder img {
    transform: scale(1.1);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: 0.3s;
}

.card-link:hover {
    color: var(--accent);
    padding-left: 10px;
}

/* --- SKILLS --- */
.skills-section {
    margin: 150px 0;
    text-align: center;
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.skill-pill {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-muted);
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0;
    text-align: center;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.social-links a {
    color: #fff;
    transition: 0.3s;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .grid-3d {
        grid-template-columns: 1fr;
    }
}