﻿/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --white: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --dark: #f8fafc;
    --dark-secondary: #e2e8f0;
    --dark-tertiary: #cbd5e1;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.lang-btn:hover {
    color: var(--dark);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.theme-toggle:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle i::before {
    content: "\f185";
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-contact-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.footer-contact-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    color: inherit;
    font-size: inherit;
}

.footer-contact-btn:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-resume-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-photo:hover::before {
    opacity: 1;
}

.hero-photo:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-light);
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.6);
}

.hero-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-300);
    max-width: 250px;
    text-align: left;
    line-height: 1.5;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.text-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--gray-300);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.hero-motto {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.hero-contact-item i {
    color: var(--primary-light);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--gray-400);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::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: left 0.5s ease;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
}

/* ===== Resume Section ===== */
.resume-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.resume-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-600);
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}

.resume-text::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.about-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
}

.about-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(12px);
}

.about-card:hover .about-icon::after {
    opacity: 0.5;
}

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

.about-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--primary), 0 0 15px var(--primary);
}

.timeline-content {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-left: 4px solid transparent;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    transition: width 0.4s ease;
    border-radius: 12px;
    z-index: -1;
}

.timeline-content:hover::before {
    width: 100%;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
    border-left-color: var(--primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.timeline-type {
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.timeline-location i {
    margin-right: 4px;
}

.timeline-tasks {
    padding-left: 20px;
}

.timeline-tasks li {
    position: relative;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.6;
}

.timeline-tasks li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== Autres TÃ¢ches Section ===== */
.autres-taches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.autres-taches-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.autres-taches-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 100%);
    transition: height 0.4s ease;
    z-index: -1;
}

.autres-taches-card:hover::after {
    height: 100%;
}

.autres-taches-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    border-left-color: var(--primary);
}

.autres-taches-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.autres-taches-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.autres-taches-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.autres-taches-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.skill-category {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    background: var(--white);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.skill-category > * {
    position: relative;
    z-index: 1;
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.skill-category-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 12px;
    background: var(--white);
    color: var(--gray-600);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.skill-tag.highlight {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.skill-tag.highlight:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Soft Skills */
.soft-skills {
    text-align: center;
}

.soft-skills-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
}

.soft-skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.soft-skill-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    color: var(--primary);
}

.soft-skill-item i {
    transition: transform 0.3s ease;
}

.soft-skill-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.soft-skill-item i {
    color: var(--primary);
}

/* ===== Education Section ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.education-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.05) 50%);
    transition: all 0.4s ease;
}

.education-card:hover::before {
    width: 120px;
    height: 120px;
}

.education-card-full {
    grid-column: 1 / -1;
}

.education-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.15);
}

.education-card.certification {
    flex-direction: column;
}

.education-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.education-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.education-school {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.education-school-full {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: 4px;
}

.education-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.education-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.education-details p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-details i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.education-details a {
    color: var(--primary);
    text-decoration: none;
}

.education-details a:hover {
    text-decoration: underline;
}

.education-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cert-badge {
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Languages */
.languages-section {
    margin-bottom: 48px;
}

.languages-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.language-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.language-level {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Interests */
.interests-section {
    text-align: center;
}

.interests-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
}

.interests-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.interest-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

.interest-item i {
    transition: transform 0.3s ease;
}

.interest-item:hover i {
    transform: scale(1.3) rotate(-10deg);
}
}

.interest-item i {
    color: var(--accent);
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.4s ease;
    border-radius: 0 0 4px 4px;
}

.contact-item:hover::before {
    height: 100%;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.1rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    background: var(--gray-100);
}

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

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

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--dark-tertiary);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-contact {
        flex-direction: column;
        align-items: center;
    }

    .hero-profile {
        flex-direction: column;
    }

    .hero-tagline {
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-left: 0;
        padding-top: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -6px;
    }

    .timeline-item {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .modal-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Contact Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

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

.modal-beautiful {
    background: var(--white);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.85) translateY(25px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.modal-overlay.active .modal-beautiful {
    transform: scale(1) translateY(0);
}

.modal-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}

.modal-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.1));
    top: -50px;
    right: -30px;
    animation: shapeFloat 6s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.08));
    top: 60px;
    left: -40px;
    animation: shapeFloat 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.08));
    bottom: 50%;
    right: 20px;
    animation: shapeFloat 5s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #ef4444;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.modal-close:hover i {
    color: var(--white);
}

