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

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #667eea;
    --accent-tertiary: #764ba2;
    --accent-gold: #fbbf24;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    
    /* Animation variables */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-gold: #fbbf24;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition-medium);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px var(--shadow-medium);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-medium);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-medium);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    transition: width var(--transition-medium);
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-medium);
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.1) rotate(15deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-medium);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(10px) translateY(10px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: aurora 15s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.7; transform: scale(1.1) rotate(5deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(251, 191, 36, 0.5)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.quantum { 
    color: #a78bfa; 
    animation: pulse-quantum 2s ease-in-out infinite;
}

.fullstack { 
    color: #34d399; 
    animation: pulse-fullstack 2s ease-in-out infinite 0.5s;
}

.systems { 
    color: #fbbf24; 
    animation: pulse-systems 2s ease-in-out infinite 1s;
}

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

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

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.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: left 0.6s;
}

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

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

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--transition-medium);
    position: relative;
}

.social-link:hover {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Quantum Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantum-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.qubit {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.qubit:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: qubit-spin 3s linear infinite;
}

.qubit:nth-child(2) {
    bottom: 0;
    left: 0;
    animation: qubit-spin 3s linear infinite reverse;
    animation-delay: -1s;
}

.qubit:nth-child(3) {
    bottom: 0;
    right: 0;
    animation: qubit-spin 3s linear infinite;
    animation-delay: -2s;
}

@keyframes qubit-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="rgba(139, 92, 246, 0.1)"/></svg>');
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.research-interests h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.research-interests ul {
    list-style: none;
}

.research-interests li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    transition: all var(--transition-medium);
}

.research-interests li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    transition: all var(--transition-medium);
}

.research-interests li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.research-interests li:hover::before {
    color: var(--accent-secondary);
    transform: scale(1.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.skill-category h4 i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill::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: left 0.6s;
}

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

/* Achievements Section */
.achievements {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.achievement-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
    text-align: center;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 48px var(--shadow-medium);
    color: white;
}

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

.achievement-card.featured {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(254, 243, 199, 0.1) 100%);
}

.achievement-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-medium);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotateY(360deg);
}

.achievement-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    transition: color var(--transition-medium);
}

.achievement-card:hover h3 {
    color: white;
}

.achievement-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: color var(--transition-medium);
}

.achievement-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.verify-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-medium);
}

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

.achievement-card:hover .verify-link {
    color: white;
    border-color: white;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(139, 92, 246, 0.05) 50%, transparent 55%),
                linear-gradient(-45deg, transparent 45%, rgba(37, 99, 235, 0.05) 50%, transparent 55%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 64px var(--shadow-medium);
}

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

.project-card.featured {
    border: 2px solid var(--accent-gold);
    position: relative;
}

.project-card.featured::after {
    content: '⭐ Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.project-image {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 140px;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float-bg 20s linear infinite;
}

@keyframes float-bg {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(40px) translateY(40px); }
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(251, 191, 36, 0.9);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.project-icon {
    font-size: 4rem;
    color: white;
    transition: all var(--transition-medium);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotateY(15deg);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-medium);
}

.tech:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
}

.project-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.more-projects {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all var(--transition-medium);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.contact-method i {
    width: 24px;
    font-size: 1.25rem;
    color: var(--accent-primary);
    transition: color var(--transition-medium);
}

.contact-method:hover i {
    color: white;
}

.current-focus {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.current-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
}

.current-focus h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.current-focus ul {
    list-style: none;
}

.current-focus li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    transition: all var(--transition-medium);
}

.current-focus li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.current-focus li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .footer {
    background: #0f172a;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-stats img {
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.footer-stats img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-primary);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .quantum-animation {
        width: 200px;
        height: 200px;
    }
    
    .qubit {
        width: 60px;
        height: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .achievement-card {
        padding: 2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skill-category {
        padding: 1.25rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .project-image {
        padding: 2rem;
        min-height: 100px;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .contact-method {
        padding: 1.25rem;
    }
    
    .current-focus {
        padding: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 100%);
}

/* Selection Color */
::selection {
    background: var(--accent-secondary);
    color: white;
}

::-moz-selection {
    background: var(--accent-secondary);
    color: white;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.theme-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .loading-screen,
    .scroll-progress {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --text-primary: #000000;
        --text-secondary: #333333;
        --accent-primary: #0000ee;
        --border-color: #000000;
    }
    
    [data-theme="dark"] {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent-primary: #00ffff;
        --border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .qubit {
        animation: none !important;
    }
    
    .hero::before,
    .hero::after {
        animation: none !important;
    }
}

/* Dark Mode Enhancements */
[data-theme="dark"] .project-card:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .achievement-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .skill-category:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Additional Utility Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease forwards;
}

/* New ScholarAI Demo Section Styles */
.video-embed { 
    margin-top: 1rem; 
    aspect-ratio: 16/9; 
}

.video-embed iframe { 
    width: 100%; 
    height: 100%; 
    border-radius: 10px; 
}

.links-row a { 
    margin-right: 12px; 
}

.bullets { 
    margin: 1rem 0 0; 
    line-height: 1.6; 
}

.btn-ghost { 
    background: transparent; 
    border: 1px solid var(--accent-primary, #666); 
    color: var(--text-primary);
}

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

.hero-quicklinks { 
    margin-top: .5rem; 
    opacity: .9; 
}

details > summary { 
    cursor: pointer; 
    margin: .75rem 0; 
    font-weight: 600; 
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Co-founder Section */
.hero-cofounder {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-cofounder a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.hero-cofounder a:hover {
    text-decoration: underline;
}

/* Demo Section Spacing */
.demo-spacer {
    height: 2rem;
}

.demo-bottom-spacer {
    height: 4rem;
    margin-bottom: 2rem;
}

/* Fix line visibility for dark/light modes */
hr, .divider, details > summary::after {
    border-color: var(--border-color);
}

/* Ensure borders are visible in both themes */
.section-divider {
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Details summary styling for better visibility */
details > summary {
    cursor: pointer;
    margin: .75rem 0;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Footer text visibility fix */
.footer p {
    color: var(--text-primary) !important;
    opacity: 1;
}

/* Ensure footer content is visible in both themes */
.footer-content {
    color: var(--text-primary);
}

.footer-content p {
    color: var(--text-secondary) !important;
    font-weight: 400;
}
