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

:root {
    /* ===== REFINED COLOR SYSTEM ===== */
    /* Background Layers */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-card: #1c1c1e;
    --bg-card-hover: #252529;
    --bg-glass: rgba(28, 28, 30, 0.8);
    
    /* Violet/Purple Accent System */
    --accent-primary: #8b5cf6;
    --accent-hover: #a855f7;
    --accent-light: #c084fc;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --accent-glow-strong: rgba(139, 92, 246, 0.4);
    --accent-border: rgba(139, 92, 246, 0.3);
    --accent-subtle: rgba(139, 92, 246, 0.1);
    
    /* Text Hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #6b7280;
    --text-accent: var(--accent-primary);
    
    /* Border System */
    --border-primary: #2a2a2e;
    --border-secondary: #3a3a3e;
    --border-accent: var(--accent-border);
    --border-focus: var(--accent-primary);
    
    /* Shadow System */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-glow-strong: 0 0 30px var(--accent-glow-strong);
    
    /* Typography System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    
    /* Spacing System */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --section-gap: 6rem;
    --card-padding: 2.5rem;
    --element-gap: 1.5rem;
    
    /* Transition System */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    font-weight: var(--font-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ENHANCED BACKGROUND SYSTEM ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: -1;
}

/* ===== IMPROVED TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: var(--font-semibold);
}

p {
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-bold);
}

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

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-semibold);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus-visible styles for better accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove default focus outline when focus-visible is supported */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Specific focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Form error messages */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    display: block;
}

.error-message:empty {
    display: none;
}

/* Form success messages */
.success-message {
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    text-align: center;
    display: block;
}

/* Form field validation states */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:valid,
textarea:valid {
    border-color: var(--border-primary);
}

/* Loading button state */
.btn[aria-busy="true"] {
    position: relative;
    color: transparent;
}

.btn[aria-busy="true"]::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ENHANCED GLOW SYSTEM ===== */
.glow-border {
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-border), transparent, var(--accent-border));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glow-border:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.glow-border:hover::before {
    opacity: 1;
}

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border-secondary);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    letter-spacing: var(--letter-spacing-wide);
    transition: color var(--transition-fast);
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: 0.9rem;
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* ===== ENHANCED HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-regular);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: 0.95rem;
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-normal);
    border: 1px solid var(--accent-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-cta::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 var(--transition-slow);
}

.hero-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-1px);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

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

.hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transition: all var(--transition-slow);
    margin-top: 15px;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

/* Enhanced Floating Elements */
.floating-element {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
}

.floating-element:nth-child(2) {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    right: 0%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-0.5deg); 
    }
}

/* ===== ENHANCED SECTION HEADERS ===== */
.section-header {
    margin-bottom: 5rem;
    text-align: center;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-mono);
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before {
    content: '#';
    color: var(--accent-primary);
    margin-right: 0.75rem;
    font-weight: var(--font-regular);
    opacity: 0.8;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-regular);
}

/* ===== ENHANCED QUOTE SECTION ===== */
.quote-section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.quote-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
}

.quote-card blockquote {
    margin: 0;
    padding: 0;
}

.quote-card blockquote footer {
    margin-top: 2rem;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--accent-border);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: var(--line-height-normal);
    font-weight: var(--font-regular);
    position: relative;
    z-index: 2;
}

.quote-author {
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    z-index: 2;
    font-style: normal;
}

.quote-card::before,
.quote-card::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent-primary);
    position: absolute;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: bold;
    z-index: 1;
    transition: opacity var(--transition-normal);
}

.quote-card:hover::before,
.quote-card:hover::after {
    opacity: 0.25;
}

.quote-card::before {
    top: 1.5rem;
    left: 2rem;
}

.quote-card::after {
    bottom: 1.5rem;
    right: 2rem;
    transform: rotate(180deg);
}

/* ===== ENHANCED CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-title {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-regular);
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--bg-elevated);
    color: var(--accent-light);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    border: 1px solid var(--border-secondary);
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== ENHANCED BUTTON SYSTEM ===== */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: 0.9rem;
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-normal);
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-secondary);
}

.btn-secondary:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    box-shadow: var(--shadow-md);
}

.btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== ENHANCED SKILLS SYSTEM ===== */
.skill-category {
    margin-bottom: 4rem;
}

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

.skill-category-title {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.skill-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
    transition: all var(--transition-normal);
}

.skill-item:hover .skill-icon {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    transform: scale(1.05);
}

.skill-name {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: var(--line-height-tight);
}

