/* ============================================
   QPIAI-INSPIRED DARK FUTURISTIC THEME
   AI/ML Drug Discovery Portfolio
   ============================================ */

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

:root {
    /* Dark Theme Color Palette - QpiAI Inspired */
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #5ce1e6;
    --secondary: #7c3aed;
    --secondary-light: #a78bfa;
    --accent: #f472b6;
    --accent-green: #10b981;
    
    /* Dark Backgrounds */
    --bg-dark-1: #0a0a0f;
    --bg-dark-2: #0f0f1a;
    --bg-dark-3: #141428;
    --bg-dark-4: #1a1a2e;
    --bg-card: rgba(20, 20, 40, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Borders & Effects */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #f472b6 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    --gradient-radial: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 30px rgba(0, 212, 255, 0.3);
    --glow-secondary: 0 0 30px rgba(124, 58, 237, 0.3);
    --glow-accent: 0 0 30px rgba(244, 114, 182, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-dark-1);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================
   GLOWING GRID BACKGROUND
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   NAVIGATION - GLASS MORPHISM
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 1px var(--border-glow);
}

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

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.nav-brand:hover {
    filter: brightness(1.2);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

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

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

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

.btn-github {
    background: var(--gradient-primary);
    color: var(--bg-dark-1) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
}

.btn-github:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.btn-github::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION - FUTURISTIC
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 10rem var(--spacing-lg) 6rem;
    background: var(--gradient-radial);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Gradient Orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 30%);
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(90deg); }
    50% { transform: translate(0, 4%) rotate(180deg); }
    75% { transform: translate(-2%, 2%) rotate(270deg); }
}

/* Floating 3D Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: shapeFloat 15s ease-in-out infinite;
    filter: blur(1px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.15) 0%, transparent 70%);
    top: 30%;
    left: 5%;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Profile Picture */
.profile-picture-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-xl);
    border-radius: 50%;
}

.profile-picture-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: profileGlow 3s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes profileGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-dark-1);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    animation: heroTitleIn 1s ease-out;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Futuristic Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    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.5s ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark-1);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-primary), inset 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-dark-2);
    position: relative;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    background: #2a2a3e;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.about-content p:hover {
    background: #32324a;
    border-color: var(--border-glow);
    box-shadow: var(--glow-primary);
    transform: translateX(10px);
}

.about-content strong {
    color: var(--primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-dark-1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

/* Current Work Banner - Glowing Card */
.current-work-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-2xl);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
    box-shadow: 
        var(--glow-primary),
        inset 0 0 60px rgba(0, 212, 255, 0.05);
}

.current-work-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: bannerShimmer 4s ease-in-out infinite;
}

@keyframes bannerShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.current-work-banner:hover {
    border-color: var(--primary);
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.4),
        inset 0 0 80px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
    transition: all 0.4s ease;
}

.current-work-banner h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.work-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.work-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.work-item {
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.work-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.work-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

.work-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}


.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.tech-badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary);
    color: var(--bg-dark-1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-primary);
}

/* Project Categories */
.project-category {
    margin-bottom: var(--spacing-2xl);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
    display: inline-block;
}

/* Project Cards - Glassmorphism */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-10px);
    box-shadow: 
        var(--glow-primary),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card:hover .project-header h3 {
    color: var(--primary);
}

.project-tag {
    background: var(--gradient-primary);
    color: var(--bg-dark-1);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--glow-primary);
}

.new-badge {
    background: var(--gradient-secondary);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(244, 114, 182, 0.6);
    }
}

.project-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.project-card.featured::before {
    height: 4px;
}

.demo-link {
    background: var(--gradient-secondary) !important;
    border-color: var(--secondary) !important;
}

.demo-link:hover {
    box-shadow: var(--glow-accent) !important;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.feature-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: var(--primary);
    color: var(--bg-dark-1);
    transform: translateY(-2px);
}

.project-highlights {
    margin-bottom: var(--spacing-md);
}

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

.project-highlights li {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.project-highlights li:hover {
    color: var(--text-secondary);
    transform: translateX(5px);
}

.project-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications {
    background: var(--bg-dark-2);
    position: relative;
}

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

.publications-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.publications-intro strong {
    color: var(--primary);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
}

.publication-item {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.publication-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

/* Journal Logo Containers */
.journal-logo-container {
    width: 160px;
    min-height: 180px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    transition: all 0.4s ease;
}

/* Nature Publishing Group - Blue */
.journal-logo-container.nature {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
}

/* JACS - Gold/Orange */
.journal-logo-container.jacs {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%);
}

/* J. Phys. Chem. Lett - Purple */
.journal-logo-container.jpcl {
    background: linear-gradient(135deg, #553c9a 0%, #6b46c1 50%, #805ad5 100%);
}

/* Nano Letters - Teal/Green */
.journal-logo-container.nano {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
}

.publication-item:hover .journal-logo-container {
    transform: scale(1.05);
}

.journal-logo {
    text-align: center;
    color: white;
}

.journal-logo .logo-text {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.journal-logo .logo-subtext {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journal-year {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.publication-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.publication-item:hover .publication-title {
    color: var(--primary);
}

.publication-authors {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.publication-authors strong {
    color: var(--primary);
}

.publication-journal {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.publication-note {
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
    margin-bottom: var(--spacing-sm);
}

.pub-tag {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.publication-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

.publications-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

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

.publications-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.publications-footer a:hover {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.experience {
    background: var(--bg-dark-1);
}

.timeline {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

.timeline-item {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-dark-2);
    box-shadow: var(--glow-primary);
    z-index: 10;
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
}

.timeline-content:hover {
    border-color: var(--border-glow);
    transform: translateX(10px);
    box-shadow: var(--glow-primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.timeline-date {
    background: var(--gradient-primary);
    color: var(--bg-dark-1);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-company {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 1.0625rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* Publications Highlight */
.publications-highlight {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.publications-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.publication-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary);
    transition: all 0.4s ease;
}

.publication-card:hover {
    transform: translateX(10px);
    box-shadow: var(--glow-primary);
    border-left-color: var(--secondary);
}

.publication-card p {
    margin: 0 0 var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.publication-card .journal {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--bg-dark-1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.skill-category {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--bg-dark-1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-primary);
    border-color: var(--primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-dark-2);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.opportunity-list {
    text-align: left;
    max-width: 650px;
    margin: 0 auto var(--spacing-xl);
    list-style: none;
    padding: 0;
}

.opportunity-list li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.opportunity-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--glow-primary);
    border-left-color: var(--secondary);
}

.opportunity-list li strong {
    color: var(--text-primary);
}

.why-hire-me {
    background: var(--bg-glass);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border-glow);
    position: relative;
}

.why-hire-me::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.3;
}

.why-hire-me h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.why-hire-me ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.why-hire-me li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.why-hire-me li:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.contact-cta {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.4s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: var(--bg-dark-1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.contact-link .icon {
    width: 22px;
    height: 22px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark-1);
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-2xl) 0;
    position: relative;
}

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

.footer-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 0.9rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-md);
        justify-content: flex-start;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-marker {
        left: -26px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: start;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .current-work-banner h3 {
        font-size: 1.5rem;
    }
    
    .work-highlights {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Publications responsive */
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        flex-direction: column;
    }
    
    .journal-logo-container {
        width: 100%;
        min-height: 120px;
    }
    
    .profile-picture-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 8rem var(--spacing-sm) 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .project-card {
        padding: var(--spacing-lg);
    }
    
    .current-work-banner {
        padding: var(--spacing-lg);
    }
    
    .why-hire-me {
        padding: var(--spacing-lg);
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Selection Color */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
