/* ============================================ */
/* DATA SCIENCE & AI SPECIALIST THEME          */
/* Composants spécifiques pour portfolio tech  */
/* ============================================ */

/* Hero section avec gradient animé */
.hero-data-scientist {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-data-scientist::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-data-scientist::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Carte de statistique/metric */
.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline pour expérience/formation */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2c5282 0%, #1a365d 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #2c5282;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.1);
}

.timeline-item:hover::before {
    background: #2c5282;
    transform: scale(1.2);
    transition: var(--transition-smooth);
}

/* Carte de compétence avec progress bar */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.skill-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-level {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.skill-progress {
    height: 8px;
    background: rgba(44, 82, 130, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Badge catégorie pour projets */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}

.category-badge.ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.category-badge.ml {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
}

.category-badge.data {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    border: none;
}

.category-badge.python {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icon wrapper pour icônes tech */
.tech-icon {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition-smooth);
    box-shadow: none;
    text-decoration: none;
    color: #2c5282;
}

.tech-icon:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: none;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
}

/* Card avec icône tech en haut */
.tech-service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tech-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.tech-service-card:hover::before {
    opacity: 0.05;
}

.tech-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tech-service-card .tech-icon {
    margin: 0 auto 20px;
}

.tech-service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tech-service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Glowing effect pour éléments importants */
.glow-on-hover {
    position: relative;
    z-index: 0;
}

.glow-on-hover::before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: inherit;
}

.glow-on-hover:hover::before {
    opacity: 0.3;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero-data-scientist {
        padding: 3rem 0;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Délais pour animations en cascade */
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
