/* Modern Multi-Page Academic Portfolio - 2024 Design System */
/* Dr. Addi Ait-Mlouk - Latest Web Development Trends */


/* ===== MODERN FOUNDATION ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-light-gray: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Enhanced spacing for professional look */
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    --card-gap: 2rem;
    --container-padding: 1rem;
    
    /* Enhanced border radius for modern look */
    --modern-radius: 1rem;
    --card-radius: 0.75rem;
    --button-radius: 0.5rem;
    
    /* Brand Color Palette */
    --primary-color: #2563eb;
    --primary-blue: #2563eb;
    --accent-color: #3b82f6;
    --secondary-color: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    
    /* Professional shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --modern-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

body.modern-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease-out,
                color 0.3s ease-out;
    cursor: auto;
    position: relative;
    padding-top: 6px;
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-light-gray: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 64, 175, 0.15);
    --glass-border: rgba(59, 130, 246, 0.2);
    --glass-shadow: 0 8px 32px rgba(30, 64, 175, 0.15);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-light-gray: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(37, 99, 235, 0.1);
    --glass-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}


/* ===== MODERN LOADING SCREEN ===== */
.modern-loading {
    background: linear-gradient(135deg, 
        var(--dark-bg-primary) 0%, 
        var(--dark-bg-secondary) 50%, 
        var(--dark-bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    transition: opacity 0.6s ease-out;
}

.modern-loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.profile-container {
    position: relative;
    margin-bottom: 2rem;
}

.loading-profile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: profilePulse 2s ease-in-out infinite;
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 136px;
    height: 136px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: ringRotate 3s linear infinite;
}

.brand-text {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.modern-spinner {
    display: flex;
    gap: 0.5rem;
}

.spinner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(2) { animation-delay: -0.32s; }
.spinner-dot:nth-child(3) { animation-delay: -0.16s; }

@keyframes profilePulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.1); }
}

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

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* ===== ENHANCED READING PROGRESS INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 10000;
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    width: 0%;
    transition: width 0.25s ease-out;
    box-shadow: 
        0 0 15px rgba(37, 99, 235, 0.6),
        0 2px 6px rgba(37, 99, 235, 0.3);
    position: relative;
}

.scroll-progress-bar::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 20px !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3)) !important;
}

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

/* ===== MODERN NAVIGATION ===== */
.modern-nav {
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    top: 6px;
}

.modern-nav.scrolled {
    padding: 0.75rem 0;
    background: var(--glass-bg);
    border-bottom-color: var(--glass-border);
    box-shadow: var(--modern-shadow);
}

[data-theme="dark"] .modern-nav {
    background: var(--glass-bg);
    border-bottom-color: var(--glass-border);
}

[data-theme="dark"] .modern-nav.scrolled {
    background: var(--glass-bg);
    border-bottom-color: var(--glass-border);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.brand-container:hover {
    transform: translateY(-2px);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease-out;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

.brand-logo:hover {
    transform: rotate(5deg) scale(1.1);
    border-color: var(--secondary-color);
    filter: drop-shadow(0 8px 16px rgba(30, 64, 175, 0.3));
}

.brand-text {
    font-weight: 700;
    font-size: 1.125rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-nav-list {
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-secondary) !important;
    text-decoration: none;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.1),
        rgba(30, 64, 175, 0.05));
}

.nav-icon {
    font-size: 0.875rem;
}

/* Modern Toggler */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease-out;
}

.modern-toggler:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.toggler-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin: 4px auto;
    border-radius: 2px;
    transition: all 0.3s ease-out;
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Theme Toggle */
#theme-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1), 
        rgba(30, 64, 175, 0.1));
    color: var(--primary-color);
    transition: all 0.3s ease-out;
    overflow: hidden;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out;
}

[data-theme="light"] .dark-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
}

[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
}

/* ===== MODERN HERO SECTION ===== */
.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 100%);
}

.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    bottom: 20%;
    left: 30%;
    animation-delay: 10s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    top: 30%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
    }
    50% {
        transform: translateY(-20px) translateX(-30px) scale(0.9);
    }
    75% {
        transform: translateY(-40px) translateX(15px) scale(1.05);
    }
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* Modern Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.modern-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: badgeGlow 3s linear infinite;
}

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

/* Modern Title */
.modern-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.title-highlight {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
}

.title-subtitle {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--secondary-color);
    font-weight: 600;
}

/* Modern Description */
.modern-description {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease-out;
}

.highlight-text:hover {
    color: var(--secondary-color);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Tags */
.hero-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.interest-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 0.375rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease-out;
}

.interest-tag:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

[data-theme="dark"] .interest-tag {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

[data-theme="dark"] .interest-tag:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.modern-btn-primary {
    position: relative;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-out;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.modern-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: white;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: btnGlow 2s linear infinite;
}

@keyframes btnGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-btn-outline {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-out;
}

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

/* Profile Card */
.hero-profile-section {
    position: relative;
    z-index: 2;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease-out;
}

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

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease-out;
    filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.2));
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.3));
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

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

.profile-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-out;
    box-shadow: var(--shadow-soft);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* Quick Access Grid */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

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

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

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

