:root {
    /* Refined Cyberpunk Palette */
    --primary-color: #00F5A0;
    --secondary-color: #9D4EDD;
    --accent-color: #00B4D8;
    --highlight-color: #FF6B35;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #718096;
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-card: #0F0F0F;
    --border-color: #2D3748;
    
    /* Refined Effects */
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-subtle: linear-gradient(135deg, rgba(0, 245, 160, 0.1), rgba(0, 180, 216, 0.1));
    --cyber-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    --neon-glow: 0 0 20px;
    --glow-primary: 0 0 20px rgba(0, 245, 160, 0.5);
    --glow-accent: 0 0 20px rgba(0, 180, 216, 0.5);
    
    /* 8px Grid System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Image Skeleton */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: inherit;
    z-index: 1;
}

.profile-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Allow text selection for content areas */
.hero-content,
.about-text,
.timeline-content,
.evolution-content,
.expertise-item,
.contact-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Performance optimizations */
.hero {
    will-change: transform;
    contain: layout style;
}

.profile-img {
    will-change: transform;
    contain: layout;
}

.navbar {
    will-change: transform;
    contain: layout style;
}

.scroll-indicator {
    will-change: opacity;
    contain: layout;
}

/* Reduce animation complexity */
.geometric-accent, .title-accent {
    contain: layout style paint;
    transform: translateZ(0);
}

/* Geometric Background System - Enhanced */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    backdrop-filter: blur(0.5px);
}

/* Section-specific geometric backgrounds */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* Hero geometric elements - individual diverse shapes */
.hero::before {
    background-image: 
        radial-gradient(circle 40px at 20% 30%, rgba(0, 245, 160, 0.15) 0%, rgba(0, 245, 160, 0.15) 70%, transparent 70%),
        linear-gradient(45deg, transparent 0%, transparent 45%, rgba(0, 180, 216, 0.12) 45%, rgba(0, 180, 216, 0.12) 55%, transparent 55%),
        radial-gradient(ellipse 60px 30px at 80% 70%, rgba(157, 78, 221, 0.1) 0%, rgba(157, 78, 221, 0.1) 80%, transparent 80%),
        conic-gradient(from 0deg at 75% 25%, rgba(0, 245, 160, 0.08) 0deg, rgba(0, 245, 160, 0.08) 60deg, transparent 60deg);
    background-size: 1200px 800px, 1000px 800px, 1400px 900px, 1100px 700px;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

/* About section geometric elements - individual circles */
.about::before {
    background-color: var(--bg-secondary);
    background-image: 
        radial-gradient(circle 35px at 15% 20%, rgba(0, 245, 160, 0.12) 0%, rgba(0, 245, 160, 0.12) 85%, transparent 85%),
        radial-gradient(circle 25px at 85% 75%, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.1) 90%, transparent 90%),
        radial-gradient(circle 45px at 70% 15%, rgba(157, 78, 221, 0.08) 0%, rgba(157, 78, 221, 0.08) 80%, transparent 80%),
        radial-gradient(circle 30px at 25% 85%, rgba(0, 245, 160, 0.1) 0%, rgba(0, 245, 160, 0.1) 85%, transparent 85%);
    background-size: 1000px 600px, 1200px 800px, 1400px 700px, 900px 700px;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

/* Journey section geometric elements - individual squares */
.journey::before {
    background-image: 
        linear-gradient(0deg, transparent 0%, transparent 40%, rgba(0, 245, 160, 0.12) 40%, rgba(0, 245, 160, 0.12) 60%, transparent 60%),
        linear-gradient(90deg, transparent 0%, transparent 35%, rgba(0, 180, 216, 0.1) 35%, rgba(0, 180, 216, 0.1) 65%, transparent 65%),
        linear-gradient(45deg, transparent 0%, transparent 30%, rgba(157, 78, 221, 0.08) 30%, rgba(157, 78, 221, 0.08) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 0%, transparent 25%, rgba(0, 245, 160, 0.1) 25%, rgba(0, 245, 160, 0.1) 75%, transparent 75%);
    background-size: 800px 40px, 50px 600px, 1200px 1200px, 1000px 1000px;
    background-position: 20% 30%, 75% 20%, 15% 80%, 85% 60%;
    background-repeat: no-repeat;
}

/* Projects section geometric elements - individual rectangles */
.projects::before {
    background-color: var(--bg-secondary);
    background-image: 
        linear-gradient(0deg, transparent 0%, transparent 40%, rgba(0, 245, 160, 0.12) 40%, rgba(0, 245, 160, 0.12) 70%, transparent 70%),
        linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0, 180, 216, 0.1) 30%, rgba(0, 180, 216, 0.1) 60%, transparent 60%),
        linear-gradient(45deg, transparent 0%, transparent 35%, rgba(157, 78, 221, 0.08) 35%, rgba(157, 78, 221, 0.08) 65%, transparent 65%),
        linear-gradient(135deg, transparent 0%, transparent 20%, rgba(0, 245, 160, 0.1) 20%, rgba(0, 245, 160, 0.1) 80%, transparent 80%);
    background-size: 120px 600px, 800px 35px, 900px 900px, 700px 700px;
    background-position: 85% 25%, 15% 70%, 25% 20%, 75% 85%;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

