@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700;800&display=swap');
@import url('responsive-enhancements.css');

/* CSS Custom Properties for Theme Management */
:root {
    /* Light Theme Colors */
    --primary-gradient: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 50%, #f5f0ff 100%);
    --secondary-gradient: linear-gradient(135deg, #f5f0ff 0%, #e8f5e8 50%, #f0f8ff 100%);
    --accent-gradient: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 50%, #e8f5e8 100%);
    --success-gradient: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 50%, #f5f0ff 100%);
    
    --bg-primary: #fafffe;
    --bg-secondary: #f5f9f5;
    --bg-tertiary: #e8f5e8;
    --text-primary: #2d4a2d;
    --text-secondary: #4a6b4a;
    --text-muted: #6b8a6b;
    --border-color: #d4edda;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Glass Morphism */
    --glass-bg: rgba(232, 245, 232, 0.3);
    --glass-border: rgba(240, 248, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(45, 74, 45, 0.1);
    
    /* Typography */
    --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Advanced Glass Effects */
    --glass-ultra: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(255, 255, 255, 0.15);
    --glass-light: rgba(255, 255, 255, 0.25);
    --glass-border-light: rgba(255, 255, 255, 0.18);
    --glass-border-heavy: rgba(255, 255, 255, 0.3);
    --backdrop-blur: blur(25px);
    --backdrop-blur-heavy: blur(40px);
    
    /* Advanced Shadows */
    --shadow-glow: 0 0 30px rgba(139, 195, 74, 0.2);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-deep: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Animation Curves */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s var(--ease-smooth);
    --transition-base: 0.4s var(--ease-smooth);
    --transition-slow: 0.6s var(--ease-smooth);
    --transition-bounce: 0.5s var(--ease-bounce);
    --transition-elastic: 0.7s var(--ease-elastic);
}

/* Dark Theme - Galaxy Effect */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --border-color: #2d3748;
    --glass-bg: rgba(26, 26, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Galaxy Colors */
    --galaxy-purple: #6366f1;
    --galaxy-pink: #ec4899;
    --galaxy-blue: #3b82f6;
    --galaxy-cyan: #06b6d4;
    --galaxy-violet: #8b5cf6;
    
    /* Enhanced Glass Effects for Dark Mode */
    --glass-ultra: rgba(255, 255, 255, 0.05);
    --glass-heavy: rgba(255, 255, 255, 0.1);
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --glass-border-heavy: rgba(255, 255, 255, 0.2);
    
    /* Galaxy Gradients */
    --primary-gradient: linear-gradient(135deg, var(--galaxy-purple) 0%, var(--galaxy-pink) 50%, var(--galaxy-blue) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--galaxy-cyan) 0%, var(--galaxy-violet) 50%, var(--galaxy-pink) 100%);
    --accent-gradient: linear-gradient(135deg, var(--galaxy-blue) 0%, var(--galaxy-purple) 50%, var(--galaxy-cyan) 100%);
    --success-gradient: linear-gradient(135deg, var(--galaxy-violet) 0%, var(--galaxy-blue) 50%, var(--galaxy-cyan) 100%);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    position: relative;
    overflow-x: hidden;
}

/* Smooth theme transition */
body * {
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 195, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

/* Dark Mode Galaxy Background */
[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: galaxyFloat 25s ease-in-out infinite;
}

[data-theme="dark"] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    pointer-events: none;
    z-index: -1;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes galaxyFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) scale(1.05); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) rotate(-1deg) scale(1.02); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-20px) rotate(1.5deg) scale(1.03); 
        opacity: 0.85;
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}



/* Dashboard Container */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    box-shadow: var(--shadow-heavy);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    position: relative;
    background: var(--primary-gradient);
    color: #2d4a2d;
    padding: var(--space-2xl);
    overflow: hidden;
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.9) 50%, 
        rgba(26, 26, 46, 0.95) 100%),
        var(--primary-gradient);
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.profile-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Theme Toggle Styles - Top Right Position */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-light);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--glass-heavy);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-base);
}

.theme-toggle .sun-icon {
    color: #f59e0b;
}

.theme-toggle .moon-icon {
    color: #6366f1;
    display: none;
}

/* Dark mode toggle states */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: transform var(--transition-base);
}

.profile-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

.profile-info h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #2d4a2d 0%, #4a90e2 50%, #8e44ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -2px;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(20) 1s both;
}

[data-theme="dark"] .profile-info h1 {
    background: linear-gradient(135deg, 
        var(--galaxy-purple) 0%, 
        var(--galaxy-pink) 25%, 
        var(--galaxy-blue) 50%, 
        var(--galaxy-cyan) 75%, 
        var(--galaxy-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: typewriter 3s steps(20) 1s both, galaxyGlow 4s ease-in-out infinite;
}

@keyframes galaxyGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
    }
    25% { 
        filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
    }
    75% { 
        filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.4));
    }
}