.card-link {
    color: inherit;
    text-decoration: none;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease-out;
}

.quick-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.quick-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quick-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* Modern Scroll Indicator */
.modern-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.modern-scroll:hover {
    color: var(--primary-color);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 1rem;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* ===== MODERN SECTIONS ===== */
.modern-section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Highlight Cards */
.highlight-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease-out;
    box-shadow: var(--glass-shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

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

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

.highlight-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease-out;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

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

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

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

.card-link-arrow:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.card-link-arrow i {
    transition: transform 0.3s ease-out;
}

.card-link-arrow:hover i {
    transform: translateX(5px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--modern-shadow);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(37, 99, 235, 0.3),
        0 0 20px rgba(37, 99, 235, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

/* ===== MODERN FOOTER ===== */
.modern-footer {
    background: linear-gradient(135deg, 
        var(--dark-bg-primary) 0%, 
        var(--dark-bg-secondary) 50%, 
        var(--dark-bg-tertiary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

[data-theme="dark"] .modern-footer {
    background: linear-gradient(135deg, 
        var(--dark-bg-primary) 0%, 
        var(--dark-bg-secondary) 50%, 
        var(--dark-bg-tertiary) 100%);
    color: white;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-glow);
    color: white;
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease-out;
    position: relative;
    padding-left: 1rem;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease-out;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 1.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease-out;
}

.contact-item a:hover {
    color: white;
}

/* Enhanced Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.footer-copyright,
.copyright,
.built-with {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.footer-copyright {
    padding: 1rem 0 0.5rem;
    margin-top: 1rem;
}

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

.footer-copyright a:hover {
    color: var(--accent-color);
}

/* ===== FLOATING ACTION BUTTON ===== */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease-out;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
}

.fab-btn.visible {
    opacity: 1;
    transform: scale(1);
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ===== TOOLTIP SYSTEM ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 10000;
    pointer-events: none;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark-bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 10000;
    pointer-events: none;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 130%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .orb {
        filter: blur(30px);
        opacity: 0.4;
    }
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

/* ===== RESPONSIVE DESIGN IMPROVEMENTS ===== */

@media (max-width: 991.98px) {
    /* Navbar Mobile Styles */
    .modern-nav {
        padding: 0.75rem 0;
    }

    /* Ensure navbar brand and controls are in one row */
    .modern-nav .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex: 0 0 auto;
    }

    .navbar-controls {
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        margin-left: auto !important;
        flex-shrink: 0;
        order: 3; /* Ensure it comes after brand */
    }

    /* Hide desktop theme toggle on mobile */
    #theme-toggle {
        display: none !important;
    }

    .navbar-actions.d-none {
        display: none !important;
    }

    /* Ensure theme toggle mobile is visible and styled */
    #theme-toggle-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 44px;
        height: 44px;
        background: rgba(37, 99, 235, 0.1);
        border-radius: 8px;
        border: none;
        color: var(--primary-color);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    #theme-toggle-mobile .theme-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.125rem;
        transition: all 0.3s ease-out;
    }

    /* Icon visibility for mobile toggle */
    #theme-toggle-mobile .light-icon {
        opacity: 1;
        color: #f59e0b;
    }

    #theme-toggle-mobile .dark-icon {
        opacity: 0;
        color: #818cf8;
    }

    [data-theme="dark"] #theme-toggle-mobile .light-icon {
        opacity: 0;
    }

    [data-theme="dark"] #theme-toggle-mobile .dark-icon {
        opacity: 1;
    }

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

    [data-theme="dark"] #theme-toggle-mobile {
        background: rgba(99, 102, 241, 0.15);
        color: #818cf8;
    }

    [data-theme="dark"] #theme-toggle-mobile:hover {
        background: rgba(99, 102, 241, 0.25);
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, background 0.3s ease;
        z-index: 1000;
    }

    .navbar-collapse.show {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Add subtle border to menu items for better separation */
    .navbar-collapse .nav-item:first-child {
        border-top: 1px solid var(--glass-border);
    }

    .modern-nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .nav-link {
        padding: 1rem 1.5rem !important;
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(37, 99, 235, 0.1);
        padding-left: 2rem !important;
    }

    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: rgba(99, 102, 241, 0.2);
    }

    .nav-icon {
        font-size: 1.125rem;
        width: 24px;
        text-align: center;
    }

    /* Mobile toggler visibility */
    .modern-toggler {
        display: block;
        z-index: 1001;
        background: rgba(37, 99, 235, 0.1);
        border-radius: 8px;
        padding: 0.5rem !important;
    }

    .modern-toggler:hover {
        background: rgba(37, 99, 235, 0.2);
    }

    [data-theme="dark"] .modern-toggler {
        background: rgba(99, 102, 241, 0.15);
    }

    [data-theme="dark"] .modern-toggler:hover {
        background: rgba(99, 102, 241, 0.25);
    }

    /* Ensure toggler lines are visible */
    .toggler-line {
        background: var(--text-primary);
    }

    [data-theme="dark"] .toggler-line {
        background: #ffffff;
    }

    .navbar-actions {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--glass-border);
    }

    /* Dark theme adjustments for mobile */
    [data-theme="dark"] .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-bottom-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    [data-theme="dark"] .nav-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    /* Ensure text is visible in mobile menu */
    .navbar-collapse .nav-link {
        color: var(--text-primary);
        font-weight: 500;
    }

    [data-theme="dark"] .navbar-collapse .nav-link {
        color: #ffffff;
    }

    /* Smooth scrolling for mobile menu */
    .navbar-collapse {
        -webkit-overflow-scrolling: touch;
    }

    /* Better touch targets */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }

    #theme-toggle-mobile {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-text {
        font-size: 1rem;
    }

    /* Biography and teaching content font size adjustments */
    .biography-content .lead {
        font-size: 1.1rem !important;
        line-height: 1.7;
    }

    .biography-content p {
        font-size: 1rem !important;
        line-height: 1.7;
    }

    .quote-text {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .philosophy-content p,
    .principle-description {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    /* Reduce card padding on mobile for better readability */
    .biography-content .card-body,
    .philosophy-content .card-body {
        padding: 2rem !important;
    }

    /* News card date badge adjustments for mobile */
    .news-date {
        top: 0.75rem;
        right: 0.75rem;
    }

    .date-badge {
        min-width: 50px;
        padding: 0.4rem 0.5rem;
    }

    .date-badge .day {
        font-size: 1rem;
    }

    .date-badge .month {
        font-size: 0.6rem;
    }

    .news-content {
        padding: 1.25rem;
        padding-right: 3.75rem;
    }

    .news-title {
        font-size: 1.05rem;
    }

    .news-excerpt {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .news-category {
        font-size: 0.65rem;
        padding: 0.25rem 0.55rem;
        margin-bottom: 0.5rem;
    }

    .modern-hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn-primary,
    .modern-btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .orb {
        opacity: 0.3;
        filter: blur(20px);
    }
    
    .orb-1 { width: 200px; height: 200px; }
    .orb-2 { width: 150px; height: 150px; }
    .orb-3 { width: 180px; height: 180px; }
    .orb-4 { width: 120px; height: 120px; }
    
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - further refinements */
    .modern-nav .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-controls {
        gap: 0.25rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .nav-link {
        padding: 0.875rem 1rem !important;
        font-size: 0.9375rem;
    }

    .nav-link:hover,
    .nav-link.active {
        padding-left: 1.5rem !important;
    }

    /* Further reduce font sizes for very small screens */
    .biography-content .lead {
        font-size: 1.05rem !important;
    }

    .biography-content p {
        font-size: 0.95rem !important;
    }

    .quote-text {
        font-size: 0.95rem !important;
    }

    .philosophy-content p,
    .principle-description {
        font-size: 0.9rem !important;
    }

    /* Further reduce padding for very small screens */
    .biography-content .card-body,
    .philosophy-content .card-body {
        padding: 1.5rem !important;
    }

    /* Further reduce date badge for very small screens */
    .news-date {
        top: 0.5rem;
        right: 0.5rem;
    }

    .date-badge {
        min-width: 45px;
        padding: 0.35rem 0.4rem;
        border-radius: 6px;
    }

    .date-badge .day {
        font-size: 0.9rem;
    }

    .date-badge .month {
        font-size: 0.55rem;
    }

    .news-content {
        padding: 1rem;
        padding-right: 3.25rem;
    }

    .news-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .news-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
    }

    .news-category {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .stat-label {
        font-size: var(--text-xs);
    }
    
    .profile-social {
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .orb {
        animation: none;
    }
    
}

@media (prefers-contrast: high) {
    .modern-glass,
    .glass-nav {
        background: var(--bg-primary) !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    .highlight-card,
    .quick-card,
    .profile-card {
        border: 2px solid var(--primary-color);
    }
}

/* Focus states for accessibility */
.modern-btn-primary:focus,
.modern-btn-outline:focus,
.nav-link:focus,
.social-btn:focus,
.fab-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .modern-nav,
    .floating-actions,
    .orb {
        display: none !important;
    }
    
    .modern-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .modern-footer {
        background: white !important;
        color: black !important;
    }
}

/* ===== MODERN ENHANCEMENT FOR ALL PAGES ===== */
/* Inspired by index.html - Latest UX/Design Trends 2024 */

/* Enhanced Spacing Variables */
:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Modern Enhancement Variables */
    --modern-radius: 1.5rem;
    --glass-bg-enhanced: rgba(255, 255, 255, 0.1);
    --glass-border-enhanced: rgba(255, 255, 255, 0.2);
    --modern-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --modern-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.15);
    --modern-glow: 0 0 40px rgba(37, 99, 235, 0.3);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Force theme initialization */
html[data-theme="dark"] {
    background: #0f172a !important;
}

html[data-theme="light"] {
    background: #ffffff !important;
}

/* Modern Hero Section for all pages (inspired by index.html) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 100%);
}

/* Add animated background for all hero sections */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.05) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(2deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== CLEAN LAYOUT & SPACING FIXES ===== */
.section-padding {
    padding: 4rem 0;
    margin: 0;
}

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

/* Fix overlapping cards */
.row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Container improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row .col,
.row [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 3rem;
}

/* Enhanced section spacing for better visual clarity */
.section-padding {
    padding: 5rem 0;
}

.bg-light-gray {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Enhanced glass-card for better visibility */
.glass-card {
    margin: 0 0 2rem 0;
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.glass-card .glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin: 1rem 0;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Clear card hierarchy */
.card-body {
    padding: 1.5rem;
}

.card-body .glass-card {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats cards to replace nested glass-cards */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

/* Enhanced typography for better visibility */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #495057;
}

/* Consistent card spacing and layout */
.card, .glass-card, .stats-card, .modern-card {
    margin-bottom: 2rem;
    height: fit-content;
}

.col-6 .stats-card {
    margin-bottom: 1rem;
}

/* Equal height cards */
.row .card,
.row .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fixed header on scroll */
#main-navbar {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

/* Adjust body for fixed header */
body {
    padding-top: 80px;
}

/* Academic Biography Section Styling */
.biography-content {
    position: relative;
}

.biography-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.highlight-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.biography-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.area-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.area-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Compressed footer copyright section */
.footer-bottom {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-link-bottom {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-bottom:hover {
    color: var(--primary-color);
}

/* News Section Styling */
.news-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(37, 99, 235, 0.2);
    background: transparent;
    backdrop-filter: none;
    border-radius: 12px;
    min-height: 300px;
    max-height: 300px;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.news-date {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.date-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

.date-badge .day {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.6rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.1rem;
}

.news-content {
    padding: 1.1rem;
    padding-top: 0.85rem;
    padding-right: 3.25rem; /* Space for date badge */
}

.news-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.65rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.news-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(3px);
}

/* News Slider Styling */
.news-slider-wrapper {
    position: relative;
    padding: 0 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.news-slider-container {
    overflow: visible;
    width: 100%;
}

.news-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

.news-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

/* Navigation Arrows */
.news-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg-enhanced);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-slider-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
}

.news-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.news-slider-prev {
    left: 0;
}

.news-slider-next {
    right: 0;
}

.news-slider-arrow i {
    font-size: 1.2rem;
}

/* Slider Dots */
.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(37, 99, 235, 0.4);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .news-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .news-slider-wrapper {
        padding: 0 50px;
    }

    .news-slider-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .news-slide {
        flex: 0 0 100%;
    }

    .news-slider-wrapper {
        padding: 0 45px;
    }

    .news-slider {
        gap: 1rem;
    }

    .news-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .news-slider-arrow i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .news-slider-wrapper {
        padding: 0 35px;
    }

    .news-slider-arrow {
        width: 35px;
        height: 35px;
    }
}

/* Timeline section headers */
.timeline-section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.timeline-section-title i {
    color: var(--accent-color);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-light-gray: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Dark mode glass effect */
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-bg-enhanced: rgba(15, 23, 42, 0.9);
    --glass-border-enhanced: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
}

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

[data-theme="dark"] .glass-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .stats-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .news-card {
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .news-card:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .project-card {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(107, 114, 128, 0.4);
}

[data-theme="dark"] .featured-project-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] #main-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    top: 4px;
}

[data-theme="dark"] #main-navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .scroll-progress {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .scroll-progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    box-shadow: 
        0 0 15px rgba(37, 99, 235, 0.6),
        0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Additional dark mode coverage for all elements */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary);
}

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

[data-theme="dark"] .navbar-brand {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline {
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

[data-theme="dark"] .achievement-badge {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

[data-theme="dark"] .timeline-item {
    border-left-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .timeline-date {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
}

[data-theme="dark"] .timeline-title {
    color: var(--text-primary);
}

[data-theme="dark"] .timeline-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .skill-bar {
    background: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .skill-progress {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

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

[data-theme="dark"] .publication-card,
[data-theme="dark"] .research-card,
[data-theme="dark"] .course-card {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Simplified project card styling */
.project-card .project-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.project-card .project-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-card .project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-card .tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
}

.project-card .project-actions {
    display: flex;
    gap: 0.5rem;
}

.project-card .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-card .btn:hover {
    transform: translateY(-2px);
}

/* Filter tabs styling */
.filter-container {
    display: flex;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-tab i {
    font-size: 0.85rem;
}

/* Project filter animation - removed .project-item, no longer needed */

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

/* DUPLICATE REMOVED - Main glass-card definition is above at line 1757 */

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

/* Modern Card with Neumorphism Touch */
.modern-card {
    background: var(--bg-primary);
    border-radius: var(--modern-radius);
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.1),
        -20px -20px 40px rgba(255, 255, 255, 0.8),
        inset 0 0 0 rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        25px 25px 50px rgba(0, 0, 0, 0.15),
        -25px -25px 50px rgba(255, 255, 255, 0.9),
        inset 5px 5px 10px rgba(0, 0, 0, 0.02);
}

/* Modern Section Styling */
.section-padding {
    padding: var(--space-20) 0;
    position: relative;
}

/* Alternate section backgrounds with subtle patterns */
.bg-light-gray {
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    position: relative;
}

.bg-light-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Skill Cards with Modern Effects */
.skill-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--modern-radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--modern-shadow-hover);
    border-color: rgba(37, 99, 235, 0.4);
}

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

.skill-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.skill-card:hover .skill-icon::before {
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

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

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-level {
    position: relative;
    margin-top: 1rem;
}

.skill-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

/* Enhanced Timeline with Modern Visual Effects */
.timeline-container {
    position: relative;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--primary-color) 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 0 20px rgba(37, 99, 235, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 4px var(--primary-color), 0 0 20px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.3), 0 0 30px rgba(37, 99, 235, 0.6); }
    100% { box-shadow: 0 0 0 4px var(--primary-color), 0 0 20px rgba(37, 99, 235, 0.4); }
}

.timeline-item:hover::before {
    animation: none;
    transform: scale(1.2);
    box-shadow: 
        0 0 0 6px var(--primary-color),
        0 0 30px rgba(37, 99, 235, 0.6);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.timeline-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-location {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.achievement-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Enhanced Value Cards with Modern Styling */
.value-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--modern-radius);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--modern-shadow-hover);
    border-color: rgba(37, 99, 235, 0.4);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.value-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.value-description {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: var(--space-12) 0;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: var(--space-12) 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: var(--space-8) 0;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: var(--space-8) 0;
    }
}

/* Text Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Bars */
.progress {
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

/* Social Links (additional styles for footer) */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-white);
}

/* Modern Typography and Hero Content Enhancement */
.hero-content h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Modern Button Styling */
.hero-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Modern Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Modern Animations and Micro-interactions */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.scale-on-hover {
    transition: transform 0.3s ease;
}

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

/* Modern Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Form Styling */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    outline: none;
}

/* Modern Scroll Indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== COMPREHENSIVE PAGE-SPECIFIC ENHANCEMENTS ===== */
/* Making all pages as beautiful and modern as index.html */

/* ABOUT PAGE ENHANCEMENTS */
.biography-content {
    position: relative;
}

.biography-content .glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.biography-content .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.biography-content .glass-card:hover::before {
    opacity: 1;
}

.biography-content .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 500;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

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

/* Modern Profile Image Container */
.hero-profile-section .glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-profile-section .glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

/* Stats Cards Enhancement */
.hero-profile-section .glass-card .h4 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SKILL CARDS SUPER ENHANCEMENT */
.skill-card.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card.glass-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

.skill-card.glass-card:hover::before {
    opacity: 1;
}

/* RESEARCH/PUBLICATIONS PAGE ENHANCEMENTS */
.publication-card,
.research-card,
.project-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(156, 163, 175, 0.4);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.publication-card::before,
.research-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.publication-card:hover::before,
.research-card:hover::before {
    transform: scaleX(1);
}

.publication-title,
.research-title,
.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-authors,
.research-description,
.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.publication-venue,
.research-category,
.project-tech {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* PROJECT CARDS STYLING - Removed .project-item wrapper, using .project-card directly */

/* TEACHING PAGE ENHANCEMENTS */
.course-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(124, 58, 237, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

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

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

.course-code {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Simplified Course Cards */
.course-card-simple {
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(156, 163, 175, 0.3);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.course-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.course-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.course-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.course-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.course-link i {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

[data-theme="dark"] .course-card-simple {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(107, 114, 128, 0.4);
}

/* CONTACT PAGE FORM ENHANCEMENTS */
.contact-form {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

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

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.1),
        0 0 20px rgba(37, 99, 235, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(var(--text-secondary), 0.7);
}

/* Contact Cards */
.contact-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* ===== ADVANCED LAYOUT ENHANCEMENTS ===== */

/* Modern Grid Layouts */
.modern-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-2 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.modern-grid-3 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Enhanced Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 99, 235, 0.3) 50%, 
        transparent 100%);
    margin: 4rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* Advanced Typography Styles */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(124, 58, 237, 0.1) 100%);
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Enhanced Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    color: white;
}

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

/* Modern Card Variations */
.feature-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Statistics and Metrics */
.stat-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* Advanced List Styling */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.modern-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(10px);
}

.modern-list li:hover::before {
    transform: scaleY(1);
}

/* Enhanced Tables */
.modern-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem 0;
}

.modern-table th,
.modern-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table th {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.modern-table tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* ===== ABOUT PAGE SPECIFIC ENHANCEMENTS ===== */

/* DUPLICATE REMOVED - Biography section styling exists earlier in file */

.biography-content .lead {
    position: relative;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

.biography-content .lead::before {
    content: '"';
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

/* Enhanced Timeline Styling */
.timeline-container {
    position: relative;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(1rem);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.achievement-badge i {
    font-size: 0.875rem;
}

/* Enhanced Skills Cards */
.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

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

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

.skill-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skill-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Quick Stats Enhancement */
.quick-stats .glass-card {
    transition: all 0.3s ease;
    cursor: default;
}

.quick-stats .glass-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
}

.quick-stats .h4 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .modern-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: var(--space-16) 0;
    }
    
    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline-item:hover {
        transform: translateX(0.5rem);
    }
}

/* ===== RESEARCH/PUBLICATIONS PAGE ENHANCEMENTS ===== */

/* ===== ENHANCED RESEARCH PAGE STYLING ===== */

/* Research Hero Section */
.research-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    overflow: hidden;
}

.research-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Research Statistics Enhancement */
.research-stats .glass-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

.research-stats .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.research-stats .glass-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        var(--card-shadow-hover),
        0 0 30px rgba(37, 99, 235, 0.2);
}

