:root {
    /* Primary Colors - Modern Deep Purple */
    --md-sys-color-primary: #7C3AED;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EDE9FE;
    --md-sys-color-on-primary-container: #2E1065;
    
    /* Secondary Colors - Vibrant Teal */
    --md-sys-color-secondary: #14B8A6;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #CCFBF1;
    --md-sys-color-on-secondary-container: #134E4A;
    
    /* Tertiary Colors - Electric Cyan */
    --md-sys-color-tertiary: #06B6D4;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #CFFAFE;
    --md-sys-color-on-tertiary-container: #164E63;
    
    /* Background Colors */
    --md-sys-color-background: #FAFAFA;
    --md-sys-color-on-background: #0F172A;
    
    /* Surface Colors */
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-on-surface: #0F172A;
    --md-sys-color-surface-variant: #F1F5F9;
    --md-sys-color-on-surface-variant: #475569;
    
    /* Outline */
    --md-sys-color-outline: #94A3B8;
    
    /* Elevation */
    --md-sys-elevation-level-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.12);
    --md-sys-elevation-level-2: 0px 4px 8px 2px rgba(0, 0, 0, 0.12);
    --md-sys-elevation-level-3: 0px 8px 16px 3px rgba(0, 0, 0, 0.15);
    
    /* Custom accent colors */
    --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    
    /* Section padding */
    --section-padding: 80px 0;
}

/* Dark mode specific styles */
[data-theme="dark"] {
    /* Primary Colors - Bright Purple */
    --md-sys-color-primary: #A78BFA;
    --md-sys-color-on-primary: #2E1065;
    --md-sys-color-primary-container: #6D28D9;
    --md-sys-color-on-primary-container: #F3E8FF;
    
    /* Secondary Colors - Bright Teal */
    --md-sys-color-secondary: #5EEAD4;
    --md-sys-color-on-secondary: #134E4A;
    --md-sys-color-secondary-container: #0F766E;
    --md-sys-color-on-secondary-container: #CCFBF1;
    
    /* Background Colors */
    --md-sys-color-background: #0F172A;
    --md-sys-color-on-background: #F8FAFC;
    
    /* Surface Colors */
    --md-sys-color-surface: #1E293B;
    --md-sys-color-on-surface: #F8FAFC;
    --md-sys-color-surface-variant: #334155;
    --md-sys-color-on-surface-variant: #CBD5E1;
    
    /* Elevation */
    --md-sys-elevation-level-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.4);
    --md-sys-elevation-level-2: 0px 4px 8px 2px rgba(0, 0, 0, 0.4);
    --md-sys-elevation-level-3: 0px 8px 16px 3px rgba(0, 0, 0, 0.45);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--md-sys-color-on-background);
    background: var(--md-sys-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--md-sys-color-on-background);
    background: var(--md-sys-color-background);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
}

/* Modern Geometric Background Shapes */
body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 8px 12px;
    z-index: 100;
    transition: top 0.3s ease;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
    outline: 2px solid var(--md-sys-color-on-primary);
    outline-offset: 2px;
}

/* Utility Classes */
.container {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header Styles */
header {
    padding: var(--section-padding);
    text-align: center;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

/* Modern Geometric Shapes in Header */
header::before,
header::after {
    content: '';
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

header::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.3) 40%, transparent 40%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -100px;
    left: -100px;
    animation: morph 10s ease-in-out infinite, rotate 20s linear infinite;
}

header::after {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.25) 20%, rgba(255, 255, 255, 0.25) 30%, transparent 30%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -80px;
    right: -80px;
    animation: morph 12s ease-in-out infinite reverse, rotate 25s linear infinite reverse;
}

.header-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.header-profile {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,0.3);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3), 0 0 0 0 rgba(124, 58, 237, 0.4);
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: var(--md-sys-color-surface);
    padding: 5px;
    cursor: pointer;
}

.header-profile::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.header-profile:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.5), 0 0 0 8px rgba(124, 58, 237, 0.2);
}

