/* Variables globales */
:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-primary: #4A90E2;
    --color-primary-rgb: 74, 144, 226;
    --color-secondary: #50E3C2;
    --color-secondary-rgb: 80, 227, 194;
    --color-accent: #FF6B6B;
    --font-main: 'Helvetica Neue', sans-serif;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Curseur personnalisé */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s;
}

/* Hero Section */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations d'entrée */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Classe pour les éléments qui entrent en vue */
.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.from-left {
    transform: translateX(-100px);
}

.reveal.from-right {
    transform: translateX(100px);
}

.reveal.from-bottom {
    transform: translateY(100px);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1rem;
    background: linear-gradient(
        120deg,
        var(--color-primary) 0%,
        var(--color-secondary) 50%,
        var(--color-primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    padding-bottom: 10px;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Animation de la grille du hero */
.grid-cell {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    opacity: 0;
    animation: fadeInCell 0.5s ease forwards;
}

@keyframes fadeInCell {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 0.1;
        transform: scale(1);
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1rem;
    padding: 2rem;
    opacity: 0.1;
}

.hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 70%);
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: var(--color-bg); /* Fond noir solide */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Section */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

.profile-info {
    text-align: left;
    margin-bottom: 3rem;
}

.profile-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.profile-details {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: left;
}

/* Skills Section */
.skills {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.skill h4 {
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--color-primary);
    transform-origin: left;
    animation: growSkill 1.5s ease-out forwards;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: var(--color-bg); /* Fond noir solide */
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    height: 150px;
    margin-bottom: 2rem;
}

button {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}



/* Animations */
@keyframes growSkill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        padding: 0 1rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        background-size: 300% 100%;
    }
 
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
        line-height: 1.5;
        max-width: 280px;
        margin: 0 auto;
        opacity: 1;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
 }