.research-stats .glass-card:hover::before {
    transform: scaleX(1);
}

.research-stats .h4 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease;
}

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

/* Enhanced Research Area Cards */
.research-area-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    height: 100%;
}

.research-area-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%,
        rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.research-area-card:hover::after {
    opacity: 1;
}

.research-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.research-area-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.75rem);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 80px rgba(37, 99, 235, 0.1);
}

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

.research-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.research-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.research-area-card:hover .research-icon::before {
    transform: scale(1);
}

.research-area-card:hover .research-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Research Topics Enhancement */
.research-topics {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.research-topics li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s ease;
    border-radius: 0.5rem;
}

.research-topics li::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.research-topics li:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(10px);
    padding-left: 3rem;
}

.research-topics li:hover::before {
    transform: translateY(-50%) scale(1.4);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
}

/* Research Collaboration Section */
.collaboration-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.collaboration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.collaboration-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--card-shadow-hover);
}

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

.collaboration-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.4s ease;
}

.collaboration-card:hover .collaboration-logo {
    transform: scale(1.1) rotate(10deg);
}

.research-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.research-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.research-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.research-topics li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.research-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.research-topics li:hover::before {
    transform: translateY(-50%) scale(1.3);
}

.research-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* ===== ENHANCED PUBLICATIONS PAGE STYLING ===== */