/* Contact section geometric elements - individual organic shapes */
.contact::before {
    background-image: 
        radial-gradient(ellipse 80px 120px at 20% 25%, rgba(0, 245, 160, 0.12) 0%, rgba(0, 245, 160, 0.12) 75%, transparent 75%),
        radial-gradient(ellipse 140px 60px at 75% 70%, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.1) 80%, transparent 80%),
        radial-gradient(ellipse 60px 160px at 85% 15%, rgba(157, 78, 221, 0.08) 0%, rgba(157, 78, 221, 0.08) 85%, transparent 85%),
        radial-gradient(ellipse 110px 80px at 15% 85%, rgba(0, 245, 160, 0.1) 0%, rgba(0, 245, 160, 0.1) 70%, transparent 70%);
    background-size: 1000px 800px, 1200px 600px, 1100px 900px, 800px 700px;
    background-repeat: no-repeat;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 255, 159, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.nav-brand .logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-color));
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl) var(--space-sm) var(--space-xl);
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 26, 0.85) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    width: 100%;
    align-items: center;
    position: relative;
}

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

.image-frame {
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.profile-img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: var(--space-sm);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 245, 160, 0.2),
        var(--glow-primary);
    transition: all 0.3s ease;
}

.image-frame:hover .profile-img {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 245, 160, 0.4),
        0 0 30px rgba(0, 245, 160, 0.3);
}

.geometric-accent {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--gradient-subtle);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    filter: blur(40px);
}

.hero-content {
    padding-left: var(--space-lg);
}

.title-section {
    position: relative;
    margin-bottom: var(--space-md);
}

.title-accent {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    opacity: 0.8;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    height: 2rem;
    font-weight: 500;
}

.hero-description {
    margin-bottom: var(--space-xl);
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.typing-text {
    font-weight: 500;
}

.cursor {
    animation: blink 1s infinite;
}

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

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-start;
    margin-top: var(--space-lg);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero-social:hover {
    opacity: 1;
}

.hero-social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: var(--space-xs);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.hero-social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(0, 255, 159, 0.1);
}

.btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--space-xs);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-primary);
    border: 1px solid transparent;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 8px 25px rgba(0, 245, 160, 0.25);
}

.btn-secondary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 180, 216, 0.05);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: var(--glow-accent), 0 8px 25px rgba(0, 180, 216, 0.25);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: var(--text-secondary);
}

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

/* Sections - 8px Grid System */
section {
    padding: var(--space-3xl) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Inline icon styles */
.inline-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-xs);
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    background-size: 200% 200%;
}

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

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.05);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 var(--space-sm);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.lead {
    font-size: 1.3rem !important;
    font-weight: 500;
    color: var(--text-primary) !important;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.van-life {
    margin: 2rem 0;
    text-align: center;
}

.van-img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.van-caption {
    font-style: italic;
    color: var(--text-secondary);
}

/* Journey Section - Timeline Style */
.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: var(--space-xl) auto;
    padding: var(--space-lg) 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(0, 245, 160, 0.3);
}

