/* ===== Variables CSS ===== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #6366f1;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #22c55e;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo i {
    color: var(--primary);
}

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

.nav-link {
    color: var(--gray-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--gray);
    border-radius: 5px;
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.lang-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray);
}

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

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

/* ===== Floating Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Animated Background Gradient ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, var(--dark), var(--dark-light), rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
    background: radial-gradient(ellipse at top right, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 30%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 30%);
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--gray-light);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: var(--transition);
}

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

/* Hero Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
}

/* Hero Profile Photo */
.hero-photo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.5),
                0 0 80px rgba(14, 165, 233, 0.3),
                inset 0 0 30px rgba(14, 165, 233, 0.2);
    position: relative;
    z-index: 2;
    animation: photoFloat 4s ease-in-out infinite;
}

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

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.photo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: ringRotate 10s linear infinite;
}

.photo-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

.photo-ring-2 {
    width: 280px;
    height: 280px;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.network-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.node {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--primary);
    animation: nodePulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.node i {
    animation: iconBounce 2s ease-in-out infinite;
}

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

.node-1 { top: 5%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 15%; left: 10%; animation-delay: 0.3s; }
.node-3 { top: 15%; right: 10%; animation-delay: 0.6s; }
.node-4 { bottom: 15%; left: 10%; animation-delay: 0.9s; }
.node-5 { bottom: 15%; right: 10%; animation-delay: 1.2s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px var(--primary); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px var(--primary), 0 0 60px rgba(14, 165, 233, 0.3); }
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    background: rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
        opacity: 0.7;
    }
    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 15px));
        opacity: 1;
    }
}

.connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.connection {
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.4;
    animation: lineGlow 2s ease-in-out infinite;
    stroke-dasharray: 5, 5;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.2; stroke-dashoffset: 0; }
    50% { opacity: 0.6; stroke-dashoffset: 10; }
}

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

.scroll-indicator i {
    color: var(--gray);
    font-size: 1.5rem;
}

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

/* ===== Section Title ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--dark-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-img-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-img-placeholder i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.8;
}

.about-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3),
                0 0 60px rgba(14, 165, 233, 0.2);
    border: 4px solid var(--primary);
    transition: all 0.4s ease;
    animation: imgFloat 5s ease-in-out infinite;
}

.about-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.4);
}

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

.about-text p {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== Skills Section ===== */
.skills {
    padding: 100px 0;
}

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

.skill-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

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

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25),
                0 0 0 1px rgba(14, 165, 233, 0.3);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon i {
    transform: scale(1.2) rotate(10deg);
    animation: iconWiggle 0.5s ease;
}

@keyframes iconWiggle {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.skill-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-list {
    margin-bottom: 20px;
}

.skill-list li {
    color: var(--gray-light);
    font-size: 0.9rem;
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

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

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

/* ===== Experience Section ===== */
.experience {
    padding: 100px 0;
    background: var(--dark-light);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

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

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--dark-light);
}

.timeline-content {
    background: var(--dark);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--gray-light);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
}

.timeline-content li::before {
    content: '>';
    position: absolute;
    left: -18px;
    color: var(--primary);
}

/* ===== Projects Section ===== */
.projects {
    padding: 100px 0;
}

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

.project-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2),
                0 0 60px rgba(14, 165, 233, 0.1);
}

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

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

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--gradient);
    transform: rotate(-5deg) scale(1.1);
}

.project-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon i {
    color: var(--white);
}