.header-profile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.header-profile:hover img {
    filter: brightness(1.1);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--md-sys-color-on-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

p.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.section-title {
    font-size: 0.8125rem;
    color: var(--md-sys-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    display: block;
    font-weight: 500;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    text-align: center;
    margin: 0 auto 32px;
    max-width: 800px;
    line-height: 1.3;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 16px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(30, 41, 59, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    margin: 0 auto;
    max-width: calc(100% - 40px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-container {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 16px;
    border-radius: 50px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--md-sys-color-primary);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 70%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.mobile-menu-btn:hover {
    background: rgba(var(--md-sys-color-on-surface), 0.08);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

body.no-scroll {
    overflow: hidden;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    scroll-margin-top: 96px;
    position: relative;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Section Title with Decorative Elements */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    margin-bottom: 48px;
}

section h2::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -15px;
    left: -25px;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform-origin: left;
    animation: slideInLeft 0.8s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* About Section */
#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--md-sys-color-background) 50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    background: var(--md-sys-color-surface);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.2em;
    color: var(--md-sys-color-on-surface);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--md-sys-color-surface);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

/* Modern geometric decoration for skill cards */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(20, 184, 166, 0.03));
    border-radius: 50%;
    top: -75px;
    right: -75px;
    pointer-events: none;
    transition: all 0.4s ease;
}

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

.skill-card:hover::after {
    transform: scale(1.5) rotate(90deg);
    opacity: 0.8;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(20, 184, 166, 0.1));
    border-radius: 16px;
    margin-right: 16px;
    color: var(--md-sys-color-primary);
    font-size: 1.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.skill-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: rotate(-10deg) scale(1.15);
    background: var(--accent-gradient);
    color: white;
}

.skill-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.skill-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.875rem;
}

.skill-bar-container {
    margin-top: 16px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.skill-bar {
    height: 6px;
    background: rgba(var(--md-sys-color-on-surface), 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
    width: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tech-item {
    background: rgba(var(--md-sys-color-primary), 0.1);
    color: var(--md-sys-color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.4s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: rgba(var(--md-sys-color-primary), 0.2);
}

/* Projects Section */
#projects {
    background: var(--md-sys-color-surface-variant);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 24px 0;
    padding: 32px 0;
    border: 1px solid var(--md-sys-color-outline);
}

/* Decorative geometric shapes for projects section */
#projects::before,
#projects::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

#projects::before {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 25%, transparent 25%, transparent 75%, var(--md-sys-color-primary) 75%),
                linear-gradient(135deg, var(--md-sys-color-primary) 25%, transparent 25%, transparent 75%, var(--md-sys-color-primary) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    top: -50px;
    left: -50px;
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

#projects::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--md-sys-color-secondary) 10%, transparent 10%),
                radial-gradient(circle, var(--md-sys-color-secondary) 10%, transparent 10%);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    bottom: -75px;
    right: -75px;
    border-radius: 50%;
    animation: rotate 25s linear infinite reverse;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--md-sys-elevation-level-1);
    position: relative;
    border: 1px solid var(--md-sys-color-outline);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(124, 58, 237, 0.05) 50%);
    border-radius: 0 16px 0 100%;
    pointer-events: none;
    transition: all 0.4s ease;
}

.project-card:hover::before {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 50%, rgba(124, 58, 237, 0.1) 50%);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-sys-elevation-level-3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
}

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

.project-overlay h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.project-link {
    color: var(--md-sys-color-on-primary);
    background: var(--md-sys-color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.4s ease;
}

.project-link:hover {
    background: var(--md-sys-color-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level-2);
}

.project-content {
    padding: 16px;
}

.project-content h3 {
    margin-bottom: 8px;
    color: var(--md-sys-color-primary);
    font-size: 1rem;
}

.project-content p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

.timeline-item {
    padding: 32px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating left-right layout */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content {
    width: 45%;
    padding: 24px;
    background: var(--md-sys-color-surface);
    border-radius: 20px;
    box-shadow: var(--md-sys-elevation-level-2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--md-sys-color-outline);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow pointing to center for odd items (left side) */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--md-sys-color-surface);
}

/* Arrow pointing to center for even items (right side) */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--md-sys-color-surface) transparent transparent;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.2);
    border-color: var(--md-sys-color-primary);
}

.timeline-date {
    position: absolute;
    width: 140px;
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
    color: var(--md-sys-color-on-primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    margin-left: -70px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.5px;
}

.timeline-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    margin-left: -10px;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--md-sys-color-surface), 0 0 0 10px rgba(124, 58, 237, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-circle {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 8px var(--md-sys-color-surface), 0 0 0 14px rgba(124, 58, 237, 0.25);
}

.job-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--md-sys-color-primary);
}

.company {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface);
}

.job-description {
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.job-skill {
    background: rgba(var(--md-sys-color-primary), 0.1);
    color: var(--md-sys-color-primary);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.6875rem;
    transition: all 0.4s ease;
}

.job-skill:hover {
    transform: translateY(-2px);
    background: rgba(var(--md-sys-color-primary), 0.2);
}

/* Education Section */
#education {
    position: relative;
}

#education::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 10%;
    right: 5%;
    pointer-events: none;
    animation: float 18s ease-in-out infinite;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.education-card {
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--md-sys-color-outline);
    box-shadow: var(--md-sys-elevation-level-1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent);
    border-radius: 50%;
    bottom: -50px;
    right: -30px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.education-card:hover::before {
    transform: scale(1.5);
    opacity: 0.5;
}

.education-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-sys-elevation-level-3);
}

.degree {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--md-sys-color-primary);
}

.university {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface);
}

.education-date {
    display: inline-block;
    background: rgba(var(--md-sys-color-primary), 0.1);
    color: var(--md-sys-color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6875rem;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.education-description {
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Contact Section */
#contact {
    position: relative;
    overflow: hidden;
}

/* Modern geometric decoration for contact section */
#contact::before,
#contact::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

#contact::before {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

#contact::after {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    bottom: 15%;
    right: 8%;
    animation: float 12s ease-in-out infinite reverse;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    width: 100%;
    max-width: 600px;
    background: var(--md-sys-color-surface);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(20, 184, 166, 0.05));
    border-radius: 50%;
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.contact-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.2);
}

