/* style.css */
/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs primaires - Mode Clair */
    --primary-color: #3a86ff;
    --primary-dark: #2667cc;
    --primary-light: #a6c8ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    
    /* Couleurs neutres */
    --dark-color: #1a1a2e;
    --dark-gray: #2d3748;
    --medium-gray: #4a5568;
    --light-gray: #a0aec0;
    --lighter-gray: #e2e8f0;
    --light-color: #f8fafc;
    --white: #ffffff;
    
    /* Couleurs de statut */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Effets */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --section-spacing: 100px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--primary-light);
    z-index: -1;
    opacity: 0.5;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.logo-title {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-family: var(--font-secondary);
}

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

.nav-menu {
    display: flex;
    gap: 2px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(58, 134, 255, 0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.cta-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    margin-left: 10px;
}

.cta-nav:hover {
    background-color: var(--primary-dark) !important;
}

.theme-switch {
    position: relative;
}

.theme-toggle {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background-color: var(--lighter-gray);
    border-radius: var(--border-radius-full);
    padding: 5px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
}

.theme-label i {
    font-size: 1rem;
    z-index: 1;
    transition: var(--transition-normal);
}

.theme-label i:first-child {
    color: #f59e0b;
}

.theme-label i:last-child {
    color: #4a5568;
}

.theme-label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: var(--white);
    border-radius: 50%;
    left: 4px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:checked + .theme-label::after {
    transform: translateX(30px);
}

.theme-toggle:checked + .theme-label {
    background-color: var(--dark-gray);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(131, 56, 236, 0.05) 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-subtitle .typewriter {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.hero-subtitle .typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--lighter-gray);
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.tech-badges {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.5s);
}

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

.tech-badge i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tech-badge span {
    font-weight: 600;
    color: var(--dark-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

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

/* ===== SECTION COMMON STYLES ===== */
section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 150px;
}

.exp-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.exp-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-intro p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about-intro strong {
    color: var(--primary-color);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.highlight-card {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

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

.highlight-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0;
}

.about-cta {
    margin-top: 40px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: var(--lighter-gray);
}

.tabs-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    background-color: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}

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

.tabs-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

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

.skill-info {
    flex: 1;
}

.skill-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-bar {
    flex: 1;
    height: 6px;
    background-color: var(--lighter-gray);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    position: relative;
}

.level-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-full);
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    to {
        width: var(--width);
    }
}

.level-text {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 500;
    min-width: 80px;
}

.skill-item p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.skills-cta {
    margin-top: 50px;
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.skills-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== PROJECTS SECTION ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 134, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-description {
    color: var(--medium-gray);
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: var(--lighter-gray);
    color: var(--dark-gray);
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-features {
    margin-bottom: 25px;
}

.project-features h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

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

.project-features li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.project-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 15px;
}

.projects-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--lighter-gray);
}

.projects-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: var(--lighter-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 15px;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.timeline-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.timeline-description {
    list-style: none;
    padding-left: 0;
}

.timeline-description li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
    color: var(--medium-gray);
}

.timeline-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    transition: var(--transition-normal);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-details p {
    color: var(--medium-gray);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--light-color);
}

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

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

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 10px;
}

.form-status {
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: none;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    display: block;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: right;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-note {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
    font-style: italic;
}

.footer-note i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay animations for staggered effect */
.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.3s; }

.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }

.timeline-item:nth-child(2) .timeline-content { animation-delay: 0.1s; }
.timeline-item:nth-child(3) .timeline-content { animation-delay: 0.2s; }
.timeline-item:nth-child(4) .timeline-content { animation-delay: 0.3s; }

.contact-card:nth-child(2) { animation-delay: 0.1s; }
.contact-card:nth-child(3) { animation-delay: 0.2s; }
.contact-card:nth-child(4) { animation-delay: 0.3s; }

.highlight-card:nth-child(2) { animation-delay: 0.1s; }
.highlight-card:nth-child(3) { animation-delay: 0.2s; }

.timeline-content {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate-timeline .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(1).animate-timeline .timeline-content { transition-delay: 0s; }
.timeline-item:nth-child(2).animate-timeline .timeline-content { transition-delay: 0.2s; }
.timeline-item:nth-child(3).animate-timeline .timeline-content { transition-delay: 0.4s; }
.timeline-item:nth-child(4).animate-timeline .timeline-content { transition-delay: 0.6s; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
    margin-right: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: transparent;
    border: 2px solid var(--lighter-gray);
    border-radius: var(--border-radius-md);
    color: var(--dark-gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

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

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

.lang-btn i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.lang-btn.active i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--dark-color);
}

.lang-option:hover {
    background-color: var(--lighter-gray);
}

.lang-flag {
    font-size: 1.2rem;
}

/* ===== LOADING STATES ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== MEDIA QUERIES - RESPONSIVE DESIGN ===== */

/* Tablettes et petits ordinateurs portables */
@media screen and (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Tablettes */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --header-height: 70px;
        --section-spacing: 60px;
    }
    
    /* NAVIGATION MOBILE */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
        border-radius: var(--border-radius-md);
        margin-bottom: 5px;
    }
    
    .nav-link:hover {
        background-color: rgba(58, 134, 255, 0.1);
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* HERO SECTION */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .tech-badges {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .tech-badge {
        animation-delay: calc(var(--delay) * 0.2s);
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    /* ABOUT SECTION */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        text-align: center;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .experience-card {
        right: 10px;
        bottom: -15px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    /* SKILLS SECTION */
    .tabs-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .tabs-content {
        padding: 25px;
    }
    
    .skills-cta {
        padding: 20px;
    }
    
    /* PROJECTS SECTION */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
    
    /* EXPERIENCE SECTION */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 11px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    /* CONTACT SECTION */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .submit-btn {
        width: 100%;
        text-align: center;
    }
    
    /* FOOTER */
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    /* LANGUAGE SWITCHER */
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .lang-dropdown {
        position: fixed;
        top: 70px;
        right: 20px;
        left: auto;
        min-width: 120px;
    }
    
    /* BACK TO TOP */
    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }
}

/* Mobiles (petits écrans) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --header-height: 60px;
        --section-spacing: 50px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* NAVIGATION */
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-title {
        font-size: 0.75rem;
    }
    
    /* HERO SECTION */
    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* SECTIONS GÉNÉRALES */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* ABOUT SECTION */
    .experience-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .highlight-card {
        padding: 20px 15px;
    }
    
    /* SKILLS SECTION */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        padding: 20px;
    }
    
    /* PROJECTS SECTION */
    .projects-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        margin-bottom: 5px;
        text-align: center;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    /* EXPERIENCE SECTION */
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .timeline-content {
        text-align: center;
    }
    
    .timeline-date {
        display: block;
        margin: 0 auto 15px;
    }
    
    /* CONTACT SECTION */
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .contact-link {
        word-break: break-all;
    }
    
    /* FOOTER */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tech-tags {
        justify-content: center;
    }
}