/* Search and Filter Container */
.search-filter-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2.5rem;
    box-shadow: var(--modern-shadow);
    position: relative;
    overflow: hidden;
}

.search-filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    animation: shimmer 3s ease-in-out infinite;
}

/* Academic Search Bar */
.academic-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.academic-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 3rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.academic-search input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.academic-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.academic-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-tab:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-tab i {
    font-size: 0.9rem;
}

/* Year Sections */
.year-section {
    margin-bottom: 3rem;
}

.year-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Enhanced Publication Cards */
.publication-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.publication-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.publication-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(1rem);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.publication-card:hover::before {
    transform: scaleY(1);
}

.publication-card:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    transform: translateY(-0.5rem);
    box-shadow: 
        var(--card-shadow-hover),
        0 0 30px rgba(37, 99, 235, 0.15);
}

/* Publication Type Badges */
.publication-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.journal-badge {
    background: linear-gradient(135deg, #059669, #10b981);
}

.conference-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.book-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.workshop-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.impact-factor {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Publication Content */
.publication-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.publication-authors {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

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

.publication-venue {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.5;
}

.publication-venue i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Publication Metrics */
.publication-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.publication-metrics .metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.publication-metrics .metric i {
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Publication Actions */
.publication-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.publication-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.publication-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Featured Publication Highlight */
.publication-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    position: relative;
}

.publication-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.publication-venue {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.publication-year {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.publication-abstract {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.publication-link:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.publication-link i {
    font-size: 0.75rem;
}

/* DUPLICATE REMOVED - Research stats styling exists earlier in file */

.research-stats .h4 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
}

/* Filter and Search Controls */
.research-filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-label {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 80px;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* ===== PROJECTS PAGE ENHANCEMENTS ===== */

/* ===== ENHANCED PROJECTS PAGE STYLING ===== */

/* Project Hero Enhancement */
.projects-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Project Statistics Enhancement */
.project-stats .glass-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: default;
}

.project-stats .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.project-stats .glass-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        var(--card-shadow-hover),
        0 0 40px rgba(37, 99, 235, 0.25);
}

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

.project-stats .h4 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease;
}

/* Enhanced Featured Project Cards */
.featured-project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    height: 100%;
    border-radius: var(--modern-radius);
}

.featured-project-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Enhanced Project Image */
.project-image {
    position: relative;
    height: 140px;
    overflow: hidden;
    border-radius: var(--modern-radius) var(--modern-radius) 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.6s ease;
}

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

.status-active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.status-planning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tech-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    animation: fadeInUp 0.6s ease;
}

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

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

/* Enhanced Project Content */
.project-content {
    padding: 1rem;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    max-height: 4.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Enhanced Project Metrics */
.project-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.project-metrics .metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-metrics .metric:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.project-metrics .metric i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Enhanced Project Actions */
.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-actions .btn {
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.project-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

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

/* Remove duplicate definitions - hover effect is already defined above */

.project-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.status-planning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-metrics .metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-metrics .metric i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

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

.project-actions .btn {
    transition: all 0.3s ease;
}

.project-actions .btn:hover {
    transform: translateY(-2px);
}

/* Standard Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 163, 175, 0.4);
    border-radius: var(--modern-radius);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card > * {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-card .project-image {
    padding: 0 !important;
    margin: 0;
}

.project-card .project-category {
    margin-top: 0.75rem;
}

.project-card .project-actions {
    margin-top: auto;
    padding-bottom: 0.75rem;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

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

.project-card .project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card .project-description {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-card .project-metrics {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.project-card .project-actions {
    gap: 0.5rem;
}

.project-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Dark theme for standard project cards */
[data-theme="dark"] .project-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(107, 114, 128, 0.4);
}

/* Project Categories and Filters */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-filter:hover,
.category-filter.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Project Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Search and Sort */
.project-controls {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-label {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 80px;
}

.control-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    flex: 1;
    transition: all 0.3s ease;
}

.control-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.control-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.control-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Project Stats Enhancement */
.project-stats .glass-card {
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.project-stats .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-stats .glass-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px) scale(1.02);
}

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

.project-stats .h4 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
}

