/* SAIL Research Lab - Dark Aesthetic Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark Theme Variables */
:root {
    /* Core Dark Colors - Reduced contrast for seamless appearance */
    --black-primary: #0a0a0a;
    --black-secondary: #0f0f0f;
    --black-tertiary: #141414;
    --gray-dark: #1a1a1a;
    --gray-medium: #404040;
    --gray-light: #666666;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #b0b0b0;
    --text-accent: #808080;

    /* Accent Colors */
    --accent-blue: #4a9eff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;

    /* Backgrounds */
    --bg-primary: var(--black-primary);
    --bg-secondary: var(--black-secondary);
    --bg-card: var(--black-tertiary);
    --bg-elevated: var(--gray-dark);

    /* Borders & Dividers */
    --border-primary: #333333;
    --border-secondary: #404040;
    --border-accent: #555555;

    /* Modern Shadows */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-intense: 0 12px 48px rgba(0, 0, 0, 0.7);

    /* Glows */
    --glow-blue: 0 0 20px rgba(74, 158, 255, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 400;
    scroll-behavior: smooth;
}

body.mobile-nav-open {
    overflow: hidden;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Dark Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-medium);
    border-bottom-color: var(--border-secondary);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: var(--glow-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: var(--glow-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Dark Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-strong);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    background: transparent;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--text-primary);
    text-shadow: var(--glow-blue);
    border-bottom-color: var(--accent-blue);
}

/* Dark Hero Section */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 158, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(34, 211, 238, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.01'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    text-shadow: var(--glow-blue);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Dark Theme Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-medium), var(--glow-blue);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border-secondary);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-medium), var(--glow-blue);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Dark Sections */
.section {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* Optional subtle background variation for specific sections */
.section.alt-background {
    background: var(--bg-primary);
}

/* Seamless transitions between sections */
.section + .section {
    border-top: none;
}

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

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

.section-header h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-blue);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dark Theme Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium), var(--glow-blue);
}

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

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* Dark Theme Team Members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-medium), var(--glow-blue);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Original Image Effect */
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    filter: none;
}

.member-card:hover .member-avatar img {
    filter: none;
    transform: scale(1.05);
}

.member-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 50%;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.member-card:hover .member-avatar::after {
    opacity: 0;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.member-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Principal Investigator */
.principal-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-secondary);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.principal-hover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
    z-index: 0;
}

.principal-hover-container:hover::before {
    opacity: 0.03;
}

.principal-hover-container:hover {
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.principal-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.principal-avatar-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.principal-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 900;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Principal Avatar Image Effects */
.principal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
}

.principal-hover-container:hover .principal-avatar img {
    filter: none;
    transform: scale(1.02);
}

/* Transparent overlay for consistency */
.principal-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 50%;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.principal-hover-container:hover .principal-avatar::after {
    opacity: 0;
}

.avatar-glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    filter: blur(8px);
}

.principal-hover-container:hover .principal-avatar {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong), var(--glow-purple);
}

.principal-hover-container:hover .avatar-glow-ring {
    opacity: 0.4;
    transform: scale(1);
}

.principal-hover-container:hover .principal-avatar-wrapper {
    transform: translateY(-5px);
}

