:root {
    --primary: #00d4ff;
    --secondary: #090e23;
    --accent: #ff4d8f;
    --dark: #0a1120;
    --light: #f0f8ff;
    --card-bg: rgba(21, 29, 61, 0.8);
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--light);
    scroll-behavior: smooth;
    line-height: 1.6;
}

::selection {
    background: var(--primary);
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header avec animation de particules */
header {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(160deg, #001528 0%, #002042 100%);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 60px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(0,212,255,0.03)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: var(--transition);
    margin-bottom: 20px;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    background: linear-gradient(to right, var(--primary), var(--light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titles {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    color: var(--light);
    background: var(--glass);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: var(--dark);
}

/* Sections */
section {
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

section:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.section-title {
    font-size: 2.4rem;
    margin: 0 0 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Soft Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--glass);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.05);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Hard Skills */
.skill-level {
    margin-top: 10px;
    margin-bottom: 15px;
}

.skill-level-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 4px solid var(--dark);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.timeline-date {
    color: var(--primary);
    font-weight: 500;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

/* Education & Hobbies */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--glass);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(0, 30, 60, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    color: var(--light);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link:hover::after {
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Particle animation */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    section { padding: 30px 20px; }
    .skills-grid, .projects-grid, .info-cards {
        grid-template-columns: 1fr;
    }
    .footer-links { flex-direction: column; gap: 15px; }
}

/* Animation des compétences */
@keyframes animateBar {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.skill-level-fill {
    transform-origin: left;
    animation: animateBar 1.5s ease-out forwards;
}
/* Styles pour les boutons de contact */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-button {
    position: relative;
    width: 100%;
    max-width: 280px;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    justify-content: center;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.button-text {
    transition: transform 0.3s ease;
}

.button-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.4s ease-out;
    z-index: 1;
}

/* Styles spécifiques pour chaque bouton */
.email-button {
    background: linear-gradient(135deg, #00d4ff, #00a8e8);
    color: #0a1120;
}

.linkedin-button {
    background: linear-gradient(135deg, #0077B5, #005f91);
    color: white;
}

.cv-button {
    background: linear-gradient(135deg, #ff4d8f, #e84393);
    color: white;
}

/* Effets de hover */
.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-button:hover .button-icon {
    transform: scale(1.2);
}

.contact-button:hover .button-text {
    transform: translateX(5px);
}

.contact-button:hover .button-hover-effect {
    transform: translateX(100%) skewX(-15deg);
}

/* Animation au chargement */
@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-button {
    animation: buttonSlideIn 0.6s ease-out forwards;
}

.email-button { animation-delay: 0.3s; }
.linkedin-button { animation-delay: 0.4s; }
.cv-button { animation-delay: 0.5s; }

@media (max-width: 768px) {
    .contact-buttons {
        gap: 12px;
    }
    
    .contact-button {
        padding: 14px 25px;
        max-width: 240px;
    }
}