/* Responsive Design for Projects */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .featured-project-card:hover {
        transform: translateY(-0.5rem);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-categories {
        gap: 0.5rem;
    }
    
    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-metrics {
        gap: 0.75rem;
    }
    
    .project-actions {
        gap: 0.5rem;
    }
    
    .project-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-label {
        min-width: auto;
    }
}

/* ===== ENHANCED TEACHING PAGE STYLING ===== */

/* Teaching Hero Enhancement */
.teaching-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    overflow: hidden;
}

.teaching-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Teaching Statistics Enhancement */
.teaching-stats .glass-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

.teaching-stats .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.teaching-stats .glass-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        var(--card-shadow-hover),
        0 0 30px rgba(37, 99, 235, 0.2);
}

.teaching-stats .glass-card:hover::before {
    transform: scaleX(1);
}

.teaching-stats .h4 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease;
}

/* Enhanced Teaching Philosophy */
.philosophy-content .glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.philosophy-content .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    animation: shimmer 3s ease-in-out infinite;
}

.philosophy-quote {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--modern-radius) var(--modern-radius) 0;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    padding-left: 2rem;
}

.philosophy-principles {
    display: grid;
    gap: 1.5rem;
}

.principle {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    transition: all 0.3s ease;
}

.principle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(10px);
}