.principal-header {
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.principal-hover-container:hover .principal-header h3 {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
    transform: translateX(5px);
}

.principal-hover-container:hover .principal-header h4 {
    color: var(--accent-purple);
    transform: translateX(5px);
}

.principal-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.principal-info h4 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-section {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.principal-hover-container:hover .info-section {
    opacity: 1;
    transform: translateX(3px);
}

.info-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.principal-hover-container:hover .info-section h5 {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

.info-section li {
    transition: all 0.3s ease;
}

.principal-hover-container:hover .info-section li {
    color: var(--text-primary);
    padding-left: 2rem;
}

.principal-hover-container:hover .info-section li::before {
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(74, 158, 255, 0.5);
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Partner Cards */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.partner-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

.partner-card:hover::before {
    opacity: 0.05;
}

.partner-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid var(--border-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.partner-card:hover .partner-logo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
    box-shadow: var(--shadow-medium), var(--glow-blue);
    transform: scale(1.08) translateY(-3px);
    border-color: var(--accent-blue);
}

.partner-card:hover .partner-logo::before {
    opacity: 0;
}

.partner-logo img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
    position: relative;
    z-index: 1;
}

.partner-card:hover .partner-logo img {
    filter: none;
    transform: scale(1.05);
}

.partner-logo svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
    position: relative;
    z-index: 1;
}

.partner-card:hover .partner-logo svg {
    filter: none;
    transform: scale(1.05);
}

.partner-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.partner-card:hover h4 {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.partner-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

.partner-card:hover p {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-2px);
}

/* Enhanced Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

.contact-card:hover::before {
    opacity: 0.05;
}

.contact-card h4 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.contact-card:hover h4 {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
    transform: translateY(-3px);
    opacity: 1;
}

.contact-card h4 i {
    transition: all 0.3s ease;
    filter: grayscale(50%) brightness(0.7);
    margin-right: 0.75rem !important;
    font-size: 1.2em;
}

.contact-card:hover h4 i {
    filter: grayscale(0%) brightness(1.0);
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 0.75;
}

.contact-card:hover p {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.contact-card a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(74, 158, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.footer p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Page Transitions */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

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

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

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

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

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

/* Base animation classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

.slide-in-down {
    animation: slideInDown 0.6s ease-out;
}

/* Page entrance animations */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.page-enter.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays for staggered effects */
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }
.fade-in-delay-6 { animation-delay: 0.6s; }
.fade-in-delay-7 { animation-delay: 0.7s; }
.fade-in-delay-8 { animation-delay: 0.8s; }

/* Initial state for animated elements */
.animate-on-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Publication item animations */
.publication-item.animate-on-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-item.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Team card animations */
.member-card.animate-on-enter {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Principal investigator special animation */
.principal-section.animate-on-enter {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.principal-section.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Research/Partner card animations */
.card.animate-on-enter,
.partner-card.animate-on-enter,
.contact-card.animate-on-enter {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.animate-on-enter.visible,
.partner-card.animate-on-enter.visible,
.contact-card.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Section header animations */
.section-header.animate-on-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.section-header.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section animations */
.hero-container.animate-on-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.hero-container.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats section animations */
.stats-section.animate-on-enter {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-section.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced section animations */
.research-impact-section.animate-on-enter,
.key-venues-section.animate-on-enter {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-impact-section.animate-on-enter.visible,
.key-venues-section.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Venue card animations */
.venue-card.animate-on-enter {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-card.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Special animation for year headers */
.publication-year-header.animate-on-enter {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease-out;
}

.publication-year-header.animate-on-enter.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Floating elements */
.floating-contact.animate-on-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact.animate-on-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Page transition effects */
.page {
    transition: opacity 0.3s ease-in-out;
}

.page:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
}

/* Smooth entrance for page content */
.page.active .section:first-child {
    animation: fadeInUp 0.4s ease-out;
}

/* Mobile responsive animations */
@media (max-width: 768px) {
    .animate-on-enter {
        transform: translateY(20px);
    }

    .principal-section.animate-on-enter {
        transform: translateY(25px) scale(0.98);
    }

    .publication-item.animate-on-enter {
        transform: translateY(15px) scale(0.98);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-enter,
    .animate-on-enter.visible {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .slide-in-down {
        animation: none;
        transition: opacity 0.2s ease;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

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

    .principal-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .principal-avatar-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .principal-avatar {
        width: 200px;
        height: 200px;
        font-size: 3rem;
        margin: 0 auto;
    }

    .avatar-glow-ring {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }

    /* Touch devices - add active states for better mobile interaction */
    .principal-hover-container:active::before {
        opacity: 0.03;
    }

    .principal-hover-container:active {
        box-shadow: var(--shadow-strong), var(--glow-blue);
        border-color: var(--accent-blue);
        transform: translateY(-1px);
    }

    .principal-hover-container:active .principal-avatar {
        transform: scale(1.03);
        box-shadow: var(--shadow-strong), var(--glow-purple);
    }

    .principal-hover-container:active .avatar-glow-ring {
        opacity: 0.3;
        transform: scale(1);
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile-specific publication styles */
    .publication-item {
        padding: 1rem !important;
        margin-bottom: 1rem;
        height: auto !important;
        min-height: 180px;
    }

    .publication-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .publication-authors {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }

    .publication-venue {
        font-size: 0.8rem !important;
        margin-bottom: 0.6rem !important;
    }

    .btn-small {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

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

    /* Extra small mobile publication adjustments */
    .publication-item {
        padding: 0.8rem !important;
        height: auto !important;
        min-height: 160px;
    }

    .publication-title {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3 !important;
    }

    .publication-authors {
        font-size: 0.75rem !important;
    }

    .publication-venue {
        font-size: 0.75rem !important;
    }
}

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

/* Publications Styles */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.publication-item:hover {
    box-shadow: var(--shadow-strong), var(--glow-blue);
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.publication-year {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 70px;
  padding: 10 5rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: var(--text-primary);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-medium), var(--glow-blue);
  margin-right: 0.5rem;
}

.publication-year-text {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.95rem;
  margin-left: 1.2em;
}

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

.publication-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: block;
}

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

.publication-venue {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.publication-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.publication-meta i {
    opacity: 0.7;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-small:not(.btn-secondary) {
    background: var(--accent-blue);
    color: white;
}

.btn-small:not(.btn-secondary):hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-small.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-small.btn-secondary:hover {
    background: var(--text-muted);
    color: var(--text-primary);
}

.award-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.publication-filter {
    transition: all 0.3s ease;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.publication-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-filter.active {
    background: var(--accent-blue) !important;
    color: white !important;
    border-color: var(--accent-blue);
}

.publication-filter.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

/* Eerily transparent icons for publication filters */
.publication-filter i {
    opacity: 0.3;
    color: var(--text-muted);
    transition: all 0.3s ease;
    filter: grayscale(50%);
}

.publication-filter:hover i {
    opacity: 0;
    filter: grayscale(50%);
}

.publication-filter.active i {
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
    filter: grayscale(50%);
}

.publication-item.hidden {
    display: none;
}

/* Featured Publications Styling */
.publication-item.featured {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(103, 58, 183, 0.04) 100%);
    border-left: 3px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.publication-item.featured::before {
    content: "⭐";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.8;
}

.publication-item.featured .publication-title {
    color: var(--accent-blue);
    font-size: 1.1rem;
    font-weight: 700;
    padding-right: 1.5rem;
}

.publication-item.featured .publication-year {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #1a1a1a;
    font-weight: 800;
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
}

.publication-item.featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.12);
    border-left-color: #f59e0b;
}

/* Featured Section Header */
#featured-publications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* All Publications Section */
#all-publications {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Compact Publications Styles */
.publication-item.compact {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.publication-item.compact:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--accent-blue);
}

.publication-item.compact .publication-year {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #673ab7 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
}

.publication-item.compact .publication-content {
    flex: 1;
    min-width: 0;
}

.publication-item.compact .publication-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: block;
}

.publication-item.compact .publication-authors {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.publication-item.compact .publication-venue {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.publication-item.compact .publication-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.publication-item.compact .publication-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.publication-item.compact .publication-meta i {
    opacity: 0.7;
    font-size: 0.7rem;
}

.publication-item.compact .publication-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.publication-item.compact .btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.publication-item.compact .btn-sm:not(.btn-secondary) {
    background: var(--accent-blue);
    color: white;
}

.publication-item.compact .btn-sm:not(.btn-secondary):hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.publication-item.compact .btn-sm.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.publication-item.compact .btn-sm.btn-secondary:hover {
    background: var(--text-muted);
    color: var(--text-primary);
}

/* Compact Featured Publications */
.publication-item.compact.featured {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(103, 58, 183, 0.04) 100%);
    border-left: 3px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-right: 1.5rem;
}

.publication-item.compact.featured::before {
    content: "⭐";
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1rem;
    opacity: 0.8;
}

.publication-item.compact.featured .publication-title {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 700;
    padding-right: 1.5rem;
}

.publication-item.compact.featured .publication-year {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #1a1a1a;
    font-weight: 800;
}

.publication-item.compact.featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.1);
    border-left-color: #f59e0b;
}

/* Compact Grid Layouts */
#featured-publications.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

#all-publications.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Compact Publications */
@media (max-width: 768px) {
    .publication-item.compact {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.5rem;
        gap: 0.8rem;
    }

    .publication-item.compact .publication-year {
        width: 45px;
        height: 45px;
        font-size: 0.85rem;
    }

    .publication-item.compact.featured {
        padding-right: 1rem;
    }

    .publication-item.compact.featured::before {
        top: 0.6rem;
        right: 0.6rem;
        font-size: 0.9rem;
    }

    .publication-item.compact .publication-title {
        font-size: 0.9rem;
    }

    .publication-item.compact.featured .publication-title {
        font-size: 0.95rem;
        padding-right: 1rem;
    }

    .publication-item.compact .publication-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .publication-item.compact .publication-links {
        flex-direction: column;
        align-items: stretch;
    }

    .publication-item.compact .btn-sm {
        width: 100%;
        justify-content: center;
    }

    /* Fix grid layout for mobile */
    #featured-publications.compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    #all-publications.compact {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    #featured-publications.compact {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    #all-publications.compact {
        gap: 0.5rem;
    }

    .publication-item.compact {
        padding: 0.7rem;
        margin-bottom: 0.4rem;
    }
}

/* Quick Navigation Links */
.quick-nav-link {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-nav-link:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Call to Action Cards */
.cta-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-secondary);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

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

.cta-card i {
    transition: all 0.3s ease;
}

.cta-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.5));
}

.cta-card.green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.cta-card.yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

/* Navigation Section */
.nav-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    margin: 3rem 0;
    border: 1px solid var(--border-primary);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
}

.floating-contact:active {
    transform: scale(0.95);
}

/* Partners Slider Section */
.partners-slider-container {
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--black-secondary) 0%, var(--black-tertiary) 100%);
    border-radius: 20px;
    margin-top: 2rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
    box-shadow: var(--shadow-medium), var(--glow-blue), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.partners-slider {
    display: flex;
    animation: slide 30s linear infinite;
    width: fit-content;
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partners-slide {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle), var(--glow-blue);
    transition: all 0.3s ease;
    height: 100px;
    min-width: 180px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
}

.partner-logo-item img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.partner-logo-item:hover img {
    transform: scale(1.05);
    filter: none;
}

.partner-logo-item div {
    color: white !important;
    background: transparent !important;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
}

.partner-logo-item:hover div {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
}

.partner-logo {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .cta-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        max-width: 900px;
    }

    .cta-card {
        padding: 1.75rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .floating-contact {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .cta-cards-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 400px;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .cta-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .cta-card:hover i {
        transform: scale(1.05);
    }

    .nav-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    /* Enhanced Partner Cards Responsive */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .partner-card {
        padding: 2rem;
        margin-bottom: 1rem;
    }

    .partner-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .partner-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    .partner-card:hover .partner-logo {
        transform: scale(1.05) translateY(-2px);
    }

    .partner-logo img {
        max-width: 80px;
        max-height: 80px;
    }

    .partner-card h4 {
        font-size: 1.3rem;
    }

    .partner-card p {
        font-size: 0.9rem;
    }

    /* Touch devices - add active states for better mobile interaction */
    .partner-card:active::before {
        opacity: 0.05;
    }

    .partner-card:active {
        transform: translateY(-6px) scale(1.01);
        box-shadow: var(--shadow-strong), var(--glow-blue);
        border-color: var(--accent-blue);
    }

    .partner-card:active .partner-logo {
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
        box-shadow: var(--shadow-medium), var(--glow-blue);
        transform: scale(1.05) translateY(-2px);
        border-color: var(--accent-blue);
    }

    .partner-card:active .partner-logo::before {
        opacity: 0;
    }

    .partner-card:active .partner-logo img {
        filter: grayscale(0%) contrast(1.0) brightness(1.0) saturate(1.0);
        transform: scale(1.05);
    }

    .partner-card:active h4 {
        color: var(--accent-blue);
        text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
        transform: translateY(-2px);
    }

    .partner-card:active p {
        color: var(--text-primary);
        opacity: 1;
        transform: translateY(-2px);
    }

    /* Enhanced Contact Cards Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2rem;
        margin-bottom: 1rem;
    }

    .contact-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .contact-card h4 {
        font-size: 1.2rem;
    }

    .contact-card p {
        font-size: 0.95rem;
    }

    /* Touch devices - add active states for better mobile interaction */
    .contact-card:active::before {
        opacity: 0.05;
    }

    .contact-card:active {
        transform: translateY(-6px) scale(1.01);
        box-shadow: var(--shadow-strong), var(--glow-blue);
        border-color: var(--accent-blue);
    }

    .contact-card:active h4 {
        color: var(--accent-blue);
        text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
        transform: translateY(-2px);
        opacity: 1;
    }

    .contact-card:active h4 i {
        filter: grayscale(0%) brightness(1.0);
        transform: scale(1.05);
        text-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    }

    .contact-card:active p {
        color: var(--text-primary);
        opacity: 1;
        transform: translateY(-2px);
    }

    .contact-card:active a {
        color: var(--accent-cyan);
        text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
        background: rgba(34, 211, 238, 0.1);
        transform: translateY(-2px);
    }

    /* Partners Slider Responsive */
    .partners-slide {
        gap: 2rem;
        padding: 0 1rem;
    }

    .partner-logo-item {
        min-width: 140px;
        height: 80px;
        padding: 0.75rem 1.5rem;
    }

    /* Partners slider logo sizing - different from partner cards */
    .partner-logo-item img {
        max-width: 100px;
        max-height: 45px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-nav,
    .footer {
        display: none;
    }

    .page {
        display: block !important;
        opacity: 1 !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* Enhanced Research Impact Section */
.research-impact-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%) !important;
    border: 1px solid var(--border-secondary) !important;
    box-shadow: var(--shadow-medium), var(--glow-blue) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 4rem !important;
    padding: 3rem !important;
    border-radius: 24px !important;
}

.research-impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.research-impact-section:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: var(--shadow-strong), var(--glow-purple) !important;
    border-color: var(--accent-blue) !important;
}

.research-impact-section:hover::before {
    opacity: 1;
}

.research-impact-section h3 {
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.research-impact-section:hover h3 {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.4) !important;
    transform: translateY(-3px) !important;
}

.research-impact-section h3 i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.3)) !important;
}