.profile-info h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #4a90e2;
    animation: blink 1s infinite;
}

.profile-info h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

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

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.profile-info h1:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 25px rgba(74, 144, 226, 0.3));
}

.profile-info .title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--text-primary), #4a90e2, var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
}

[data-theme="dark"] .profile-info .title {
    background: linear-gradient(90deg, 
        var(--text-primary), 
        var(--galaxy-cyan), 
        var(--galaxy-violet), 
        var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.profile-info .title:hover {
    letter-spacing: 3px;
    transform: scale(1.02);
}

.profile-info .institution {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

[data-theme="dark"] .profile-info .institution {
    color: var(--text-secondary);
    opacity: 1;
    text-shadow: 0 0 10px rgba(226, 232, 240, 0.2);
}

.profile-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.badge:hover {
    background: rgba(232, 245, 232, 0.4);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.95rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: rgba(232, 245, 232, 0.4);
    transform: translateX(5px);
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Navigation */
.nav-tabs-container {
    position: relative;
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    padding: var(--space-sm);
    gap: var(--space-xs);
    justify-content: center;
}

[data-theme="dark"] .nav-tabs {
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}





.tab-btn {
    background: none;
    border: none;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    flex: 0 0 auto;
    min-width: fit-content;
}

[data-theme="dark"] .tab-btn {
    color: var(--text-secondary);
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.1);
}

[data-theme="dark"] .tab-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .tab-btn.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.tab-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-btn.active::before {
    transform: translateX(0);
}

.tab-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform var(--transition-base);
}

.tab-btn:hover svg {
    transform: scale(1.1);
}

/* Content */
.content {
    padding: var(--space-2xl);
    background: var(--bg-primary);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--glass-light);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

[data-theme="dark"] .stat-card {
    background: var(--glass-light);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .stat-card:hover {
    background: var(--glass-heavy);
    border-color: var(--galaxy-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
    transform: translateY(-12px) scale(1.02);
}

[data-theme="dark"] .stat-card::after {
    background: radial-gradient(circle, var(--galaxy-purple) 0%, transparent 70%);
}

[data-theme="dark"] .stat-card:hover::after {
    background: radial-gradient(circle, var(--galaxy-pink) 0%, transparent 70%);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-float), var(--shadow-glow);
    background: var(--glass-heavy);
    border-color: var(--glass-border-heavy);
}

.stat-card:hover::after {
    transform: translate(30%, -30%) scale(1.5);
    background: radial-gradient(circle, rgba(139, 195, 74, 0.2) 0%, transparent 70%);
}

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

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-base);
}

.stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2d4a2d;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

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

[data-theme="dark"] .stat-content h3 {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .stat-content p {
    color: var(--text-secondary);
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.1);
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-progress {
    margin-top: var(--space-md);
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease-out 0.5s;
}

.stat-card:hover .progress-bar {
    width: var(--progress, 0%);
}

/* Objective Section */
.objective-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    box-shadow: var(--glass-shadow);
}

.objective-section h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    font-weight: 600;
    position: relative;
}

.objective-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.objective-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--space-lg);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

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

.timeline-marker {
    position: absolute;
    left: -2.25rem;
    top: 0.75rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-gradient);
    transition: transform var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
}

.timeline-content {
    background: var(--glass-light);
    backdrop-filter: var(--backdrop-blur-heavy);
    -webkit-backdrop-filter: var(--backdrop-blur-heavy);
    border: 1px solid var(--glass-border-light);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-elastic);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.timeline-content:hover {
    transform: translateX(12px) scale(1.02);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
    background: var(--glass-heavy);
    border-color: var(--glass-border-heavy);
}

.timeline-content:hover::before {
    left: 100%;
}

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

.timeline-content .institution {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.timeline-content .university {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.year,
.marks {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.year {
    background: var(--primary-gradient);
    color: #2d4a2d;
}

.marks {
    background: var(--success-gradient);
    color: #2d4a2d;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.exp-card {
    background: var(--glass-light);
    backdrop-filter: var(--backdrop-blur-heavy);
    -webkit-backdrop-filter: var(--backdrop-blur-heavy);
    border: 1px solid var(--glass-border-light);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border-left: 4px solid transparent;
    border-image: var(--accent-gradient) 1;
    transition: all var(--transition-bounce);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.exp-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 195, 74, 0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transform: translate(50%, -50%);
    opacity: 0.1;
    transition: all var(--transition-base);
}

.exp-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
    background: var(--glass-heavy);
    border-color: var(--glass-border-heavy);
}

.exp-card:hover::after {
    opacity: 1;
}

.exp-card:hover::before {
    transform: translate(30%, -30%) scale(1.2);
}

.exp-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-weight: 600;
}

.exp-card .company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.exp-card .duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
}