.project-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.project-tags span {
    background: var(--dark);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Certifications Section ===== */
.certifications {
    padding: 100px 0;
    background: var(--dark-light);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

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

.cert-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.cert-card p {
    color: var(--gray);
    font-size: 0.75rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--dark-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-item span {
    color: var(--gray-light);
}

.contact-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--dark-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--dark-light);
    padding: 40px;
    border-radius: 16px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

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

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

.footer-logo i {
    color: var(--primary);
}

.footer-content p {
    color: var(--gray);
}

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

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

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

/* ===== Certifications & Formation Extended ===== */
.subsection-title {
    font-size: 1.5rem;
    color: var(--white);
    margin: 40px 0 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
}

.subsection-title:first-of-type {
    margin-top: 0;
}

.cert-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.cert-card-large {
    padding: 35px 25px;
}

.cert-card-large .cert-logo {
    width: 80px;
    height: 80px;
}

.cert-card-large .cert-logo i {
    font-size: 2rem;
}

.cert-card-large h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.cert-card-large p {
    font-size: 0.9rem;
}

/* Formation Grid */
.formation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.formation-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.formation-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.formation-year {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.formation-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.formation-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
}

.language-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-name {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.language-level {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.language-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

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

/* Contact link style */
.contact-item a {
    color: var(--primary);
    transition: var(--transition);
}

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

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-light);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--gradient);
    width: 0;
    animation: loadProgress 1.5s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ===== Theme Toggle ===== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border: 1px solid var(--gray);
    border-radius: 50%;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

/* ===== Light Theme - Modern & Attractive ===== */
body.light-theme {
    --dark: #ffffff;
    --dark-light: #f8fafc;
    --gray: #64748b;
    --gray-light: #475569;
    --light: #1e293b;
    --white: #0f172a;
}

/* Navbar avec glassmorphism */
body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .preloader {
    background: #ffffff;
}

/* Hero section - Dégradé doux */
body.light-theme .hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%),
                radial-gradient(ellipse at top right, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

/* Sections alternées pour meilleur contraste */
body.light-theme .about,
body.light-theme .experience,
body.light-theme .certifications {
    background: #f8fafc;
}

body.light-theme .skills,
body.light-theme .projects,
body.light-theme .contact {
    background: #ffffff;
}

body.light-theme .testimonials {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Cards avec élévation moderne */
body.light-theme .skill-card,
body.light-theme .project-card,
body.light-theme .testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .skill-card:hover,
body.light-theme .project-card:hover,
body.light-theme .testimonial-card:hover {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2),
                0 0 0 1px rgba(14, 165, 233, 0.1);
    transform: translateY(-8px);
}

/* Titres et textes */
body.light-theme .skill-card h3,
body.light-theme .project-card h3,
body.light-theme .testimonial-card .author-info h4,
body.light-theme .section-title,
body.light-theme .subsection-title {
    color: #0f172a;
}

body.light-theme .skill-list li,
body.light-theme .project-card p,
body.light-theme .testimonial-content p {
    color: #475569;
}

/* Timeline colorée */
body.light-theme .timeline-content {
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .timeline-dot {
    background: var(--primary);
    border-color: #f8fafc;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* Certifications et formations */
body.light-theme .cert-card,
body.light-theme .formation-card,
body.light-theme .language-card {
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.light-theme .cert-card:hover,
body.light-theme .formation-card:hover {
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

/* Badges de projets avec fond coloré */
body.light-theme .project-tags span {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-weight: 600;
}

/* Contact form moderne */
body.light-theme .contact-form {
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #0f172a;
    transition: all 0.3s ease;
}

body.light-theme .contact-form input:focus,
body.light-theme .contact-form textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

body.light-theme .contact-form input::placeholder,
body.light-theme .contact-form textarea::placeholder {
    color: #94a3b8;
}

/* Contact items et social buttons */
body.light-theme .contact-item i {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

body.light-theme .social-btn,
body.light-theme .social-link {
    background: #f8fafc;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

body.light-theme .social-btn:hover,
body.light-theme .social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #ffffff;
}

/* Stats avec fond coloré */
body.light-theme .stat {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

body.light-theme .stat:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

/* Skill level bar */
body.light-theme .skill-level {
    background: #e2e8f0;
}

/* Footer contrasté même en mode clair */
body.light-theme .footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

body.light-theme .footer-logo,
body.light-theme .footer-content p,
body.light-theme .footer-links a {
    color: #e2e8f0;
}

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

/* Particules adaptées au mode clair */
body.light-theme .particle {
    background: var(--primary);
    opacity: 0.15;
}

/* Theme toggle icon */
body.light-theme .theme-toggle {
    background: #f8fafc;
    border-color: rgba(14, 165, 233, 0.2);
    color: #0f172a;
}

/* Amélioration des icônes de compétences */
body.light-theme .skill-icon {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

body.light-theme .project-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

body.light-theme .project-card:hover .project-icon {
    background: var(--gradient);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

/* Navigation links */
body.light-theme .nav-link {
    color: #475569;
}

body.light-theme .nav-link:hover {
    color: #0f172a;
}

/* Logo et textes navbar */
body.light-theme .logo {
    color: #0f172a;
}

body.light-theme .logo i {
    color: var(--primary);
}

/* Scroll progress */
body.light-theme .scroll-progress {
    background: var(--gradient);
}

/* Testimonials author */
body.light-theme .author-info span {
    color: #64748b;
}

/* Contact info text */
body.light-theme .contact-info h3 {
    color: #0f172a;
}

body.light-theme .contact-info > p {
    color: #475569;
}

body.light-theme .contact-item span {
    color: #475569;
}

/* About image */
body.light-theme .about-img {
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2),
                0 0 60px rgba(14, 165, 233, 0.15);
}

/* Language bar */
body.light-theme .language-bar {
    background: #e2e8f0;
}

/* Hamburger menu */
body.light-theme .bar {
    background: #0f172a;
}

body.light-theme .nav-menu {
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background: var(--dark);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(14, 165, 233, 0.1), transparent 30%);
    animation: rotateGlow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

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

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.testimonial-content {
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 15px;
}

.testimonial-content p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 3px;
}

.author-info span {
    color: var(--gray);
    font-size: 0.85rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-prev,
.testimonial-next {
    width: 45px;
    height: 45px;
    background: var(--dark-light);
    border: 1px solid var(--gray);
    border-radius: 50%;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
}

.testimonials-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.testimonials-dots .dot.active,
.testimonials-dots .dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== Typing Effect ===== */
.hero-role {
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 5px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

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

/* ===== Responsive Design ===== */

/* Large Desktop (1440px+) - Optimisation pour grands écrans */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

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

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

/* Tablettes & Petits Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    /* Ajustements des grilles */
    .skills-grid,
    .projects-grid,
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* Hero Section */
    .hero {
        padding: 80px 20px 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

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

    .hero-role {
        font-size: 1.3rem;
    }

    .image-wrapper {
        width: 350px;
        height: 350px;
    }

    .hero-photo {
        width: 160px;
        height: 160px;
    }

    .photo-glow {
        width: 180px;
        height: 180px;
    }

    .photo-ring {
        width: 200px;
        height: 200px;
    }

    .photo-ring-2 {
        width: 240px;
        height: 240px;
    }

    .node {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .floating-icons {
        display: none;
    }

    .hero-description {
        margin: 0 auto 30px;
        max-width: 600px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-socials {
        justify-content: center;
    }

    /* Sections */
    .about-content {
        gap: 40px;
    }

    /* Réduire l'espacement des sections */
    section {
        padding: 80px 0;
    }

    .about,
    .skills,
    .experience,
    .projects,
    .certifications,
    .testimonials,
    .contact {
        padding: 80px 0;
    }
}

/* Mobile & Petites Tablettes (jusqu'à 768px) */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 30px 20px;
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-controls {
        gap: 10px;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 100px 15px 50px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 30px;
    }

    /* Grilles Mobile - 1 colonne */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-img {
        width: 250px;
        height: 250px;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat {
        flex: 1;
        min-width: 140px;
    }

    .skills-grid,
    .projects-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Testimonials Navigation Mobile */
    .testimonial-prev,
    .testimonial-next {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Certifications Mobile */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cert-grid-2 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .formation-grid,
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Titres Mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .subsection-title {
        font-size: 1.3rem;
        margin: 30px 0 20px;
    }

    /* Hero Image Mobile */
    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-photo {
        width: 130px;
        height: 130px;
    }

    .photo-glow {
        width: 150px;
        height: 150px;
    }

    .photo-ring {
        width: 170px;
        height: 170px;
    }

    .photo-ring-2 {
        width: 200px;
        height: 200px;
    }

    .node {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    /* Désactiver les particules sur mobile */
    .particles {
        display: none;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Sections Mobile - Réduire l'espacement */
    .about,
    .skills,
    .experience,
    .projects,
    .certifications,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    /* Timeline Mobile */
    .timeline {
        padding-left: 10px;
    }

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

    /* Cards Mobile - Améliorer l'espacement */
    .skill-card,
    .project-card,
    .testimonial-card {
        padding: 25px 20px;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

/* Petits Mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .lang-switcher {
        margin-right: 10px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Hero Section Petits Mobiles */
    .hero {
        padding: 90px 15px 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

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

    .hero-role {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-socials {
        gap: 12px;
    }

    .social-link,
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat {
        width: 100%;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Hero Image Petits Mobiles */
    .image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-photo {
        width: 100px;
        height: 100px;
        border: 3px solid var(--primary);
    }

    .photo-glow {
        width: 120px;
        height: 120px;
    }

    .photo-ring,
    .photo-ring-2 {
        display: none;
    }

    .node {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    /* Titres */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .subsection-title {
        font-size: 1.1rem;
        margin: 25px 0 15px;
        padding-left: 12px;
    }

    /* Cards */
    .skill-card,
    .project-card,
    .testimonial-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .skill-card h3,
    .project-card h3 {
        font-size: 1.1rem;
    }

    .skill-list li,
    .project-card p {
        font-size: 0.85rem;
    }

    .skill-icon,
    .project-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .skill-icon i,
    .project-icon i {
        font-size: 1.5rem;
    }

    /* Project Tags */
    .project-tags {
        gap: 6px;
    }

    .project-tags span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    /* Timeline */
    .timeline::before {
        width: 3px;
    }

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

    .timeline-dot {
        width: 16px;
        height: 16px;
        left: -7px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 20px 15px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .timeline-content li {
        font-size: 0.85rem;
    }

    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cert-grid-2 {
        grid-template-columns: 1fr;
    }

    .cert-card {
        padding: 20px 15px;
    }

    .cert-logo {
        width: 50px;
        height: 50px;
    }

    .cert-logo i {
        font-size: 1.3rem;
    }

    /* Formation */
    .formation-card {
        padding: 20px 15px;
    }

    .formation-card h3 {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form {
        padding: 25px 15px;
    }

    .contact-item {
        flex-direction: row;
        gap: 12px;
        padding: 12px 0;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

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

    .contact-info h3 {
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-content p {
        font-size: 0.9rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-avatar i {
        font-size: 1rem;
    }

    .author-info h4 {
        font-size: 0.9rem;
    }

    .author-info span {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    /* Sections Petits Mobiles */
    .about,
    .skills,
    .experience,
    .projects,
    .certifications,
    .testimonials,
    .contact {
        padding: 50px 0;
    }

    /* Amélioration du scroll */
    html {
        scroll-padding-top: 80px;
    }
}

/* ===== Media Queries Spécifiques pour Tablettes ===== */

/* Tablettes en mode Portrait (768px - 1024px en hauteur) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-content {
        gap: 50px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-img {
        margin: 0 auto;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablettes en mode Paysage */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: left;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-socials {
        justify-content: flex-start;
    }

    .hero-description {
        margin: 0 0 30px 0;
    }
}

/* Mobile en mode Paysage (jusqu'à 768px en hauteur) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: left;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-photo {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }

    .btn {
        width: auto;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-socials {
        justify-content: flex-start;
    }

    .about,
    .skills,
    .experience,
    .projects,
    .certifications,
    .testimonials,
    .contact {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Améliorer les zones de touche sur mobile */
    .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .btn {
        min-height: 48px; /* Taille minimale recommandée pour touch */
    }

    .social-link,
    .social-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .lang-btn {
        min-height: 36px;
        min-width: 44px;
    }

    /* Désactiver les effets hover sur tactile */
    .skill-card:hover,
    .project-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .skill-card:active,
    .project-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hamburger,
    .theme-toggle,
    .scroll-progress,
    .particles,
    .preloader,
    .scroll-indicator,
    .hero-buttons,
    .contact-form {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .about,
    .skills,
    .experience,
    .projects,
    .certifications,
    .contact {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .section-title {
        color: black;
        page-break-after: avoid;
    }
}
