/* 
* Mehdi Challouf - Portfolio
* CSS principal
*/

/* ======= VARIABLES ======= */
:root {
    --accent: #DBFF00;
    --accent-rgb: 219, 255, 0;
    --accent-darker: #b3d500;
    --dark: #121212;
    --dark-lighter: #1A1A1A;
    --dark-card: #222222;
    --text: #ffffff;
    --text-secondary: #A0A0A0;
    --border-light: rgba(255, 255, 255, 0.05);
    --success: #00E577;
    --info: #2196F3;
    --warning: #FF9800;
    --danger: #FF5252;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ======= RESET & BASE STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

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

ul, ol {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

.w-100 {
    width: 100%;
}

.accent-text {
    color: var(--accent);
}

/* ======= LAYOUT ======= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

p {
    margin-bottom: 15px;
}

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

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--accent-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

/* ======= LOADER ======= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--dark-lighter);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background-color: var(--accent);
    border-radius: 2px;
}

/* ======= CURSOR ======= */
.cursor-dot,
.cursor-follower {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%); /* Center both cursor elements */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    transition: transform 0.1s ease;
    margin: 0; /* Remove any default margins */
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background-color: rgba(var(--accent-rgb), 0.2);
    border: 1px solid var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    margin: 0; /* Remove any default margins */
}

.cursor-dot.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--accent-rgb), 0.1);
    transform: translate(-50%, -50%);
}

@media (hover: none) {
    .cursor-dot,
    .cursor-follower {
        display: none;
    }
}

/* ======= ANIMATED BACKGROUND GRID ======= */
.animated-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    perspective: 1000px;
}

.animated-grid::before {
    content: '';
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background-image: 
        linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, transparent 70%);
    transform-origin: center;
    transition: transform 0.3s ease-out;
    will-change: transform;
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.05) inset;
}

.animated-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        var(--dark) 90%
    );
    pointer-events: none;
}

/* ======= HEADER & NAVIGATION ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 1rem 0;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.hide {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.logo-accent {
    color: var(--accent);
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    position: relative;
}

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

.nav-link.active {
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.theme-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-card);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: rotate(90deg);
}

.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.mobile-menu-link i {
    font-size: 1.1rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
}

.mobile-menu-link:hover i,
.mobile-menu-link.active i {
    color: var(--accent);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-pdf-btn-mobile {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
    padding: 0.7rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.download-pdf-btn-mobile i {
    color: var(--accent);
    font-size: 1rem;
}

.download-pdf-btn-mobile:hover {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.2);
}

.download-pdf-btn-mobile:hover i {
    color: var(--dark);
}

.mobile-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mobile-social .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-social .social-link:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .mobile-menu {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .mobile-menu-link {
        font-size: 1rem;
        padding: 0.6rem 0.75rem;
    }
    
    .mobile-social .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Add backdrop for mobile menu */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Side Menu (Dots) */
.side-menu {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin: 12px 0;
    cursor: pointer;
    position: relative;
}

.menu-dot.active, .menu-dot:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

.dot-tooltip {
    position: absolute;
    top: 0;
    right: 20px;
    background-color: var(--dark-card);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-dot:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ======= HERO SECTION ======= */
/* Modern Hero Section */
.hero::before {
    content: none; /* Remove original grid background */
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.15), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(var(--accent-rgb), 0.1), transparent 40%);
    z-index: 0;
    opacity: 0.5;
}

.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.profile-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
    width: 140px;
    height: 140px;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(45deg, 
        rgba(var(--accent-rgb), 0.2),
        rgba(var(--accent-rgb), 0.1),
        rgba(var(--accent-rgb), 0.05)
    );
    border-radius: 50%;
    z-index: 0;
    animation: rotateBubble 10s linear infinite;
}

.profile-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--dark);
    border-radius: 50%;
    z-index: 0;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--dark-card);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(var(--accent-rgb), 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.1);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-tag {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
    background: linear-gradient(45deg, var(--text), rgba(var(--accent-rgb), 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
    opacity: 0.9;
}

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

.connect-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent-darker));
    color: var(--dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.hero-stats {
    display: none;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container:hover {
    transform: rotate(0deg);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(var(--accent-rgb), 0.2), transparent 70%);
}

.experience-bubble {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    width: 120px;
    height: 120px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3);
}

.bubble-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.bubble-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.25rem;
}

/* Scroll Down Button */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: var(--accent);
    transform: translateX(-50%) translateY(-5px);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: currentColor;
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

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

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

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

/* ======= ABOUT SECTION ======= */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0 2rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.about-card-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.about-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem;
    background: var(--dark-lighter);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-weight: 500;
    color: var(--text);
}

.language-level {
    font-size: 0.9rem;
    color: var(--accent);
}

.language-bar {
    height: 6px;
    background: var(--dark-lighter);
    border-radius: 3px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 1s ease;
}