/* Contact Text Styles */
.contact-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface-variant);
}

.contact-email-text {
    font-size: 1.125rem;
    margin-bottom: 28px;
}

.contact-email-icon {
    color: var(--md-sys-color-primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.contact-email-link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

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

.contact-email-link:hover {
    color: var(--md-sys-color-secondary);
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--md-sys-color-on-surface);
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-surface-variant);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover,
.social-links a:focus {
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    outline: none;
}

.social-links a:hover i,
.social-links a:focus i {
    color: white;
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--md-sys-color-outline);
    background: var(--md-sys-color-surface-variant);
    transition: all 0.4s ease;
    margin-top: 32px;
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    padding-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.4s ease;
    padding: 8px 12px;
    border-radius: 50px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--md-sys-color-primary);
    background: rgba(var(--md-sys-color-primary), 0.08);
    outline: none;
}

.footer-copyright {
    font-size: 0.875rem;
    margin-top: 20px;
}

.footer-heart {
    color: var(--md-sys-color-tertiary);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--accent-gradient);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
}

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

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
    outline: none;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #14B8A6 50%, #06B6D4 100%);
    background-size: 200% 200%;
    animation: gradientBG 3s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    pointer-events: none;
}

/* Animated geometric shapes in loading screen */
.loading-screen::before,
.loading-screen::after {
    content: '';
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.loading-screen::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite, rotate 20s linear infinite;
}

.loading-screen::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse, rotate 15s linear infinite reverse;
}

/* Loading spinner container */
.loading-spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top-color: white;
    border-right-color: rgba(255, 255, 255, 0.6);
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.5);
    animation: spin 0.8s linear infinite reverse;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-bottom-color: rgba(255, 255, 255, 0.9);
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* Floating shapes around spinner */
.loading-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 6s ease-in-out infinite, orbit 4s linear infinite;
}

.loading-shape:nth-child(1) {
    width: 30px;
    height: 30px;
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.loading-shape:nth-child(2) {
    width: 25px;
    height: 25px;
    bottom: 0;
    left: 50%;
    animation-delay: -1s;
    animation-direction: reverse;
}

.loading-shape:nth-child(3) {
    width: 20px;
    height: 20px;
    top: 50%;
    right: 0;
    animation-delay: -2s;
}

.loading-shape:nth-child(4) {
    width: 28px;
    height: 28px;
    top: 50%;
    left: 0;
    animation-delay: -3s;
    animation-direction: reverse;
}

.loading-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-top: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: pulse-text 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

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

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(60px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(60px) rotate(-360deg);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--md-sys-color-on-primary);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
    max-width: calc(100% - 40px);
    text-align: center;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification.success {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    box-shadow: var(--md-sys-elevation-level-2);
}

.notification.error {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    box-shadow: var(--md-sys-elevation-level-2);
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* No Script Warning */
.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 8px;
    text-align: center;
    z-index: 1000;
    font-size: 0.875rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--md-sys-color-surface);
    border: 2px solid rgba(124, 58, 237, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--md-sys-color-primary);
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.1) rotate(15deg);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
    border-color: rgba(124, 58, 237, 0.5);
}

.theme-toggle:hover::before {
    opacity: 0.1;
}

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

.theme-toggle i {
    font-size: 1.25rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

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

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

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3), 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    :root {
        --section-padding: 64px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 24px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 72px);
        margin-left: 56px;
    }
    
    .timeline-date {
        width: 100px;
        left: 24px;
        margin-left: 0;
        text-align: left;
        top: -20px;
        margin-bottom: 10px;
        transform: none;
    }
    
    .timeline-circle {
        left: 24px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }
    
    header {
        padding: 80px 0 48px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    footer {
        clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 100%);
    }
    
    .header-profile {
        width: 100px;
        height: 100px;
    }
    
    .nav-container {
        padding: 8px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--md-sys-color-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        transition: all 0.4s ease;
        z-index: 100;
        box-shadow: var(--md-sys-elevation-level-4);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile timeline - single column on left */
    .timeline::before {
        left: 24px;
        margin-left: 0;
    }
    
    .timeline-item {
        padding: 24px 0;
        justify-content: flex-start !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start !important;
    }
    
    .timeline-content {
        width: calc(100% - 80px) !important;
        margin-left: 64px !important;
        margin-right: 0 !important;
        padding: 20px;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-circle {
        left: 24px;
        margin-left: 0;
    }
    
    .timeline-date {
        left: 24px;
        margin-left: 0;
        top: 0;
        transform: translateY(-50px);
        width: auto;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .skill-name span:last-child {
        min-width: 40px;
        text-align: right;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }
    
    html, body { font-size: 14px; }
    h2 { font-size: 1.5rem; margin-bottom: 20px; }
    .section-title { margin-bottom: 12px; }
    
    header {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    
    footer {
        clip-path: polygon(0 5px, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links {
        width: 85%;
    }
    
    header {
        padding: 64px 0 40px;
    }
    
    .header-profile {
        width: 80px;
        height: 80px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}