.evolution-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    min-height: 120px;
}

.evolution-item.left {
    flex-direction: row-reverse;
    text-align: right;
}

.evolution-item.right {
    flex-direction: row;
}

.evolution-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(10px);
}

.evolution-content {
    flex: 0 0 45%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    border-radius: var(--space-sm);
    border: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-top: 0;
}

.evolution-item.left .evolution-content {
    margin-right: auto;
    margin-left: 0;
}

.evolution-item.right .evolution-content {
    margin-left: auto;
    margin-right: 0;
}

.evolution-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--glow-primary);
    border-color: var(--primary-color);
    background: rgba(15, 15, 15, 0.95);
}

.evolution-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-period {
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evolution-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Projects Section */
.projects {
    position: relative;
}

.projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.05);
    pointer-events: none;
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.2);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: var(--glow-primary);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 1;
    text-align: right;
    padding-right: var(--space-2xl);
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: left;
    padding-left: var(--space-2xl);
    padding-right: 0;
    justify-content: flex-start;
}

.timeline-content {
    flex: 1;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    padding: var(--space-lg);
    border-radius: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow), var(--glow-accent);
    border-color: var(--accent-color);
    background: rgba(15, 15, 15, 0.95);
}

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

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.hackathon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.hackathon-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(12px);
    padding: var(--space-md);
    border-radius: var(--space-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hackathon-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hackathon-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm), var(--glow-primary);
    background: rgba(26, 26, 26, 0.9);
}

.hackathon-card:hover::after {
    transform: scaleX(1);
}

.hackathon-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.hackathon-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.hackathon-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-right: var(--space-sm);
    transition: all 0.2s ease;
    position: relative;
    padding: var(--space-xs);
    border-radius: 4px;
}

.hackathon-card a::after {
    content: '→';
    position: absolute;
    right: -15px;
    opacity: 0;
    transition: all 0.2s ease;
}

.hackathon-card a:hover::after {
    opacity: 1;
    right: -20px;
}

.hackathon-card a:hover {
    text-decoration: underline;
}

.project-links {
    margin-top: var(--space-sm);
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: var(--space-sm);
    font-weight: 500;
    padding: var(--space-xs);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.project-links a:hover {
    text-decoration: underline;
}

.current-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.project-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    padding: var(--space-md);
    border-radius: var(--space-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transition: left 0.3s ease;
}

.project-card:hover::before {
    left: 0;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(157, 78, 221, 0.3);
    border-color: var(--secondary-color);
    background: rgba(15, 15, 15, 0.95);
}

.project-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.project-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-right: var(--space-sm);
    transition: all 0.2s ease;
    padding: var(--space-xs);
    border-radius: 4px;
}

.project-card a:hover {
    color: var(--highlight-color);
    transform: translateX(2px);
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.expertise-item {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    padding: var(--space-lg);
    border-radius: var(--space-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--glow-accent);
    background: rgba(15, 15, 15, 0.95);
    border-color: var(--accent-color);
}

.expertise-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.article-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.article-highlight h3 {
    margin-bottom: 1rem;
}

.article-highlight a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-sm);
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: var(--space-lg);
    font-weight: 600;
    padding: var(--space-sm);
    border-radius: var(--space-xs);
    transition: all 0.2s ease;
}