/* Très petits mobiles */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
}

/* Orientation paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        align-items: flex-start;
    }
    
    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ===== DARK THEME STYLES ===== */
.dark-theme {
    --dark-color: #f8fafc;
    --dark-gray: #e2e8f0;
    --medium-gray: #cbd5e0;
    --light-gray: #4a5568;
    --lighter-gray: #2d3748;
    --light-color: #1a202c;
    --white: #2d3748;
}

.dark-theme body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.dark-theme .navbar {
    background-color: rgba(45, 55, 72, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .nav-link {
    color: var(--dark-gray);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(58, 134, 255, 0.15);
}

.dark-theme .logo-name {
    color: var(--dark-gray);
}

.dark-theme .logo-title {
    color: var(--medium-gray);
}

.dark-theme .theme-label {
    background-color: var(--light-gray);
}

.dark-theme .btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
}

.dark-theme .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-theme .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-theme .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-theme .skills {
    background-color: var(--light-color);
}

.dark-theme .tabs-content,
.dark-theme .contact-form-container,
.dark-theme .skill-item,
.dark-theme .project-card,
.dark-theme .timeline-content,
.dark-theme .contact-card,
.dark-theme .highlight-card,
.dark-theme .skills-cta {
    background-color: var(--white);
    color: var(--dark-color);
}

.dark-theme .tech-tag {
    background-color: var(--lighter-gray);
    color: var(--dark-gray);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background-color: var(--light-color);
    border-color: var(--light-gray);
    color: var(--dark-color);
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.dark-theme .footer {
    background-color: #0f172a;
}

.dark-theme .menu-toggle .bar {
    background-color: var(--dark-gray);
}

.dark-theme .tab-btn {
    background-color: var(--white);
    border-color: var(--light-gray);
    color: var(--medium-gray);
}

.dark-theme .tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}

.dark-theme .tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-theme .filter-btn {
    background-color: var(--white);
    border-color: var(--light-gray);
    color: var(--medium-gray);
}

.dark-theme .filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}

.dark-theme .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-theme p {
    color: var(--medium-gray);
}

.dark-theme .section-title {
    color: var(--dark-color);
}

.dark-theme .hero-description {
    color: var(--dark-gray);
}

.dark-theme .stat-label {
    color: var(--medium-gray);
}

.dark-theme .project-description,
.dark-theme .project-features li,
.dark-theme .timeline-description li,
.dark-theme .contact-details p {
    color: var(--medium-gray);
}

.dark-theme .level-text {
    color: var(--medium-gray);
}

.dark-theme .skill-item p {
    color: var(--medium-gray);
}

.dark-theme .back-to-top {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-theme .back-to-top:hover {
    background-color: var(--primary-dark);
}

.dark-theme .experience-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.dark-theme .lang-btn {
    border-color: var(--light-gray);
    color: var(--dark-gray);
}

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

.dark-theme .lang-dropdown {
    background-color: var(--white);
}

.dark-theme .lang-option {
    color: var(--dark-color);
}

.dark-theme .lang-option:hover {
    background-color: var(--lighter-gray);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-actions,
    .contact-form-container,
    .footer,
    .back-to-top,
    .scroll-indicator,
    .theme-switch,
    .lang-switcher,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
    
    .btn {
        border: 1px solid black !important;
        background: none !important;
        color: black !important;
    }
    
    .project-image {
        max-height: 150px;
    }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}
/* Ajoutez ces styles à votre CSS existant */

/* Form Improvements */
.form-group {
    position: relative;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--success-color);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--danger-color);
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: var(--warning-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading animation for submit button */
@keyframes button-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading 0.8s linear infinite;
}

/* Success animation */
@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-animation {
    animation: success-pulse 0.5s ease;
}

/* Dark theme adjustments for form */
.dark-theme .form-group input:valid,
.dark-theme .form-group textarea:valid {
    border-color: var(--success-color);
}

.dark-theme .form-group input:invalid:not(:focus):not(:placeholder-shown),
.dark-theme .form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--danger-color);
}