.research-impact-section:hover h3 i {
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.6)) !important;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5) !important;
}

.research-impact-section p {
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    opacity: 0.9 !important;
}

.research-impact-section:hover p {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
    color: var(--text-primary) !important;
}

.research-impact-section p strong {
    transition: all 0.3s ease !important;
}

.research-impact-section:hover p strong {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4) !important;
}

/* Enhanced Key Publication Venues Section */
.key-venues-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%) !important;
    border: 1px solid var(--border-secondary) !important;
    box-shadow: var(--shadow-medium), var(--glow-blue) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 4rem !important;
    padding: 3rem !important;
    border-radius: 24px !important;
}

.key-venues-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.key-venues-section:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: var(--shadow-strong), var(--glow-purple) !important;
    border-color: var(--accent-blue) !important;
}

.key-venues-section:hover::before {
    opacity: 1;
}

.key-venues-section h3 {
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.key-venues-section:hover h3 {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.4) !important;
    transform: translateY(-3px) !important;
}

.key-venues-section h3 i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.3)) !important;
}

.key-venues-section:hover h3 i {
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.6)) !important;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5) !important;
}

/* Enhanced Venue Cards */
.venue-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.venue-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-subtle) !important;
}

.venue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.venue-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.venue-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: var(--shadow-strong), var(--glow-blue) !important;
    border-color: var(--accent-blue) !important;
}

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

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

