@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 8s ease-in-out infinite;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.6;
}

.orb:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.orb:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: var(--glass);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 80%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-content {
    animation: heroSlideIn 1.5s ease;
}

.hero-visual {
    position: relative;
    animation: heroFadeIn 2s ease 0.5s both;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: typewriter 3s steps(30) 1s both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent);
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* 3D Code Visual */
.code-visual {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transform-style: preserve-3d;
    animation: codeFloat 6s ease-in-out infinite;
}

@keyframes codeFloat {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(5deg) rotateX(2deg); }
    50% { transform: rotateY(0deg) rotateX(5deg); }
    75% { transform: rotateY(-5deg) rotateX(2deg); }
}

.code-lines {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    opacity: 0;
    animation: codeLine 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 2s; color: var(--accent); }
.code-line:nth-child(2) { animation-delay: 2.2s; color: var(--primary); }
.code-line:nth-child(3) { animation-delay: 2.4s; color: var(--secondary); }
.code-line:nth-child(4) { animation-delay: 2.6s; color: #10b981; }
.code-line:nth-child(5) { animation-delay: 2.8s; color: #f59e0b; }
.code-line:nth-child(6) { animation-delay: 3s; color: var(--accent); }
.code-line:nth-child(7) { animation-delay: 3.2s; color: var(--primary); }

@keyframes codeLine {
    to { opacity: 1; }
}

/* Personal Info Styles */
.personal-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.personal-info p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.personal-info i {
    color: var(--accent);
    width: 20px;
}

/* Glass morphism sections */
.glass-section {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8)); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 3px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 1); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    animation: slideInLeft 1s ease;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: statPop 1s ease forwards;
    transform: scale(0);
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes statPop {
    to { transform: scale(1); }
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: skillFloat 1s ease forwards;
    transform: translateY(100px);
    opacity: 0;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }

@keyframes skillFloat {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.skill-category::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.6s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-15px) rotateY(10deg);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-icon {
    font-size: 2rem;
    margin-right: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.skill-list {
    list-style: none;
}

.skill-item {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.skill-item::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    animation: pulse 2s infinite;
}

.skill-item:hover {
    color: var(--accent);
    transform: translateX(10px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    animation: projectReveal 1s ease forwards;
    transform: rotateY(-90deg);
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }
.project-card:nth-child(5) { animation-delay: 1s; }
.project-card:nth-child(6) { animation-delay: 1.2s; }
.project-card:nth-child(7) { animation-delay: 1.4s; }

@keyframes projectReveal {
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
}

.project-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.5);
    border-color: var(--primary);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.project-company {
    color: var(--accent);
    font-size: 0.9rem;
}

.project-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

/* Experience Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-item {
    margin: 3rem 0;
    position: relative;
    animation: timelineSlide 1s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(odd) { animation-delay: 0.2s; }
.timeline-item:nth-child(even) { animation-delay: 0.4s; }

@keyframes timelineSlide {
    to { opacity: 1; }
}

.timeline-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2.5rem;
    border-radius: 25px;
    position: relative;
    transition: all 0.4s ease;
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
}

.timeline-marker {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    border: 4px solid var(--dark);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    animation: markerPulse 2s infinite;
    z-index: 3;
}

@keyframes markerPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-company {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
}

.education-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.education-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.education-period {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-description {
    line-height: 1.6;
    opacity: 0.9;
}

/* Languages & Interests Section */
.languages-interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.languages-section h3,
.interests-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-item {
    margin-bottom: 2rem;
}

.language-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.language-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 2s ease;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.interest-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* CV Download Button */
.cv-download {
    margin-top: 2rem;
    text-align: center;
}

.btn-cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-cv-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-cv-download:hover::before {
    left: 100%;
}

.btn-cv-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.6);
    background: linear-gradient(45deg, #059669, #047857);
}

.btn-cv-download i {
    font-size: 1.2rem;
    animation: downloadPulse 2s infinite;
}

@keyframes downloadPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.contact-info {
    animation: slideInLeft 1s ease;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::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.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateX(15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.contact-form {
    animation: slideInRight 1s ease;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    transform: scale(1.02);
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Advanced Animations */
@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-30deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(30deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    animation: scrollBounce 2s infinite;
    z-index: 1000;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-grid,
    .languages-interests-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 1s ease 3s forwards;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { transform: scale(1); }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8));
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle system enhanced */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* --- Burger Menu --- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.burger-menu.active {
    transform: rotate(90deg) scale(1.1);
}
.burger-menu span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: all 0.3s;
}
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }
    .nav-links {
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        width: 70vw;
        max-width: 320px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: -10px 0 30px rgba(99, 102, 241, 0.2);
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        gap: 1.5rem;
    }
    .nav-links.mobile-active {
        display: flex;
        transform: translateX(0);
    }
    nav {
        padding: 0.5rem 0;
    }
    .logo {
        font-size: 1.3rem;
    }
}

/* Hero section responsive améliorée */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-visual {
        margin-top: 2rem;
    }
}
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 4rem 0 2rem 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
    .hero-visual {
        margin-top: 1.5rem;
    }
}

/* Skills section responsive améliorée */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .skill-category {
        padding: 1.2rem;
    }
}

/* Timeline (expérience) responsive améliorée */
@media (max-width: 1024px) {
    .timeline-content {
        width: 70%;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding: 1.2rem;
    }
    .timeline-marker {
        left: 20px;
    }
    .timeline-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Overlay pour menu mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(6px);
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-links {
        box-shadow: -10px 0 30px rgba(99, 102, 241, 0.2);
        animation: mobileMenuSlide 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .nav-links.mobile-active {
        display: flex;
        animation: mobileMenuSlideIn 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    @keyframes mobileMenuSlideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0.5rem;
        width: 100%;
        border-radius: 12px;
        text-align: left;
        margin: 0.2rem 0;
        transition: background 0.2s, color 0.2s;
        opacity: 0;
        transform: translateX(30px);
        animation: navLinkFade 0.4s forwards;
        animation-delay: 0s;
    }
    .nav-links.mobile-active a {
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links.mobile-active a:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.mobile-active a:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.mobile-active a:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.mobile-active a:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.mobile-active a:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.mobile-active a:nth-child(6) { animation-delay: 0.6s; }
    .nav-links.mobile-active a:nth-child(7) { animation-delay: 0.7s; }
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .timeline-title {
        font-size: 1.1rem;
    }
    .education-content h3 {
        font-size: 1.1rem;
    }
    .about-content h3 {
        font-size: 1.1rem;
    }
    .skill-title {
        font-size: 1rem;
    }
    
    /* CV Download Button responsive */
    .btn-cv-download {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .cv-download {
        margin-top: 1.5rem;
    }
}