.modal-close i {
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.modal-header-beautiful {
    padding: 36px 28px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal-avatar-beautiful {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
}

.modal-avatar-beautiful img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent), #10b981, var(--primary));
    background-size: 300% 300%;
    animation: glowPulse 3s ease infinite;
    z-index: 1;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes glowPulse {
    0%, 100% { background-position: 0% 50%; opacity: 0.6; }
    50% { background-position: 100% 50%; opacity: 0.9; }
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    animation: spin 2s linear infinite;
    z-index: 3;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.modal-header-beautiful h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    color: #10b981;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.modal-body-beautiful {
    padding: 0 24px 28px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    animation: slideIn 0.4s ease backwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-card:hover {
    background: var(--white);
    transform: translateX(6px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1);
}

.contact-card-icon.phone {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-card-icon.phone2 {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-card-icon.email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.contact-card-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-card-icon i {
    color: var(--white);
    font-size: 1.1rem;
}

.contact-card-info {
    flex: 1;
}

.contact-card-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-card-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-card-value {
    color: var(--primary);
}

.contact-card-arrow {
    color: var(--gray-400);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.form-section {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 20px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.form-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.form-icon i {
    color: var(--white);
    font-size: 0.9rem;
}

.form-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-form-beautiful {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-icon.textarea-icon {
    top: 16px;
    transform: none;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--gray-400);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 4px 16px rgba(37, 99, 235, 0.1);
}

.input-group input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: 14px;
}

.submit-btn-beautiful {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

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

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

.submit-btn-beautiful:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

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

.submit-btn-beautiful i {
    transition: transform 0.3s ease;
}

.submit-btn-beautiful:hover i {
    transform: translateX(4px) translateY(-4px);
}

@media (max-width: 480px) {
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .modal-beautiful {
        max-width: 100%;
        margin: 10px;
    }
}
/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Print Styles ===== */
@media print {
    .nav, .hero-scroll, .contact-form-container, .footer {
        display: none;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: white;
    }

    .hero-name, .hero-title, .hero-subtitle {
        color: var(--dark);
    }
}

/* ===== RTL Support ===== */
[dir="rtl"] {
    font-family: 'Noto Sans Arabic', var(--font-sans);
}

[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: -6px;
}

[dir="rtl"] .timeline-tasks li::before {
    left: auto;
    right: -20px;
}

[dir="rtl"] .hero-tagline {
    border-left: none;
    border-right: 2px solid var(--accent);
    padding-left: 0;
    padding-right: 16px;
    text-align: right;
}

[dir="rtl"] .resume-text::before {
    left: auto;
    right: 20px;
}

[dir="rtl"] .hero-profile {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-card,
[dir="rtl"] .autres-taches-card,
[dir="rtl"] .education-card {
    text-align: right;
}

[dir="rtl"] .skill-category-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .soft-skill-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .interest-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item div:last-child {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .hero-tagline {
        border-top: 2px solid var(--accent);
        border-right: none;
        padding-right: 0;
        padding-top: 16px;
        text-align: center;
    }
    
    [dir="rtl"] .hero-profile {
        flex-direction: column;
    }
}

/* ===== Keyframe Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Apply animations to elements */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Stagger animations for grid items */
.about-grid .about-card:nth-child(1) { animation-delay: 0.1s; }
.about-grid .about-card:nth-child(2) { animation-delay: 0.2s; }
.about-grid .about-card:nth-child(3) { animation-delay: 0.3s; }
.about-grid .about-card:nth-child(4) { animation-delay: 0.4s; }

.autres-taches-grid .autres-taches-card:nth-child(1) { animation-delay: 0.1s; }
.autres-taches-grid .autres-taches-card:nth-child(2) { animation-delay: 0.15s; }
.autres-taches-grid .autres-taches-card:nth-child(3) { animation-delay: 0.2s; }
.autres-taches-grid .autres-taches-card:nth-child(4) { animation-delay: 0.25s; }
.autres-taches-grid .autres-taches-card:nth-child(5) { animation-delay: 0.3s; }
.autres-taches-grid .autres-taches-card:nth-child(6) { animation-delay: 0.35s; }
.autres-taches-grid .autres-taches-card:nth-child(7) { animation-delay: 0.4s; }
.autres-taches-grid .autres-taches-card:nth-child(8) { animation-delay: 0.45s; }
.autres-taches-grid .autres-taches-card:nth-child(9) { animation-delay: 0.5s; }

/* Glowing effect for highlighted elements */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    to {
        box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

/* ===== Dark Mode Specific ===== */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 100%);
}

[data-theme="dark"] .nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .nav-menu {
    background: var(--gray-100);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--gray-100);
}

[data-theme="dark"] .skill-tag,
[data-theme="dark"] .cert-badge {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

[data-theme="dark"] .skill-tag.highlight {
    background: var(--primary);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-contact-item {
    color: var(--gray-300);
}

[data-theme="dark"] .modal-beautiful {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .modal-close {
    background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .modal-close:hover {
    background: #ef4444;
}

[data-theme="dark"] .contact-card {
    background: var(--gray-200);
}

[data-theme="dark"] .contact-card:hover {
    background: var(--gray-300);
}

[data-theme="dark"] .form-section {
    background: var(--gray-200);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group textarea {
    background: var(--gray-300);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group textarea:focus {
    background: var(--gray-400);
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(37, 99, 235, 0.15),
        0 4px 16px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .submit-btn-beautiful {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.45);
}

[data-theme="dark"] .submit-btn-beautiful:hover {
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.55);
}

[data-theme="dark"] .whatsapp-btn {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .footer {
    background: #0a0f1a;
}

/* Dark Mode Text Colors */
[data-theme="dark"] .hero-name {
    color: #ffffff !important;
}

[data-theme="dark"] .text-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] body,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] a,
[data-theme="dark"] label,
[data-theme="dark"] .about-card p,
[data-theme="dark"] .autres-taches-card p,
[data-theme="dark"] .timeline-tasks li,
[data-theme="dark"] .experience-company,
[data-theme="dark"] .education-school,
[data-theme="dark"] .experience-location,
[data-theme="dark"] .education-date,
[data-theme="dark"] .timeline-date,
[data-theme="dark"] .skill-category-title span,
[data-theme="dark"] .soft-skills-title,
[data-theme="dark"] .languages-title,
[data-theme="dark"] .interests-title,
[data-theme="dark"] .soft-skill-item span,
[data-theme="dark"] .interest-item span,
[data-theme="dark"] .contact-value,
[data-theme="dark"] .contact-label,
[data-theme="dark"] .hero-tagline,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-motto,
[data-theme="dark"] .resume-text,
[data-theme="dark"] .modal-header p,
[data-theme="dark"] .modal-contact-label,
[data-theme="dark"] .modal-contact-value,
[data-theme="dark"] .modal-form-group label,
[data-theme="dark"] .language-name,
[data-theme="dark"] .language-level,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-links button,
[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .nav-link {
    color: #ffffff !important;
}

[data-theme="dark"] .about-card h3,
[data-theme="dark"] .autres-taches-card h3,
[data-theme="dark"] .timeline-role,
[data-theme="dark"] .timeline-company,
[data-theme="dark"] .education-content h3,
[data-theme="dark"] .skill-category-title,
[data-theme="dark"] .modal-header h2,
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #f8fafc;
}

[data-theme="dark"] p {
    color: #cbd5e1;
}

[data-theme="dark"] .about-card p,
[data-theme="dark"] .autres-taches-card p,
[data-theme="dark"] .timeline-tasks li {
    color: #94a3b8;
}

[data-theme="dark"] .experience-company,
[data-theme="dark"] .education-school {
    color: #93c5fd;
}

[data-theme="dark"] .experience-location,
[data-theme="dark"] .education-date,
[data-theme="dark"] .timeline-date {
    color: #94a3b8;
}

[data-theme="dark"] .skill-category-title span {
    color: #e2e8f0;
}

[data-theme="dark"] .soft-skills-title,
[data-theme="dark"] .languages-title,
[data-theme="dark"] .interests-title {
    color: #f8fafc;
}

[data-theme="dark"] .soft-skill-item span,
[data-theme="dark"] .interest-item span {
    color: #cbd5e1;
}

[data-theme="dark"] .contact-value {
    color: #f8fafc;
}

[data-theme="dark"] .contact-label {
    color: #94a3b8;
}

[data-theme="dark"] .hero-tagline {
    color: #94a3b8;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .hero-motto {
    color: #67e8f9;
}

[data-theme="dark"] .resume-text {
    color: #cbd5e1;
}

[data-theme="dark"] .modal-header p {
    color: #94a3b8;
}

[data-theme="dark"] .modal-contact-label {
    color: #94a3b8;
}

[data-theme="dark"] .modal-contact-value {
    color: #f8fafc;
}

[data-theme="dark"] .modal-form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .language-name {
    color: #e2e8f0;
}

[data-theme="dark"] .language-level {
    color: #94a3b8;
}

[data-theme="dark"] .footer-brand p {
    color: #94a3b8;
}

[data-theme="dark"] .footer-links a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-links a:hover {
    color: #f8fafc;
}

[data-theme="dark"] .footer-bottom p {
    color: #64748b;
}

[data-theme="dark"] .nav-logo {
    color: #60a5fa;
}

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover {
    color: #60a5fa;
}