.principle-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.principle-title i {
    font-size: 1.1rem;
}

.principle-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Course Cards */
.course-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.75rem);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 80px rgba(37, 99, 235, 0.1);
}

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

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-level {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-code {
    font-family: 'Monaco', 'Menlo', monospace;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.course-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

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

/* Course Actions */
.course-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
}

.course-actions .btn:hover {
    transform: translateY(-2px);
}

/* Teaching Stats Enhancement */
.teaching-stats .glass-card {
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.teaching-stats .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.teaching-stats .glass-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.teaching-stats .glass-card:hover::before {
    transform: scaleX(1);
}

.teaching-stats .h4 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
}

/* Student Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.5rem);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.testimonial-card:hover::before {
    transform: scaleY(1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Course Calendar/Schedule */
.schedule-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    overflow: hidden;
}

.schedule-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.schedule-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.schedule-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.schedule-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.schedule-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0.25rem 0;
}

.schedule-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design for Teaching */
@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .course-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .course-actions {
        flex-direction: column;
        padding: 0 1rem 1rem;
    }
    
    .course-actions .btn {
        min-width: auto;
    }
    
    .philosophy-quote {
        padding: 1.5rem;
    }
    
    .quote-text {
        font-size: 1rem;
        padding-left: 1.5rem;
    }
    
    .principle {
        padding: 1rem;
    }
    
    .principle-title {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ===== ENHANCED CONTACT PAGE STYLING ===== */

/* Contact Hero Enhancement */
.contact-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Enhanced Contact Form Container */
.contact-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.contact-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(139, 92, 246, 0.03) 50%,
        rgba(16, 185, 129, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-form-container:hover::after {
    opacity: 1;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    animation: shimmer 3s ease-in-out infinite;
}

.academic-contact-form {
    position: relative;
    z-index: 2;
}

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

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Enhanced Form Controls */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Form Validation States */
.form-control:valid {
    border-color: rgba(16, 185, 129, 0.5);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

/* Enhanced Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
}

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

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-check-label a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Enhanced Submit Button */
.academic-contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.academic-contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.academic-contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(37, 99, 235, 0.3),
        0 5px 15px rgba(37, 99, 235, 0.2);
}

.academic-contact-form .btn-primary:hover::before {
    left: 100%;
}

.academic-contact-form .btn-primary:active {
    transform: translateY(-1px);
}

/* Contact Method Cards */
.method-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.5rem);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

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

.method-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.method-card h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.method-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Contact Information Cards */
.contact-info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-0.75rem);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 80px rgba(37, 99, 235, 0.1);
}

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

