/* Variables */
:root {
    /* Thème sombre moderne avec glassmorphisme */
    --primary-color: #6366f1; /* Indigo moderne */
    --primary-light: #8b5cf6; /* Violet clair */
    --primary-dark: #4f46e5; /* Indigo foncé */
    --secondary-color: #06b6d4; /* Cyan moderne */
    --accent-color: #f59e0b; /* Amber */
    --neon-blue: #0ea5e9; /* Sky blue */
    --neon-purple: #a855f7; /* Purple */
    --neon-pink: #ec4899; /* Pink */
    
    /* Backgrounds avec glassmorphisme */
    --background-primary: #0f0f23;
    --background-secondary: #1a1a2e;
    --background-tertiary: #16213e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-backdrop: blur(20px);
    
    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #94a3b8;
    
    /* Gradients animés */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-animated: linear-gradient(-45deg, #6366f1, #8b5cf6, #06b6d4, #f59e0b);
    --gradient-mesh: radial-gradient(circle at 20% 50%, #6366f1 0%, transparent 50%), 
                     radial-gradient(circle at 80% 20%, #8b5cf6 0%, transparent 50%), 
                     radial-gradient(circle at 40% 80%, #06b6d4 0%, transparent 50%);
    
    /* Shadows et effets */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.5);
    
    /* Transitions et animations */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing moderne */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(15, 15, 35, 0.2);
}

/* Scrollbar moderne */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-color));
    box-shadow: var(--shadow-glow);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background-primary);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glassmorphisme base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-xl);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Typography moderne */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite alternate;
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scaleX(1.2); }
}

/* Links modernes */
a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Buttons modernes avec glassmorphisme */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px) scale(1.05);
}

/* Container moderne */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* Header avec glassmorphisme */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--shadow-lg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-normal);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-neon);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
    font-weight: 500;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.hero-logo-img {
    max-width: 90%;
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 0 15px rgba(77, 181, 255, 0.7));
    transition: var(--transition-smooth);
    animation: logoGlow 3s ease-in-out infinite alternate;
    image-rendering: -webkit-optimize-contrast; /* Améliore le rendu sur Chrome/Safari */
    image-rendering: crisp-edges; /* Améliore le rendu sur Firefox */
    -ms-interpolation-mode: nearest-neighbor; /* Améliore le rendu sur IE */
    transform: translateZ(0); /* Utilise l'accélération matérielle */
    backface-visibility: hidden; /* Réduit le flou pendant les animations */
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(110, 114, 255, 0.4)) drop-shadow(0 0 8px rgba(77, 181, 255, 0.3));
    }
    to {
        filter: drop-shadow(0 0 12px rgba(110, 114, 255, 0.6)) drop-shadow(0 0 20px rgba(77, 181, 255, 0.8));
    }
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    filter: saturate(1.05);
}

.profile-img:hover {
    filter: saturate(1.1) brightness(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--primary-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about-text p {
    margin-bottom: 25px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(110, 114, 255, 0.2);
    transform: translateY(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h4 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary-light);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.4s ease;
}

.skill-category:hover h4::after {
    width: 70px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-item {
    background: rgba(110, 114, 255, 0.15);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 114, 255, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 114, 255, 0.4);
    border-color: var(--primary-color);
}

/* Services Section */
.services {
    background-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(15, 15, 26, 0.7);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition), background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(110, 114, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: rgba(110, 114, 255, 0.1);
    border: 1px solid rgba(110, 114, 255, 0.2);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 20px;
    color: var(--text-light);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Portfolio Items */
.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(15, 15, 26, 0.9);
    height: 280px;
    will-change: transform, box-shadow;
    border: 1px solid rgba(110, 114, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Portfolio Modal Styles */
.portfolio-modal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    padding: 10px;
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal-content {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    max-width: 1000px;
    width: 95%;
    position: relative;
    padding: 25px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    border: 1px solid rgba(110, 114, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 95vh;
    overflow-y: auto;
    color: var(--text-color);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(110, 114, 255, 0.2);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.modal-project-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto 20px auto;
}

.modal-project-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

.portfolio-modal-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-blue));
    border-radius: 2px;
}

.portfolio-modal-content h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.modal-project-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    margin-bottom: 6px;
    color: var(--text-light);
}

.project-description p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-light);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    background-color: rgba(110, 114, 255, 0.15);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(110, 114, 255, 0.3);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 114, 255, 0.4);
}