.education-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem;
    border-radius: 8px;
    background: var(--dark-lighter);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.edu-year {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.edu-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.edu-title {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.edu-place {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text);
}

.skill-bar {
    height: 6px;
    background: var(--dark-lighter);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 1s ease;
}

@media (max-width: 1200px) {
    .about-cards-grid {
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .about-content {
        padding: 0.5rem 0 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .info-item, .education-item {
        padding: 0.6rem;
    }
}

/* Fix for sections problématiques */
/* Correctif pour forcer l'opacité à 1 sur tous les éléments de la section à propos */
.about-content *,
.about-cards-grid *,
.about-card *,
.about-card-content *,
.info-item,
.info-label,
.info-value,
.language-item,
.language-name,
.language-level,
.language-bar,
.language-progress,
.education-item,
.edu-year,
.edu-title,
.edu-place,
.skill-item,
.skill-name,
.skill-bar,
.skill-progress {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ======= SERVICES SECTION ======= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.service-card {
    background-color: var(--dark-card);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 30px;
    background-color: var(--accent);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 50%;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: rgba(var(--accent-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background-color: var(--accent);
    color: var(--dark);
}

.service-icon i {
    font-size: 28px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--dark);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.service-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technical Skills */
.tech-skills {
    margin-top: 60px;
}

.tech-skills-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tech-skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

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

.tech-skill {
    text-align: center;
    transition: all 0.3s ease;
}

.tech-skill:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.tech-skill:hover .tech-icon {
    background-color: rgba(var(--accent-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

.tech-icon i {
    font-size: 30px;
    color: var(--accent);
}

.tech-name {
    font-size: 14px;
    font-weight: 500;
}

/* ======= EXPERIENCE SECTION ======= */
.experience-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    margin-top: 60px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    height: 100%;
    background-color: var(--border-light);
    z-index: -1;
}

.experience-item {
    display: flex;
    gap: 30px;
}

.experience-dot {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: var(--dark-lighter);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.experience-content {
    background-color: var(--dark-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.experience-date {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.experience-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.experience-company {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.experience-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--dark-lighter);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.experience-content:hover .experience-tag {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.experience-description {
    margin-top: 16px;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.experience-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
}

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

.filter-btn {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 280px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
    filter: brightness(0.95);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--dark), 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-link {
    width: 55px;
    height: 55px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 20px;
    transform: translateY(30px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.3);
}

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

.project-card:hover .project-link {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.project-link:hover {
    transform: translateY(0) scale(1.1);
    background-color: var(--accent-darker);
    box-shadow: 0 15px 25px rgba(var(--accent-rgb), 0.4);
}

.project-info {
    padding: 20px;
    background-color: var(--dark-card);
    position: relative;
    z-index: 2;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border-light);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(-5px);
}

.project-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 18px;
}

.project-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
    font-weight: 600;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.projects-more {
    text-align: center;
    margin-top: 50px;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
    background-color: var(--dark-lighter);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 10px;
}

.testimonial-card {
    background-color: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border-light);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(var(--accent-rgb), 0.1);
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-lighter);
    color: var(--accent);
}

.author-image i {
    font-size: 2.5rem;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.testimonial-arrow:hover {
    background-color: var(--accent);
    color: var(--dark);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--dark-card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent);
}

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

.contact-info {
    background-color: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
    border: 1px solid var(--border-light);
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--accent-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.contact-form-container {
    background-color: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-light);
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--dark-lighter);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
}

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

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

.form-success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 229, 119, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    color: var(--success);
    font-size: 0.9rem;
    text-align: center;
}

.contact-form button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.contact-form button:hover::before {
    left: 100%;
}

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

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

.footer-logo {
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-menu li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-menu a, .footer-contact li {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

/* ======= RESPONSIVE ======= */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-content {
        gap: 3rem;
    }
    
    .profile-image-container {
        max-width: 420px;
    }
    
    .experience-bubble {
        width: 100px;
        height: 100px;
        right: -0.5rem;
    }
    
    .bubble-value {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .about-content,
    .contact-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 7rem 0 4rem;
        text-align: center;
    }

    .hero-content {
        padding: 0 20px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .profile-image-container {
        max-width: 380px;
        margin: 0 auto;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text {
        padding-right: 0;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .hero {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-image-container {
        max-width: 320px;
        border-radius: 20px;
    }
    
    .experience-bubble {
        width: 90px;
        height: 90px;
        bottom: 1.5rem;
        right: -0.5rem;
    }
    
    .bubble-value {
        font-size: 1.75rem;
    }
    
    .bubble-text {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 32px;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-form-container,
    .contact-info {
        padding: 30px;
    }

    .footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .profile-image-container {
        width: 100px;
        height: 100px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .services-grid,
    .projects-grid {
        gap: 20px;
    }

    .service-card,
    .project-card {
        padding: 20px;
    }

    .experience-item {
        flex-direction: column;
        gap: 15px;
    }

    .experience-dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .experience-content {
        padding: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Fix for mobile menu backdrop */
.mobile-menu-backdrop {
    z-index: 998;
}

.mobile-menu {
    z-index: 999;
}

/* Fix for sticky header */
.header.sticky {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fix for container padding */
.container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

/* Fix for iOS notch */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

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

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.download-pdf-btn {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.download-pdf-btn i {
    color: var(--accent);
    font-size: 1rem;
}

.download-pdf-btn:hover {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.2);
}

.download-pdf-btn:hover i {
    color: var(--dark);
}

@media (max-width: 768px) {
    .download-pdf-btn {
        display: none;
    }
}

.pdf-success-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(20, 20, 20, 0.9);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    color: white;
}

.notification-content i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pdf-success-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 12px 15px;
    }
}