.contact-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.contact-info-card:hover .contact-icon::before {
    transform: scale(1);
}

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

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-primary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.contact-secondary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Loading States */
.form-loading {
    position: relative;
    overflow: hidden;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success/Error Messages */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .academic-contact-form .btn-primary {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
    
    .method-card {
        padding: 1.5rem;
    }
    
    .method-card i {
        font-size: 2.5rem;
    }
    
    .form-check {
        padding: 0.75rem;
    }
    
    .form-check-input {
        width: 1rem;
        height: 1rem;
    }
    
    .form-check-label {
        font-size: 0.875rem;
    }
}

/* ===== CLEAN PROFESSIONAL SECTIONS ===== */
.bg-light-gray {
    background: var(--bg-light-gray);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="dark"] .bg-light-gray {
    background: var(--bg-light-gray);
    border-color: var(--glass-border);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Clean Button Styles */
.btn {
    border-radius: var(--button-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--modern-shadow);
    color: white;
}

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

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

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
}

/* Clean spacing for nested elements */
.glass-card p:last-child {
    margin-bottom: 0;
}

.glass-card .btn {
    margin-top: 1rem;
}

/* Responsive grid improvements */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col, [class*="col-"] {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .modern-grid,
    .modern-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== ENHANCED VISUAL HIERARCHY ===== */

/* Page-specific hero enhancements */
.page-hero {
    padding: 8rem 0 5rem;
    position: relative;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Card Grid Layouts */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.modern-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Enhanced Card Hover Effects */
.enhanced-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.enhanced-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 
        var(--card-shadow-hover),
        0 0 30px rgba(37, 99, 235, 0.1);
}

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

/* Professional Icon Styling */
.modern-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

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

.enhanced-card:hover .modern-icon::before {
    transform: scale(1);
}

/* Enhanced Typography */
.enhanced-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.enhanced-card:hover .enhanced-title {
    color: var(--primary-color);
}

.enhanced-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Enhanced Lists */
.enhanced-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enhanced-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.enhanced-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.enhanced-list li:hover::before {
    transform: translateY(-50%) scale(1.3);
}

/* Enhanced Buttons */
.enhanced-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    color: white;
}

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

/* Professional Stats Display */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FINAL PROFESSIONAL POLISH ===== */

/* Enhanced text readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Clean link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Professional form elements */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Clean image handling */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--button-radius);
}

