/* ==========================================
   FONTS & VARIABLES
   ========================================== */
@font-face {
    font-family: 'Manrope-bold';
    src: url('fonts/Manrope-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Manrope-ExtraBold';
    src: url('fonts/Manrope-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Manrope-regular';
    src: url('fonts/Manrope-Regular.ttf') format('truetype');
}

:root {
    /* Colors - Plus sobres et apaisantes */
    --primary-color: #6B9FE8;
    --secondary-color: #8BB5F0;
    --accent-color: #A8CCF5;
    --success-color: #6AC4A0;

    /* Gradients - Plus doux */
    --gradient-primary: linear-gradient(135deg, #6B9FE8 0%, #8BB5F0 50%, #A8CCF5 100%);
    --gradient-glow: linear-gradient(135deg, rgba(107, 159, 232, 0.15) 0%, rgba(139, 181, 240, 0.15) 50%, rgba(168, 204, 245, 0.15) 100%);

    /* Dark Theme - Moins foncé, plus doux */
    --bg-primary: #1A1F36;
    --bg-secondary: #232946;
    --bg-card: rgba(35, 41, 70, 0.5);

    /* Text - Meilleur contraste */
    --text-primary: #EAEEF6;
    --text-secondary: #B8C5D9;
    --text-muted: #8796AC;

    /* Fonts */
    --font-heading: 'Manrope-ExtraBold', sans-serif;
    --font-body: 'Manrope-regular', sans-serif;
    --font-bold: 'Manrope-bold', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max-width: 1200px;

    /* Effects - Plus subtils */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(107, 159, 232, 0.2);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================
   PARTICLES BACKGROUND
   ========================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0;
    transition: width 0.1s ease;
}

/* ==========================================
   CONTAINER & SECTIONS
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

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

/* ==========================================
   GLASS CARD EFFECT
   ========================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(107, 159, 232, 0.8) 0%, rgba(139, 181, 240, 0.8) 50%, rgba(168, 204, 245, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 159, 232, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 159, 232, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: pulse 2s ease infinite;
}

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

.badge-icon {
    animation: rotate 3s linear infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

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

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(40px);
    animation: glow-pulse 3s ease infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    animation: float-around 10s ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-icon:nth-child(1) { top: 10%; left: 10%; }
.float-icon:nth-child(2) { top: 10%; right: 10%; }
.float-icon:nth-child(3) { bottom: 10%; left: 10%; }
.float-icon:nth-child(4) { bottom: 10%; right: 10%; }

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(0, -20px) rotate(180deg); }
    75% { transform: translate(-10px, -10px) rotate(270deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    animation: bounce 2s ease infinite;
}

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

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding: 5px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce-icon 2s ease infinite;
}

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

.about-card h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.full-width {
    grid-column: span 1;
}

.soft-skills-card {
    grid-column: span 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2rem;
}

.category-header h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
}

/* Tech Logos Grid - Refonte Moderne */
.tech-logos-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}


.tech-logo-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(107, 159, 232, 0.04) 0%, rgba(139, 181, 240, 0.04) 100%);
    border: 1px solid rgba(107, 159, 232, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 160px;
    overflow: hidden;
}

.tech-logo-item:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(107, 159, 232, 0.08) 0%, rgba(139, 181, 240, 0.08) 100%);
    border-color: rgba(107, 159, 232, 0.3);
    box-shadow: 0 4px 16px rgba(107, 159, 232, 0.1);
}