.skill-level {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

/* ===== PROJECT HIGHLIGHTS ===== */
.project-highlights {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.project-highlights h4 {
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: var(--font-semibold);
    letter-spacing: var(--letter-spacing-wide);
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.875rem;
    line-height: var(--line-height-relaxed);
}

.project-highlights li::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: var(--font-bold);
    transition: color var(--transition-fast);
}

.project-highlights li:hover::before {
    color: var(--accent-hover);
}

/* Hero actions are already defined above - removing duplicate */

/* ===== TIMELINE STYLES ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-hover));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-primary);
    transition: all var(--transition-normal);
}

.timeline-marker.current .timeline-dot {
    background: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-hover), 0 0 20px var(--accent-glow);
    animation: pulse 2s infinite;
}

.timeline-marker.seeking .timeline-dot {
    background: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

.timeline-content {
    flex: 1;
}

.timeline-company {
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.experience-highlights {
    margin-top: 1.5rem;
}

.experience-highlights h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: var(--font-semibold);
    letter-spacing: var(--letter-spacing-wide);
}

.experience-highlights ul {
    list-style: none;
    padding: 0;
}

.experience-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.875rem;
    line-height: var(--line-height-relaxed);
}

.experience-highlights li::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: var(--font-bold);
    transition: color var(--transition-fast);
}

.experience-highlights li:hover::before {
    color: var(--accent-hover);
}

/* ===== SKILLS TIMELINE ===== */
.skills-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.skill-progress-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-progress-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.skill-progress-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.skill-period {
    text-align: center;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
}

.skill-period h3 {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.skill-period p {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.skill-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-semibold);
}

.skill-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: var(--line-height-relaxed);
}

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

/* ===== GOALS LIST ===== */
.goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goals-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.9rem;
    line-height: var(--line-height-relaxed);
}

.goals-list li::before {
    content: '✓';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: var(--font-bold);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.goals-list li:hover::before {
    color: var(--accent-hover);
}

/* ===== RESPONSIVE TIMELINE ===== */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
    }
    
    .timeline-dot {
        width: 12px;
        height: 12px;
    }
    
    .skill-progress-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .skill-period {
        text-align: left;
    }
}

/* ===== ENHANCED PERFORMANCE OPTIMIZATIONS ===== */
/* Optimize animations for better performance */
.card,
.skill-item,
.glow-border {
    will-change: transform;
}

.card:not(:hover),
.skill-item:not(:hover),
.glow-border:not(:hover) {
    will-change: auto;
}

/* Optimize backdrop-filter usage */
@supports (backdrop-filter: blur(8px)) {
    .glow-border,
    .card,
    .skill-item {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Reduce motion for performance on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .floating-element {
        animation: none;
        transform: none;
    }
    
    .card:hover,
    .skill-item:hover,
    .glow-border:hover {
        transform: none;
    }
}

/* ===== ENHANCED FOOTER ===== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-primary);
    padding: 4rem 0 3rem;
    margin-top: var(--section-gap);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: var(--font-regular);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.social-link:hover {
    color: white;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

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

.social-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 0;
        --card-padding: 2rem;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding-top: 5rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        width: 280px;
        height: 280px;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1.5rem 1rem;
    }
    
    .skill-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .skill-category-title {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .quote-card {
        padding: 2.5rem 2rem;
        max-width: 90%;
    }
    
    .quote-card blockquote footer {
        margin-top: 1.5rem;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .quote-card::before,
    .quote-card::after {
        font-size: 3rem;
    }

    .quote-card::before {
        top: 1rem;
        left: 1.5rem;
    }

    .quote-card::after {
        bottom: 1rem;
        right: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Contact form responsive improvements */
    .contact-form-card form > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 4rem 0;
        --card-padding: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image img {
        width: 240px;
        height: 240px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta,
    .btn {
        width: 100%;
    }
    
    .quote-card {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .quote-text {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .quote-author {
        font-size: 0.85rem;
    }
    
    .quote-card::before,
    .quote-card::after {
        font-size: 2.5rem;
    }

    .quote-card::before {
        top: 0.75rem;
        left: 1rem;
    }

    .quote-card::after {
        bottom: 0.75rem;
        right: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .skill-item {
        padding: 1.25rem 0.75rem;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ===== ENHANCED MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-primary);
    z-index: calc(var(--z-sticky) - 1);
    transition: right var(--transition-slow);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: var(--letter-spacing-wide);
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: height var(--transition-normal);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-primary);
    background: var(--accent-subtle);
}

.mobile-menu a:hover::before,
.mobile-menu a.active::before {
    height: 60%;
}

.mobile-menu a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-sticky) - 2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

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

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-element {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --bg-card: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-primary: #555555;
        --accent-primary: #a855f7;
    }
}

/* ===== LOADING STATES & ANIMATIONS ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .mobile-menu,
    .mobile-menu-btn,
    .floating-element,
    .card-actions,
    .hero-actions {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .skill-item {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
        background: white;
    }

    .section-padding {
        padding: 1rem 0;
    }
    
    .text-gradient {
        -webkit-text-fill-color: initial;
        color: #8b5cf6;
    }
}
