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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    transition: var(--transition-theme);
}

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --text-color: #334155;
    --border-color: #e2e8f0;
    
    /* Theme transition */
    --transition-theme: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #c084fc;
    --accent-color: #4ade80;
    --dark-color: #f8fafc;
    --light-color: #0f172a;
    --gray-color: #94a3b8;
    --white-color: #1e293b;
    --text-color: #e2e8f0;
    --border-color: #475569;
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    --gradient-secondary: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #4ade80 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-color);
}

.text-highlight {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-color);
    color: var(--text-color);
    transition: var(--transition-theme);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 96%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.navbar.scrolled .nav-brand a {
    color: var(--dark-color);
}

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

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.navbar.scrolled .nav-link {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem; /* Increased for better touch target */
    min-width: 44px; /* Ensure minimum touch target size */
    min-height: 44px; /* Ensure minimum touch target size */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.navbar.scrolled .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bar {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar.scrolled .bar {
    background: rgba(255, 255, 255, 0.9);
}

/* Animated Atom Logo */
.atom-logo {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nucleus {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.orbit-1 {
    width: 30px;
    height: 30px;
    animation: rotate 4s linear infinite;
    transform-style: preserve-3d;
}

.orbit-2 {
    width: 36px;
    height: 36px;
    animation: rotate 6s linear infinite reverse;
    transform: rotateX(60deg);
    transform-style: preserve-3d;
}

.orbit-3 {
    width: 40px;
    height: 40px;
    animation: rotate 8s linear infinite;
    transform: rotateX(-60deg);
    transform-style: preserve-3d;
}

.electron {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.8);
}

.electron-1 {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.electron-2 {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.electron-3 {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Scrolled navbar atom styling */
.navbar.scrolled .nucleus {
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(37, 99, 235, 0.8) 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.navbar.scrolled .orbit {
    border-color: rgba(37, 99, 235, 0.3);
}

.navbar.scrolled .electron {
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.8);
}

/* Dark theme atom styling */
[data-theme="dark"] .nucleus {
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(96, 165, 250, 0.8) 100%);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

[data-theme="dark"] .orbit {
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .electron {
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.8);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-theme);
    position: relative;
    overflow: hidden;
}

.theme-toggle::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.5s ease;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.navbar.scrolled .theme-toggle {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.navbar.scrolled .theme-toggle:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

/* Dark theme navbar fixes */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

[data-theme="dark"] .nav-link {
    color: var(--text-color);
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid transparent;
}

[data-theme="dark"] .navbar.scrolled .nav-link {
    color: var(--text-color);
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.4);
}

[data-theme="dark"] .navbar.scrolled .nav-link:hover,
[data-theme="dark"] .navbar.scrolled .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid transparent;
}

/* Theme icon animation */
#theme-icon {
    transition: var(--transition-theme);
}

[data-theme="dark"] #theme-icon {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Dynamic Background Canvas */
#voronoi-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.phd-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-size: 0.75em;
    margin-left: 0.3em;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

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

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

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

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

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

/* Patent Links */
.patent-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.patent-link:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

/* Floating Contact Widget */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.floating-contact-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 1.5rem;
}

.floating-contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.floating-contact-content {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.floating-contact.active .floating-contact-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    min-height: 44px; /* Touch target compliance */
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-option i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Mobile adjustments for floating contact */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-contact-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .floating-contact-content {
        bottom: 70px;
        right: -10px;
        min-width: 180px;
    }
}

/* Skills Showcase */
.skills-showcase {
    position: relative;
    overflow: hidden;
}

.skills-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(37, 99, 235, 0.05);
    padding: 0.5rem;
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.skill-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-toggle-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.5s ease;
}

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

.skill-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.skill-toggle-btn i {
    font-size: 1.1rem;
}

.skills-category {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    top: 80px;
}

.skills-category.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    top: 0;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

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

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

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skill-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover .skill-icon::after {
    opacity: 1;
}

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

.skill-content {
    flex: 1;
    min-width: 0;
}

.skill-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.skill-level {
    height: 6px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.skill-years {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

/* Staggered animation for skill cards */
.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }
.skill-card:nth-child(5) { transition-delay: 0.5s; }
.skill-card:nth-child(6) { transition-delay: 0.6s; }

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .skill-content h4 {
        font-size: 1rem;
    }
    
    .skill-years {
        font-size: 0.8rem;
    }
    
    .skills-toggle {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .skill-toggle-btn {
        padding: 0.75rem;
        min-height: 44px;
    }
}

/* Dark theme skill cards */
[data-theme="dark"] .skill-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.4);
    backdrop-filter: blur(15px);
}