@media (max-width: 768px) {
    .modal-project-info {
        grid-template-columns: 1fr;
    }
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.portfolio-image img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    background-color: transparent;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 10px rgba(110, 114, 255, 0.3));
    max-height: 80%;
    mix-blend-mode: exclusion;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(110, 114, 255, 0.2);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    padding: 25px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    background: rgba(15, 15, 26, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(110, 114, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 85%;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.portfolio-link, .portfolio-details-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(110, 114, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 114, 255, 0.3);
}

.portfolio-link:hover, .portfolio-details-link:hover {
    background: rgba(110, 114, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(110, 114, 255, 0.5);
}

/* Coming Soon Portfolio Items */
.portfolio-item.coming-soon .portfolio-image {
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.8), rgba(20, 20, 40, 0.9));
}

.coming-soon-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.coming-soon-content {
    text-align: center;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coming-soon-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.coming-soon-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coming-soon-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Coming Soon Container (pour la compatibilité) */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    text-align: center;
}

.hourglass-icon {
    font-size: 4rem;
}

.coming-soon-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--light-color);
    transform: translateY(0);
    will-change: transform, box-shadow;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 77, 255, 0.1), rgba(122, 142, 255, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 25px;
    background-color: rgba(15, 15, 26, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(110, 114, 255, 0.2);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(-5px);
}

.portfolio-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.portfolio-info a {
    text-decoration: none;
    color: var(--primary-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: 500;
}

.portfolio-info p {
    margin: 0 0 20px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.portfolio-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74, 77, 255, 0.15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(110, 114, 255, 0.1);
}

.portfolio-item:hover .portfolio-tag {
    background: rgba(110, 114, 255, 0.3);
    color: var(--text-light);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(110, 114, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 107, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.portfolio-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.portfolio-details-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.portfolio-details-btn:hover {
    color: #3a5bef;
}

/* Contact Section */
.contact {
    background-color: transparent;
    padding: 80px 0;
}

.contact-container-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-centered {
    padding: 40px;
    background-color: rgba(15, 15, 26, 0.7);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(110, 114, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info-centered:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-info-centered h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--primary-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.info-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.info-item-large {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(110, 114, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(110, 114, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 100%;
    box-sizing: border-box;
}

.info-item-large:hover {
    transform: scale(1.02);
}

.info-item i, .info-item-large i {
width: 50px;
height: 50px;
background-color: var(--primary-color);
color: var(--light-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
font-size: 1.2rem;
box-shadow: 0 5px 15px rgba(74, 77, 255, 0.2);
transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 77, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-item-large i {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.info-item:hover i, .info-item-large:hover i {
transform: rotate(5deg);
background-color: #3a5bef;
}

.email-link {
    color: var(--primary-light);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.email-link::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--primary-color);
transform: scaleX(0);
transform-origin: bottom right;
transition: transform 0.3s ease;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.email-link:hover {
    color: #3a5bef;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.info-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px) rotate(10deg);
    background-color: #3a5bef;
}

/* Footer */
footer {
    background-color: var(--background-light);
    padding: 40px 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

/* Bouton Informations légales */
.btn-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.btn-legal:hover {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 0 15px rgba(110, 114, 255, 0.3);
}

/* Modal Informations légales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), 
                background-color 0.6s cubic-bezier(0.33, 1, 0.68, 1),
                backdrop-filter 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    overflow-y: auto; /* Permet le défilement si nécessaire */
}

.modal.show {
    display: block;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow), 0 0 20px rgba(110, 114, 255, 0.2);
    width: 90%;
    max-width: 600px;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.7s ease;
    border: 1px solid rgba(110, 114, 255, 0.1);
    position: fixed;
    bottom: 20vh; /* Position plus haute */
    left: 50%;
    transform: translateX(-50%) translateY(70px) scale(0.85); /* Animation plus prononcée */
    opacity: 0;
    z-index: 1001;
    will-change: transform, opacity, box-shadow, border-color;
    filter: brightness(0.9) contrast(0.95);
    transition-delay: 0.1s; /* Léger délai pour synchroniser avec l'animation du fond */
}

.modal.show .modal-content {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    box-shadow: var(--box-shadow), 0 0 30px rgba(110, 114, 255, 0.4);
    border-color: var(--border-color);
    filter: brightness(1) contrast(1);
}

.modal-content.animated {
    animation: modalPulse 0.5s ease-out;
}

@keyframes modalPulse {
    0% { box-shadow: var(--box-shadow), 0 0 0px rgba(110, 114, 255, 0); }
    50% { box-shadow: var(--box-shadow), 0 0 40px rgba(110, 114, 255, 0.6); }
    100% { box-shadow: var(--box-shadow), 0 0 30px rgba(110, 114, 255, 0.4); }
}

.modal-content h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.legal-info-content p {
    margin: 12px 0;
    font-size: 1rem;
    color: var(--text-light);
}

.legal-info-content p strong {
    color: var(--primary-light);
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-light);
}

.copyright {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(110, 114, 255, 0.4)) drop-shadow(0 0 12px rgba(77, 181, 255, 0.3));
    transition: var(--transition-smooth);
    animation: footerLogoGlow 4s ease-in-out infinite alternate;
}

@keyframes footerLogoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(110, 114, 255, 0.3)) drop-shadow(0 0 8px rgba(77, 181, 255, 0.2));
        transform: translateY(0);
    }
    to {
        filter: drop-shadow(0 0 10px rgba(110, 114, 255, 0.5)) drop-shadow(0 0 15px rgba(77, 181, 255, 0.4));
        transform: translateY(-3px);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-centered {
        padding: 25px;
    }
    
    .info-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .email-link {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .email-link {
        font-size: 0.8rem;
        display: block;
        width: 100%;
        margin-top: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.2px;
    }
    
    .info-item-large {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .info-item-large i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-info-centered {
        padding: 20px 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo-img {
        max-height: 280px;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-links li {
        margin: 0;
        font-size: 0.9rem;
    }
    
    nav {
        flex-direction: column;
        padding: 15px 0 10px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .skills {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .modal-project-info {
        grid-template-columns: 1fr;
    }
    
    .portfolio-modal {
        padding: 10px;
    }
    
    .portfolio-modal.active {
        padding-top: 20px;
        align-items: flex-start;
    }
    
    .portfolio-modal-content {
        width: 100%;
        padding: 25px;
        max-height: 95vh;
        margin: 0;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .modal-project-image {
        margin-bottom: 20px;
    }
    
    .project-details,
    .project-description,
    .project-technologies {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .portfolio-modal-content {
        padding: 20px;
    }
    
    .tech-tags {
        gap: 8px;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Sections modernes */
section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Section moderne */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.1;
    animation: gradientShift 20s ease infinite;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: textShimmer 4s ease-in-out infinite;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-2xl);
    width: 100%;
}

.hero-logo-img {
    max-width: 80%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    transition: var(--transition-slow);
    animation: logoFloat 6s ease-in-out infinite;
    border-radius: var(--radius-2xl);
}

.hero-logo-img:hover {
    transform: scale(1.05) rotateY(5deg);
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.6));
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    }
    50% { 
        transform: translateY(-20px) rotateX(2deg); 
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.6));
    }
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* About Section moderne */
.about {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    opacity: 0.1;
    z-index: -1;
    transition: var(--transition-slow);
}

.about-image:hover::before {
    opacity: 0.2;
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

.about-text {
    position: relative;
}

.about-text h3 {
    margin-bottom: var(--space-lg);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about-text p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Skills modernes */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-category h4 {
    color: var(--primary-light);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-category h4::before {
    content: '⚡';
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-md);
    transition: var(--transition-fast);
}

.skill-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.skill-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.skill-list li:hover::before {
    color: var(--primary-light);
    transform: scale(1.2);
}

/* Responsive moderne */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Sera remplacé par un menu mobile */
    }
}

/* Services Section moderne */
.services {
    background: var(--background-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.03;
    animation: gradientShift 25s ease infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: var(--transition-normal);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Portfolio Section moderne */
.portfolio {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.portfolio-item:hover::before {
    opacity: 0.03;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: var(--background-tertiary);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.9) saturate(1.1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-img::after {
    opacity: 0.1;
}

.portfolio-content {
    padding: var(--space-xl);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 600;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.portfolio-links {
    display: flex;
    gap: var(--space-md);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.portfolio-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal moderne */
.portfolio-modal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    margin: 5% auto;
    padding: var(--space-2xl);
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-2xl);
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(110, 114, 255, 0.2);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.modal-project-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto 20px auto;
}

.modal-project-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

.portfolio-modal-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-blue));
    border-radius: 2px;
}

.portfolio-modal-content h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.modal-project-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    margin-bottom: 6px;
    color: var(--text-light);
}

.project-description p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-light);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    background-color: rgba(110, 114, 255, 0.15);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(110, 114, 255, 0.3);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 114, 255, 0.4);
}

@media (max-width: 768px) {
    .modal-project-info {
        grid-template-columns: 1fr;
    }
}

/* Contact Section moderne */
.contact {
    background: var(--background-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.02;
    animation: gradientShift 30s ease infinite;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-neon);
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Responsive pour Contact */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-methods {
        gap: var(--space-md);
    }
    
    .contact-method {
        padding: var(--space-md);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .social-links {
        justify-content: center;
    }
}
