/* portfolio-enhanced.css */
/* Fichier de style amélioré pour le portfolio de Chaoussi Cherif */

/* ===== ANIMATIONS ET EFFETS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.2; }
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes glowPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slideLeft {
    animation: slideLeft 0.8s ease-out forwards;
}

.animate-slideRight {
    animation: slideRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 6s ease-in-out infinite alternate;
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== ÉLÉMENTS DE BASE ===== */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #3B82F6;
    --secondary-color: #60A5FA;
    --background-color: #111827;
    --text-color: #E5E7EB;
    --card-bg-color: #1F2937;
    --hover-color: #2563EB;
}

/* ===== HEADER ET NAVIGATION ===== */
header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 50;
}

header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-left: 0.5rem;
}

.logo-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, #3B82F6, #60A5FA);
    border-radius: 2px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-item {
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3B82F6;
}

/* ===== BOUTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== CARTES ET CONTENEURS ===== */
.card {
    background-color: var(--card-bg-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.profile-image-container {
    width: 300px;
    height: 300px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

/* ===== COMPÉTENCES ===== */
.skill-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-progress {
    background-color: var(--primary-color);
    transition: width 1.5s ease-out;
}

.skill-tab, .project-filter {
    transition: all 0.3s ease;
}

.skill-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

/* ===== PROJETS ===== */
.project-card {
    transition: all 0.3s ease;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FORMULAIRES ===== */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ===== MÉDIAS RESPONSIFS ===== */
@media (max-width: 768px) {
    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.125rem;
    }
}

/* ===== CURSEUR PERSONNALISÉ ===== */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(59, 130, 246, 0.6);
    background-color: rgba(59, 130, 246, 0.1);
}

.cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-dot {
        display: none;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background-color: #10B981;
}

.toast-error {
    background-color: #EF4444;
}

/* ===== LOADERS ===== */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3B82F6;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PARALLAXE ET EFFETS AVANCÉS ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-5px);
}