[data-theme="dark"] .skill-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .skills-toggle {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .skill-toggle-btn {
    color: var(--text-color);
}

[data-theme="dark"] .skill-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Dark theme section backgrounds */
[data-theme="dark"] .bg-light {
    background-color: var(--light-color);
}

/* Dark theme general card improvements */
[data-theme="dark"] .detail-item {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .detail-item:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(71, 85, 105, 0.6) !important;
}

/* Dark theme project cards */
[data-theme="dark"] .project-card {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .project-card:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

[data-theme="dark"] .project-card h3,
[data-theme="dark"] .project-card h4 {
    color: var(--dark-color) !important;
}

[data-theme="dark"] .project-card p {
    color: var(--text-color) !important;
}

[data-theme="dark"] .project-links {
    border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
}

[data-theme="dark"] .project-links a {
    background: linear-gradient(145deg, #1e3a8a, #1e40af, #2563eb) !important;
    border: 1px solid rgba(30, 58, 138, 0.4) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(30, 58, 138, 0.4),
        0 4px 8px rgba(30, 58, 138, 0.2) !important;
}

[data-theme="dark"] .project-links a:hover {
    background: linear-gradient(145deg, #1e40af, #2563eb, #3b82f6) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 3px 6px rgba(30, 58, 138, 0.5),
        0 6px 12px rgba(30, 58, 138, 0.3) !important;
}

[data-theme="dark"] .project-tagline {
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(192, 132, 252, 0.1)) !important;
}

/* Dark theme research items */
[data-theme="dark"] .research-item {
    background: rgba(51, 65, 85, 0.95) !important;
    border: 2px solid rgba(96, 165, 250, 0.3) !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(15px) !important;
}

[data-theme="dark"] .research-item:hover {
    background: rgba(51, 65, 85, 1) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .research-item h3,
[data-theme="dark"] .research-item h4 {
    color: var(--dark-color) !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .research-item p {
    color: rgba(226, 232, 240, 0.9) !important;
    font-weight: 400 !important;
}

[data-theme="dark"] .research-item em {
    color: rgba(148, 163, 184, 0.8) !important;
    font-style: italic !important;
}

/* Dark theme publication items */
[data-theme="dark"] .publication-item {
    background: rgba(51, 65, 85, 0.95) !important;
    border: 2px solid rgba(96, 165, 250, 0.3) !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(15px) !important;
    padding: 1.5rem !important;
    border-radius: 15px !important;
    margin-bottom: 1rem !important;
}

[data-theme="dark"] .publication-item:hover {
    background: rgba(51, 65, 85, 1) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .publication-item h4 {
    color: var(--dark-color) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

[data-theme="dark"] .publication-item p {
    color: rgba(226, 232, 240, 0.9) !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

[data-theme="dark"] .publication-item em {
    color: rgba(148, 163, 184, 0.8) !important;
    font-style: italic !important;
}

/* Dark theme publications container */
[data-theme="dark"] .publications {
    background: transparent !important;
}

[data-theme="dark"] .publications h3 {
    color: var(--dark-color) !important;
    margin-bottom: 1.5rem !important;
}

/* Publications Grid Styling */
.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.publication-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.6s ease;
}

.publication-card:hover::before {
    left: 100%;
}

.publication-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.publication-card.featured-pub {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(139, 92, 246, 0.02));
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pub-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-status.ongoing {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.pub-status.white-paper {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.pub-status.working-paper {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.pub-status.published {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.pub-year {
    font-weight: 600;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.publication-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.pub-journal {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.pub-summary {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pub-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.pub-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.pub-tag.ai-research { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.2); }
.pub-tag.cognitive { background: rgba(236, 72, 153, 0.1); color: #ec4899; border-color: rgba(236, 72, 153, 0.2); }
.pub-tag.fair { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.pub-tag.collaboration { background: rgba(6, 182, 212, 0.1); color: #06b6d4; border-color: rgba(6, 182, 212, 0.2); }
.pub-tag.supervision { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
.pub-tag.human-ai { background: rgba(168, 85, 247, 0.1); color: #a855f7; border-color: rgba(168, 85, 247, 0.2); }
.pub-tag.privacy { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.pub-tag.synthetic-data { background: rgba(34, 197, 94, 0.1); color: #22c55e; border-color: rgba(34, 197, 94, 0.2); }
.pub-tag.genomics { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.pub-tag.data-integration { background: rgba(147, 51, 234, 0.1); color: #9333ea; border-color: rgba(147, 51, 234, 0.2); }
.pub-tag.phylogenetics { background: rgba(20, 184, 166, 0.1); color: #14b8a6; border-color: rgba(20, 184, 166, 0.2); }
.pub-tag.bioinformatics { background: rgba(251, 146, 60, 0.1); color: #fb923c; border-color: rgba(251, 146, 60, 0.2); }
.pub-tag.gene-ontology { background: rgba(124, 58, 237, 0.1); color: #7c3aed; border-color: rgba(124, 58, 237, 0.2); }
.pub-tag.systems-biology { background: rgba(217, 70, 239, 0.1); color: #d946ef; border-color: rgba(217, 70, 239, 0.2); }
.pub-tag.machine-learning { background: rgba(99, 102, 241, 0.1); color: #6366f1; border-color: rgba(99, 102, 241, 0.2); }

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.pub-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    color: white;
}

.publications-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.pub-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    font-weight: 500;
}

.stat-label small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
}

/* Dark theme publication cards */
[data-theme="dark"] .publication-card {
    background: rgba(51, 65, 85, 0.95) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .publication-card:hover {
    background: rgba(51, 65, 85, 1) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

[data-theme="dark"] .publication-card.featured-pub {
    border-left: 4px solid var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05), rgba(192, 132, 252, 0.05)) !important;
}

[data-theme="dark"] .publication-card h4 {
    color: var(--dark-color) !important;
}

[data-theme="dark"] .pub-journal {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .pub-summary {
    color: rgba(226, 232, 240, 0.9) !important;
}

[data-theme="dark"] .pub-year {
    color: var(--gray-color) !important;
}

[data-theme="dark"] .publications-footer {
    border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
}

[data-theme="dark"] .stat-number {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .stat-label {
    color: var(--gray-color) !important;
}

[data-theme="dark"] .stat-label small {
    color: var(--gray-color) !important;
    opacity: 0.7;
}

/* Mobile responsiveness for publications */
@media (max-width: 768px) {
    .publication-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publication-card {
        padding: 1.5rem;
    }
    
    .publications-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .pub-stats {
        gap: 1.5rem;
    }
    
    .pub-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pub-link {
        margin-left: 0;
        justify-content: center;
    }
}

/* Dark theme gradient adjustments for better readability */
[data-theme="dark"] .skill-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.8), rgba(192, 132, 252, 0.8));
}

[data-theme="dark"] .skill-icon::after {
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Dark theme mobile menu */
[data-theme="dark"] .nav-menu {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .nav-menu .nav-link {
    color: var(--text-color);
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .nav-menu .nav-link:hover,
[data-theme="dark"] .nav-menu .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

/* Dark theme form styling */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(51, 65, 85, 0.9) !important;
    border: 2px solid rgba(96, 165, 250, 0.3) !important;
    color: var(--text-color) !important;
    font-size: 1rem !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background: rgba(51, 65, 85, 1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
    outline: none !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: rgba(148, 163, 184, 0.8) !important;
    font-weight: 400 !important;
}

/* Dark theme form labels */
[data-theme="dark"] label {
    color: var(--dark-color) !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

/* Dark theme form container */
[data-theme="dark"] .contact-form,
[data-theme="dark"] form {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
}

/* Dark theme form groups */
[data-theme="dark"] .form-group {
    margin-bottom: 1.5rem !important;
}

/* Dark theme buttons */
[data-theme="dark"] .btn,
[data-theme="dark"] button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.875rem 2rem !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] button[type="submit"]:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), rgba(192, 132, 252, 0.9)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3) !important;
}

/* Dark theme section headings */
[data-theme="dark"] .section h2 {
    color: var(--dark-color) !important;
}

[data-theme="dark"] .section h3 {
    color: var(--dark-color) !important;
}

/* Dark theme text elements */
[data-theme="dark"] .section p {
    color: var(--text-color) !important;
}

/* Dark theme stat items */
[data-theme="dark"] .stat-item {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .stat-item h3 {
    color: var(--dark-color) !important;
}

[data-theme="dark"] .stat-item p {
    color: var(--text-color) !important;
}

/* Dark theme research areas */
[data-theme="dark"] .research-area {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .research-area h3 {
    color: var(--dark-color) !important;
}

[data-theme="dark"] .research-area p {
    color: var(--text-color) !important;
}

/* Dark theme footer */
[data-theme="dark"] .footer {
    background: rgba(15, 23, 42, 0.95) !important;
    border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .footer p {
    color: var(--text-color) !important;
}

[data-theme="dark"] .footer a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .footer a:hover {
    color: var(--secondary-color) !important;
}

/* Dark theme floating contact widget */
[data-theme="dark"] .floating-contact-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .floating-contact-toggle:hover {
    box-shadow: 0 12px 35px rgba(96, 165, 250, 0.5);
}

[data-theme="dark"] .floating-contact-content {
    background: rgba(30, 41, 59, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .contact-option {
    color: var(--text-color) !important;
    background: transparent;
}

[data-theme="dark"] .contact-option::before {
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
}

[data-theme="dark"] .contact-option:hover {
    background: rgba(96, 165, 250, 0.15) !important;
    color: var(--primary-color) !important;
}

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

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.hero-social a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 0%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

.section-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-details {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-item h3 i {
    font-size: 1.25rem;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Research Section */
.research-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.research-area {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.research-area:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.area-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
}

.research-area h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.publications {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.publications h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.publication-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.publication-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.publication-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.publication-item p {
    margin: 0;
    font-style: italic;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-column: span 1;
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.project-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
    line-height: 1.4;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}

.project-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(145deg, #1e3a8a, #1e40af, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 58, 138, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(30, 58, 138, 0.3),
        0 4px 8px rgba(30, 58, 138, 0.15);
    flex: 1;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.project-links a::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.5s ease;
}

.project-links a:hover::before {
    left: 100%;
}

.project-links a:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, #1e40af, #2563eb, #3b82f6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 3px 6px rgba(30, 58, 138, 0.4),
        0 6px 12px rgba(30, 58, 138, 0.2);
    color: white;
}

.project-links a:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 2px 4px rgba(30, 58, 138, 0.3),
        0 1px 2px rgba(30, 58, 138, 0.2);
}

.projects-footer {
    text-align: center;
}

/* Photography Section */
.photo-gallery {
    display: grid;
    gap: 4rem;
}

.photo-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h4 {
    margin-bottom: 0.5rem;
}

.photo-overlay p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        height: 4.5rem;
        padding: 0 1rem;
    }
    
    
    .atom-logo {
        width: 32px;
        height: 32px;
    }
    
    .nucleus {
        width: 6px;
        height: 6px;
    }
    
    .orbit-1 {
        width: 24px;
        height: 24px;
    }
    
    .orbit-2 {
        width: 28px;
        height: 28px;
    }
    
    .orbit-3 {
        width: 32px;
        height: 32px;
    }
    
    .electron {
        width: 3px;
        height: 3px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.5rem;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

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

    .nav-menu .nav-link {
        color: var(--dark-color);
        font-size: 1.1rem;
        padding: 1.25rem 2rem; /* Increased from 1rem to 1.25rem for 44px+ touch target */
        min-height: 44px; /* Ensure minimum touch target size */
        width: 80%;
        margin: 0 auto;
        text-align: center;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .navbar.scrolled .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .hero {
        padding-top: 5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    #voronoi-canvas {
        opacity: 0.5;
    }

    .hero-title {
        font-size: 1.3rem;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling Offset */
[id] {
    scroll-margin-top: 5rem;
}