.contact-email:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--space-xs);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm), var(--glow-primary);
    border-color: var(--primary-color);
    background: rgba(15, 15, 15, 0.9);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--space-xs);
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu:hover {
    background: rgba(0, 245, 160, 0.1);
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay - Enhanced */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-xl);
        gap: var(--space-lg);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

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

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        animation: slideIn 0.3s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-sm) var(--space-lg);
        text-align: center;
        width: auto;
        min-width: 200px;
        border-radius: var(--space-xs);
        transition: all 0.3s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover {
        background: rgba(0, 245, 160, 0.1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 245, 160, 0.2);
    }

    .hamburger-menu {
        display: flex;
    }
    
    .hero {
        padding: var(--space-2xl) var(--space-sm) var(--space-2xl);
        min-height: 100vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: var(--space-sm);
    }
    
    .hero-content {
        order: 2;
        padding-left: 0;
        max-width: 100%;
    }
    
    .profile-img {
        width: 240px;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        margin-bottom: var(--space-lg);
    }
    
    .hero-description p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: var(--space-sm);
        max-width: 100%;
    }
    
    .image-frame {
        transform: rotate(0deg);
    }
    
    .hero-buttons {
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
        flex-direction: column;
        align-items: center;
    }
    
    .hero-social {
        gap: var(--space-md);
        margin-top: var(--space-lg);
        justify-content: center;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-xl);
        font-size: 0.9rem;
        min-height: 48px;
        min-width: 200px;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .hero-social-link {
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        padding: var(--space-sm);
    }
    
    .timeline::before {
        left: var(--space-md);
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: var(--space-2xl);
    }
    
    .timeline-year {
        text-align: left !important;
        padding: 0 0 var(--space-sm) 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-year {
        padding: 0 0 var(--space-sm) 0 !important;
    }
    
    .timeline-item::after {
        left: var(--space-md);
        top: var(--space-md);
        transform: translate(-50%, -50%);
    }
    
    .journey-timeline::before {
        left: var(--space-md);
    }
    
    .evolution-item {
        flex-direction: column !important;
        padding-left: var(--space-2xl);
        text-align: left !important;
    }
    
    .evolution-icon {
        left: var(--space-md);
        top: var(--space-md);
        transform: translate(-50%, 0);
    }
    
    .evolution-content {
        margin: var(--space-xl) 0 0 0 !important;
        flex: 1 1 auto;
    }
    
    .evolution-item.left .evolution-content,
    .evolution-item.right .evolution-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-content {
        padding: var(--space-md);
        margin: 0;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--text-secondary);
    }
    
    .hackathon-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hackathon-card {
        padding: var(--space-sm);
    }
    
    .hackathon-card h4 {
        font-size: 1rem;
        margin-bottom: var(--space-xs);
    }
    
    .hackathon-card p {
        font-size: 0.9rem;
        margin-bottom: var(--space-xs);
        line-height: 1.5;
    }
    
    .hackathon-card a {
        font-size: 0.85rem;
        display: inline-block;
        margin-bottom: var(--space-xs);
        margin-right: var(--space-sm);
        min-height: 32px;
        display: flex;
        align-items: center;
        text-align: center;
    }
    
    .current-projects {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: var(--space-md);
    }
    
    .evolution-content {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .evolution-content h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-xs);
    }
    
    .timeline-period {
        font-size: 0.8rem;
        margin-bottom: var(--space-xs);
    }
    
    .van-img {
        max-width: 100%;
        height: auto;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-text p {
        margin-bottom: var(--space-sm);
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--space-lg);
        text-align: center;
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-item {
        padding: var(--space-md);
    }
    
    .expertise-item h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .expertise-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .contact-content {
        padding: 0 var(--space-sm);
    }
    
    .contact-text {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
    
    .contact-email {
        font-size: 1.2rem;
        margin-bottom: var(--space-md);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .hero {
        padding: var(--space-2xl) var(--space-xs) var(--space-xl);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .profile-img {
        width: 200px;
        height: 250px;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
        min-height: 48px;
        width: 100%;
        max-width: 240px;
    }
    
    .hero-buttons {
        gap: var(--space-sm);
        width: 100%;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: var(--space-md);
    }
    
    .container {
        padding: 0 var(--space-xs);
    }
    
    .timeline-content, 
    .evolution-content,
    .expertise-item,
    .hackathon-card,
    .project-card {
        padding: var(--space-sm);
    }
    
    .nav-menu {
        padding-top: var(--space-lg);
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .social-link {
        max-width: 240px;
        padding: var(--space-sm);
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-xs);
    }
}