.venue-card h4 {
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
}

.venue-card:hover h4 {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.4) !important;
    transform: translateY(-3px) !important;
}

.venue-card ul {
    position: relative !important;
    z-index: 2 !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.venue-card li {
    padding: 0.6rem 0 !important;
    padding-left: 1.5rem !important;
    position: relative !important;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
    opacity: 0.85 !important;
}

.venue-card li::before {
    content: '→' !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent-blue) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
}

.venue-card:hover li {
    color: var(--text-primary) !important;
    opacity: 1 !important;
    transform: translateX(5px) !important;
    padding-left: 2rem !important;
}

.venue-card:hover li::before {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.5) !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* Pulse Animation for Enhanced Effects */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-medium), 0 0 20px rgba(74, 158, 255, 0.3);
    }
    50% {
        box-shadow: var(--shadow-strong), 0 0 30px rgba(74, 158, 255, 0.5);
    }
}

.research-impact-section:hover,
.key-venues-section:hover {
    animation: pulseGlow 2s ease-in-out infinite !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .research-impact-section,
    .key-venues-section {
        padding: 2rem !important;
        margin-top: 2rem !important;
    }

    .research-impact-section:hover,
    .key-venues-section:hover {
        transform: translateY(-6px) scale(1.01) !important;
        animation: none !important;
    }

    .venue-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .venue-card {
        padding: 1.5rem !important;
    }

    .venue-card:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }

    /* Touch device active states */
    .research-impact-section:active,
    .key-venues-section:active {
        transform: translateY(-6px) scale(1.01) !important;
        box-shadow: var(--shadow-strong), var(--glow-purple) !important;
        border-color: var(--accent-blue) !important;
    }

    .research-impact-section:active::before,
    .key-venues-section:active::before {
        opacity: 1;
    }

    .venue-card:active {
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: var(--shadow-strong), var(--glow-blue) !important;
        border-color: var(--accent-blue) !important;
    }

    .venue-card:active::before {
        opacity: 1;
    }

    .venue-card:active::after {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .research-impact-section,
    .key-venues-section {
        padding: 1.5rem !important;
        margin-top: 1.5rem !important;
    }

    .venue-card {
        padding: 1.25rem !important;
    }

    .venue-card h4 {
        font-size: 1.1rem !important;
    }

    .venue-card li {
        font-size: 0.9rem !important;
        padding: 0.5rem 0 !important;
    }
}