.exp-card .type {
    background: var(--secondary-gradient);
    color: #2d4a2d;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* Research Interests */
.research-interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.interest-tag {
    background: var(--glass-light);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-light);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-elastic);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .interest-tag {
    background: var(--glass-light);
    border: 1px solid var(--glass-border-light);
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .interest-tag:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

.interest-tag:hover {
    color: #2d4a2d;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-float), var(--shadow-glow);
    background: var(--primary-gradient);
    border-color: transparent;
    letter-spacing: 1px;
}

.interest-tag:hover::before {
    left: 0;
}

.research-metrics {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .research-metrics {
    background: var(--glass-heavy);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.research-metrics h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    font-size: 1.5rem;
    font-weight: 600;
}

[data-theme="dark"] .research-metrics h3 {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-2xl);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.metric:hover {
    background: var(--glass-bg);
    transform: scale(1.05);
}

[data-theme="dark"] .metric {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .metric:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--galaxy-purple);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transform: scale(1.08);
}

.metric-value {
    font-size: 3rem;
    font-weight: 900;
    color: #1b5e20;
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
}

[data-theme="dark"] .metric-value {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    animation: galaxyPulse 3s ease-in-out infinite;
}

@keyframes galaxyPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.6));
    }
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

[data-theme="dark"] .metric-label {
    color: var(--text-secondary);
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.2);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.pub-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border-left: 4px solid;
    border-image: var(--success-gradient) 1;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pub-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--success-gradient);
    border-radius: 50%;
    transform: translate(50%, -50%);
    opacity: 0.1;
}

.pub-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pub-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
}

.pub-item .authors {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-style: italic;
    font-size: 0.95rem;
}

.pub-item .journal {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Publication Actions - Force Visible */
.pub-item .pub-actions,
.pub-item .publication-actions,
.publication-actions,
.pub-item > .publication-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure publication items show actions */
.pub-item,
.publication-item {
    position: relative;
}

.pub-item::after,
.publication-item::after {
    content: '';
    display: block;
    clear: both;
}

.pub-item .pdf-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #2196f3;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.pub-item .pdf-request-btn:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.skill-category {
    background: var(--glass-light);
    backdrop-filter: var(--backdrop-blur-heavy);
    -webkit-backdrop-filter: var(--backdrop-blur-heavy);
    border: 1px solid var(--glass-border-light);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-float), var(--shadow-glow);
    background: var(--glass-heavy);
    border-color: var(--glass-border-heavy);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: var(--space-sm);
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--primary-gradient);
    color: #2d4a2d;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-float);
    border-color: transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Enhanced Responsive Design - Comprehensive Mobile & Desktop Optimization */

