:root {
    /* Dark Theme (Default) */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #00f2fe;
    --danger-color: #f5576c;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6c757d;
    
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 15px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme */
[data-theme="light"] {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #00f2fe;
    --danger-color: #f5576c;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.2);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    transition: var(--transition-smooth);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    z-index: -2;
    transition: var(--transition-smooth);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
    transition: var(--transition-smooth);
}

/* Light theme adjustments */
[data-theme="light"] body::after {
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.03) 0%, transparent 50%);
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    width: 100%;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-medium);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar .nav-brand {
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

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

.navbar .nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navbar .nav-menu li a {
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar .nav-menu li a:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.navbar .nav-menu li a.active {
    color: var(--text-primary);
    background: var(--primary-gradient);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.theme-toggle:hover::before {
    left: 0;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.theme-toggle i {
    transition: var(--transition-smooth);
}

/* Mobile Navigation - Enhanced */
.mobile-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    gap: 5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

[data-theme="light"] .mobile-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

.mobile-toggle:hover {
    background: var(--bg-card-hover);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.mobile-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition-smooth);
    display: block;
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 100%);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Lock scroll when mobile menu is open */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Header */
.header {
    background: var(--dark-gradient);
    color: var(--text-primary);
    padding: clamp(120px, 20vw, 140px) 0 clamp(60px, 12vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: 1;
}

[data-theme="light"] .header::before {
    opacity: 0.05;
}

.header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out;
    line-height: 1.2;
}

.header .lead {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: slideInUp 1s ease-out 0.2s both;
}

.header .about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    animation: slideInUp 1s ease-out 0.4s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2rem);
    animation: slideInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    transition: var(--transition-bounce);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
}

[data-theme="light"] .social-links a {
    border-color: rgba(0, 0, 0, 0.2);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.social-links a:hover::before {
    left: 0;
}

.social-links a:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.social-links i {
    margin-right: 0.5rem;
}

/* Sections */
section {
    padding: clamp(60px, 12vw, 100px) 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    line-height: 1.2;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Experience Timeline */
.experience {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .experience {
    background: rgba(0, 0, 0, 0.02);
}

.experience .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience .timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    width: calc(50% - 3rem);
    max-width: 450px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[data-theme="light"] .timeline-item {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-light);
}

.timeline-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border: 4px solid var(--bg-primary);
    top: 3rem;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd)::after {
    right: -3.5rem;
}

.timeline-item:nth-child(even)::after {
    left: -3.5rem;
}

.timeline-item h3 {
    color: var(--text-primary);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-item p strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.timeline-item .date {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.timeline-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.timeline-item ul li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.timeline-item ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Projects */
.projects {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .projects {
    background: rgba(0, 0, 0, 0.02);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: clamp(2rem, 5vw, 2.5rem);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .project-card {
    border-color: rgba(0, 0, 0, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.project-card h3 {
    color: var(--text-primary);
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.github-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    opacity: 0.7;
}

.github-link:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
}

[data-theme="light"] .github-link:hover {
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(64, 224, 208, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(64, 224, 208, 0.2);
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    background: rgba(64, 224, 208, 0.2);
    transform: translateY(-1px);
}

[data-theme="light"] .tech-tag {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
    border-color: rgba(138, 43, 226, 0.2);
}

[data-theme="light"] .tech-tag:hover {
    background: rgba(138, 43, 226, 0.2);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 1000px;
    margin: 0 auto;
}

.skills-grid div {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .skills-grid div {
    border-color: rgba(0, 0, 0, 0.1);
}

.skills-grid div::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: var(--transition-smooth);
}

.skills-grid div:hover::before {
    opacity: 0.1;
}

.skills-grid div:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skills-grid h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    font-weight: 600;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.skills-grid p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

/* Education */
.education {
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

[data-theme="light"] .education {
    background: rgba(0, 0, 0, 0.02);
}

.education h3 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.education p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 0.5rem;
}

/* Resume */
.resume {
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

[data-theme="light"] .resume {
    background: rgba(0, 0, 0, 0.02);
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-description {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
}

.resume-buttons {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2rem);
    flex-wrap: wrap;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1rem, 2.5vw, 1.2rem) clamp(2rem, 5vw, 2.5rem);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
}

.view-btn {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.download-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .download-btn {
    border-color: rgba(0, 0, 0, 0.2);
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

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

.view-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
}

.download-btn:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(79, 172, 254, 0.3);
}

.resume-btn i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.resume-btn:hover i {
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ENHANCED MOBILE RESPONSIVE DESIGN */

/* Large tablets and small laptops (1024px and down) */
@media (max-width: 1024px) {
    .navbar .container {
        gap: 0.5rem;
    }
    
    .navbar .nav-menu {
        gap: 0.3rem;
    }
    
    .navbar .nav-menu li a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .experience .timeline {
        padding: 0 1.5rem;
    }
    
    .timeline-item {
        width: calc(50% - 2.5rem);
        max-width: 400px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        width: 20px;
        height: 20px;
        top: 2.5rem;
    }
    
    .timeline-item:nth-child(odd)::after {
        right: -3rem;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -3rem;
    }
}

/* Tablets (768px and down) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    [data-theme="light"] .navbar {
        border-bottom-color: rgba(0, 0, 0, 0.15);
    }
    
    .navbar .container {
        position: relative;
    }
    
    .navbar .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-heavy);
        overflow-y: auto;
        z-index: 1000;
        justify-content: flex-start;
        align-items: center;
    }
    
    [data-theme="light"] .navbar .nav-menu {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    }
    
    .navbar .nav-menu.mobile-open {
        display: flex;
        animation: slideInFromTop 0.3s ease-out;
    }
    
    .navbar .nav-menu li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .navbar .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.2rem 2rem;
        border-radius: var(--border-radius-md);
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        font-weight: 500;
        min-height: 56px;
        background: var(--bg-card);
        backdrop-filter: blur(10px);
        transition: var(--transition-smooth);
        text-transform: capitalize;
        letter-spacing: 0.5px;
    }
    
    [data-theme="light"] .navbar .nav-menu li a {
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-menu li a.active {
        background: var(--primary-gradient);
        color: var(--text-primary);
        border-color: transparent;
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
        transform: scale(1.02);
    }
    
    .navbar .nav-menu li a:hover {
        background: rgba(102, 126, 234, 0.15);
        border-color: rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    }
    
    .mobile-toggle {
        display: flex;
        order: 3;
    }
    
    .theme-toggle {
        order: 2;
    }
    
    .navbar .nav-brand {
        order: 1;
        flex-grow: 1;
    }
    
    .navbar .nav-menu::before {
        content: '✕';
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 1.5rem;
        color: var(--text-secondary);
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bg-card);
        transition: var(--transition-smooth);
    }
    
    .navbar .nav-menu::before:hover {
        background: rgba(255, 0, 0, 0.2);
        color: #ff6b6b;
    }
    
    .header {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-links a {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    .experience .timeline {
        padding: 0 1rem;
    }
    
    .experience .timeline::after {
        left: 30px;
        width: 3px;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        max-width: none;
        padding: 1.5rem;
        margin-left: 70px;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        margin-left: 70px;
        margin-right: 0;
    }
    
    .timeline-item::after {
        left: -58px;
        top: 2rem;
        width: 20px;
        height: 20px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -58px;
    }
    
    .timeline-item ul li {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar .nav-menu {
        padding: 5rem 1.5rem 2rem;
    }
    
    .navbar .nav-menu li {
        max-width: 280px;
    }
    
    .navbar .nav-menu li a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 0.6rem;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2.5px;
    }
    
    .header {
        min-height: 70vh;
        padding: 90px 0 50px;
    }
    
    .social-links a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .experience .timeline {
        padding: 0 0.5rem;
    }
    
    .timeline-item {
        margin-left: 50px;
        padding: 1.2rem;
        width: calc(100% - 60px);
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 50px;
    }
    
    .timeline-item::after {
        left: -42px;
        width: 16px;
        height: 16px;
        top: 1.5rem;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -42px;
    }
    
    .experience .timeline::after {
        left: 20px;
        width: 2px;
    }
    
    .timeline-item ul li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }
    
    .timeline-item ul li::before {
        font-size: 0.7rem;
    }
    
    .project-card,
    .skills-grid div {
        padding: 1.5rem;
    }
    
    .project-header {
        gap: 0.75rem;
    }
    
    .github-link {
        font-size: 1.3rem;
    }
    
    .tech-tags {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .resume-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .resume-btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 1rem 2rem;
    }
}

/* Very small screens (360px and down) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .timeline-item {
        margin-left: 40px;
        padding: 1rem;
        width: calc(100% - 50px);
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 40px;
    }
    
    .timeline-item::after {
        left: -32px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -32px;
    }
    
    .experience .timeline::after {
        left: 15px;
    }
    
    .timeline-item ul li {
        font-size: 0.85rem;
        padding-left: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar .nav-menu li a:hover,
    .social-links a:hover,
    .project-card:hover,
    .skills-grid div:hover,
    .timeline-item:hover,
    .resume-btn:hover {
        transform: none;
    }
    
    .navbar .nav-menu li a,
    .social-links a,
    .mobile-toggle,
    .theme-toggle,
    .resume-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .header h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .navbar .nav-menu {
        height: calc(100vh - 80px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar,
    .project-card,
    .skills-grid div,
    .timeline-item {
        backdrop-filter: blur(25px);
    }
}

/* Utility Classes for Mobile */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Add animation for mobile menu */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay when mobile menu is open */
.navbar .nav-menu.mobile-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Loading and Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievements {
    background: rgba(255, 255, 255, 0.02);
    padding: clamp(60px, 12vw, 100px) 0;
}

[data-theme="light"] .achievements {
    background: rgba(0, 0, 0, 0.02);
}

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

.achievements h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    line-height: 1.2;
}

.achievements h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.achievements ul {
    list-style: disc inside;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.achievements ul li {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2.2rem;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 6px 32px rgba(102, 126, 234, 0.08);
    color: var(--text-secondary);
    line-height: 1.7;
    transition: var(--transition-smooth);
    position: relative;
    border: 1.5px solid rgba(102, 126, 234, 0.08);
}

.achievements ul li:last-child {
    margin-bottom: 0;
}

.achievements ul li a {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.achievements ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline wavy;
}

@media (max-width: 600px) {
  .achievements ul li {
    padding: 1rem 1.1rem;
    font-size: 0.98rem;
  }
}

.achievements ul li:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