/*  Publication Style */
.publication-vertical-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.publication-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.publication-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.publication-venue {
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.95rem;
}

.publication-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Seamless section transitions - eliminate all visible divisions */
.section + .section,
.hero + .section,
.section + .footer,
.page .hero,
.page .section,
.page .footer {
    border-top: none;
    margin-top: 0;
}

/* Ensure venue cards blend seamlessly */
.venue-card {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* News Section Styles */
.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-recent,
.news-past {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

.news-item:hover::before {
    opacity: 1;
}

.news-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow-medium), var(--glow-blue);
    position: relative;
    z-index: 1;
}

.news-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

.news-day {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.news-year {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

.news-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.news-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-icon i {
    font-size: 1.2rem;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.news-item:hover .news-icon {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-medium), var(--glow-blue);
}

.news-item:hover .news-icon i {
    color: white;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.news-text {
    flex: 1;
}

.news-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.news-item:hover .news-text h4 {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.news-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.news-item:hover .news-text p {
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* News Toggle Button */
.news-toggle-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
}

.news-toggle-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.news-toggle-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-medium), var(--glow-blue);
    transform: translateY(-2px);
}

.news-toggle-btn i {
    transition: all 0.3s ease;
}

.news-toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* Past News Animation */
.news-past {
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

.news-past.show {
    opacity: 1;
    max-height: 2000px;
    margin-top: 1rem;
}

.news-past .news-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-past.show .news-item {
    opacity: 1;
    transform: translateY(0);
}

.news-past.show .news-item:nth-child(1) { transition-delay: 0.1s; }
.news-past.show .news-item:nth-child(2) { transition-delay: 0.2s; }
.news-past.show .news-item:nth-child(3) { transition-delay: 0.3s; }

/* Responsive Design for News Section */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .news-date {
        width: 70px;
        height: 70px;
        align-self: flex-start;
    }

    .news-day {
        font-size: 1.3rem;
    }

    .news-content {
        gap: 0.8rem;
    }

    .news-icon {
        width: 45px;
        height: 45px;
    }

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

    .news-text h4 {
        font-size: 1rem;
    }

    .news-text p {
        font-size: 0.9rem;
    }

    .news-toggle-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

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

    .news-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .news-date {
        width: 60px;
        height: 60px;
    }

    .news-month {
        font-size: 0.7rem;
    }

    .news-day {
        font-size: 1.1rem;
    }

    .news-year {
        font-size: 0.65rem;
    }

    .news-icon {
        width: 40px;
        height: 40px;
    }

    .news-text h4 {
        font-size: 0.95rem;
    }

    .news-text p {
        font-size: 0.85rem;
    }
}

/* ================================
   OPEN SOURCE PAGE STYLES
   ================================ */

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

/* Repository Card */
.repo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.repo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong), var(--glow-blue);
    border-color: var(--accent-blue);
}

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