.tech-logo-item::after {
    content: 'Cliquer pour plus d\'infos';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(107, 159, 232, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 600;
}

.tech-logo-item:hover::after {
    opacity: 1;
}

.tech-logo-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.tech-logo-item:hover img {
    transform: scale(1.08);
}

.tech-logo-item span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Soft Skills Grid - Refonte Moderne */
.soft-skills-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.soft-skill-item {
    position: relative;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(106, 196, 160, 0.04) 0%, rgba(106, 196, 160, 0.04) 100%);
    border: 1px solid rgba(106, 196, 160, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.soft-skill-item:hover {
    background: linear-gradient(135deg, rgba(106, 196, 160, 0.08) 0%, rgba(106, 196, 160, 0.08) 100%);
    transform: translateY(-6px);
    border-color: rgba(106, 196, 160, 0.3);
    box-shadow: 0 4px 16px rgba(106, 196, 160, 0.1);
}

.soft-skill-item .soft-skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.soft-skill-item:hover .soft-skill-icon {
    transform: scale(1.1);
}

.soft-skill-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.project-card {
    border-color: var(--project-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.harmonith-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    margin: auto;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 31, 54, 0.95) 0%,
        rgba(26, 31, 54, 0.85) 100%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15),
                0 0 0 3px var(--project-primary);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    pointer-events: none;
    background: linear-gradient(135deg, var(--project-primary) 0%, var(--project-secondary) 50%, var(--project-accent) 100%);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-content h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--project-primary), var(--project-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: color-mix(in srgb, var(--project-primary, #6366F1) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--project-primary, #6366F1) 30%, transparent);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--project-primary, #6366F1);
}

.tech-showcase {
    grid-column: span 2;
    padding: 3rem 2rem;
}

.tech-showcase h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.marquee {
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.logo-item img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* ==========================================
   EXPERIENCE / TIMELINE SECTION
   ========================================== */
.timeline-container {
    display: grid;
    gap: 4rem;
}

.timeline-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-bold);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.timeline-icon {
    font-size: 2rem;
}

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 159, 232, 0.3);
    box-shadow: 0 4px 12px rgba(107, 159, 232, 0.08);
}

.timeline-item h4 {
    font-family: var(--font-bold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-item .period {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item .location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-item .description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-hint {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-hint {
    opacity: 1;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(107, 159, 232, 0.08);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.contact-card h3 {
    font-family: var(--font-bold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-top: 0;
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .name {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

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

    .tech-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .tech-logo-item {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }

    .tech-logo-item img {
        width: 55px;
        height: 55px;
    }

    .tech-logo-item span {
        font-size: 0.9rem;
    }

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

    .tech-showcase {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        padding-top: 120px;
    }

    .hero-visual {
        margin-top: 0;
    }

    .avatar-container {
        width: 220px;
        height: 220px;
    }

    .float-icon {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .name {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 110px;
    }

    .avatar-container {
        width: 180px;
        height: 180px;
    }

    .float-icon {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tech-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .tech-logo-item {
        padding: 1.2rem 0.8rem;
        min-height: 130px;
    }

    .tech-logo-item img {
        width: 50px;
        height: 50px;
    }

    .tech-logo-item span {
        font-size: 0.85rem;
    }

    .tech-logo-item::after {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

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

    .soft-skill-item {
        padding: 1.5rem 1.2rem;
    }

    .soft-skill-item .soft-skill-icon {
        font-size: 2.5rem;
    }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */
.fade-in {
    animation: fadeIn 1s ease;
}

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

.slide-in-left {
    animation: slideInLeft 1s ease;
}

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

.slide-in-right {
    animation: slideInRight 1s ease;
}

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

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ==========================================
   FLIP CARD MODAL EFFECT
   ========================================== */

/* Modal Overlay */
.flip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Flip Card Container */
.flip-card-container {
    width: 500px;
    height: 600px;
    perspective: 1500px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.flip-modal-overlay.active .flip-card-container {
    transform: scale(1);
    opacity: 1;
}

/* Flip Card Inner */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Card Faces (Front & Back) */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(107, 159, 232, 0.15);
}

/* Front Face */
.flip-card-front {
    background: linear-gradient(135deg, rgba(107, 159, 232, 0.08) 0%, rgba(139, 181, 240, 0.08) 100%);
}

.flip-card-front img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 20px rgba(107, 159, 232, 0.3));
}

.flip-card-front h3 {
    font-family: var(--font-bold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.flip-card-front p {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.flip-card-front .flip-hint {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(107, 159, 232, 0.15);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    animation: pulse-hint 2s ease infinite;
}

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

/* Back Face */
.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(107, 159, 232, 0.1) 0%, rgba(139, 181, 240, 0.1) 100%);
    text-align: left;
    justify-content: flex-start;
    overflow-y: auto;
}

.flip-card-back h3 {
    font-family: var(--font-bold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.flip-card-back .level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.flip-card-back .experience {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.flip-card-back .description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.flip-card-back .detail-list {
    list-style: none;
    padding: 0;
}

.flip-card-back .detail-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flip-card-back .detail-list li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Close Button */
.flip-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.flip-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
    transform: rotate(90deg);
}

.flip-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

/* Enhanced Tech Logo Item for Click */
.tech-logo-item {
    cursor: pointer;
    position: relative;
}

.tech-logo-item::after {
    content: 'Cliquer pour plus d\'infos';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tech-logo-item:hover::after {
    opacity: 1;
}

/* Responsive Flip Card */
@media (max-width: 768px) {
    .flip-card-container {
        width: 90%;
        max-width: 400px;
        height: 550px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 2rem;
    }

    .flip-card-front img {
        width: 100px;
        height: 100px;
    }

    .flip-card-front h3 {
        font-size: 2rem;
    }

    .flip-card-back h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .flip-card-container {
        width: 95%;
        height: 500px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem;
    }

    .flip-card-front img {
        width: 80px;
        height: 80px;
    }

    .flip-card-front h3 {
        font-size: 1.8rem;
    }

    .flip-card-back h3 {
        font-size: 1.3rem;
    }

    .flip-card-back .description {
        font-size: 0.95rem;
    }
}

/* ==========================================
   SOFT SKILLS FLIP CARDS
   ========================================== */

/* Enhanced Soft Skill Item */
.soft-skill-item {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.soft-skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

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

.soft-skill-item::after {
    content: 'Cliquer pour en savoir plus';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(106, 196, 160, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 600;
}

.soft-skill-item:hover::after {
    opacity: 1;
}

/* Soft Skill Flip Card Variations */
.flip-card-container.soft-skill-card .flip-card-front {
    background: linear-gradient(135deg, rgba(106, 196, 160, 0.08) 0%, rgba(106, 196, 160, 0.08) 100%);
}

.flip-card-container.soft-skill-card .flip-card-back {
    background: linear-gradient(135deg, rgba(106, 196, 160, 0.1) 0%, rgba(106, 196, 160, 0.1) 100%);
}

.flip-card-container.soft-skill-card .flip-card-front,
.flip-card-container.soft-skill-card .flip-card-back {
    box-shadow: 0 8px 24px rgba(106, 196, 160, 0.12);
}

.flip-card-container.soft-skill-card .flip-card-front .skill-icon-large {
    font-size: 8rem;
    margin-bottom: 1rem;
    animation: float-icon 3s ease-in-out infinite;
}

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

.flip-card-container.soft-skill-card .flip-card-front .flip-hint {
    background: rgba(106, 196, 160, 0.15);
    border-color: var(--success-color);
    color: var(--success-color);
}

.flip-card-container.soft-skill-card .flip-card-back .level-badge {
    background: linear-gradient(135deg, #6AC4A0 0%, #6AC4A0 100%);
}

.flip-card-container.soft-skill-card .flip-card-back .experience {
    color: var(--success-color);
}

/* Examples List in Soft Skills */
.flip-card-back .examples-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.flip-card-back .examples-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    line-height: 1.6;
}

.flip-card-back .examples-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.flip-card-back .examples-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Experience Card Variations */
.flip-card-container.experience-card .flip-card-front {
    background: rgba(107, 159, 232, 0.03);
}

.flip-card-container.experience-card .flip-card-back {
    background: rgba(107, 159, 232, 0.05);
}

.flip-card-container.experience-card .flip-card-front,
.flip-card-container.experience-card .flip-card-back {
    box-shadow: 0 4px 12px rgba(107, 159, 232, 0.08);
}

.flip-card-container.experience-card .flip-hint {
    background: rgba(107, 159, 232, 0.15);
    border-color: #6B9FE8;
    color: #6B9FE8;
}

/* Formation Card Variations */
.flip-card-container.formation-card .flip-card-front {
    background: rgba(107, 159, 232, 0.03);
}

.flip-card-container.formation-card .flip-card-back {
    background: rgba(107, 159, 232, 0.05);
}

.flip-card-container.formation-card .flip-card-front,
.flip-card-container.formation-card .flip-card-back {
    box-shadow: 0 4px 12px rgba(107, 159, 232, 0.08);
}

.flip-card-container.formation-card .flip-hint {
    background: rgba(107, 159, 232, 0.15);
    border-color: #6B9FE8;
    color: #6B9FE8;
}

/* Location Badge */
.flip-card-back .location-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Status Badge */
.flip-card-back .status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

/* Achievements & Modules Lists */
.flip-card-back .achievements-list li:before,
.flip-card-back .modules-list li:before {
    content: '🏆';
}

.flip-card-back .modules-list li:before {
    content: '📚';
}

/* Tech Tags in Modal */
.flip-card-back .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.flip-card-back .tech-tags .tag {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.flip-card-back .tech-tags .tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   MICRO-INTERACTIONS & MODERN ANIMATIONS
   ========================================== */

/* Smooth Image Loading */
.tech-logo-item img,
.project-image img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Enhanced Hover Effects for Interactive Cards */
.tech-logo-item,
.soft-skill-item,
.timeline-item {
    transition: all 0.3s ease;
}

/* Ripple Effect on Click */
.btn,
.project-link,
.contact-card {
    position: relative;
    overflow: hidden;
}

.btn::after,
.project-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after,
.project-link:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth Scroll Progress Indicator */
.progress-bar {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Enhanced Badge Animations */
.hero-badge {
    animation: pulse 2s ease infinite, slideInDown 0.8s ease;
}

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

/* Magnetic Button Effect */
@media (hover: hover) {
    .btn-primary {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-primary:hover {
        animation: magnetic 0.3s ease;
    }
}

@keyframes magnetic {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Staggered Fade In for Lists */
.timeline-item,
.project-card {
    animation: staggerFadeIn 0.6s ease backwards;
}

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

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

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Color Transition for Links */
.nav-link,
.footer-links a,
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Flip Card Animation */
.flip-card-inner {
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Backdrop Blur Enhancement */
.flip-modal-overlay.active {
    backdrop-filter: blur(12px) saturate(180%);
}

/* Icon Bounce on Load */
.soft-skill-icon {
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Glowing Text Effect */
.gradient-text {
    animation: gradient-shift 3s ease infinite, textGlow 2s ease infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.8));
    }
}

/* Tag Hover Effect */
.tag {
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Back to Top Button Pulse */
.back-to-top.visible {
    animation: fadeInUp 0.5s ease, pulse-slow 3s ease infinite 2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

/* Smooth Underline Animation */
.nav-link::after {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Enhanced Project Overlay */
.project-overlay {
    backdrop-filter: blur(8px);
}

/* Level Badge Shine Effect */
.level-badge {
    position: relative;
    overflow: hidden;
}

.level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* Animated borders for mobile only */
@media (max-width: 1023px) {
    @property --angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }

    @keyframes rotateBorder {
        0% {
            --angle: 0deg;
        }
        100% {
            --angle: 360deg;
        }
    }

    .skill-category::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 20px;
        padding: 2px;
        background: conic-gradient(
            from var(--angle),
            transparent 0%,
            rgba(107, 159, 232, 0.6) 15%,
            rgba(139, 181, 240, 0.8) 25%,
            rgba(168, 204, 245, 0.6) 35%,
            transparent 50%,
            transparent 100%
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: rotateBorder 4s linear infinite;
        pointer-events: none;
        z-index: -1;
    }
}

/* ==========================================
   LOGIN MODAL
   ========================================== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.login-modal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.login-modal-close svg {
    width: 24px;
    height: 24px;
}

.login-modal-content {
    text-align: center;
}

.login-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

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

.login-modal h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-modal p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

.credentials-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.credential-item {
    margin-bottom: 20px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    font-family: var(--font-bold);
}

.credential-value {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(107, 159, 232, 0.1);
    border: 1px solid rgba(107, 159, 232, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
}

.credential-value span {
    flex: 1;
    color: var(--text-primary);
    font-family: var(--font-bold);
    font-size: 16px;
}

.copy-btn {
    background: rgba(107, 159, 232, 0.2);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(107, 159, 232, 0.3);
    transform: scale(1.1);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.open-project-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-bold);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(107, 159, 232, 0.4);
}

.open-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 159, 232, 0.5);
}

.open-project-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-modal {
        padding: 30px 20px;
    }

    .login-modal h2 {
        font-size: 24px;
    }

    .login-modal-icon {
        font-size: 48px;
    }

    .credentials-container {
        padding: 20px;
    }

    .credential-value {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .credential-value span {
        word-break: break-all;
        font-size: 14px;
    }

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

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