/* Ultra-wide Desktop (1440px+) */
@media (min-width: 1440px) {
    .dashboard {
        max-width: 1600px;
    }
    
    .profile-info h1 {
        font-size: clamp(3.5rem, 5vw, 4.5rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .content {
        padding: 3rem;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .dashboard {
        max-width: 1400px;
    }
    
    .profile-info h1 {
        font-size: clamp(3rem, 4vw, 4rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .experience-grid,
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop/Tablet (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .dashboard {
        max-width: 1200px;
        margin: 0 1rem;
    }
    
    .profile-info h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .experience-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content {
        padding: 2rem;
    }
    
    .nav-tabs {
        padding: 0 1rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .dashboard {
        margin: 0 0.5rem;
        border-radius: 1rem;
    }
    
    .profile-section {
        grid-template-columns: auto 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
        padding: 0 1rem;
    }
    
    .profile-avatar {
        width: clamp(100px, 15vw, 120px);
        height: clamp(100px, 15vw, 120px);
    }
    
    .contact-info {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .contact-item {
        flex: 1;
        min-width: 180px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-tabs {
        padding: 0.5rem 1rem;
        gap: 0.25rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .tab-btn {
        padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
        font-size: clamp(0.85rem, 2vw, 0.9rem);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .content {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .experience-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .publications-list .pub-item {
        padding: 1.5rem;
    }
    
    .pdf-request-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .skill-tags {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .skill-tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .dashboard {
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: 0 1rem;
    }
    
    .profile-avatar {
        width: clamp(90px, 20vw, 110px);
        height: clamp(90px, 20vw, 110px);
        margin: 0 auto;
    }
    
    .profile-info h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        letter-spacing: -1px;
        line-height: 1.1;
    }
    
    .profile-info .title {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: clamp(0.6rem, 2vw, 0.75rem);
        font-size: clamp(0.85rem, 2vw, 0.9rem);
        border-radius: 0.75rem;
    }
    
    .nav-tabs {
        padding: 0.5rem;
        gap: 0.25rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.8rem, 2.5vw, 1rem);
        font-size: clamp(0.8rem, 2vw, 0.85rem);
        flex-direction: column;
        gap: 0.25rem;
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .tab-btn svg {
        width: clamp(14px, 3vw, 16px);
        height: clamp(14px, 3vw, 16px);
    }
    
    .content {
        padding: clamp(1rem, 3vw, 1.5rem);
    }
    
    .stats-grid,
    .experience-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
    }
    
    .stat-card {
        padding: clamp(1rem, 3vw, 1.5rem);
    }
    
    .timeline {
        padding-left: clamp(1rem, 3vw, 1.5rem);
    }
    
    .timeline::before {
        left: clamp(0.4rem, 1vw, 0.5rem);
    }
    
    .timeline-marker {
        left: clamp(-1.3rem, -3vw, -1.5rem);
        width: clamp(0.6rem, 2vw, 0.75rem);
        height: clamp(0.6rem, 2vw, 0.75rem);
    }
    
    .timeline-content {
        padding: clamp(1rem, 3vw, 1.5rem);
    }
    
    .publications-list .pub-item {
        padding: clamp(1rem, 3vw, 1.25rem);
    }
    
    .pub-item h4 {
        font-size: clamp(0.95rem, 2.5vw, 1rem);
        line-height: 1.4;
    }
    
    .publication-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pdf-request-btn {
        width: 100%;
        justify-content: center;
        padding: clamp(0.6rem, 2vw, 0.75rem);
        font-size: clamp(0.85rem, 2vw, 0.9rem);
        min-height: 44px;
    }
    
    .skill-tags {
        gap: clamp(0.4rem, 1vw, 0.5rem);
        justify-content: center;
    }
    
    .skill-tag {
        padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.6rem, 2vw, 0.75rem);
        font-size: clamp(0.75rem, 2vw, 0.8rem);
    }
    
    .research-interests {
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        justify-content: center;
    }
    
    .interest-tag {
        padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.8rem, 2.5vw, 1rem);
        font-size: clamp(0.8rem, 2vw, 0.85rem);
        text-align: center;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .theme-toggle,
    .admin-link {
        top: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .admin-link {
        right: 3.5rem;
    }
    
    .theme-toggle {
        right: 0.75rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .profile-info .title {
        font-size: 1.1rem;
    }
    
    .profile-badges {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .contact-item {
        padding: 0.5rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item svg {
        width: 1rem;
        height: 1rem;
    }
    
    .nav-tabs {
        padding: 0;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .stat-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .exp-card {
        padding: 1rem;
    }
    
    .exp-card h3 {
        font-size: 1rem;
    }
    
    .publications-list .pub-item {
        padding: 1rem;
    }
    
    .pub-item h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .pub-item .authors,
    .pub-item .journal {
        font-size: 0.8rem;
    }
    
    .pdf-request-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .pdf-request-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .skill-category h3 {
        font-size: 1rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .interest-tag {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (max 320px) */
@media (max-width: 320px) {
    .profile-info h1 {
        font-size: 1.75rem;
    }
    
    .profile-info .title {
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 0.4rem 0.5rem;
        min-width: 50px;
    }
    
    .content {
        padding: 0.75rem;
    }
    
    .stat-card,
    .exp-card,
    .skill-category {
        padding: 0.75rem;
    }
    
    .publications-list .pub-item {
        padding: 0.75rem;
    }
    
    .pdf-request-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content,
    .pdf-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header,
    .pdf-modal-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .modal-title,
    .pdf-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body,
    .pdf-modal-body {
        padding: 1rem;
    }
    
    .modal-buttons,
    .pdf-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-btn,
    .pdf-form-actions button {
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content,
    .pdf-modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .modal-header,
    .pdf-modal-header {
        padding: 0.75rem;
    }
    
    .modal-title,
    .pdf-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body,
    .pdf-modal-body {
        padding: 0.75rem;
    }
    
    .pdf-form-group label {
        font-size: 0.85rem;
    }
    
    .pdf-form-group input,
    .pdf-form-group select,
    .pdf-form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .theme-toggle,
    .nav-tabs {
        display: none;
    }
    
    .dashboard {
        box-shadow: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .stat-card,
    .exp-card,
    .pub-item {
        break-inside: avoid;
    }
}

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

/* Focus Styles */
.tab-btn:focus,
.theme-toggle:focus,
.skill-tag:focus,
.interest-tag:focus {
    outline: 2px solid var(--primary-gradient);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Animations */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

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

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

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

.project-card {
    background: linear-gradient(135deg, #f5f9f5, #f0f8ff);
    border: 2px solid #d4edda;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-card {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    border-color: #b8e6b8;
    box-shadow: 0 5px 15px rgba(45, 74, 45, 0.1);
    transform: translateY(-2px);
}

[data-theme="dark"] .project-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.project-card h3 {
    color: #2d4a2d;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

[data-theme="dark"] .project-card h3 {
    color: #ffffff;
}

.project-description {
    color: #4a6b4a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

[data-theme="dark"] .project-description {
    color: rgba(255, 255, 255, 0.8);
}

.project-tech {
    color: #2d4a2d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

[data-theme="dark"] .project-tech {
    color: rgba(255, 255, 255, 0.9);
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    color: #2d4a2d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #d4edda;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
    transform: translateY(-1px);
}
/* Publication Links */
.pub-link {
    color: #4a6b4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: #2d4a2d;
    text-decoration: underline;
}

.pub-item h4 {
    margin-bottom: 0.5rem;
}

.pub-item .authors {
    color: #6b8a6b;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.pub-item .journal {
    color: #4a6b4a;
    font-weight: 500;
}
/* Email Link Styles */
.email-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-link:hover {
    color: #2d4a2d;
    text-decoration: underline;
}

/* Tooltip Notifications */
.tooltip-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-width: 200px;
    word-wrap: break-word;
    animation: slideInFromRight 0.3s ease;
}

@media (max-width: 768px) {
    .tooltip-notification {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .tooltip-notification {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        max-width: 120px;
    }
}
    transform: scale(1.02);
}

.contact-item:has(.email-link):hover {
    background: rgba(232, 245, 232, 0.5);
}
/* Location Link Styles */
.location-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-link:hover {
    color: #2d4a2d;
    text-decoration: underline;
    transform: scale(1.02);
}

.contact-item:has(.location-link):hover {
    background: rgba(232, 245, 232, 0.5);
}
/* PDF Viewer Styles */
.pdf-view-btn {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    color: #2d4a2d;
    border: 2px solid #d4edda;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.pdf-view-btn:hover {
    background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 74, 45, 0.2);
}

.pub-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdf-modal-content {
    background: #fafffe;
    border-radius: 12px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #d4edda;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border-radius: 12px 12px 0 0;
}

.pdf-modal-header h3 {
    color: #2d4a2d;
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.pdf-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #2d4a2d;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pdf-close-btn:hover {
    background: rgba(45, 74, 45, 0.1);
    transform: scale(1.1);
}

.pdf-viewer-container {
    flex: 1;
    padding: 1rem;
    background: #f5f9f5;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: white;
}

@media (max-width: 768px) {
    .pdf-modal {
        padding: 0.5rem;
    }
    
    .pdf-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .pdf-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .pdf-modal-header h3 {
        font-size: 1rem;
    }
    
    .pdf-viewer-container {
        padding: 0.5rem;
    }
}
/* Clickable Cards Styles */
.clickable-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 74, 45, 0.15), 0 0 30px rgba(139, 195, 74, 0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.9), rgba(240, 248, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.clickable-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-overlay-text {
    color: #2d4a2d;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .project-card h3 {
        font-size: 0.95rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-tech {
        font-size: 0.8rem;
    }
    
    .project-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        display: block;
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .pub-item h4 {
        font-size: 0.9rem;
    }
    
    .pub-item .authors {
        font-size: 0.8rem;
    }
    
    .pub-item .journal {
        font-size: 0.8rem;
    }
    
    .stat-card h3 {
        font-size: 0.95rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
    }
    
    .exp-card h3 {
        font-size: 0.95rem;
    }
    
    .exp-card .company {
        font-size: 0.8rem;
    }
    
    .exp-card .duration {
        font-size: 0.75rem;
    }
    
    .skill-category h3 {
        font-size: 0.9rem;
    }
    
    .skill-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    .interest-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .timeline-item h3 {
        font-size: 0.95rem;
    }
    
    .timeline-item .institution {
        font-size: 0.8rem;
    }
    
    .timeline-item .university {
        font-size: 0.75rem;
    }
    
    .timeline-item .year {
        font-size: 0.75rem;
    }
    
    .timeline-item .marks {
        font-size: 0.75rem;
    }
    
    .pub-actions {
        flex-direction: column;
    }
    
    .pdf-view-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
    
    .clickable-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .card-overlay-text {
        font-size: 0.9rem;
    }
    
    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        min-width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-btn span {
        font-size: 0.8rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        font-size: 0.85rem;
    }
    
    .modal-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .project-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .project-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .project-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .project-tech {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .project-link {
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .pdf-view-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .pub-item {
        padding: 0.75rem;
    }
    
    .pub-item h4 {
        font-size: 0.9rem;
    }
    
    .pub-item .authors,
    .pub-item .journal {
        font-size: 0.8rem;
    }
    
    .card-overlay-text {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .tab-btn span {
        font-size: 0.75rem;
    }
    
    .project-card h3 {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .project-tech {
        font-size: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
    }
    
    .stat-card p {
        font-size: 0.75rem;
    }
    
    .exp-card h3 {
        font-size: 0.9rem;
    }
    
    .exp-card .company {
        font-size: 0.75rem;
    }
    
    .exp-card .duration {
        font-size: 0.7rem;
    }
    
    .skill-category h3 {
        font-size: 0.85rem;
    }
    
    .skill-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
    
    .interest-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
    
    .timeline-item h3 {
        font-size: 0.9rem;
    }
    
    .timeline-item .institution {
        font-size: 0.75rem;
    }
    
    .timeline-item .university {
        font-size: 0.7rem;
    }
    
    .timeline-item .year,
    .timeline-item .marks {
        font-size: 0.7rem;
    }
    
    .pub-item h4 {
        font-size: 0.85rem;
    }
    
    .pub-item .authors,
    .pub-item .journal {
        font-size: 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        font-size: 0.8rem;
    }
    
    .modal-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
}: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: inherit;
}

.clickable-card:hover .card-overlay {
    opacity: 1;
}

.view-details {
    color: #2d4a2d;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2d4a2d;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.view-details:hover {
    background: #2d4a2d;
    color: white;
    transform: scale(1.05);
}

/* Clickable Skills */
.clickable-skill {
    position: relative;
    z-index: 2;
}

.clickable-skill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(45, 74, 45, 0.2);
}

.clickable-interest {
    position: relative;
    overflow: hidden;
}

.clickable-interest::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.clickable-interest:hover::before {
    left: 100%;
}

/* Universal Modal Styles */
.modal-container,
.modal-overlay,
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.modal-container.active,
.modal-overlay.active,
.pdf-modal.active {
    display: flex;
}

/* Prevent closing when clicking on modal content */
.modal-content,
.pdf-modal-content {
    cursor: default;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #fafffe, #f5f9f5);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4edda;
}

.modal-title {
    color: #2d4a2d;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #2d4a2d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(45, 74, 45, 0.1);
    transform: scale(1.1);
}

.modal-body {
    color: #4a6b4a;
    line-height: 1.6;
}

.modal-body h3 {
    color: #2d4a2d;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Image Gallery in Modal */
.modal-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #d4edda;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(45, 74, 45, 0.2);
}

/* Modal Form Elements */
.modal-form-group {
    margin-bottom: 1.5rem;
}

.modal-form-group label {
    display: block;
    color: #2d4a2d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d4edda;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #d4edda;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    color: #2d4a2d;
    border: 2px solid #d4edda;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 45, 0.2);
}

.modal-btn-secondary {
    background: transparent;
    color: #6b8a6b;
    border: 2px solid #d4edda;
}

.modal-btn-secondary:hover {
    background: rgba(45, 74, 45, 0.1);
    color: #2d4a2d;
}

/* File Upload in Modal */
.file-upload-area {
    border: 2px dashed #d4edda;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(232, 245, 232, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.file-upload-area.dragover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 3rem;
    color: #6b8a6b;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: #4a6b4a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #6b8a6b;
    font-size: 0.9rem;
}

/* Progress Bar in Modal */
.modal-progress {
    width: 100%;
    height: 8px;
    background: #d4edda;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #8e44ad);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Workshops and Conferences Sections */
.workshops-section,
.internships-section,
.projects-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #d4edda;
}

.workshops-section h3,
.internships-section h3,
.projects-section h3 {
    color: #2d4a2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.workshops-section h3::after,
.internships-section h3::after,
.projects-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border-radius: 2px;
}

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

.workshop-card,
.internship-card {
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.3), rgba(240, 248, 255, 0.3));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 237, 218, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.workshop-card::before,
.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.workshop-card:hover,
.internship-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45, 74, 45, 0.15);
    border-color: rgba(74, 144, 226, 0.5);
}

.workshop-card:hover::before,
.internship-card:hover::before {
    left: 100%;
}

.workshop-card h4,
.internship-card h4 {
    color: #2d4a2d;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.workshop-card .date,
.internship-card .date {
    color: #6b8a6b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.workshop-card .location,
.internship-card .location {
    color: #4a6b4a;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.workshop-card .description,
.internship-card .description {
    color: #4a6b4a;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b8a6b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .modal-image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .workshops-grid,
    .internships-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for new content */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInFromBottom 0.6s ease-out;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d4edda;
    border-radius: 50%;
    border-top-color: #4a90e2;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success message */
.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    color: #2d4a2d;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #d4edda;
    box-shadow: 0 4px 12px rgba(45, 74, 45, 0.2);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-message.show {
    transform: translateX(0);
}

.success-message::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
}
/* Real-time Sync Notifications */
.sync-notification,
.update-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 300px;
}

.sync-notification.show,
.update-notification.show {
    transform: translateX(0);
}

.sync-notification svg,
.update-notification svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Admin Update Notification */
.update-notification {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Stacked Notifications */
.sync-notification:nth-of-type(2),
.update-notification:nth-of-type(2) {
    top: 5rem;
}

.sync-notification:nth-of-type(3),
.update-notification:nth-of-type(3) {
    top: 8rem;
}

/* Mobile Responsive Notifications */
@media (max-width: 768px) {
    .sync-notification,
    .update-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-100%);
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .sync-notification.show,
    .update-notification.show {
        transform: translateY(0);
    }
    
    .sync-notification:nth-of-type(2),
    .update-notification:nth-of-type(2) {
        top: 4rem;
    }
    
    .sync-notification:nth-of-type(3),
    .update-notification:nth-of-type(3) {
        top: 7rem;
    }
}

/* Real-time Update Indicator */
.live-indicator {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-indicator.active {
    opacity: 1;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Enhanced Modal Content for Custom Fields */
.modal-custom-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.modal-custom-fields h4 {
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.custom-field-display {
    margin-bottom: 1rem;
}

.custom-field-display label {
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.custom-field-display .field-value {
    color: #374151;
    line-height: 1.5;
}

.custom-field-display .field-value a {
    color: #3b82f6;
    text-decoration: none;
}

.custom-field-display .field-value a:hover {
    text-decoration: underline;
}

/* Links Display in Modals */
.modal-links-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.modal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.modal-link-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.modal-link-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.modal-link-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-link-item a:hover {
    color: #1d4ed8;
}

.modal-link-item .link-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Enhanced Image Gallery in Modals */
.modal-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.modal-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-image-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.modal-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-image-item:hover .modal-image-overlay {
    opacity: 1;
}

.modal-image-overlay svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Fullscreen Image Viewer */
.fullscreen-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-image-viewer.active {
    opacity: 1;
}

.fullscreen-image-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
/* Enhanced Search Bar Styles */
.cv-search-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    margin-right: 0.75rem;
}

.cv-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.cv-search-input::placeholder {
    color: #94a3b8;
}

.search-clear {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.results-count {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-section {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.result-snippet {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-snippet mark {
    background: #fef08a;
    color: #92400e;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.no-results svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    margin: 0;
    font-size: 1rem;
}

.more-results {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.more-results button {
    background: none;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-results button:hover {
    background: #3b82f6;
    color: white;
}

.search-highlight {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 2px solid #3b82f6 !important;
    animation: searchPulse 2s ease-in-out;
}

@keyframes searchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cv-search-container {
        padding: 0.75rem 1rem;
    }
    
    .search-input-container {
        padding: 0.5rem 0.75rem;
    }
    
    .cv-search-input {
        font-size: 0.9rem;
    }
    
    .search-results {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .search-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .view-all-btn {
        justify-content: center;
    }
}

/* Profile Photo Styles */
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 2rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.change-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.change-photo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Photo Upload Modal Styles */
.photo-upload-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.current-photo, .new-photo-preview {
    text-align: center;
    flex: 1;
}

.current-photo img, .new-photo-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.upload-area {
    flex: 1;
    text-align: center;
}

.upload-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
}

.upload-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-right: 1rem;
    }
    
    .change-photo-btn {
        width: 30px;
        height: 30px;
    }
    
    .photo-upload-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .current-photo img, .new-photo-preview img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .change-photo-btn {
        width: 28px;
        height: 28px;
    }
    
    .current-photo img, .new-photo-preview img {
        width: 100px;
        height: 100px;
    }
    
    .upload-label {
        padding: 1.5rem;
    }
}

/* Website Request Footer */
.website-request-footer {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 50%, #f5f0ff 100%);
    border-top: 2px solid #d4edda;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

[data-theme="dark"] .website-request-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a1a2e 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.website-request-footer h3 {
    color: #2d4a2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .website-request-footer h3 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.website-request-footer p {
    color: #4a6b4a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

[data-theme="dark"] .website-request-footer p {
    color: rgba(255, 255, 255, 0.8);
}

.request-website-btn {
    background: linear-gradient(135deg, #4a90e2, #667eea);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .request-website-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.request-website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #667eea, #764ba2);
}

[data-theme="dark"] .request-website-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.request-website-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .website-request-footer {
        padding: 1.5rem 1rem;
    }
    
    .website-request-footer h3 {
        font-size: 1.25rem;
    }
    
    .website-request-footer p {
        font-size: 1rem;
    }
    
    .request-website-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .website-request-footer {
        padding: 1rem;
    }
    
    .request-website-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}
/* Swipe Navigation Styles */
.swipe-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    z-index: 1000;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.swipe-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.swipe-hint svg {
    opacity: 0.7;
}

.cv-swipe {
    background: rgba(102, 126, 234, 0.9);
}

/* Tab Content Slide Animations */
.tab-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tab-content.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.tab-content.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Section Slide Animations */
.admin-section {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-section.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.admin-section.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

/* Touch-friendly navigation tabs */
.nav-tabs {
    touch-action: pan-y;
    user-select: none;
}

.tab-btn {
    touch-action: manipulation;
    user-select: none;
}

/* Improved touch targets */
@media (max-width: 768px) {
    .tab-btn {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .nav-tab {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .swipe-indicator {
        bottom: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Swipe gesture feedback */
.content {
    touch-action: pan-y;
    overflow-x: hidden;
}

.admin-container {
    touch-action: pan-y;
    overflow-x: hidden;
}

/* Visual feedback for active swipe */
.swiping {
    transition: transform 0.1s ease;
}

.swiping.swipe-left {
    transform: translateX(-10px);
}

.swiping.swipe-right {
    transform: translateX(10px);
}
/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* CV PDF Styles */
.cv-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pdf-card {
    background: var(--glass-heavy);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pdf-card:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.pdf-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.pdf-card:hover .pdf-icon {
    transform: scale(1.1) rotate(5deg);
}

.pdf-icon svg {
    width: 2rem;
    height: 2rem;
    color: #2d4a2d;
}

[data-theme="dark"] .pdf-icon svg {
    color: #ffffff;
}

.pdf-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.pdf-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-btn {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    color: #2d4a2d;
    border: 2px solid #d4edda;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 45, 0.2);
}

[data-theme="dark"] .download-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
}

[data-theme="dark"] .download-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid,
    .cv-pdf-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pdf-card {
        padding: 1.5rem;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Gallery Admin Styles */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-admin-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.gallery-admin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-form-group {
    margin-bottom: 1rem;
}

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

.gallery-form-group input,
.gallery-form-group textarea,
.gallery-form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.gallery-save-btn {
    background: #10b981;
    color: white;
}

.gallery-save-btn:hover {
    background: #059669;
}

.gallery-delete-btn {
    background: #ef4444;
    color: white;
}

.gallery-delete-btn:hover {
    background: #dc2626;
}

[data-theme="dark"] .gallery-admin-item {
    background: var(--glass-heavy);
    border-color: var(--glass-border-light);
}

[data-theme="dark"] .gallery-form-group input,
[data-theme="dark"] .gallery-form-group textarea,
[data-theme="dark"] .gallery-form-group select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-btn:hover {
    transform: scale(1.1);
    background: var(--primary-gradient);
    color: #2d4a2d;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.admin-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .admin-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .admin-btn svg {
        width: 20px;
        height: 20px;
    }
}
/* Login Form */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: var(--glass-heavy);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.login-container input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-gradient);
    color: #2d4a2d;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Additional Login Form Styles for Dark Theme */
[data-theme="dark"] .login-overlay {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(25px);
}

[data-theme="dark"] .login-container {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .login-container h2 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .login-container input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .login-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .login-container input:focus {
    border-color: var(--galaxy-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .login-container button {
    background: var(--primary-gradient);
    color: #ffffff;
}

[data-theme="dark"] .login-container button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Mobile responsive for login form */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: none;
    }
    
    .login-container h2 {
        font-size: 1.5rem;
    }
    
    .login-container input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .login-container button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .login-container h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .login-container input {
        padding: 0.5rem;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .login-container button {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}
/* Profile Photo Management */
.profile-photo-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.photo-management {
    display: flex;
    gap: 20px;
    align-items: center;
}

.current-photo-display {
    position: relative;
}

.current-photo-display img,
.current-photo-display svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.change-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.change-photo-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.change-photo-btn svg {
    width: 16px;
    height: 16px;
}
/* Disable PDF Request Button */
.pdf-request-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pdf-request-btn:hover {
    transform: none;
    box-shadow: none;
}