/* Repository Header */
.repo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.repo-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.repo-name a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.repo-name a:hover {
    color: var(--accent-blue);
}

.repo-name i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.repo-language {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

/* Language-specific colors */
.repo-language[data-language="python"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3776ab;
    margin-right: 0.5rem;
}

.repo-language[data-language="javascript"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f1e05a;
    margin-right: 0.5rem;
}

.repo-language[data-language="html"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e34c26;
    margin-right: 0.5rem;
}

.repo-language[data-language="jupyter notebook"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #da5b0b;
    margin-right: 0.5rem;
}

/* Repository Description */
.repo-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Repository Stats */
.repo-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.repo-stat i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.repo-updated {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-accent);
}

/* Repository Actions */
.repo-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Open Source Page Statistics Section - Using Main Page Design */
#opensource .stats-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 4rem 0;
}

#opensource .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

#opensource .stat-card {
    /* Remove individual card styling to match main page */
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: block;
    transition: transform 0.3s ease;
}

#opensource .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: transparent;
}

#opensource .stat-icon {
    /* Hide icons to match main page design */
    display: none;
}

#opensource .stat-content {
    text-align: center;
}

#opensource .stat-content h3 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

#opensource .stat-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Loading and Error States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.error-state i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.error-state a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.error-state a:hover {
    border-color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .repos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .repo-card {
        padding: 1.5rem;
    }

    .repo-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .repo-actions {
        gap: 0.6rem;
    }

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

    #opensource .stat-content h3 {
        font-size: 2.5rem;
    }

    #opensource .stat-content p {
        font-size: 1rem;
    }

    .loading-state,
    .error-state {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    #opensource .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #opensource .stat-content h3 {
        font-size: 3rem;
    }

    #opensource .stats-section {
        padding: 3rem 2rem;
    }

    .repo-actions {
        flex-direction: column;
    }
}
