/* ===============================================
   VARIABLES & ROOT STYLES
   =============================================== */
:root {
    /* Light Theme Colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    
    /* Accent Colors - Modern Gradient Palette */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-light: #818cf8;
    
    /* UI Elements */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* ===============================================
   THEME TOGGLE BUTTON
   =============================================== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* ===============================================
   SCROLL PROGRESS BAR
   =============================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-secondary);
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    filter: blur(10px);
    animation: progressGlow 2s ease-in-out infinite;
}

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

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: var(--accent-gradient);
    opacity: 0.06;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    opacity: 0.04;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
    filter: blur(80px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.625rem 1.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-sm); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--accent-gradient);
    animation: expandLine 1.5s ease forwards;
    animation-delay: 0.5s;
    border-radius: 2px;
}

@keyframes expandLine {
    to { width: 200px; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    margin-top: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 1.125rem 2.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) skew(-15deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    transform: translateX(100%) skew(-15deg);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    font-weight: 500;
}

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

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 3px solid var(--accent-primary);
    border-bottom: 3px solid var(--accent-primary);
    transform: rotate(-45deg);
    animation: arrowPulse 2s infinite;
}

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

/* ===============================================
   NAVIGATION
   =============================================== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(var(--bg-secondary), 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1.5rem 1.5rem;
    transition: color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-weight: 600;
}

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

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* ===============================================
   SECTIONS
   =============================================== */
.section {
    padding: var(--spacing-xl) 2rem;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1rem;
}

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

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: var(--accent-gradient);
    opacity: 0.03;
    border-radius: 50%;
    filter: blur(80px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    position: relative;
}

.about-text::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 120px;
    color: var(--accent-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid transparent;
    transition: all var(--transition-normal);
}

.about-text p:hover {
    border-left-color: var(--accent-primary);
    padding-left: 30px;
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ===============================================
   EXPERIENCE TIMELINE
   =============================================== */
.experience-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.experience-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    opacity: 0.03;
    border-radius: 50%;
    filter: blur(80px);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--accent-primary) 10%, 
        var(--accent-secondary) 90%, 
        transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

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

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

.timeline-dot {
    position: absolute;
    left: -3.75rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 5px var(--bg-primary), 0 0 0 8px var(--accent-light);
    transition: all var(--transition-normal);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 5px var(--bg-primary), 0 0 0 8px var(--accent-light);
    }
    50% {
        box-shadow: 0 0 0 5px var(--bg-primary), 0 0 0 12px transparent;
    }
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    animation: none;
    box-shadow: 0 0 0 5px var(--bg-primary), 0 0 20px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(15px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.timeline-content:hover::before {
    opacity: 0.03;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.timeline-content:hover h3 {
    color: var(--accent-primary);
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.timeline-content ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.timeline-content li {
    color: var(--text-secondary);
    padding: 0.625rem 0;
    padding-left: 2rem;
    position: relative;
    transition: all var(--transition-fast);
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.timeline-content li:hover {
    padding-left: 2.5rem;
    color: var(--text-primary);
}

.timeline-content li:hover::before {
    transform: translateX(5px);
}

/* ===============================================
   SKILLS SECTION
   =============================================== */
.skills-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    opacity: 0.02;
    border-radius: 50%;
    filter: blur(100px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.skill-category:hover h3::after {
    width: 100%;
}

.skill-item {
    margin-bottom: 1.75rem;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-info span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-info span:last-child {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.skill-bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2.5s infinite;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    filter: blur(2px);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ===============================================
   LANGUAGES SECTION
   =============================================== */
.languages-section {
    margin-top: 5rem;
    position: relative;
}

.languages-section h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.languages-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.language-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.language-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.language-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.language-card:hover::before {
    opacity: 0.05;
}

.language-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.language-level {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.language-bars {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.language-bars .bar {
    width: 14px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-bars .bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.language-bars .bar.filled {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.language-bars .bar.filled::before {
    opacity: 1;
}

.language-card:hover .bar.filled {
    transform: scaleY(1.15);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.language-card:hover .bar {
    border-radius: 12px;
}

/* Stagger animation for bars */
.language-bars .bar:nth-child(1) {
    transition-delay: 0s;
}

.language-bars .bar:nth-child(2) {
    transition-delay: 0.05s;
}

.language-bars .bar:nth-child(3) {
    transition-delay: 0.1s;
}

.language-bars .bar:nth-child(4) {
    transition-delay: 0.15s;
}

.language-bars .bar:nth-child(5) {
    transition-delay: 0.2s;
}

/* ===============================================
   PROJECTS SECTION
   =============================================== */
.projects-section {
    background: var(--bg-primary);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.project-card:hover::before {
    opacity: 0.03;
}

.project-image {
    height: 220px;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

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

.project-link {
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.project-link:hover::before {
    transform: translateX(0);
}

.project-link:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color var(--transition-normal);
}

.project-card:hover .project-content h3 {
    color: var(--accent-primary);
}

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

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

.tag {
    padding: 0.5rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-primary);
}

.contact-item .icon {
    font-size: 1.5rem;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: var(--bg-primary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: -2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        top: 1rem;
        right: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -2rem;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}