/* Professional loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(50%);
}

/* Smooth transitions for all interactive elements */
button, .btn, a, .glass-card, .modern-card {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Clean scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Text selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Professional print styles */
@media print {
    .back-to-top,
    .scroll-progress,
    .modern-nav {
        display: none !important;
    }
    
    .glass-card {
        background: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e5e7eb !important;
    }
    
    * {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ===== CONTACT QUICK INFO STYLING ===== */
.contact-quick-info {
    margin-top: 2rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.quick-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.1rem;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Dark theme support */
[data-theme="dark"] .quick-info-item {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .quick-info-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

/* ===== SOPHISTICATED ANIMATIONS & INTERACTIONS ===== */

/* Floating Animation for Cards */
@keyframes floatUp {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: floatUp 6s ease-in-out infinite;
}

.float-animation:nth-child(2) { animation-delay: 2s; }
.float-animation:nth-child(3) { animation-delay: 4s; }

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.6s ease forwards;
}

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Pulse Animation for Interactive Elements */
.pulse-on-hover:hover {
    animation: pulseGlow 1s ease-in-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); }
    100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
}

/* Sophisticated Micro-Interactions */
.micro-interaction {
    position: relative;
    overflow: hidden;
}

/* ===== SIMPLE NEWS LIST STYLING ===== */

.news-list {
    max-width: 100%;
}

.news-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--modern-shadow);
    border-color: var(--primary-color);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
    font-style: italic;
    opacity: 0.8;
}

.news-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    margin-bottom: 0;
}

.news-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Dark Theme Support */
[data-theme="dark"] .news-item {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .news-item:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .news-date {
    color: var(--text-muted);
}


.micro-interaction::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
    pointer-events: none;
}

.micro-interaction:hover::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Animation Controls */
@media (prefers-reduced-motion: reduce) {
    .float-animation,
    .stagger-item {
        animation: none;
    }
    
    .enhanced-card,
    .glass-card,
    .publication-card {
        transition: none;
    }
}

/* Mobile-Optimized Animations */
@media (max-width: 768px) {
    .enhanced-card:hover,
    .glass-card:hover,
    .publication-card:hover {
        transform: translateY(-0.25rem);
    }
    
    .micro-interaction:hover::after {
        width: 150px;
        height: 150px;
    }
}
    
    .feature-card,
    .contact-form {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* RECOMMENDED RESOURCES - CONFERENCES AND FUNDING */
.resource-tabs {
    gap: 1rem;
}

.resource-tabs .nav-link {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(156, 163, 175, 0.2);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.resource-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.resource-tabs .nav-link.active,
.resource-tabs .nav-link:active,
.resource-tabs .nav-link:focus {
    color: #ffffff !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.resource-tabs .nav-link.active i,
.resource-tabs .nav-link:active i,
.resource-tabs .nav-link:focus i {
    color: #ffffff !important;
}

.resource-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.resource-list li {
    margin-bottom: 0.65rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.resource-list li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.75rem;
}

.resource-list.funding-links li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.resource-list.funding-links li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

[data-theme="dark"] .resource-tabs .nav-link {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(107, 114, 128, 0.3);
}

[data-theme="dark"] .resource-tabs .nav-link:hover {
    background: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .resource-tabs .nav-link.active {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .resource-tabs .nav-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .resource-list li {
        font-size: 0.85rem;
    }
}