/*
Theme Name: ReClean
Theme URI: http://www.codenx.com/
Theme Version: 1.0
Theme Date: 2013-03-12
Theme Author: CodeNx
Theme Author URI: http://www.codenx.com/
Theme License: GPLv2
*/

/* Import Google Web Fonts */
@import url("https://fonts.googleapis.com/css?family=Maven+Pro:400");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800");

/* CSS Variables for Dracula Theme + UCR Colors */
:root {
  /* Dracula Dark Backgrounds - Darker variant */
  --bg-dark: #1a1b26;     /* Darkened from #282a36 */
  --bg-light: #24283b;    /* Darkened from #44475a */
  --bg-darker: #16161e;   /* Darkened from #21222c */
  
  /* UCR Brand Colors */
  --ucr-blue: #003DA5;
  --ucr-gold: #FFB81C;
  --ucr-blue-light: #0066CC;
  --ucr-gold-dark: #CC9400;
  
  /* Dracula Colors */
  --fg-light: #f8f8f2;
  --fg-dark: #8be1e9; /* Improved from #6272a4 for better readability */
  --comment: #7c8db0; /* Added missing variable with better contrast */
  --cyan: #8be9fd;
  --green: #50fa7b;
  --orange: #ffb86c;
  --pink: #ff79c6;
  --purple: #bd93f9;
  --red: #ff5555;
  --yellow: #f1fa8c;
  --selection: #44475a;
  
  /* Blended Colors */
  --primary: var(--ucr-blue-light);
  --accent: var(--ucr-gold);
  --highlight: var(--cyan);
  
  /* Neon glow effects */
  --neon-pink-glow: 0 0 5px #ff79c6, 0 0 10px #ff79c6, 0 0 15px #ff79c6, 0 0 20px #ff79c6;
  --neon-cyan-glow: 0 0 5px #8be9fd, 0 0 10px #8be9fd, 0 0 15px #8be9fd, 0 0 20px #8be9fd;
  --neon-gold-glow: 0 0 5px #FFB81C, 0 0 10px #FFB81C, 0 0 15px #FFB81C, 0 0 20px #FFB81C;
  --neon-purple-glow: 0 0 5px #bd93f9, 0 0 10px #bd93f9, 0 0 15px #bd93f9, 0 0 20px #bd93f9;
}

/* Custom Scrollbar Styling - Dracula Theme */
/* Works in Chrome, Edge, Safari, and other Webkit browsers */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--bg-light), #44475a);
  border-radius: 6px;
  border: 1px solid rgba(189, 147, 249, 0.2);
  box-shadow: 0 0 5px rgba(189, 147, 249, 0.1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.7));
  border-color: rgba(189, 147, 249, 0.5);
  box-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: var(--purple);
}

::-webkit-scrollbar-corner {
  background: var(--bg-darker);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #44475a var(--bg-darker);
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darker);
  /* Prevent white overscroll background */
}

/* Universal Dracula Card Style */
.dracula-card {
  background: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(189, 147, 249, 0.2);
  position: relative;
}

/* Unified hover effect for all interactive cards - Soft and consistent */
.dracula-card:hover,
.technique-card:hover,
.research-area-item:hover,
.member-card:hover,
.collab-item:hover,
.opportunity-card:hover,
.offer-item:hover,
.project-card:hover,
.focus-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 30px rgba(189, 147, 249, 0.4),
              0 0 40px rgba(139, 233, 253, 0.2);
  border-color: rgba(189, 147, 249, 0.5);
  background: rgba(36, 40, 59, 0.85);
}

body {
  line-height: 1.7;
  background: var(--bg-dark);
  background-color: var(--bg-darker); /* Fallback for overscroll */
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: var(--fg-dark);
  margin: 0;
  padding: 0;
}

/* Global paragraph styling for better readability */
p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--fg-dark); /* Standardized to match Commitment to Open Science section */
}

/* Improve readability for specific content areas */
.timeline-content p,
.publication-abstract,
.grant-description,
.about-content p,
.research-item p,
.member-bio {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(248, 248, 242, 0.95); /* Improved opacity for better contrast */
}

/* Enhanced contrast for better readability */
.content p,
.research-overview p,
.team-intro p,
.publication-content p,
.news-content p,
.contact-info p {
  color: var(--fg-dark);
}

h1 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 2.5em;
  line-height: 1.2em;
  color: var(--purple);
  text-align: center;
  margin: 0.5em 0 0.8em 0;
  padding: 0.5em 0 0.8em 0;
  text-decoration: none;
  position: relative;
  display: inline-block;
  width: 100%;
  transition: all 0.3s ease;
}

/* Gold underline for all h1 headers except hero */
h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--ucr-gold) 20%, 
    var(--ucr-gold) 80%, 
    transparent);
  box-shadow: 0 0 5px rgba(255, 184, 28, 0.5);
  transition: all 0.3s ease;
}

/* Dark magenta glow on hover */
h1:hover::after {
  background: linear-gradient(90deg, 
    transparent, 
    #8B008B 20%, 
    #8B008B 80%, 
    transparent);
  box-shadow: 0 0 20px rgba(139, 0, 139, 1),
              0 0 40px rgba(139, 0, 139, 0.8),
              0 0 60px rgba(139, 0, 139, 0.6),
              0 2px 35px rgba(139, 0, 139, 0.8);
  filter: brightness(1.5);
  width: 80%;
  animation: glow-pulse 1.5s ease-in-out infinite;
}

/* Hero h1 doesn't get underline */
.hero h1 {
  margin-bottom: 0.2em;
  padding-bottom: 0;
}

.hero h1::after {
  display: none;
}


h2 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--purple) !important;
  font-size: 2.2rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
  margin: 2.5rem 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center !important;
  display: block !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  clear: both;
  padding-bottom: 0.8rem !important;
}

/* Orange underline for h2 */
/* Underline removed for h2 - only page headers (h1) have underlines */

/* Bright purple glow on hover for h2 */
h2:hover {
  color: var(--purple) !important;
  text-shadow: 0 0 25px rgba(189, 147, 249, 1),
               0 0 40px rgba(189, 147, 249, 0.8);
  transform: scale(1.05) !important;
  filter: brightness(1.3);
}

/* Hover effect removed for h2 underlines */

/* Special case for sections that need centered h2 - already handled by default h2 style */
.publication-metrics h2,
.team-section h2,
.lab-members h2,
.join-team h2,
.funding-overview h2,
.active-grants h2,
.research-support h2,
.join-intro h2,
.research-overview h2,
.research-timeline h2,
.research-areas h2,
.techniques h2,
.collaborations h2,
.graduate-opportunities h2,
.other-opportunities h2,
.what-we-offer h2,
.technology-section h2 {
  text-align: center !important;
}

.publication-metrics h2:hover,
.team-section h2:hover,
.lab-members h2:hover,
.join-team h2:hover,
.funding-overview h2:hover,
.active-grants h2:hover,
.research-support h2:hover,
.join-intro h2:hover,
.research-overview h2:hover,
.research-timeline h2:hover,
.research-areas h2:hover,
.techniques h2:hover,
.collaborations h2:hover,
.graduate-opportunities h2:hover,
.other-opportunities h2:hover,
.what-we-offer h2:hover,
.technology-section h2:hover {
  transform: translateY(-2px) !important;
}

/* Special width adjustments removed - no underlines for h2/h3/h4 */


h3 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--purple) !important;
  padding: 0 0 0.5rem 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.5em;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  display: block;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}

/* Underline removed for h3 - only page headers (h1) have underlines */

h3:hover {
  color: var(--purple) !important;
  text-shadow: 0 0 20px rgba(189, 147, 249, 0.8), 
               0 0 30px rgba(189, 147, 249, 0.5);
  transform: translateY(-2px);
  background: none !important;
  box-shadow: none !important;
}

/* Hover effect removed for h3 underlines */

@keyframes glow-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

h4 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1em;
  color: var(--purple) !important;
  margin: 0.6em 0 1rem 0;
  padding: 0 0 0.4rem 0;
  font-weight: 600;
  background: none;
  border: none;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Underline removed for h4 - only page headers (h1) have underlines */

/* Simple hover effect for h4 without underline */
h4:hover {
  color: var(--purple) !important;
  text-shadow: 0 0 15px rgba(139, 0, 139, 0.5);
  transform: translateY(-1px);
}


@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-title {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 200% 200%;
  animation: rainbow 5s ease infinite;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  display: inline-block;
}


blockquote {
  background: #eee;
  padding: 15px;
  margin: 30px auto;
  border: 1px solid #aaa;
  font-size: 18px;
  font-style: italic;
  color: #000;
  position: relative;
}

blockquote p {
  margin: 0;
  padding: 0;
}

ul.left {}

ul.right {
  text-align: right;
}

a {
  text-decoration: none;
  color: var(--purple);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.header {
  background-color: #fff;
  height: 10%;
}

.header-wrapper {
  width: 998px;
  margin: 0 auto;
  background-color: #fff;
}

.logo {
  width: 200px;
  margin-top: 10px;
}

.search {
  margin-top: 10px;
}

.nav {
  height: 10%;
  background-color: #00AEEC;
}

.nav-wrapper {
  margin: 0 auto;
  width: 998px;
}

.nav ul,
.header ul,
.sidebar ul {
  list-style: none;
  list-style-type: none;
}

.nav ul li,
.header ul li {
  display: inline;
  padding: 0px 10px 0px 10px;
}

.nav ul li {
  padding: 0 20px;
}

/* Python code colors */
.code.keyword.python {
  color: #0000FF; /* blue */
}

.code.function.python {
  color: #FF1493; /* pink */
}

.code.variable.python {
  color: #e5c07b; /* yellow */
}

.code.string.python {
  color: #98c379; /* green */
}

.code.comment.python {
  color: #5c6370; /* gray */
}

.code.operator.python {
  color: #56b6c2; /* cyan */
}

/* R code colors */
.code.keyword.r {
  color: #0000FF; /* blue */
}

.code.function.r {
  color: #ff80ee; /* pink */
}

.code.variable.r {
  color: #e5c07b; /* yellow */
}

.code.string.r {
  color: #98c379; /* green */
}

.code.comment.r {
  color: #5c6370; /* gray */
}

.code.operator.r {
  color: #56b6c2; /* cyan */
}

/* Bash code colors */
.code.keyword.bash {
  color: #0000FF; /* blue */
}

.code.command.bash {
  color: #FF1493; /* pink */
}

.code.variable.bash {
  color: #e5c07b; /* yellow */
}

.code.string.bash {
  color: #98c379; /* green */
}

.code.comment.bash {
  color: #5c6370; /* gray */
}

.code.operator.bash {
  color: #56b6c2; /* cyan */
}

.code.bracket.bash {
  color: #56b6c2; /* cyan */
}

.code.dollar.bash {
  color: #e5c07b; /* yellow */
}

.code.double-dash.bash {
  color: #be5046; /* red */
}

/* Code Chunks */
pre,
code {
  background-color: #282C34;
  color: #abb2bf;
  padding: 10px;
  border-radius: 4px;
}

.bg-success {
  background-color: #1a1a1a; /* sets color for chunk output background color */
  color: #f2a2cb; /* sets color for chunk output text color */
}

.codeBlockCustom {
	background-color: #1a1a1a; /* Dark background color */
    color: #f2a2cb; /* Pinkish color for the text */
}

/* Table styling for better alignment */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  caption-side: bottom;
}

table caption {
  color: #000000;
  font-style: italic;
  margin-top: 0.5em;
}

table th,
table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #ddd;
}

table th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

/* Ensure proper list alignment */
ul, ol {
  margin: 0.5em 0 0.5em 1.5em;
  padding-left: 1em;
}

li {
  margin: 0.3em 0;
  line-height: 1.6;
}

/* Paragraph alignment */
p {
  margin: 0.5em 0;
  line-height: 1.6;
  text-align: left;
}

/* Strong text styling */
strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Emphasis styling */
em {
  font-style: italic !important;
  color: var(--fg-dark);
}

/* Ensure em tags in publications are properly styled */
.publication-title em,
.publication-abstract em,
.publication-details em {
  font-style: italic !important;
  color: inherit;
}

/* Modal em tags use cyan */
.modal-content em,
.modal-body em {
  font-style: italic !important;
  color: var(--cyan) !important;
  opacity: 0.9;
}

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

/* Navigation */
.navbar {
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-brand {
  position: relative;
  margin-top: -16px;
  margin-left: 20px;
}

.nav-brand a {
  font-size: 1.9em;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-brand a span {
  background: linear-gradient(45deg, var(--fg-light), var(--ucr-gold), var(--fg-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.nav-brand .since-date {
  position: absolute;
  bottom: -5px;
  right: 0;
  font-size: 0.75rem;
  color: var(--purple); /* Dracula purple :P */
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
  padding-right: 0;
}

/* Mobile centering for nav-brand */
@media (max-width: 768px) {
  .nav-brand {
    margin-left: 0;
    margin-top: -15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-brand .since-date {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

.nav-logo {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  position: relative;
  animation: glow-pulse-logo 3s ease-in-out infinite;
}

.nav-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(144, 238, 144, 0.8)) 
          drop-shadow(0 0 25px rgba(255, 255, 224, 0.5));
}

@keyframes glow-pulse-logo {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(144, 238, 144, 0.3)) 
            drop-shadow(0 0 10px rgba(144, 238, 144, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 224, 0.5)) 
            drop-shadow(0 0 20px rgba(255, 255, 224, 0.3));
  }
}

@keyframes active-pulse {
  0%, 100% {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--ucr-gold), 0 0 20px var(--ucr-gold);
  }
  50% {
    transform: scale(1.15);
    text-shadow: 0 0 20px var(--ucr-gold), 0 0 30px var(--ucr-gold), 0 0 40px var(--ucr-gold);
  }
}

@keyframes active-pulse-purple {
  0%, 100% {
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
                0 0 25px rgba(189, 147, 249, 0.3),
                inset 0 0 10px rgba(189, 147, 249, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(189, 147, 249, 0.7),
                0 0 35px rgba(189, 147, 249, 0.5),
                inset 0 0 15px rgba(189, 147, 249, 0.2);
  }
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0 0 0 0.8rem; /* Elegant spacing from Cosme Lab */
  padding: 0;
}

/* BACKUP OF ORIGINAL NAV STYLES - SAVED 2025
.nav-menu a {
  color: var(--purple) !important;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0;
  background: rgba(39, 104, 160, 0.25);
  border: 1px solid rgba(39, 104, 160, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
*/

/* NEW PILL-STYLE NAV BADGES - Purple Theme */
.nav-menu a {
  color: var(--purple) !important;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  position: relative;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(189, 147, 249, 0.1);  /* Light purple background */
  border: 1px solid rgba(189, 147, 249, 0.2);  /* Thin purple border */
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  text-decoration: none !important;
  overflow: hidden;
  z-index: 1;
}

/* Sliding window effect for nav menu */
.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.nav-menu a:hover::before {
  left: 100%;
}

/* Removed underline effect for navigation items */

/* All navigation items now use purple color */

.nav-menu a:hover {
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  border: 1px solid var(--purple);
  color: white !important;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
}

/* Removed all ::after hover effects */

/* Active page styling */
.nav-menu a.active {
  font-weight: 700;
  background: rgba(189, 147, 249, 0.2);  /* Purple tint for active */
  border: 1px solid rgba(189, 147, 249, 0.4);
  color: var(--purple) !important;
  box-shadow: 0 0 10px rgba(189, 147, 249, 0.3),
              0 0 25px rgba(189, 147, 249, 0.3),
              inset 0 0 10px rgba(189, 147, 249, 0.1);
  transform: scale(1.05);
  position: relative;
  animation: active-pulse-purple 2s ease-in-out infinite;
}

/* Removed active page underline */

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--purple);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/background_home_header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 1;
  animation: enhanced-parallax 15s ease-in-out infinite alternate;
  transform: scale(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, 
    transparent 0%,
    rgba(255, 184, 108, 0.1) 30%,
    rgba(255, 184, 108, 0.2) 40%,
    transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: sun-rays 8s ease-in-out infinite;
}

@keyframes subtle-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes enhanced-parallax {
  0% {
    transform: scale(1.1) translateY(0);
    background-position: center 35%;
  }
  50% {
    transform: scale(1.15) translateY(-15px);
    background-position: center 50%;
  }
  100% {
    transform: scale(1.2) translateY(-30px);
    background-position: center 65%;
  }
}

@keyframes sun-rays {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: hero-fade-in 1.5s ease-out;
}

@keyframes hero-fade-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 0.2em;
  text-transform: none;
  border: none;
  padding: 0;
  background: linear-gradient(45deg, var(--fg-light), var(--ucr-gold), var(--fg-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite, hero-title-glow 2s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes hero-title-glow {
  0% {
    filter: drop-shadow(0 0 20px rgba(255, 184, 108, 0.5));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 30px rgba(255, 184, 108, 0.8)) drop-shadow(0 0 40px rgba(255, 184, 108, 0.4));
    transform: scale(1.02);
  }
}

.hero-tagline {
  font-size: 1.8em;
  margin: 0.5em 0;
  font-weight: 400;
  text-align: center;
  display: block;
  width: 100%;
  background: linear-gradient(45deg, var(--fg-light), var(--ucr-gold), var(--fg-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite, hero-subtitle-slide 1.5s ease-out 0.5s both;
}

@keyframes hero-subtitle-slide {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



.hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 2em;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  display: block;
  width: 100%;
  position: relative;
  background: linear-gradient(45deg, var(--fg-light), var(--ucr-gold), var(--fg-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite, hero-subtitle-fade 1.5s ease-out 1s both;
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ucr-gold);
  font-size: 0.8em;
  animation: sparkle 2s ease-in-out infinite;
}

.hero-subtitle::before {
  left: 20%;
}

.hero-subtitle::after {
  right: 20%;
  animation-delay: 1s;
}

@keyframes hero-subtitle-fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
              0 1px 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  height: 32px;
  min-width: 140px;
}

.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.6s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #44475a, #282a36);
  color: var(--purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              0 6px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: linear-gradient(135deg, #44475a, #282a36);
  color: var(--purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              0 6px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* News Banner */
.news-banner {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(80, 250, 123, 0.15) 100%);
  color: var(--fg-light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(80, 250, 123, 0.3);
  position: relative;
  overflow: hidden;
}

.news-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(80, 250, 123, 0.1), transparent);
  animation: news-shimmer 10s linear infinite;
}

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

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 1;
}

.news-item i {
  font-size: 1.2em;
  color: var(--purple);
}

.news-item strong {
  color: var(--purple);
}

.news-item a {
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(139, 233, 253, 0.1);
  border: 1px solid transparent;
}

.news-item a:hover {
  background: rgba(139, 233, 253, 0.2);
  border-color: var(--cyan);
  transform: translateX(2px);
  font-weight: bold;
  text-decoration: underline;
}

/* About Section */
.about-section {
  padding: 60px 0;
  background: transparent;
}

/* About Content - centered layout without sidebar */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.about-content > p {
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.8;
  color: var(--fg-dark);
}

/* Research Focus Section */
.research-focus-section {
  margin: 3rem auto;
  max-width: 1100px;
}

.focus-title {
  text-align: center;
  color: var(--purple);
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

.focus-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid rgba(98, 114, 164, 0.3);
  transition: all 0.3s ease;
}

/* Focus item hover now uses unified hover effect */

.focus-item i {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.focus-item h4 {
  color: var(--purple);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.focus-item p {
  color: var(--fg-dark);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Keep old classes for compatibility but hidden */
.about-cards-grid {
  display: none;
}

@media (max-width: 900px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Centered section headers */
.section-header-centered {
  text-align: center !important;
  display: block !important;
  margin: 0 0 2.5rem 0 !important;
  color: var(--purple) !important;
  font-size: 2rem;
  font-weight: 700;
}

/* Removed duplicate - already defined above */

.section-title {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  display: block;
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.about-text {
  text-align: center;
}

.about-sidebar {
  padding-top: 0;
  position: sticky;
  top: 20px;
}

.about-text h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.about-text p {
  margin-bottom: 1.2em;
  text-align: left;
  line-height: 1.8;
}

.research-highlights {
  background: var(--bg-light);
  padding: 2em;
  border-radius: 8px;
  margin-top: 2em;
  text-align: left;
}

.research-highlights h3 {
  color: var(--purple) !important;
  margin-bottom: 1em;
  padding: 8px 16px;
  font-weight: 600;
  background: rgba(46, 54, 69, 0.5);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}

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

.research-highlights li {
  padding: 0.5em 0;
  display: flex;
  align-items: center;
  gap: 1em;
}

.research-highlights i {
  color: var(--purple);
  width: 20px;
}

/* PI Card */
.pi-card {
  background: var(--bg-light);
  padding: 1.5em;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(189, 147, 249, 0.2);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.pi-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8em;
  border: 1px solid var(--purple);
  box-shadow: 0 0 12px rgba(189, 147, 249, 0.8),
              0 0 25px rgba(189, 147, 249, 0.5),
              0 0 37px rgba(189, 147, 249, 0.3);
}

.pi-card h3 {
  text-align: center;
  width: 100%;
  font-size: 1.3em;
  margin-bottom: 0.5rem;
  color: var(--purple) !important;
}

/* PI card h3 underline removed */

.pi-card p {
  color: var(--fg-dark);
  margin-bottom: 0.8em;
  text-align: center;
  font-size: 0.95em;
  line-height: 1.4;
}

.pi-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.pi-links a {
  font-size: 1.1em;
  color: var(--fg-dark);
  transition: all 0.3s ease;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--comment);
  background: var(--bg-darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

/* Individual colors for each social link */
.pi-links a[title="ORCID"] {
  border-color: var(--green);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(80, 250, 123, 0.3);
}

.pi-links a[title="Google Scholar"] {
  border-color: var(--cyan);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(139, 233, 253, 0.3);
}

.pi-links a[title="LinkedIn"] {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(189, 147, 249, 0.3);
}

.pi-links a[title="GitHub"] {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 8px rgba(255, 184, 28, 0.3);
}

.pi-links a[title="Email"] {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 8px rgba(255, 121, 198, 0.3);
}

/* Hover effects with color changes */
.pi-links a:hover {
  transform: translateY(-3px) scale(1.1);
  border-width: 2px;
  background: rgba(10, 11, 19, 0.9);
}

.pi-links a[title="ORCID"]:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.8), 0 0 30px rgba(241, 250, 140, 0.5);
}

.pi-links a[title="Google Scholar"]:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8), 0 0 30px rgba(189, 147, 249, 0.5);
}

.pi-links a[title="LinkedIn"]:hover {
  border-color: var(--cyan);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.8), 0 0 30px rgba(139, 233, 253, 0.5);
}

.pi-links a[title="GitHub"]:hover {
  border-color: var(--green);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8), 0 0 30px rgba(80, 250, 123, 0.5);
}

.pi-links a[title="Email"]:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 184, 28, 0.8), 0 0 30px rgba(255, 184, 28, 0.5);
}

/* Research Highlights Card */
.research-highlights-card {
  background: var(--bg-light);
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(189, 147, 249, 0.2);
  transition: all 0.3s ease;
}

.research-highlights-card:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

.research-highlights-card h3 {
  color: var(--purple);
  font-size: 1.15em;
  margin: 0 0 1em 0;
  text-align: center;
  position: relative;
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
}

.research-highlights-card ul.research-areas-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
}

.research-highlights-card li {
  color: var(--cyan);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95em;
  padding: 0.7rem 1rem;
  background: rgba(36, 40, 59, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 147, 249, 0.1);
  text-align: center;
}

.research-highlights-card li:hover {
  background: rgba(36, 40, 59, 0.8);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

/* Personal Story Card */
.personal-story-card,
.lab-approach-card {
  background: var(--bg-light);
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(189, 147, 249, 0.2);
  transition: all 0.3s ease;
}

.lab-approach-card:hover,
.personal-story-card:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

/* Lab Approach Card */
.lab-approach-card h3 {
  color: var(--purple);
  font-size: 1.15em;
  margin: 0 0 1em 0;
  text-align: center;
  position: relative;
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
}

.approach-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
}

.approach-list li {
  color: var(--cyan);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95em;
  padding: 0.7rem 1rem;
  background: rgba(36, 40, 59, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 147, 249, 0.1);
  text-align: center;
}

.approach-list li:hover {
  background: rgba(36, 40, 59, 0.8);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

/* Innovation Card */
.innovation-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(68, 71, 90, 0.7) 100%);
  padding: 2em;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(189, 147, 249, 0.2);
  text-align: center;
}

.innovation-card:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6), 
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

.innovation-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
}

.innovation-card p {
  color: var(--fg-dark);
  line-height: 1.8;
  text-align: left;
  margin-bottom: 1.5rem;
}

.innovation-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(189, 147, 249, 0.1);
  border: 1px solid var(--purple);
  border-radius: 20px;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
}

.btn-link:hover {
  background: var(--purple);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5);
  text-decoration: none;
}

.personal-story-card h3 {
  color: var(--purple);
  font-size: 1.1em;
  margin: 0 0 0.8em 0;
  text-align: center;
  position: relative;
  display: block;
}

.personal-story-card p {
  color: inherit;
  line-height: 1.6;
  margin-bottom: 0.8em;
  text-align: left;
  font-size: 0.95em;
}

/* Quick Stats */
.quick-stats {
  background: var(--bg-light);
  padding: 1.5em;
  border-radius: 8px;
  margin-top: 2em;
}

.quick-stats h4 {
  color: var(--purple) !important;
  margin-bottom: 1em;
  padding-left: 0;
  text-align: center;
}

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

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--purple);
}

.stat-label {
  font-size: 0.9em;
  color: var(--fg-dark);
}

/* Featured Research */
.featured-research {
  padding: 40px 0 80px 0;
  background: var(--bg-dark);
}

.featured-research .container {
  text-align: center;
}

.featured-research h2 {
  color: var(--purple) !important;
  margin: 0 0 3rem 0;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

/* Current Projects Section */
.current-projects {
  padding: 40px 0 60px 0;
  background: transparent;
}

/* Team Preview Section */
.team-preview {
  padding: 60px 0;
  background: var(--bg-darker);
  text-align: center;
}

.team-preview h2 {
  color: var(--purple) !important;
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.team-preview p {
  color: var(--fg-dark);
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.modal-team-member {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(36, 40, 59, 0.5);
  border-radius: 8px;
  border-left: 3px solid var(--purple);
}

.modal-team-member h4 {
  color: var(--purple);
  margin: 0 0 0.5rem 0;
}

.modal-team-member p {
  color: var(--fg-dark);
  margin: 0;
  line-height: 1.6;
}

.modal-footer {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(189, 147, 249, 0.2);
}

.current-projects h2 {
  color: var(--purple) !important;
  margin: 0 0 3rem 0;
  font-size: 2rem;
  font-weight: 700;
  text-align: center !important;
  display: block;
  width: 100%;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-light);
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(189, 147, 249, 0.2);
}

/* Project card hover now uses unified hover effect */

.project-card h4 {
  color: var(--purple);
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
}

.project-card p {
  color: var(--cyan);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center !important;
}

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

.research-card {
  background: var(--bg-light);
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(189, 147, 249, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6), 
              0 0 35px rgba(189, 147, 249, 0.4);
  border-color: rgba(189, 147, 249, 0.5);
}

.card-icon {
  font-size: 3em;
  color: var(--purple);
  margin-bottom: 0.5em;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1em;
  padding: 8px 16px;
  font-weight: 600;
  background: rgba(46, 54, 69, 0.5);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.research-card p {
  color: var(--fg-dark);
  margin-bottom: 1.5em;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.card-link {
  color: var(--pink);
  font-weight: 600;
}

/* Reproducibility Section */
.reproducibility {
  padding: 50px 0 60px 0;
  background: transparent;
  text-align: center;
}

.reproducibility p {
  text-align: center;
  color: var(--fg-dark);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.reproducibility-btn {
  background: rgba(189, 147, 249, 0.1);
  border: 1px solid rgba(189, 147, 249, 0.2);
  color: var(--purple);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.reproducibility-btn:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
}

.reproducibility-btn:hover .mosquito-emoji {
  transform: rotate(360deg) scale(1.1);
}

.reproducibility-story {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(68, 71, 90, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(189, 147, 249, 0.3);
  animation: fadeIn 0.3s ease;
}

.reproducibility-story p {
  color: var(--fg-light);
  line-height: 1.8;
  margin: 0;
}

.reproducibility h2 {
  color: var(--purple) !important;
  margin: 0 0 3rem 0;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.open-science-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto;
  flex-wrap: wrap;
  align-items: center;
}

.open-science-links .open-link {
  animation: icon-float 3s ease-in-out infinite;
}

.open-science-links .open-link:nth-child(2) {
  animation-delay: 0.5s;
}

.open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(189, 147, 249, 0.1);
  border-radius: 8px;
  color: var(--purple);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(189, 147, 249, 0.2);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

.open-link:hover::before {
  left: 100%;
}

.open-link:hover {
  transform: translateY(-3px) scale(1.02);
  text-decoration: none;
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
}


.open-link i {
  font-size: 1.2em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.open-link:hover i {
  transform: rotate(360deg) scale(1.1);
}

.open-link span {
  position: relative;
  z-index: 1;
}

/* Page-specific backgrounds */
body {
  position: relative;
  background-attachment: fixed;
  background-color: #282a36; /* Dracula background as fallback */
}

/* Home page background */
body.home-page {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), 
              url('../assets/images/page_backgrounds/home_page.png') center/cover fixed !important;
}

/* Research page background */
body:has(.research-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/research_page.png') center/cover fixed !important;
}

/* Team page background */
body:has(.team-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/team_page.png') center/cover fixed !important;
}

/* Publications page background */
body:has(.publications-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/publications_page.png') center/cover fixed !important;
}

/* News page background */
body:has(.news-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/news_page.png') center/cover fixed !important;
}

/* Grants page background */
body:has(.grants-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/grants_page.png') center/cover fixed !important;
}

/* Teaching page background */
body:has(.teaching-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/teaching_page.png') center/cover fixed !important;
}

/* Service page background */
body:has(.service-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/service_page.png') center/cover fixed !important;
}

/* Join page background */
body:has(.join-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/join_us_page.png') center/cover fixed !important;
}

/* Contact page background */
body:has(.contact-header) {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.6)), url('../assets/images/page_backgrounds/contact_page.png') center/cover fixed !important;
}

/* Footer */
.site-footer {
  background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.65)), url('../assets/images/headers/footer.png') center/cover;
  background-attachment: fixed;
  padding: 40px 0 20px;
  color: var(--fg-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer-section h4 {
  color: var(--purple) !important;
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 0;
  height: 1.5em;
  line-height: 1.5em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  text-align: center;
}

.footer-section h4:hover {
  color: var(--purple) !important;
  text-shadow: 0 0 25px rgba(189, 147, 249, 1),
               0 0 40px rgba(189, 147, 249, 0.8);
  transform: scale(1.05) translateY(-2px);
  filter: brightness(1.3);
}

.footer-section p,
.footer-section ul,
.footer-section .social-links {
  margin-top: 0;
  padding-top: 0;
}

.footer-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  padding-left: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-section li {
  margin-bottom: 0.8em;
  line-height: 1.8;
  text-align: left;
  font-size: 1.1rem;
}

.footer-section a {
  color: var(--fg-dark);
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--purple);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-left: 0;
}

.social-links a {
  font-size: 1.1em;
  color: var(--purple);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(189, 147, 249, 0.2);
  background: rgba(189, 147, 249, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none !important;
}

/* Add sliding window effect for social links */
.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(189, 147, 249, 0.2), 
    transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

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


/* Icon rotation animation */
.social-links a i {
  transition: transform 0.3s ease;
}

.social-links a:hover i {
  transform: rotate(360deg);
}

/* Hover effects with purple glow */
.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
  text-decoration: none !important;
}

/* Logo links styling - no box, just effects */
.logo-link {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  opacity: 1;
}

.logo-link img {
  transition: all 0.3s ease;
  filter: brightness(1) saturate(1);
}

.logo-link:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.logo-link:hover img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2) hue-rotate(-30deg) drop-shadow(0 0 15px rgba(189, 147, 249, 0.8));
}

/* Move the entomology logo slightly to the right */
.logo-link:last-child {
  margin-left: 0.55cm;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 248, 242, 0.1);
  color: var(--fg-dark);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: var(--purple);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.8), 
               0 0 20px rgba(189, 147, 249, 0.6),
               0 0 30px rgba(255, 121, 198, 0.4);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.footer-bottom p:hover {
  text-shadow: 0 0 15px rgba(189, 147, 249, 1), 
               0 0 30px rgba(255, 121, 198, 0.8),
               0 0 40px rgba(189, 147, 249, 0.6);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hero Mobile Styles */
  .hero {
    min-height: 100vh;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
  }
  
  .hero::before {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0.5 !important;
    animation: mobile-zoom 10s ease-in-out infinite alternate !important;
  }
  
  @keyframes mobile-zoom {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.15);
    }
  }
  
  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden !important;
    position: relative;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 2em !important;
    margin-bottom: 0.4em;
    line-height: 1.2;
  }
  
  .hero-tagline {
    font-size: 1.2em;
    line-height: 1.4;
    padding: 0 0.5rem;
    margin: 0.5em 0;
    display: block;
  }
  
  .hero-subtitle {
    font-size: 0.95em;
    padding: 0 0.5rem;
    margin-bottom: 1.5em;
    line-height: 1.4;
  }
  
  .hero-subtitle::before {
    left: 10%;
  }
  
  .hero-subtitle::after {
    right: 10%;
  }
  
  
  /* Disable the problematic hero::after */
  .hero::after {
    display: none !important;
  }
  
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(rgba(40, 42, 54, 0.85), rgba(40, 42, 54, 0.8)), 
                url('../assets/images/headers/mobile/research_page.png') center/cover no-repeat;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.3);
    padding: 2rem 0 1rem 0;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
    background-attachment: fixed;
  }
  
  .nav-menu li {
    width: 60%;
    max-width: 220px;
    margin: 0.25rem auto;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    display: block;
    background: rgba(189, 147, 249, 0.12);
    border: 2px solid rgba(189, 147, 249, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(8px);
  }

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-tagline {
    font-size: 1.4em;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .research-highlights-card ul.two-column-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .research-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.research-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/ long_Research Page Background4.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/ long_Contact Page Background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.news-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/long_Universal Overlay Texture.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  border: none;
  background: none !important;
  box-shadow: none !important;
  padding: 0.5em 0 0.8em 0 !important;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  text-shadow: 0 0 20px rgba(189, 147, 249, 0.5), 0 0 40px rgba(189, 147, 249, 0.3);
}

.page-header h1:hover {
  text-shadow: 0 0 30px rgba(189, 147, 249, 0.8), 0 0 60px rgba(189, 147, 249, 0.5);
}

.page-header .lead {
  font-size: 1.3rem;
  color: var(--fg-dark);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Research Overview */
.research-overview {
  padding: 60px 0;
  background: var(--bg-dark);
}

.overview-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.overview-content h2 {
  color: var(--purple) !important;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.overview-content p {
  text-align: center;
  color: var(--fg-dark);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Research Overview Hero */
.research-overview-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(68, 71, 90, 0.4) 100%);
  position: relative;
  overflow: hidden;
}

.research-overview-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(189, 147, 249, 0.05) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0.3; }
}

.overview-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-section h2 {
  color: var(--purple) !important;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 80px;
}

.accent-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.5);
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--fg-light);
  margin-bottom: 3rem;
  opacity: 0.95;
}

.research-stats {
  display: flex;
  gap: 50px;
  margin-top: 3rem;
}

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

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(139, 233, 253, 0.5);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--fg-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dna-helix {
  position: relative;
  width: 100px;
  height: 300px;
  transform: rotateY(20deg);
}

.helix-strand {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--purple) 0%, var(--cyan) 50%, var(--purple) 100%);
  opacity: 0.6;
  animation: helix-rotate 8s linear infinite;
}

.helix-strand:nth-child(1) {
  clip-path: path('M50,0 Q0,75 50,150 Q100,225 50,300');
}

.helix-strand:nth-child(2) {
  clip-path: path('M50,0 Q100,75 50,150 Q0,225 50,300');
  animation-delay: -4s;
}

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

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.mosquito-icon {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.dna-icon {
  bottom: 30%;
  right: 20%;
  animation-delay: 2s;
}

.globe-icon {
  top: 50%;
  left: 80%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .overview-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    height: 250px;
    order: -1;
  }
  
  .hero-text-section h2 {
    font-size: 2.5rem;
    text-align: center;
    padding-left: 0;
  }
  
  .accent-line {
    display: none;
  }
  
  .hero-description {
    text-align: center;
  }
  
  .research-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .research-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Research Areas */
.research-areas {
  padding: 40px 0;
}

.research-areas h2 {
  color: var(--purple) !important;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.research-area ul li strong {
  color: var(--cyan) !important;
  font-weight: 600;
}

.research-area {
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.research-area.dracula-card {
  padding: 2rem;
}

.area-content {
  display: block;
  padding: 0;
}

.area-content.reverse {
  display: block;
}

.area-text {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

.area-image {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.area-text h3 {
  color: var(--purple) !important;
  margin: 0.8em 0 0.5em 0;
  padding: 8px 16px;
  font-weight: 600;
  background: rgba(46, 54, 69, 0.5);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.area-text h4 {
  color: var(--cyan) !important;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.area-text h4 .journal-name {
  color: var(--purple) !important;
  font-style: italic;
  font-weight: 600;
}

.area-text ul {
  list-style: none;
  padding: 0;
}

.area-text li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.area-text li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}

.research-links {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

.research-links-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 233, 253, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
}

.research-links .learn-more-btn,
.research-links-bottom .learn-more-btn {
  margin: 0;
  font-size: 0.85rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.research-links .learn-more-btn i,
.research-links-bottom .learn-more-btn i {
  font-size: 0.85rem;
  width: auto;
  height: auto;
  filter: none;
  transform: none;
  margin: 0;
}

.research-links .learn-more-btn img,
.research-links-bottom .learn-more-btn img {
  width: 16px !important;
  height: 16px !important;
  margin: 0;
  justify-content: center;
}

.pub-info {
  color: var(--comment);
  font-size: 0.9rem;
  font-style: italic;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--bg-light);
  border-radius: 5px;
  color: var(--fg-light);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.research-link:hover {
  background: rgba(0, 102, 204, 0.15);
  border-color: var(--ucr-blue-light);
  color: var(--purple);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.3);
}

/* Image Placeholders */
.image-placeholder {
  background: var(--bg-darker);
  border: 2px dashed var(--comment);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--comment);
  font-style: italic;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  border-color: var(--ucr-gold);
  color: var(--purple);
}

/* Research Timeline Year Range */
.timeline-year-range {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  color: var(--fg-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.area-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  /* White background for scientific figures */
  background: white;
  padding: 25px;
  border: 2px solid rgba(189, 147, 249, 0.4);
  /* Add subtle glow to make it stand out */
  box-shadow: 0 0 30px rgba(189, 147, 249, 0.2),
              0 8px 20px rgba(0,0,0,0.4);
}

.area-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(189, 147, 249, 0.4),
              0 10px 25px rgba(0,0,0,0.5);
  border-color: var(--purple);
  transition: all 0.3s ease;
}

.figure-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--fg-dark);
  line-height: 1.4;
  text-align: center;
  font-style: normal;
}

.figure-caption a {
  color: var(--purple);
  text-decoration: none;
  font-style: normal;
}

.figure-caption a:hover {
  text-decoration: underline;
  color: var(--pink);
}

/* Multiple figures in genomics section */
.genomics-figures {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.genomics-figures .figure-item {
  width: 100%;
}

.genomics-figures .figure-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.genomics-figures .figure-item .figure-caption {
  margin-top: 0.75rem;
}

/* Techniques Section */
.techniques {
  padding: 40px 0;
}

.techniques .container {
  text-align: center;
}

.techniques h2 {
  color: var(--purple) !important;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
}

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

.technique-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(189, 147, 249, 0.2);
}

/* Technique card hover now uses unified hover effect */

.technique-card i {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.technique-card h4 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  padding: 0;
  height: 3em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.technique-card p {
  flex: 1;
  display: flex;
  align-items: flex-start;
  text-align: center;
  margin: 0;
}

.technique-card .technique-doi {
  flex: 0;
  margin-top: auto;
  padding-top: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.technique-card .technique-doi .learn-more-btn {
  margin: 0;
  font-size: 0.85rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.technique-card .technique-doi .learn-more-btn i {
  font-size: 0.85rem;
  width: auto;
  height: auto;
  filter: none;
  transform: none;
}

/* Collaborations */
.collaborations {
  padding: 40px 0;

.collaborations .container {
  text-align: center;
}

.collaborations p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--fg-dark);
}

.collaborations h2 {
  color: var(--purple) !important;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
}

.collab-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 1000px;
}

.collab-item {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(189, 147, 249, 0.2);
  overflow: hidden;
}

/* Purple glow effect on hover - enhanced to match other boxes */
/* Collab item hover now uses unified hover effect */


.collab-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--fg-light);
  position: relative;
}


/* Visit Website indicator */
.collab-item a::after {
  content: '🔗';
  position: absolute;
  bottom: 12px;
  right: 12px;
  transform: translateY(3px);
  font-size: 0.65rem;
  color: var(--purple);
  opacity: 0;
  transition: all 0.3s ease;
}

.collab-item:hover a::after {
  opacity: 0.7;
  transform: translateY(0);
}

.collab-item img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.4s ease;
  /* Fix for logos with non-transparent backgrounds */
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Special sizing for Virginia Tech logo */
.collab-item img[alt="Virginia Tech"] {
  height: 50px;
  padding: 12px 8px;
}

/* Special handling for RaMS logo - no white background */
.collab-item img[alt="UCR RaMS Lab"] {
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: none;
}

.collab-item:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.15);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Maintain original state for RaMS logo on hover */
.collab-item:hover img[alt="UCR RaMS Lab"] {
  filter: brightness(1.1);
  box-shadow: none;
}

.collab-item span {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--purple);
  transition: all 0.3s ease;
}

.collab-item:hover span {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(139, 233, 253, 0.4);
  text-underline-offset: 3px;
}

/* Removed sparkle animation for consistency - all collab items now use unified hover effect */

/* Clean collaboration logos without individual frames */
.collab-logos-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.collab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none !important;
  color: var(--fg-light);
  transition: all 0.3s ease;
  padding: 0.5rem;
  width: 160px;
  text-align: center;
}

.collab-link:hover {
  transform: translateY(-5px) scale(1.05);
  text-decoration: none !important;
}

.collab-link img {
  height: 70px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: all 0.3s ease;
  opacity: 1;
}

.collab-link:hover img {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(189, 147, 249, 0.5));
}

.collab-link span {
  font-size: 0.8rem;
  text-align: center;
  color: var(--purple);
  font-weight: 500;
  transition: all 0.3s ease;
  line-height: 1.3;
  width: 100%;
}

.collab-link:hover span {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
  text-decoration: none;
}

/* Mobile image placement - MUST be hidden on desktop */
.mobile-image-insert {
  display: none !important;
}

/* Desktop only images */
.desktop-only {
  display: block;
}

/* Only on desktop - ensure desktop layout */
@media (min-width: 769px) {
  .mobile-image-insert {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-bg);
  border-top: 2px solid var(--purple);
  z-index: 1000;
  padding: 10px;
  gap: 10px;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .btn-primary {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 1px solid var(--purple);
}

.mobile-bottom-nav .btn-primary i {
  font-size: 1.1rem;
}

.mobile-bottom-nav .btn-primary span {
  font-size: 0.7rem;
  display: block;
}

.mobile-bottom-nav .btn-primary.active {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(139, 233, 253, 0.5);
}

.mobile-bottom-nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6);
}

/* Responsive for Research Page */
@media (max-width: 768px) {
  /* Mobile bottom nav removed - using hamburger only */
  
  /* Footer adjustments for mobile */
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  /* Hide Quick Links section on mobile */
  .quick-links-section {
    display: none !important;
  }
  
  /* Center remaining footer sections */
  .footer-section {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 1rem 0 !important;
  }
  
  .footer-section h4 {
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .footer-section p {
    text-align: center !important;
    margin: 0.5rem 0 !important;
  }
  
  .social-links {
    justify-content: center !important;
    margin: 1rem auto !important;
  }
  
  .logo-links {
    justify-content: center !important;
    text-align: center !important;
  }
  
  #visitor-counter-footer {
    text-align: center !important;
    margin: 1rem auto !important;
  }
  
  /* Footer background adjustment for mobile */
  .site-footer {
    background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.65)), url('../assets/images/headers/mobile/footer.png') center/cover !important;
    background-attachment: scroll !important;
    min-height: auto !important;
  }
  
  /* Modal mobile styles */
  .modal-content {
    width: 95% !important;
    margin: 5% auto !important;
    max-height: 90vh !important;
  }
  
  .modal-header {
    padding: 10px 15px !important;
    background: linear-gradient(135deg, rgba(189, 147, 249, 0.05), transparent) !important;
  }
  
  .modal-header h2,
  #modalTitle {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
  }
  
  .modal-body {
    padding: 20px !important;
    font-size: 0.95rem !important;
  }
  
  .modal-body h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  .modal-body h3:first-child {
    font-size: 0.8rem !important;
    margin-top: 0 !important;
  }
  
  .modal-body h4 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-body p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  .modal-body ul li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  /* Mobile background images - properly sized to fit mobile screens */
  body {
    background-size: auto 100vh !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #1a1b26 !important;
  }
  
  body.home-page {
    background-image: url('../assets/images/page_backgrounds/mobile/home_page_compressed.png') !important;
  }
  
  body:has(.research-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/research_page_small.png') !important;
  }
  
  body:has(.team-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/team_page_small.png') !important;
  }
  
  body:has(.publications-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/publications_page_small.png') !important;
  }
  
  body:has(.news-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/news_page_small.png') !important;
  }
  
  body:has(.grants-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/grants_page_small.png') !important;
  }
  
  body:has(.teaching-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/teaching_page_small.png') !important;
  }
  
  body:has(.service-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/service_page_small.png') !important;
  }
  
  body:has(.join-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/join_us_page_small.png') !important;
  }
  
  body:has(.contact-header) {
    background-image: url('../assets/images/page_backgrounds/mobile/contact_page_small.png') !important;
  }
  
  /* Add a darker overlay on mobile for better text readability */
  body:has(.research-header)::before,
  body:has(.team-header)::before,
  body:has(.publications-header)::before,
  body:has(.news-header)::before,
  body:has(.grants-header)::before,
  body:has(.teaching-header)::before,
  body:has(.service-header)::before,
  body:has(.join-header)::before,
  body:has(.contact-header)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 42, 54, 0.85);
    z-index: -1;
  }
  
  /* Containerized Workflows buttons - same width on mobile */
  .open-science-links {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  
  .open-science-links .open-link {
    width: 90% !important;
    max-width: 280px !important;
    min-width: unset !important;
    flex: none !important;
    white-space: normal !important;
  }
  
  /* ONLY on mobile - Show mobile images, hide desktop images */
  .mobile-image-insert {
    display: block !important;
    margin: 1.5rem 0;
    max-width: 100%;
  }
  
  .mobile-image-insert img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  
  .desktop-only {
    display: none !important;
  }
  
  /* All research areas on mobile */
  .area-content,
  .area-content.reverse {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    direction: ltr !important;
  }
  
  .area-content .area-text,
  .area-content.reverse .area-text {
    order: 1 !important;
    width: 100% !important;
  }
  
  .research-area .area-image,
  .research-area .area-content .area-image,
  .research-area .area-content.reverse .area-image {
    order: 2 !important;
    width: 300px !important;
    max-width: 100% !important;
    margin: 1.5rem auto !important;
    display: block !important;
  }
  
  .research-area .area-image img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  .technique-grid {
    grid-template-columns: 1fr;
  }
  
  .collab-logos {
    flex-direction: column;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-child {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Apple-style large text */
.large-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--purple);
  margin-bottom: 2rem;
}

/* Publication styles */
.publication-item {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(248, 248, 242, 0.1);
  position: relative;
  overflow: hidden;
}

.publication-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.publication-content.reverse {
  direction: rtl;
}

.publication-content.reverse .publication-text {
  direction: ltr;
}

.publication-year {
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 184, 28, 0.1);
  position: absolute;
  top: -2rem;
  left: -2rem;
  z-index: 0;
}

.publication-text {
  position: relative;
  z-index: 1;
}

.publication-title {
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.publication-journal {
  color: var(--purple);
  font-style: italic;
  margin-bottom: 1rem;
}

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

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(36, 40, 59, 0.5);
  border: 1px solid rgba(189, 147, 249, 0.2);
  border-radius: 8px;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pub-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.pub-link:hover {
  color: var(--fg-light);
  text-decoration: none;
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(189, 147, 249, 0.5);
  background: rgba(36, 40, 59, 0.8);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.4);
}

.pub-link:hover::before {
  opacity: 0;
}

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

.pub-link:hover i {
  transform: rotate(360deg) scale(1.1);
}

.publication-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.publication-image img {
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Milestone publications */
.milestone-publication {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
  margin: 4rem -2rem;
  padding: 4rem 2rem;
  position: relative;
}

.milestone-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--bg-dark);
  color: var(--purple);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.5),
              inset 0 0 20px rgba(139, 233, 253, 0.1);
  animation: neonPulse 2s ease-in-out infinite;
}

.journal-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  animation: neonPulse 2s ease-in-out infinite;
  z-index: 10;
}

/* Different colors for different journal types */
.journal-badge.nature {
  background: var(--bg-dark);
  color: var(--red);
  border: 2px solid var(--red);
  box-shadow: 0 0 15px rgba(255, 85, 85, 0.5),
              inset 0 0 15px rgba(255, 85, 85, 0.1);
}

.journal-badge.plos {
  background: var(--bg-dark);
  color: var(--purple);
  border: 2px solid var(--green);
  box-shadow: 0 0 15px rgba(80, 250, 123, 0.5),
              inset 0 0 15px rgba(80, 250, 123, 0.1);
}

.journal-badge.genetics {
  background: var(--bg-dark);
  color: var(--purple);
  border: 2px solid var(--purple);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              inset 0 0 15px rgba(189, 147, 249, 0.1);
}

.journal-badge.evolution {
  background: var(--bg-dark);
  color: var(--orange);
  border: 2px solid var(--orange);
  box-shadow: 0 0 15px rgba(255, 184, 108, 0.5),
              inset 0 0 15px rgba(255, 184, 108, 0.1);
}

.journal-badge.entomology {
  background: var(--bg-dark);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 15px rgba(241, 250, 140, 0.5),
              inset 0 0 15px rgba(241, 250, 140, 0.1);
}

.journal-badge.submitted {
  background: var(--bg-dark);
  color: var(--fg-dark);
  border: 2px dashed var(--fg-dark);
  box-shadow: 0 0 10px rgba(98, 114, 164, 0.3);
  animation: none;
}

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

/* Stats Counter Animation */
.stat-counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.publications-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.publications-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/long_Publications Page Background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

/* Research Timeline */
.research-timeline {
  padding: 80px 0;
  background: var(--bg-dark);
}

.research-timeline h2 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.timeline-intro {
  text-align: center;
  color: var(--fg-dark);
  font-size: 1.2rem;
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--ucr-blue), var(--purple), var(--pink));
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.5);
}

.timeline-item {
  position: relative;
  padding: 2rem 0;
  margin-left: 50px;
  margin-right: 20px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
  padding: 0;
  max-width: none;
  width: 100%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  padding: 0;
  max-width: none;
  width: 100%;
}

.timeline-marker {
  position: absolute;
  right: 50px;
  top: 2rem;
  transform: translateX(50%);
  background: transparent;
  color: var(--purple);
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  font-weight: 700;
  z-index: 2;
  border: 2px solid var(--ucr-gold);
  box-shadow: var(--neon-gold-glow);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.timeline-marker:hover {
  box-shadow: var(--neon-gold-glow), 0 0 30px rgba(255, 184, 28, 0.5);
  transform: translateX(50%) translateY(-2px);
}

/* Different border colors for each year */
.timeline-item:nth-child(1) .timeline-marker {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.6);
}

.timeline-item:nth-child(2) .timeline-marker {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.6);
}

.timeline-item:nth-child(3) .timeline-marker {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.6);
}

.timeline-item:nth-child(4) .timeline-marker {
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 184, 28, 0.6);
}

.timeline-item:nth-child(5) .timeline-marker {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6);
}

.timeline-item:nth-child(6) .timeline-marker {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.6);
}

.timeline-item:nth-child(7) .timeline-marker {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.6);
}

.timeline-item.milestone .timeline-marker {
  background: var(--bg-darker);
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  border-color: var(--green);
  box-shadow: 0 0 25px rgba(80, 250, 123, 0.6);
}

.timeline-content {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: calc(100% - 6rem);
  max-width: 100%;
}

/* Neon border effect */
.timeline-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  z-index: -1;
  animation: neon-border 3s ease-in-out infinite;
}

.timeline-item:nth-child(1) .timeline-content::before {
  background: linear-gradient(45deg, var(--cyan), var(--purple));
}

.timeline-item:nth-child(2) .timeline-content::before {
  background: linear-gradient(45deg, var(--pink), var(--yellow));
}

.timeline-item:nth-child(3) .timeline-content::before {
  background: linear-gradient(45deg, var(--green), var(--cyan));
}

.timeline-item:nth-child(4) .timeline-content::before {
  background: linear-gradient(45deg, var(--orange), var(--pink));
}

.timeline-item:nth-child(5) .timeline-content::before {
  background: linear-gradient(45deg, var(--purple), var(--green));
}

.timeline-item:nth-child(6) .timeline-content::before {
  background: linear-gradient(45deg, var(--yellow), var(--cyan));
}

.timeline-item:nth-child(7) .timeline-content::before {
  background: linear-gradient(45deg, var(--pink), var(--purple));
}

@keyframes neon-border {
  0%, 100% {
    opacity: 0.5;
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

.timeline-content:hover {
  transform: translateY(-5px) scale(1.02);
}

.timeline-content:hover::before {
  opacity: 1;
  filter: blur(3px);
}

.timeline-content h3 {
  color: var(--purple) !important;
  margin: 0.8em 0 0.5em 0;
  padding: 8px 16px;
  font-weight: 600;
  background: rgba(46, 54, 69, 0.5);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  display: inline-block;
}

.timeline-content p {
  color: var(--fg-dark);
  margin: 0;
  text-align: left;
}

.timeline-period {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Timeline dot */
.timeline-item::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  background: var(--ucr-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg-dark);
  z-index: 1;
}

.timeline-item.milestone::after {
  width: 16px;
  height: 16px;
  background: var(--green);
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
    width: 3px;
  }
  
  .timeline-item::after {
    left: 20px;
  }
  
  .timeline-marker {
    right: 20px;
    transform: translateX(0);
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0 20px 0 60px;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Publications Grid */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pub-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.pub-card:hover {
  border-color: var(--ucr-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.pub-card .pub-year {
  display: inline-block;
  background: var(--ucr-blue);
  color: var(--fg-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.pub-card h4 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  padding: 0;
}

.pub-card p {
  color: var(--fg-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pub-card a {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Filter buttons */
.publication-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-light);
  color: var(--fg-light);
  border: 1px solid var(--fg-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ucr-blue);
  border-color: var(--ucr-blue);
  color: var(--fg-light);
}

/* Metrics Section */
.publication-metrics {
  padding: 80px 0;
  background: var(--bg-darker);
}

.publication-metrics h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.metric-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.metric-card i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.metric-card h3 {
  font-size: 2.5rem;
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  padding: 0;
}

.metric-card p {
  color: var(--fg-dark);
  font-weight: 600;
}

/* Hero stats for publications */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
}

.hero-stats .stat {
  text-align: center;
}

/* Team Page Styles */
.team-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/backgrounds/Team Page Background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.team-section {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
}

.team-section .container {
  text-align: center;
}

.team-section h2 {
  color: var(--purple) !important;
  margin-bottom: 4rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
  position: relative;
}


/* PI grid - single card centered */
.pi-grid {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
}

/* PI Card Links - small icons at bottom */
.pi-card-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(189, 147, 249, 0.3);
}

.pi-card-links a {
  font-size: 1rem;
  color: var(--fg-dark);
  transition: all 0.3s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(189, 147, 249, 0.1);
}

.pi-card-links a:hover {
  color: var(--purple);
  background: rgba(189, 147, 249, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(189, 147, 249, 0.5);
}

/* PI card uses purple border */
.pi-grid .member-card .member-photo {
  border: 1px solid var(--purple);
  box-shadow: 0 0 12px rgba(189, 147, 249, 0.8),
              0 0 25px rgba(189, 147, 249, 0.5),
              0 0 37px rgba(189, 147, 249, 0.3);
}

.pi-grid .member-card .member-photo:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 1),
              0 0 40px rgba(189, 147, 249, 0.8),
              0 0 60px rgba(189, 147, 249, 0.6);
}

.pi-grid .member-card .member-position {
  background: rgba(189, 147, 249, 0.15);
  border: 1px solid var(--purple);
  box-shadow: 0 0 8px rgba(189, 147, 249, 0.6),
              0 0 15px rgba(189, 147, 249, 0.4);
}

.pi-grid .member-card .member-position:hover {
  box-shadow: 0 0 15px rgba(189, 147, 249, 1),
              0 0 30px rgba(189, 147, 249, 0.8);
}



.education h4 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  padding: 0;
  text-shadow: 0 0 15px rgba(189, 147, 249, 0.6), 0 0 30px rgba(189, 147, 249, 0.3);
}

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

.education li {
  padding: 0.5rem 0;
  color: var(--fg-dark);
}

.profile-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-darker);
  border-radius: 20px;
  color: var(--fg-light);
  transition: all 0.3s ease;
  border: 1px solid var(--comment);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Individual colors for profile links on Team page */
.profile-links a:has(.fa-envelope) {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 8px rgba(255, 121, 198, 0.3);
}

.profile-links a:has(.fa-orcid) {
  border-color: var(--green);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(80, 250, 123, 0.3);
}

.profile-links a:has(.fa-graduation-cap) {
  border-color: var(--cyan);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(139, 233, 253, 0.3);
}

.profile-links a:has(.fa-github) {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 8px rgba(255, 184, 28, 0.3);
}

/* Hover effects with color changes */
.profile-links a:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  border-width: 2px;
  background: rgba(10, 11, 19, 0.95);
}

.profile-links a:has(.fa-envelope):hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 184, 28, 0.8), 0 0 30px rgba(255, 184, 28, 0.5);
}

.profile-links a:has(.fa-orcid):hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.8), 0 0 30px rgba(241, 250, 140, 0.5);
}

.profile-links a:has(.fa-graduation-cap):hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8), 0 0 30px rgba(189, 147, 249, 0.5);
}

.profile-links a:has(.fa-github):hover {
  border-color: var(--green);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8), 0 0 30px rgba(80, 250, 123, 0.5);
}

/* Lab Members */
.lab-members {
  padding: 80px 0;
  background: var(--bg-light);
}

/* Unified Team Layout */
.unified-team {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 50%, var(--bg-dark) 100%);
}

/* Team Category Sections */
.team-category {
  margin-bottom: 1.5rem;
}

.pi-section {
  margin-bottom: 5rem; /* More space after PI to separate from Lab Members */
}

/* Sophisticated Title Styling */
.team-category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 2rem 0; /* Default spacing for PI */
  text-align: center;
  position: relative;
}

/* Lab Members title - much closer to Research Staff */
.team-category > .team-category-title {
  margin: 0.2rem 0 0.8rem 0;
}

.title-text {
  padding: 0 2rem;
  font-size: 2rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  background: transparent;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--purple) 20%, 
    var(--purple) 80%, 
    transparent);
  box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

.title-line:first-child {
  margin-right: -1rem;
}

.title-line:last-child {
  margin-left: -1rem;
}

/* Enhanced hover effect for title */
.team-category-title:hover .title-text {
  color: var(--purple);
  text-shadow: 0 0 25px rgba(189, 147, 249, 1),
               0 0 40px rgba(189, 147, 249, 0.8);
  transform: scale(1.08);
  filter: brightness(1.3);
}

.team-category-title:hover .title-line {
  background: linear-gradient(90deg, 
    transparent, 
    var(--cyan) 20%, 
    var(--cyan) 80%, 
    transparent);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.8);
}

.lab-members h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
  position: relative;
}


.member-category {
  margin-bottom: 2rem;
}

.member-category h3 {
  color: var(--cyan) !important;
  margin-bottom: 1.5rem;
  margin-top: 0;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 12px 30px !important;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.6rem;
  font-weight: 600;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.members-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

/* Special grid for Research Staff section with only 2 members */
.staff-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .staff-grid,
  .members-grid,
  .pi-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Team member cards - 5cm wide */
.member-card {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(189, 147, 249, 0.2);
  width: 5cm;
  height: auto;
  flex-shrink: 0;
}

/* Member card uses the unified dracula-card hover effect */

/* Member card hover now uses unified hover effect */

.member-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}

.member-photo::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--cyan), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.member-photo:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.member-photo:hover::after {
  opacity: 0.6;
}

/* Different colored borders for team members with enhanced glow */
/* Research Staff */
.staff-grid .member-card:nth-child(1) .member-photo {
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px rgba(139, 233, 253, 0.8),
              0 0 25px rgba(139, 233, 253, 0.5),
              0 0 37px rgba(139, 233, 253, 0.3);
}

/* Gustavo - orange */
.staff-grid .member-card:nth-child(2) .member-photo {
  border: 1px solid var(--orange);
  box-shadow: 0 0 12px rgba(255, 184, 108, 0.8),
              0 0 25px rgba(255, 184, 108, 0.5),
              0 0 37px rgba(255, 184, 108, 0.3);
}

/* Undergraduate Researchers */
/* Dylan - purple */
.members-grid:not(.staff-grid) .member-card:nth-child(1) .member-photo {
  border: 1px solid var(--purple);
  box-shadow: 0 0 12px rgba(189, 147, 249, 0.8),
              0 0 25px rgba(189, 147, 249, 0.5),
              0 0 37px rgba(189, 147, 249, 0.3);
}

/* Bryan - yellow */
.members-grid:not(.staff-grid) .member-card:nth-child(2) .member-photo {
  border: 1px solid var(--yellow);
  box-shadow: 0 0 12px rgba(241, 250, 140, 0.8),
              0 0 25px rgba(241, 250, 140, 0.5),
              0 0 37px rgba(241, 250, 140, 0.3);
}

.members-grid:not(.staff-grid) .member-card:nth-child(3) .member-photo {
  border: 1px solid var(--green);
  box-shadow: 0 0 12px rgba(80, 250, 123, 0.8),
              0 0 25px rgba(80, 250, 123, 0.5),
              0 0 37px rgba(80, 250, 123, 0.3);
}

/* Additional team members */
.member-card:nth-child(4) .member-photo {
  border: 1px solid var(--purple);
  box-shadow: 0 0 12px rgba(189, 147, 249, 0.8),
              0 0 25px rgba(189, 147, 249, 0.5),
              0 0 37px rgba(189, 147, 249, 0.3);
}

.member-card:nth-child(5) .member-photo {
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px rgba(139, 233, 253, 0.8),
              0 0 25px rgba(139, 233, 253, 0.5),
              0 0 37px rgba(139, 233, 253, 0.3);
}

.member-card:nth-child(6) .member-photo {
  border: 1px solid var(--pink);
  box-shadow: 0 0 12px rgba(255, 121, 198, 0.8),
              0 0 25px rgba(255, 121, 198, 0.5),
              0 0 37px rgba(255, 121, 198, 0.3);
}

/* Hover effects with brighter glows for each color */
.staff-grid .member-card:nth-child(1) .member-photo:hover {
  box-shadow: 0 0 20px rgba(139, 233, 253, 1),
              0 0 40px rgba(139, 233, 253, 0.8),
              0 0 60px rgba(139, 233, 253, 0.6);
}

.staff-grid .member-card:nth-child(2) .member-photo:hover {
  box-shadow: 0 0 20px rgba(255, 184, 108, 1),
              0 0 40px rgba(255, 184, 108, 0.8),
              0 0 60px rgba(255, 184, 108, 0.6);
}

.members-grid:not(.staff-grid) .member-card:nth-child(1) .member-photo:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 1),
              0 0 40px rgba(189, 147, 249, 0.8),
              0 0 60px rgba(189, 147, 249, 0.6);
}

.members-grid:not(.staff-grid) .member-card:nth-child(2) .member-photo:hover {
  box-shadow: 0 0 20px rgba(241, 250, 140, 1),
              0 0 40px rgba(241, 250, 140, 0.8),
              0 0 60px rgba(241, 250, 140, 0.6);
}

.members-grid:not(.staff-grid) .member-card:nth-child(3) .member-photo:hover {
  box-shadow: 0 0 20px rgba(80, 250, 123, 1),
              0 0 40px rgba(80, 250, 123, 0.8),
              0 0 60px rgba(80, 250, 123, 0.6);
}




.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.member-card h4 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

.member-position {
  display: inline-block;
  background: rgba(139, 233, 253, 0.15);
  color: var(--fg-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 5px rgba(139, 233, 253, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.member-position:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(139, 233, 253, 0.8),
              0 0 25px rgba(139, 233, 253, 0.6);
}

/* Individual position badge colors matching photo borders */
/* Andre - cyan */
.staff-grid .member-card:nth-child(1) .member-position {
  background: rgba(139, 233, 253, 0.15);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 8px rgba(139, 233, 253, 0.6),
              0 0 15px rgba(139, 233, 253, 0.4);
}
.staff-grid .member-card:nth-child(1) .member-position:hover {
  box-shadow: 0 0 15px rgba(139, 233, 253, 1),
              0 0 30px rgba(139, 233, 253, 0.8);
}

/* Gustavo - orange */
.staff-grid .member-card:nth-child(2) .member-position {
  background: rgba(255, 184, 108, 0.15);
  border: 1px solid var(--orange);
  box-shadow: 0 0 8px rgba(255, 184, 108, 0.6),
              0 0 15px rgba(255, 184, 108, 0.4);
}
.staff-grid .member-card:nth-child(2) .member-position:hover {
  box-shadow: 0 0 15px rgba(255, 184, 108, 1),
              0 0 30px rgba(255, 184, 108, 0.8);
}

/* Dylan - purple */
.members-grid:not(.staff-grid) .member-card:nth-child(1) .member-position {
  background: rgba(189, 147, 249, 0.15);
  border: 1px solid var(--purple);
  box-shadow: 0 0 8px rgba(189, 147, 249, 0.6),
              0 0 15px rgba(189, 147, 249, 0.4);
}
.members-grid:not(.staff-grid) .member-card:nth-child(1) .member-position:hover {
  box-shadow: 0 0 15px rgba(189, 147, 249, 1),
              0 0 30px rgba(189, 147, 249, 0.8);
}

/* Bryan - yellow */
.members-grid:not(.staff-grid) .member-card:nth-child(2) .member-position {
  background: rgba(241, 250, 140, 0.15);
  border: 1px solid var(--yellow);
  box-shadow: 0 0 8px rgba(241, 250, 140, 0.6),
              0 0 15px rgba(241, 250, 140, 0.4);
}
.members-grid:not(.staff-grid) .member-card:nth-child(2) .member-position:hover {
  box-shadow: 0 0 15px rgba(241, 250, 140, 1),
              0 0 30px rgba(241, 250, 140, 0.8);
}

/* Laksh - green */
.members-grid:not(.staff-grid) .member-card:nth-child(3) .member-position {
  background: rgba(80, 250, 123, 0.15);
  border: 1px solid var(--green);
  box-shadow: 0 0 8px rgba(80, 250, 123, 0.6),
              0 0 15px rgba(80, 250, 123, 0.4);
}
.members-grid:not(.staff-grid) .member-card:nth-child(3) .member-position:hover {
  box-shadow: 0 0 15px rgba(80, 250, 123, 1),
              0 0 30px rgba(80, 250, 123, 0.8);
}

.member-project {
  color: var(--fg-dark);
  font-size: 0.7rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  text-align: center;
  padding: 0 5px;
}

.member-dates {
  color: var(--fg-dark);
  font-size: 0.65rem;
  margin: 0.3rem 0;
  text-align: center;
  font-weight: 500;
}

.member-dates i {
  margin-right: 5px;
  color: var(--purple);
}


/* Join Team Section */
.join-team {
  padding: 60px 0;
  background: var(--bg-dark);
  text-align: center;
}

.join-team h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
  position: relative;
}


.join-team p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  color: var(--fg-dark);
}

.join-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.join-buttons .learn-more-btn {
  font-size: 1rem;
  padding: 12px 28px;
  margin: 0;
}


/* Add subtle animation to member cards on scroll */
.member-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.member-card:nth-child(1) { animation-delay: 0.1s; }
.member-card:nth-child(2) { animation-delay: 0.2s; }
.member-card:nth-child(3) { animation-delay: 0.3s; }
.member-card:nth-child(4) { animation-delay: 0.4s; }
.member-card:nth-child(5) { animation-delay: 0.5s; }

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

/* Responsive Team Page */
@media (max-width: 768px) {
  .pi-grid {
    grid-template-columns: 1fr !important;
  }
  
  .profile-links {
    justify-content: center;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .team-category-title {
    font-size: 1.5rem;
  }
  
  .title-text {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
}

/* Grants Page Styles */
.grants-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--ucr-blue) 100%);
  opacity: 0.3;
  z-index: 1;
}

/* Funding Overview */
.funding-overview {
  padding: 20px 0;
  background: var(--bg-dark);
}

/* Compact funding stats with neon border */
.funding-stats-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1rem 2rem;
  border: 2px solid var(--cyan);
  border-radius: 50px;
  background: rgba(139, 233, 253, 0.05);
  max-width: fit-content;
  margin-left: auto;
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.3);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--cyan);
  opacity: 0.5;
}

.funding-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  padding: 0;
}

.stat-card p {
  color: var(--fg-dark);
  font-weight: 600;
}

/* Grant Items */
.active-grants,
.pending-grants {
  padding: 80px 0;
  background: var(--bg-darker);
}

.pending-grants {
  background: var(--bg-light);
}

.active-grants h2,
.pending-grants h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.grant-item {
  background: var(--bg-light);
  border: 1px solid rgba(189, 147, 249, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grant-item.pending {
  background: var(--bg-dark);
  border: 2px solid var(--fg-dark);
}

.grant-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 30px rgba(189, 147, 249, 0.4),
              0 0 40px rgba(139, 233, 253, 0.2);
  border-color: rgba(189, 147, 249, 0.5);
  background: rgba(36, 40, 59, 0.85);
}


.grant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(189, 147, 249, 0.2);
  position: relative;
  z-index: 2;
}

/* Funding logo in top right of grant card */
.funding-logo-top {
  height: 50px;
  display: flex;
  align-items: center;
}

.funding-logo-top img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9);
}

/* Placeholder for missing logos */
.logo-placeholder {
  background: var(--bg-darker);
  border: 2px solid var(--comment);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--fg-dark);
  text-align: center;
  line-height: 1.2;
}

.grant-status {
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.grant-status.active {
  background: var(--green);
  color: var(--bg-dark);
}

.grant-status.pending {
  background: var(--orange);
  color: var(--bg-dark);
}

.grant-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
}

.grant-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.grant-content .learn-more-btn {
  align-self: flex-end;
  margin-top: 1.5rem;
}

.grant-content h3 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  padding: 0;
  transition: color 0.3s ease;
}

.grant-item:hover .grant-content h3 {
  color: var(--cyan) !important;
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
}

.grant-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.grant-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-dark);
  font-size: 0.9rem;
}

.grant-meta i {
  color: var(--purple);
  transition: color 0.3s ease;
}

.grant-item:hover .grant-meta i {
  color: var(--cyan);
}

.grant-objectives,
.grant-team,
.grant-impact {
  margin-top: 2rem;
}

.grant-objectives h4,
.grant-team h4,
.grant-impact h4 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  padding: 0;
  transition: color 0.3s ease;
}

.grant-item:hover .grant-objectives h4,
.grant-item:hover .grant-team h4,
.grant-item:hover .grant-impact h4 {
  color: var(--cyan) !important;
}

.grant-objectives ul {
  list-style: none;
  padding: 0;
}

.grant-objectives li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg-dark);
}

.grant-objectives li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* Impact Stats */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.impact-item {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.impact-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.impact-label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-dark);
}

/* Research Support Section */
.research-support {
  padding: 80px 0;
  background: var(--bg-dark);
}

.research-support h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.research-support p {
  text-align: center;
  color: var(--fg-dark);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.opportunity-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.opportunity-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.opportunity-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Responsive Grants Page */
@media (max-width: 768px) {
  .grant-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .grant-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .impact-stats {
    grid-template-columns: 1fr;
  }
}


/* Funding Logos */
.funding-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.funding-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.funding-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.funding-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Removed funding logo hover effects that were creating gray balls */

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  75% {
    transform: translateY(10px) rotate(-5deg);
  }
}

.funding-logo {
  animation: float 6s ease-in-out infinite;
}

.funding-logo:nth-child(2) {
  animation-delay: 1s;
}

.funding-logo:nth-child(3) {
  animation-delay: 2s;
}

.funding-logo:nth-child(4) {
  animation-delay: 3s;
}

.funding-logo:nth-child(5) {
  animation-delay: 4s;
}

/* Tooltip for funding agency names */
.funding-logo .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-darker);
  color: var(--fg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.funding-logo:hover .tooltip {
  opacity: 1;
}

/* Publication Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(189, 147, 249, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(10px);
  animation: modalBackdropIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalBackdropIn {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(68, 71, 90, 0.9) 100%);
  margin: 3% auto;
  padding: 0;
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 20px;
  width: 85%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 1px rgba(189, 147, 249, 0.1),
              0 0 30px rgba(189, 147, 249, 0.4),
              0 0 60px rgba(189, 147, 249, 0.3),
              0 0 90px rgba(189, 147, 249, 0.2),
              inset 0 0 20px rgba(189, 147, 249, 0.05);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  animation: neonGlowPulse 3s ease-in-out infinite;
}

@keyframes neonGlowPulse {
  0%, 100% {
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    opacity: 0.5;
    filter: blur(20px);
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: transparent;
  padding: 10px 20px; /* Reduced vertical padding */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(189, 147, 249, 0.3) 20%,
    rgba(189, 147, 249, 0.6) 50%,
    rgba(189, 147, 249, 0.3) 80%,
    transparent 100%);
  animation: glowLineMove 3s ease-in-out infinite;
}

@keyframes glowLineMove {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}


/* Modal title styles - simplified for better control */
.modal-header h2,
#modalTitle {
  color: var(--purple) !important;
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important; /* Explicitly disable uppercase */
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.modal-header h2::before,
#modalTitle::before,
.modal-header h2::after,
#modalTitle::after {
  display: none;
}

.modal-body {
  padding: 20px;
  max-height: calc(85vh - 60px);
  overflow-y: auto;
  color: var(--cyan);
  position: relative;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(68, 71, 90, 0.3);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  border-radius: 10px;
  transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pink), var(--purple));
}

/* Modal-specific heading styles - Dracula theme only */
.modal-body h3,
.modal-content h3,
.modal-h3 {
  color: var(--purple) !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 1rem 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
  position: relative !important;
  text-shadow: 0 0 20px rgba(189, 147, 249, 0.5) !important;
  letter-spacing: 1px !important;
}

.modal-body h3::after,
.modal-content h3::after,
.modal-h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% {
    width: 60px;
    opacity: 0.6;
  }
  50% {
    width: 100px;
    opacity: 1;
  }
}

.modal-body h4,
.modal-content h4,
.modal-h4 {
  color: var(--purple) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 1.5rem 0 0.8rem 0 !important;
  padding: 0 0 0 15px !important;
  border-left: 3px solid var(--cyan) !important;
  background: none !important;
  position: relative !important;
  opacity: 0.9;
}

.modal-body h4::before,
.modal-content h4::before,
.modal-h4::before {
  content: '◈';
  position: absolute;
  left: -8px;
  color: var(--cyan);
  font-size: 0.8rem;
  animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2) rotate(45deg);
    opacity: 1;
  }
}

.modal-body p,
.modal-body li {
  color: var(--cyan) !important;
  line-height: 1.9;
  font-size: 1rem;
  margin: 0.8rem 0;
  opacity: 0.85;
}

.modal-body strong {
  color: var(--purple) !important;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(189, 147, 249, 0.3);
  opacity: 1;
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.modal-body ul li {
  padding: 0.8rem 0.8rem 0.8rem 2rem;
  position: relative;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, rgba(189, 147, 249, 0.05) 0%, transparent 50%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-body ul li:hover {
  background: linear-gradient(90deg, rgba(189, 147, 249, 0.1) 0%, transparent 70%);
  transform: translateX(5px);
  padding-left: 2.5rem;
}

.modal-body ul li:before {
  content: "◆";
  position: absolute;
  left: 0.8rem;
  color: var(--purple);
  font-size: 0.6rem;
  transition: all 0.3s ease;
  animation: bulletFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

@keyframes bulletFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(45deg);
  }
}

.modal-body ul li:hover:before {
  color: var(--pink);
  transform: translateX(3px) scale(1.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  background: rgba(68, 71, 90, 0.5);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--purple);
  backdrop-filter: blur(10px);
}

.close::before,
.close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--purple);
  transition: all 0.3s ease;
}

.close::before {
  transform: rotate(45deg);
}

.close::after {
  transform: rotate(-45deg);
}

.close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(189, 147, 249, 0.2);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              inset 0 0 10px rgba(189, 147, 249, 0.3);
}

.close:hover::before,
.close:hover::after {
  background: var(--pink);
  width: 20px;
  box-shadow: 0 0 10px rgba(255, 121, 198, 0.8);
}

/* Modal opening effect - particles */
.modal-content::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--purple) 1px, transparent 1px),
                    radial-gradient(circle, var(--cyan) 1px, transparent 1px),
                    radial-gradient(circle, var(--pink) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: 0;
  animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Floating Mosquito Animation System */
.floating-mosquito {
  position: fixed;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(189, 147, 249, 1))
          drop-shadow(0 0 10px rgba(189, 147, 249, 0.8))
          drop-shadow(0 0 20px rgba(139, 233, 253, 0.6))
          drop-shadow(0 0 30px rgba(189, 147, 249, 0.4));
  will-change: transform, opacity;
  transition: filter 0.3s ease;
}

.floating-mosquito img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(1.2) sepia(1) saturate(3) hue-rotate(240deg);
  opacity: 0.8;
}

/* Fallback if image doesn't load - show a glowing dot */
.floating-mosquito::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--purple);
  font-size: 20px;
  text-shadow: 0 0 10px var(--purple), 0 0 20px var(--cyan);
}

/* Different animation paths for variety */
@keyframes mosquitoPath1 {
  0% {
    transform: translate(-50px, 100vh) rotate(45deg) scale(0);
    opacity: 0;
  }
  2% {
    transform: translate(10vw, 80vh) rotate(60deg) scale(1);
    opacity: 0.8;
  }
  10% {
    transform: translate(20vw, 70vh) rotate(60deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(25vw, 60vh) rotate(30deg) scale(1.1);
    opacity: 0.5;
  }
  40% {
    transform: translate(40vw, 70vh) rotate(-20deg) scale(0.9);
    opacity: 0.45;
  }
  60% {
    transform: translate(60vw, 50vh) rotate(15deg) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translate(80vw, 65vh) rotate(-45deg) scale(1.05);
    opacity: 0.4;
  }
  90% {
    transform: translate(95vw, 40vh) rotate(90deg) scale(0.8);
    opacity: 0.3;
  }
}

@keyframes mosquitoPath2 {
  0%, 100% {
    transform: translate(100vw, -50px) rotate(-30deg) scale(0);
    opacity: 0;
  }
  15% {
    transform: translate(85vw, 15vh) rotate(-60deg) scale(1);
    opacity: 0.45;
  }
  30% {
    transform: translate(70vw, 30vh) rotate(0deg) scale(1.1);
    opacity: 0.5;
  }
  45% {
    transform: translate(50vw, 20vh) rotate(40deg) scale(0.95);
    opacity: 0.4;
  }
  60% {
    transform: translate(35vw, 35vh) rotate(-25deg) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translate(15vw, 25vh) rotate(70deg) scale(0.9);
    opacity: 0.45;
  }
  90% {
    transform: translate(-10px, 40vh) rotate(-90deg) scale(0.7);
    opacity: 0.2;
  }
}

@keyframes mosquitoPath3 {
  0%, 100% {
    transform: translate(50vw, -50px) rotate(0deg) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(45vw, 10vh) rotate(180deg) scale(1.1);
    opacity: 0.4;
  }
  35% {
    transform: translate(30vw, 45vh) rotate(90deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(65vw, 55vh) rotate(-90deg) scale(1.05);
    opacity: 0.45;
  }
  65% {
    transform: translate(75vw, 35vh) rotate(45deg) scale(0.95);
    opacity: 0.5;
  }
  80% {
    transform: translate(55vw, 75vh) rotate(-135deg) scale(1);
    opacity: 0.35;
  }
  95% {
    transform: translate(40vw, 100vh) rotate(270deg) scale(0.5);
    opacity: 0;
  }
}

/* Subtle glow pulse */
@keyframes mosquitoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(189, 147, 249, 0.3))
            drop-shadow(0 0 4px rgba(189, 147, 249, 0.2))
            drop-shadow(0 0 8px rgba(139, 233, 253, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 3px rgba(189, 147, 249, 0.4))
            drop-shadow(0 0 6px rgba(139, 233, 253, 0.3))
            drop-shadow(0 0 12px rgba(189, 147, 249, 0.15));
  }
}

.floating-mosquito-1 {
  animation: mosquitoPath1 25s infinite cubic-bezier(0.45, 0, 0.55, 1),
             mosquitoGlow 3s ease-in-out infinite;
  animation-delay: 0s, 0s;
}

.floating-mosquito-2 {
  animation: mosquitoPath2 30s infinite cubic-bezier(0.42, 0, 0.58, 1),
             mosquitoGlow 3s ease-in-out infinite;
  animation-delay: 8s, 1s;
}

.floating-mosquito-3 {
  animation: mosquitoPath3 35s infinite cubic-bezier(0.4, 0, 0.6, 1),
             mosquitoGlow 3s ease-in-out infinite;
  animation-delay: 15s, 2s;
}

/* Learn More & View All Projects Buttons - Redesigned with Neon Glow */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 10px;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #44475a, #282a36);
  color: var(--purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
  position: relative;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
              0 1px 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto !important;
}

.learn-more-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.6s ease;
  z-index: 0;
}

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

/* Hover state - consistent with other buttons */
.learn-more-btn:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  border: 1px solid var(--purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              0 6px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Active/click state */
.learn-more-btn:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

/* Ensure button and anchor elements are consistently styled */
button.learn-more-btn,
a.learn-more-btn {
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: normal;
  text-align: center;
}

/* Mosquito emoji styling */
.mosquito-emoji {
  display: inline-block;
  font-size: 1.1em;
  filter: hue-rotate(250deg) saturate(1.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  vertical-align: middle;
  position: relative;
  z-index: 1;
  margin-right: 0.15cm;
  margin-left: -0.05cm;
}

.learn-more-btn:hover .mosquito-emoji {
  filter: hue-rotate(0deg) saturate(1);
  transform: rotate(360deg) scale(1.1);
}

/* Rotate Font Awesome icons in learn-more-btn on hover */
.learn-more-btn i.fas,
.learn-more-btn i.far,
.learn-more-btn i.fab {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.learn-more-btn:hover i.fas,
.learn-more-btn:hover i.far,
.learn-more-btn:hover i.fab {
  transform: rotate(360deg) scale(1.1);
}

/* Learn More Button Styled - Exact copy from publications page */
.learn-more-btn-styled {
  background: linear-gradient(135deg, #44475a, #282a36);
  padding: 0.4rem 1rem;
  color: var(--purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none !important;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
              0 1px 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  outline: none;
  font-family: inherit;
}

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

.learn-more-btn-styled:hover::before {
  left: 100%;
}

.learn-more-btn-styled:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white;
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              0 6px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.learn-more-btn-styled:active {
  transform: scale(0.98);
}

.learn-more-btn-styled .mosquito-emoji {
  display: inline-block;
  font-size: 1.1em;
  filter: hue-rotate(250deg) saturate(1.5);
  transition: all 0.3s ease;
  vertical-align: middle;
  position: relative;
  z-index: 1;
  margin-right: 0.15cm;
  margin-left: -0.05cm;
}

.learn-more-btn-styled:hover .mosquito-emoji {
  filter: hue-rotate(0deg) saturate(1);
  transform: rotate(360deg);
}

@keyframes borderRotate {
  0% {
    background: linear-gradient(135deg, var(--purple), var(--cyan), var(--purple));
  }
  50% {
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--cyan));
  }
  100% {
    background: linear-gradient(135deg, var(--purple), var(--cyan), var(--purple));
  }
}

@keyframes mosquitoBuzz {
  0% {
    transform: rotate(15deg) scale(1.1) translateX(0);
  }
  100% {
    transform: rotate(15deg) scale(1.1) translateX(2px);
  }
}

/* Special styling for View All Projects button */
.current-projects .learn-more-btn {
  margin-top: 0;
}

/* Reproducibility button specific styling */
.reproducibility-btn {
  margin: 0 auto;
  display: inline-flex;
}

/* UCR Logo Styles */
.ucr-logo-footer {
  max-height: 35px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(0%) brightness(1);
  transition: all 0.3s ease;
}

.ucr-logo-footer:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

.ucr-logo-header {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  max-height: 50px;
  width: auto;
  opacity: 1;
  filter: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ucr-logo-header:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
  background: transparent;
  box-shadow: none;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-logo-lab {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.lab-logo-footer {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(144, 238, 144, 0.3)) 
          drop-shadow(0 0 10px rgba(255, 255, 224, 0.2));
  animation: glow-pulse-logo 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.lab-logo-footer:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(144, 238, 144, 0.8)) 
          drop-shadow(0 0 25px rgba(255, 255, 224, 0.5));
}

@media (max-width: 768px) {
  .ucr-logo-header {
    display: none;
  }
}

/* News Timeline Styles - Publications Style */
.news-timeline {
  position: relative;
  padding: 40px 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* Year sections */
.news-year-section {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--section-index, 0) * 0.1s);
}

.news-year-section:nth-child(1) { --section-index: 0; }
.news-year-section:nth-child(2) { --section-index: 1; }
.news-year-section:nth-child(3) { --section-index: 2; }

.news-year-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(189, 147, 249, 0.2);
}

.news-year-label {
  color: var(--purple);
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 1rem;
}

.news-year-count {
  color: var(--fg-dark);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* News item row layout */
.news-item-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.news-item-row:nth-child(1) { --item-index: 0; }
.news-item-row:nth-child(2) { --item-index: 1; }
.news-item-row:nth-child(3) { --item-index: 2; }
.news-item-row:nth-child(4) { --item-index: 3; }
.news-item-row:nth-child(5) { --item-index: 4; }

/* Date column */
.news-date-column {
  flex-shrink: 0;
  width: 100px;
  padding-top: 1.2rem;
  text-align: right;
}

.news-month {
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.news-item-row:hover .news-month {
  opacity: 1;
}

/* News card */
.news-card {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid rgba(189, 147, 249, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

/* Animation for slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* News card hover effects - purple neon glow like home page */
.news-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 30px rgba(189, 147, 249, 0.4),
              0 0 40px rgba(139, 233, 253, 0.2);
  border-color: rgba(189, 147, 249, 0.5);
  background: rgba(36, 40, 59, 0.85);
}


/* News card content styling */
.news-card h3 {
  color: var(--purple);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-align: left;
}

.news-card p {
  color: var(--fg-dark);
  position: relative;
  z-index: 2;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 1rem;
}

.news-card:hover h3 {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
}

.news-card strong {
  color: var(--cyan);
}

/* Keep for backward compatibility */
.news-content {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: none;
  overflow: visible;
  text-align: left;
}

/* Sliding window effect for news cards */
.news-item::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.6s ease;
  z-index: 1;
  pointer-events: none;
}

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

.news-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
              0 0 35px rgba(189, 147, 249, 0.3);
  border-color: rgba(189, 147, 249, 0.4);
}

/* News content styling */
.news-content h3 {
  color: var(--purple);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-align: left;
}

.news-content p {
  position: relative;
  z-index: 2;
  line-height: 1.7;
  text-align: left;
}

.news-content ul {
  position: relative;
  z-index: 2;
}

/* Grant list styling */
.grant-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.grant-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.grant-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: bold;
}

.grant-text {
  flex: 1;
  min-width: 0;
}

/* Move all Learn More buttons in news items to the right */
.news-content .learn-more-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* News item content wrapper for flex layout */
.news-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.news-item-content p {
  flex: 1;
  margin: 0;
}

.news-content h3 {
  color: var(--purple);
  margin-bottom: 15px;
}

/* Co-PI styling */
.co-pi-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(189, 147, 249, 0.05);
  border-left: 3px solid var(--purple);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.co-pi-label {
  font-weight: 600;
  color: var(--purple);
}

.co-pi-name {
  color: var(--purple);
  font-weight: 600;
}

.co-pi-dept {
  color: var(--fg-dark);
  font-style: italic;
}

.co-pi-links {
  margin-left: auto;
  display: flex;
  gap: 0.8rem;
}

.co-pi-links a {
  color: var(--purple);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.co-pi-links a:hover {
  color: var(--purple);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.6);
}

.lab-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #44475a, #282a36);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 20px;
  color: var(--purple) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
              0 1px 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

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

.lab-button:hover::before {
  left: 100%;
}

.lab-button:hover {
  background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
              0 6px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-co-pi-links {
  display: inline-flex;
  gap: 0.8rem;
  margin-left: 1rem;
}

.modal-co-pi-links a {
  color: var(--purple);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.modal-co-pi-links a:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

.grant-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.grant-list li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.grant-list li:last-child {
  border-bottom: none;
}

.project-highlights {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Project phases styling */
.project-phases {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(68, 71, 90, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(139, 233, 253, 0.2);
}

.project-phases h4 {
  color: var(--purple);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.phase-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: rgba(40, 42, 54, 0.5);
  border-radius: 4px;
}

.phase-number {
  font-weight: 600;
  color: var(--purple);
  min-width: 80px;
}

.phase-desc {
  color: var(--fg-dark);
}

/* Genomics tools section */
.genomics-tools {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(189, 147, 249, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(189, 147, 249, 0.2);
}

.genomics-tools h4 {
  color: var(--purple);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.genomics-tools p {
  margin-bottom: 1rem;
  color: var(--fg-dark);
}

.genomic-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.genomic-links span {
  color: var(--fg-dark);
}

.genomic-links .separator {
  color: var(--comment);
}

.genomic-links a {
  font-size: 1.3rem;
  color: var(--purple);
  transition: all 0.3s ease;
}

.genomic-links a:hover {
  color: var(--purple);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.6);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 233, 253, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(139, 233, 253, 0.3);
}

.highlight-item i {
  color: var(--purple);
}

/* Responsive News Layout */
@media (max-width: 768px) {
  .news-timeline {
    padding-left: 20px;
  }
  
  .news-timeline::before {
    left: 20px;
  }
  
  .news-item {
    flex-direction: column !important;
    align-items: flex-start;
  }
  
  .news-date-badge {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 1rem;
    width: auto;
  }
  
  .news-date {
    margin-left: 50px;
    margin-bottom: 20px;
  }
  
  .news-content {
    margin-left: 0;
  }
}

/* Teaching Page */
.teaching-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-light);
  opacity: 0.5;
  z-index: 1;
}

.courses-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.courses-section h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center !important;
  width: 100%;
}

/* Courses section h2 underline removed */

.course-item {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.course-header h3 {
  color: var(--purple) !important;
  margin: 0;
  padding: 0;
}

.course-term {
  color: var(--purple);
  font-weight: 600;
}

.course-content {
  padding: 2rem;
}

.course-details {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.course-details p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fg-dark);
}

/* Mentorship Section */
.mentorship-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.mentorship-section h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center !important;
  width: 100%;
}

/* Mentorship section h2 underline removed */

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

.mentorship-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.card-icon {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.mentorship-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  padding: 0;
}

.current-students h4,
.program-impact strong,
.success-story strong {
  color: var(--purple);
}

.current-students ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

/* Teaching Philosophy */
.teaching-philosophy {
  padding: 60px 0;
  background: var(--bg-dark);
}

.teaching-philosophy h2,
.training-section h2,
.student-feedback h2,
.professional-development h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center !important;
  width: 100%;
}

/* Teaching sections h2 underlines removed */

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

.philosophy-content ul {
  list-style: none;
  padding: 0;
}

.philosophy-content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.philosophy-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* Training Section */
.training-section {
  padding: 60px 0;
}

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

.training-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  min-height: 150px;
}

.training-item h4 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  height: 2rem;
  width: 100%;
}

.training-item h4 i {
  font-size: 1.2rem;
}

.training-item p {
  margin: 0;
  color: var(--fg-dark);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Professional Development */
.professional-development {
  padding: 60px 0;
  background: var(--bg-dark);
}

.achievement {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
}

.achievement i {
  font-size: 2rem;
  color: var(--purple);
}

.achievement h3 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  padding: 0;
}

/* Student Feedback Section */
.student-feedback {
  padding: 80px 0;
  background: var(--bg-light);
}

.eval-subtitle {
  text-align: center;
  color: var(--comment);
  font-size: 1.1rem;
  margin-top: -1rem;
  margin-bottom: 3rem;
}

.eval-subtitle em {
  color: var(--purple);
  font-style: normal;
  font-weight: 600;
}

.eval-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.metric-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ucr-gold), var(--ucr-blue));
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-card h3 {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.metric-card h3 span {
  font-size: 1.5rem;
  color: var(--comment);
}

.metric-card p {
  color: var(--fg-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.student-quotes {
  margin-top: 4rem;
}

.student-quotes h3 {
  text-align: center;
  color: var(--purple);
  margin-bottom: 3rem;
  font-size: 2rem;
}

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

/* Balloon-style quotes with mosquitos */
.quote-balloon {
  position: relative;
  margin-bottom: 2rem;
}

/* Remove the mosquito images from quote balloons */
.quote-mosquito {
  display: none;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: hover 3s ease-in-out infinite;
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Removed mosquito positioning */

.student-quote {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  margin: 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  font-style: italic;
  transition: all 0.3s ease;
}

/* Speech bubble tail */
/* Student quote tail styling moved to new section above */
}

/* Neon borders for each quote */
/* Removed old gradient backgrounds */
}

/* Removed old styling */

.student-quote p {
  color: var(--fg-dark);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Courses Section Styling */
.courses-grid {
  margin-top: 2rem;
}

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

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

.course-status.upcoming {
  background: rgba(189, 147, 249, 0.2);
  color: var(--purple);
  border: 1px solid var(--purple);
}

.course-status.past {
  background: rgba(139, 233, 253, 0.2);
  color: var(--purple);
  border: 1px solid var(--cyan);
}

.course-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(189, 147, 249, 0.1);
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
}

.course-note p {
  margin: 0;
  color: var(--fg-dark);
  font-size: 0.95rem;
}

/* Speech Balloon Student Quotes */
.student-quote {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 20px;
  position: relative;
  margin: 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  font-style: italic;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.student-quote::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-color: inherit;
  transform: rotate(45deg);
  z-index: -1;
}

.quote-balloon:nth-child(1) .student-quote::before,
.quote-balloon:nth-child(3) .student-quote::before,
.quote-balloon:nth-child(5) .student-quote::before {
  top: -17px;
  left: 30px;
  border-right: none;
  border-bottom: none;
}

.quote-balloon:nth-child(2) .student-quote::before,
.quote-balloon:nth-child(4) .student-quote::before {
  top: -17px;
  right: 30px;
  left: auto;
  border-left: none;
  border-bottom: none;
}

/* Different glowing borders for each quote */
.quote-balloon:nth-child(1) .student-quote {
  border-color: var(--cyan);
}

.quote-balloon:nth-child(1) .student-quote:hover {
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.8),
              0 0 40px rgba(139, 233, 253, 0.5),
              0 5px 15px rgba(0,0,0,0.3);
}

.quote-balloon:nth-child(2) .student-quote {
  border-color: var(--pink);
}

.quote-balloon:nth-child(2) .student-quote:hover {
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.8),
              0 0 40px rgba(255, 121, 198, 0.5),
              0 5px 15px rgba(0,0,0,0.3);
}

.quote-balloon:nth-child(3) .student-quote {
  border-color: var(--green);
}

.quote-balloon:nth-child(3) .student-quote:hover {
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8),
              0 0 40px rgba(80, 250, 123, 0.5),
              0 5px 15px rgba(0,0,0,0.3);
}

.quote-balloon:nth-child(4) .student-quote {
  border-color: var(--purple);
}

.quote-balloon:nth-child(4) .student-quote:hover {
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8),
              0 0 40px rgba(189, 147, 249, 0.5),
              0 5px 15px rgba(0,0,0,0.3);
}

.quote-balloon:nth-child(5) .student-quote {
  border-color: var(--yellow);
}

.quote-balloon:nth-child(5) .student-quote:hover {
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.8),
              0 0 40px rgba(241, 250, 140, 0.5),
              0 5px 15px rgba(0,0,0,0.3);
}

/* Filter Buttons - Teaching Page */
.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--comment);
  border-radius: 25px;
  color: var(--purple);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: rgba(189, 147, 249, 0.2);
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(189, 147, 249, 0.3);
}

.filter-btn.active {
  background: var(--purple);
  color: var(--bg-dark);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.5);
}

/* Service Page Styling */
.service-section-header {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: center !important;
  width: 100%;
}

/* Removed - using default h2 centering */

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--fg-dark);
  font-size: 1.1rem;
}

.departmental-service {
  padding: 60px 0;
  background: var(--bg-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: 0 10px 30px rgba(189, 147, 249, 0.3);
}

.service-card .card-icon {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
}

.service-period {
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.editorial-service {
  padding: 60px 0;
  background: var(--bg-dark);
}

.editorial-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--comment);
}

.editorial-header h3 {
  color: var(--purple) !important;
  margin: 0;
}

.role {
  background: var(--purple);
  color: var(--bg-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.editorial-details p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--fg-dark);
}

.editorial-details i {
  color: var(--purple);
  width: 20px;
}

.peer-review {
  padding: 60px 0;
  background: var(--bg-dark);
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.stat-card h3 {
  color: var(--purple) !important;
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.stat-card p {
  color: var(--fg-dark);
  margin: 0;
  text-align: center;
}

.stat-period {
  color: var(--comment);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}

.journals-reviewed {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 1rem;
}

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

.journal-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-dark);
}

.journal-item i {
  color: var(--purple);
  font-size: 0.5rem;
}

.additional-service {
  padding: 60px 0;
  background: var(--bg-dark);
}

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

.service-category-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.service-category-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.service-category-card h3 i {
  color: var(--purple);
}

.service-category-card ul {
  list-style: none;
  padding: 0;
}

.service-category-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(68, 71, 90, 0.3);
  color: var(--fg-dark);
}

.service-category-card li strong {
  color: var(--purple);
  font-weight: 600;
}

.service-category-card li:last-child {
  border-bottom: none;
}

.memberships {
  padding: 60px 0;
  background: var(--bg-dark);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.membership-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.membership-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: 0 10px 30px rgba(189, 147, 249, 0.3);
}

.membership-icon {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.membership-card h4 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
}

.membership-card p {
  color: var(--fg-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.membership-link {
  color: var(--purple);
  font-weight: 600;
  transition: all 0.3s ease;
}

.membership-link:hover {
  color: var(--purple);
}

/* View All Button Container */
.view-all-container {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.view-all-container .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Grant Timeline Styles */
.grant-timeline {
  padding: 80px 0;
  background: var(--bg-light);
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  width: 4px;
  background: var(--comment);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 20px 40px;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 55%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--ucr-blue);
  border: 4px solid var(--bg-light);
  border-radius: 50%;
  top: 30px;
}

.timeline-item.left::before {
  right: -10px;
}

.timeline-item.right::before {
  left: -10px;
}

.timeline-content {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-date {
  display: inline-block;
  background: var(--ucr-blue);
  color: var(--fg-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.timeline-content h3 {
  color: var(--purple);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.timeline-content.highlight {
  border: 2px solid var(--ucr-gold);
}

.timeline-content.highlight::before {
  content: '⭐';
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 2rem;
}

.project-highlights {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--comment);
}

.project-highlights h4 {
  color: var(--purple);
  margin-bottom: 10px;
}

.timeline-content.future {
  opacity: 0.7;
  border: 2px dashed var(--comment);
}

/* Featured Grant Card */
.grant-card.featured {
  border: 2px solid var(--ucr-gold);
  position: relative;
  overflow: visible;
}

.grant-card.featured::before {
  content: 'FEATURED PROJECT';
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--ucr-gold);
  color: var(--bg-dark);
  padding: 4px 20px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 20px;
}

.project-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-section {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
}

.project-section h4 {
  color: var(--purple);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.grant-item:hover .project-section h4 {
  color: var(--cyan);
}

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    left: 60px !important;
    text-align: left !important;
  }
  
  .timeline-item::before {
    left: -40px !important;
  }
  
  .timeline-content {
    padding: 20px;
  }
}

/* Delfino Story Section */
.delfino-story {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.delfino-story::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 4s ease-in-out infinite;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h3 {
  color: var(--purple);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.innovation-highlight {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--ucr-gold);
}

.innovation-highlight h4 {
  color: var(--purple);
  margin-bottom: 1rem;
}

.innovation-highlight ul {
  list-style: none;
  padding: 0;
}

.innovation-highlight li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.innovation-highlight li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: bold;
}

.collaboration-box {
  background: rgba(255, 184, 28, 0.1);
  border: 2px solid var(--ucr-gold);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.collaboration-box h4 {
  color: var(--purple);
  margin-bottom: 1rem;
}

.collaboration-box .btn {
  margin-top: 1.5rem;
}

.farm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.stat-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--comment);
  font-size: 0.9rem;
}

.inquiry-card i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }
  
  .farm-stats {
    grid-template-columns: 1fr;
  }
}

/* Cutting-edge Technology Section */
/* Join Us Page - New Styles */
.join-section-header {
  text-align: center;
  color: var(--purple) !important;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.join-section-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--ucr-gold);
}

/* Graduate Opportunities Section */
.graduate-opportunities {
  padding: 60px 0;
  background: transparent;
}

.position-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.position-header {
  background: var(--bg-darker);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--purple);
}

.position-header h3 {
  color: var(--purple) !important;
  margin: 0;
  font-size: 1.5rem;
}

.position-recruiting {
  cursor: default !important;
  pointer-events: none;
  font-size: 0.9rem !important;
  padding: 8px 20px !important;
}

.position-recruiting i {
  color: var(--green);
  font-size: 0.9rem;
}

.position-content {
  padding: 2rem;
}

.research-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .research-areas-grid {
    grid-template-columns: 1fr;
  }
}

.research-area-item {
  background: var(--bg-darker);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 147, 249, 0.2);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Research area item hover now uses unified hover effect */

.research-area-item i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
  display: block;
  width: 100%;
}

.research-area-item h4 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: block !important;
  text-align: center !important;
  position: static !important;
  width: 100% !important;
  min-height: 2.2em;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.research-area-item h4::after {
  display: none !important;
}

.research-area-item p {
  color: var(--fg-dark);
  font-size: 0.9rem;
  text-align: center !important;
  margin: 0;
  flex: 1;
}

/* Requirements Section */
.requirements-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(68, 71, 90, 0.3);
}

.requirements-section h4 {
  color: var(--purple) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.requirements-section h4 i {
  color: var(--purple);
}

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

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(68, 71, 90, 0.2);
  border-radius: 6px;
}

.requirement-item i {
  color: var(--purple);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.requirement-item p {
  margin: 0;
  color: var(--fg-dark);
  font-size: 0.9rem;
}

/* Application Section */
.application-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(68, 71, 90, 0.3);
}

.application-section h4 {
  color: var(--purple) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.application-section h4 i {
  color: var(--purple);
}

.deadline-notice {
  background: rgba(255, 121, 198, 0.1);
  border-left: 4px solid var(--pink);
  padding: 1rem;
  margin-bottom: 1rem;
}

.deadline-notice strong {
  color: var(--purple);
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.3);
}

.application-info a {
  color: var(--purple);
  text-decoration: underline;
}

.application-info a:hover {
  color: var(--purple);
}

.application-process {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(68, 71, 90, 0.2);
  border-radius: 8px;
}

.application-process > p {
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.3);
}

.process-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  color: var(--fg-dark);
  line-height: 1.6;
}

.process-steps li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--purple);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Hover effects for process step numbers */
.process-steps li:hover:before {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8),
              0 0 40px rgba(189, 147, 249, 0.6),
              0 0 60px rgba(189, 147, 249, 0.4);
  border-color: var(--purple);
  background: rgba(189, 147, 249, 0.2);
  color: var(--purple);
}

/* Different colors for each step on hover */
.process-steps li:nth-child(1):hover:before {
  background: rgba(80, 250, 123, 0.2);
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8),
              0 0 40px rgba(80, 250, 123, 0.6),
              0 0 60px rgba(80, 250, 123, 0.4);
}

.process-steps li:nth-child(2):hover:before {
  background: rgba(255, 184, 108, 0.2);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 184, 108, 0.8),
              0 0 40px rgba(255, 184, 108, 0.6),
              0 0 60px rgba(255, 184, 108, 0.4);
}

.process-steps li:nth-child(3):hover:before {
  background: rgba(139, 233, 253, 0.2);
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.8),
              0 0 40px rgba(139, 233, 253, 0.6),
              0 0 60px rgba(139, 233, 253, 0.4);
}

.process-steps li:nth-child(4):hover:before {
  background: rgba(255, 121, 198, 0.2);
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.8),
              0 0 40px rgba(255, 121, 198, 0.6),
              0 0 60px rgba(255, 121, 198, 0.4);
}

/* Subtle pulse animation on load */
@keyframes pulse-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.process-steps li:before {
  animation: pulse-in 0.5s ease-out forwards;
}

.process-steps li:nth-child(1):before {
  animation-delay: 0.1s;
}

.process-steps li:nth-child(2):before {
  animation-delay: 0.2s;
}

.process-steps li:nth-child(3):before {
  animation-delay: 0.3s;
}

.process-steps li:nth-child(4):before {
  animation-delay: 0.4s;
}

.process-steps li strong {
  color: var(--purple);
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.3);
}

/* Make all strong tags with colons orange/gold on Join Us page */
.graduate-opportunities strong,
.other-opportunities strong,
.what-we-offer strong,
.technology-section strong {
  color: var(--purple);
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.3);
}

.contact-before {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-darker);
  border-radius: 8px;
}

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

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-dark);
}

.doc-item i {
  color: var(--purple);
}

/* Other Opportunities Section */
.other-opportunities {
  padding: 60px 0;
  /* Background removed to show page background image */
}

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

.opportunity-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Opportunity card hover now uses unified hover effect */
/* Removed top animation bar to match other cards */

.card-icon {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.opportunity-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
}

.opportunities-list,
.requirements-list {
  margin: 1.5rem 0;
  text-align: left;
}

.opp-item,
.req-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--fg-dark);
}

.opp-item i,
.req-item i {
  color: var(--purple);
  font-size: 0.9rem;
}

.commitment-note,
.application-note {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(68, 71, 90, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
}

.opportunity-card .learn-more-btn,
.position-content .learn-more-btn {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* What We Offer Section */
.what-we-offer {
  padding: 60px 0;
  background: transparent;
  text-align: center;
}

.what-we-offer p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--fg-dark);
}

.what-we-offer h2 {
  color: var(--purple) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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

.offer-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 147, 249, 0.2);
}

/* Offer item hover now uses unified hover effect */

.offer-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darker);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--purple);
}

.offer-item h4 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  display: block !important;
  text-align: center !important;
  position: static !important;
  width: 100% !important;
}

.offer-item h4::after {
  display: none !important;
}

.offer-item p {
  color: var(--fg-dark);
}

/* Technology Section */
.technology-section {
  padding: 60px 0;
  background: var(--bg-darker);
}

.tech-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.tech-header {
  background: var(--bg-darker);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--purple);
}

.tech-header h3 {
  color: var(--purple) !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-header h3 i {
  color: var(--purple);
}

.tech-status {
  padding: 0.5rem 1rem;
  background: rgba(255, 184, 108, 0.2);
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tech-content {
  padding: 2rem;
}

.tech-link {
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dotted var(--purple);
}

.tech-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
  border-bottom-color: var(--cyan);
}

.tech-link i {
  font-size: 0.85em;
  margin-right: 4px;
}

.tech-goals {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-darker);
  border-radius: 8px;
}

.tech-goals h4 {
  color: var(--purple) !important;
  text-align: center !important;
  margin-bottom: 2rem;
  display: block !important;
  position: static !important;
  width: 100% !important;
}

.tech-goals h4::after {
  display: none !important;
}

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

.goal-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
}

.goal-item i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
  display: block;
  width: 100%;
  text-align: center;
}

.goal-item h5 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  width: 100%;
}

.goal-item p {
  color: var(--fg-dark);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

.impact-statement {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(189, 147, 249, 0.1);
  border-left: 4px solid var(--purple);
  color: var(--fg-dark);
  font-style: italic;
}

.cutting-edge-section {
  margin-top: 3rem;
  margin-bottom: 4rem; /* Added bottom margin for better spacing before footer */
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 2px solid var(--purple);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.1);
}

.cutting-edge-section h3 {
  color: var(--purple);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Page Styles */
/* Contact Form Styles */
.contact-form-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.form-intro {
  text-align: center;
  color: var(--fg-dark);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(68, 71, 90, 0.4) 100%);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(189, 147, 249, 0.1),
              inset 0 0 60px rgba(189, 147, 249, 0.05);
  border: 1px solid rgba(189, 147, 249, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--purple), var(--cyan), var(--purple), var(--pink));
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
  animation: gradient-border 3s ease-in-out infinite;
}

@keyframes gradient-border {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  color: var(--pink);
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(255, 121, 198, 0.3);
}

.form-group:focus-within label {
  color: var(--purple);
  text-shadow: 0 0 15px rgba(189, 147, 249, 0.5);
  transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(36, 40, 59, 0.8);
  border: 1px solid rgba(189, 147, 249, 0.2);
  border-bottom: 2px solid var(--comment);
  color: var(--cyan);
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  border-bottom-color: var(--purple);
  background: rgba(36, 40, 59, 0.95);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.2), 
              inset 0 0 20px rgba(189, 147, 249, 0.05);
}

.form-input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.3s ease;
}

.form-group input:focus ~ .form-input-line,
.form-group textarea:focus ~ .form-input-line {
  width: 100%;
}

.btn-submit {
  display: block;
  margin: 2rem auto;
  padding: 1rem 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--purple) 0%, rgba(189, 147, 249, 0.8) 100%);
  border: 1px solid var(--purple);
  color: var(--bg-dark);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(189, 147, 249, 0.4),
              0 0 30px rgba(189, 147, 249, 0.2),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 147, 249, 0.5),
              0 0 40px rgba(189, 147, 249, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(189, 147, 249, 0.9) 0%, var(--purple) 100%);
}

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

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

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(189, 147, 249, 0.4),
              0 0 20px rgba(189, 147, 249, 0.2);
}

/* Sparkle animation on click */
@keyframes sparkle-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px var(--purple), 0 0 12px var(--purple);
  animation: sparkle-burst 0.6s ease-out forwards;
}

.sparkle:nth-child(2) { background: var(--pink); box-shadow: 0 0 6px var(--pink), 0 0 12px var(--pink); }
.sparkle:nth-child(3) { background: var(--cyan); box-shadow: 0 0 6px var(--cyan), 0 0 12px var(--cyan); }
.sparkle:nth-child(4) { background: var(--yellow); box-shadow: 0 0 6px var(--yellow), 0 0 12px var(--yellow); }
.sparkle:nth-child(5) { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 12px var(--green); }

.form-note {
  text-align: center;
  color: var(--comment);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-status {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(80, 250, 123, 0.1);
  border: 1px solid var(--green);
  color: var(--purple);
  display: block;
}

.form-status.error {
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid var(--red);
  color: var(--red);
  display: block;
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.form-group.error input,
.form-group.error textarea {
  border-bottom-color: var(--red);
  animation: form-shake 0.5s ease-out;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

.contact-info {
  padding: 80px 0;
  background: var(--bg-dark);
}

.contact-info h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-details {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 233, 253, 0.1);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: rgba(139, 233, 253, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
  font-size: 2rem;
  color: var(--purple);
  min-width: 40px;
  text-align: center;
  margin-top: 0.25rem;
}

.contact-item h3 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  padding: 0;
}

.contact-item p {
  color: var(--fg-dark);
  line-height: 1.6;
  margin: 0;
}

.contact-item a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--purple);
  text-decoration: underline;
}

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

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  border-radius: 20px;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 233, 253, 0.3);
}

.profile-links a:hover {
  background: var(--cyan);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 233, 253, 0.4);
}

.contact-map {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 233, 253, 0.1);
}

.map-placeholder {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--cyan);
}

/* Research Inquiries Section */
.research-inquiries {
  padding: 80px 0;
  background: var(--bg-light);
}

.research-inquiries h2 {
  color: var(--purple) !important;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.inquiry-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.inquiry-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.inquiry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inquiry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: rgba(139, 233, 253, 0.3);
}

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

.inquiry-card i {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 1.5rem;
  display: block;
}

.inquiry-card h3 {
  color: var(--purple) !important;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  padding: 0;
}

.inquiry-card p {
  color: var(--fg-dark);
  line-height: 1.6;
}

.inquiry-card a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.inquiry-card a:hover {
  color: var(--pink);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .contact-details,
  .contact-map {
    padding: 2rem;
  }
}

.cutting-edge-section h3::before {
  content: "🔬";
  font-size: 1.5rem;
}

.cutting-edge-section p {
  color: var(--fg-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cutting-edge-section ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.cutting-edge-section li {
  color: var(--purple);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.cutting-edge-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--purple);
}

.cutting-edge-section a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dashed var(--pink);
  transition: all 0.3s ease;
}

.cutting-edge-section a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}




/* Minimal Quick Links with Neon Borders */
.quick-links-minimal {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100%;
}

.quick-links-minimal .neon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(39, 104, 160, 0.4);
  border: 1px solid rgba(39, 104, 160, 0.6);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 40px;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #e0e6f2;
}

.quick-links-minimal .neon-link i {
  font-size: 1rem;
  margin-right: 0.2rem;
}

/* Add subtle animation on load */
.quick-links-minimal .neon-link {
  animation: scaleInWithColor 0.5s ease-out forwards;
  opacity: 0;
  transform: scale(0.8);
  animation-fill-mode: forwards; /* Keeps the final animation state */
}

/* Floating ice animation keyframes */
@keyframes floating-ice {
  0%, 100% {
    transform: translateY(-2px) translateX(0) scale(1.3) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) translateX(3px) scale(1.35) rotate(1deg);
  }
  50% {
    transform: translateY(-3px) translateX(-2px) scale(1.3) rotate(-1deg);
  }
  75% {
    transform: translateY(-4px) translateX(2px) scale(1.32) rotate(0.5deg);
  }
}

/* Hover animation for quick links - just scale up slightly */
.quick-links-minimal .neon-link:hover {
  transform: scale(1.15) !important;
  opacity: 1 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(39, 104, 160, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Individual color animations on hover matching top nav */
/* Research - Green */
.quick-links-minimal .nav-research:hover {
  color: var(--green) !important;
  border-color: var(--green);
  background: rgba(80, 250, 123, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8),
              0 0 40px rgba(80, 250, 123, 0.6),
              0 0 60px rgba(80, 250, 123, 0.4),
              inset 0 0 20px rgba(80, 250, 123, 0.2);
  text-shadow: 0 0 10px rgba(80, 250, 123, 0.8);
}

/* Team - Yellow */
.quick-links-minimal .nav-team:hover {
  color: var(--purple) !important;
  border-color: var(--yellow);
  background: rgba(241, 250, 140, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.8),
              0 0 40px rgba(241, 250, 140, 0.6),
              0 0 60px rgba(241, 250, 140, 0.4),
              inset 0 0 20px rgba(241, 250, 140, 0.2);
  text-shadow: 0 0 10px rgba(241, 250, 140, 0.8);
}

/* Publications - Purple */
.quick-links-minimal .nav-publications:hover {
  color: var(--purple) !important;
  border-color: var(--purple);
  background: rgba(189, 147, 249, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8),
              0 0 40px rgba(189, 147, 249, 0.6),
              0 0 60px rgba(189, 147, 249, 0.4),
              inset 0 0 20px rgba(189, 147, 249, 0.2);
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.8);
}

/* News - Orange */
.quick-links-minimal .nav-news:hover {
  color: var(--orange) !important;
  border-color: var(--orange);
  background: rgba(255, 184, 108, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(255, 184, 108, 0.8),
              0 0 40px rgba(255, 184, 108, 0.6),
              0 0 60px rgba(255, 184, 108, 0.4),
              inset 0 0 20px rgba(255, 184, 108, 0.2);
  text-shadow: 0 0 10px rgba(255, 184, 108, 0.8);
}

/* Grants - Pink */
.quick-links-minimal .nav-grants:hover {
  color: var(--purple) !important;
  border-color: var(--pink);
  background: rgba(255, 121, 198, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.8),
              0 0 40px rgba(255, 121, 198, 0.6),
              0 0 60px rgba(255, 121, 198, 0.4),
              inset 0 0 20px rgba(255, 121, 198, 0.2);
  text-shadow: 0 0 10px rgba(255, 121, 198, 0.8);
}

/* Teaching - Cyan */
.quick-links-minimal .nav-teaching:hover {
  color: var(--purple) !important;
  border-color: var(--cyan);
  background: rgba(139, 233, 253, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.8),
              0 0 40px rgba(139, 233, 253, 0.6),
              0 0 60px rgba(139, 233, 253, 0.4),
              inset 0 0 20px rgba(139, 233, 253, 0.2);
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
}

/* Service - Green */
.quick-links-minimal .nav-service:hover {
  color: var(--green) !important;
  border-color: var(--green);
  background: rgba(80, 250, 123, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8),
              0 0 40px rgba(80, 250, 123, 0.6),
              0 0 60px rgba(80, 250, 123, 0.4),
              inset 0 0 20px rgba(80, 250, 123, 0.2);
  text-shadow: 0 0 10px rgba(80, 250, 123, 0.8);
}

/* Join Us - Yellow */
.quick-links-minimal .nav-join:hover {
  color: var(--purple) !important;
  border-color: var(--yellow);
  background: rgba(241, 250, 140, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(241, 250, 140, 0.8),
              0 0 40px rgba(241, 250, 140, 0.6),
              0 0 60px rgba(241, 250, 140, 0.4),
              inset 0 0 20px rgba(241, 250, 140, 0.2);
  text-shadow: 0 0 10px rgba(241, 250, 140, 0.8);
}

/* Contact - Purple */
.quick-links-minimal .nav-contact:hover {
  color: var(--purple) !important;
  border-color: var(--purple);
  background: rgba(189, 147, 249, 0.2);
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.8),
              0 0 40px rgba(189, 147, 249, 0.6),
              0 0 60px rgba(189, 147, 249, 0.4),
              inset 0 0 20px rgba(189, 147, 249, 0.2);
  text-shadow: 0 0 10px rgba(189, 147, 249, 0.8);
}

/* Active page styling for quick links */
.quick-links-minimal .neon-link.active {
  font-weight: 700;
  background: rgba(255, 184, 28, 0.35); /* UCR Gold for active state */
  border-color: rgba(255, 184, 28, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(255, 184, 28, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  animation: active-pulse 2s ease-in-out infinite;
  color: var(--purple);
}

.quick-links-minimal .neon-link.active:hover {
  transform: scale(1.3);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(255, 184, 28, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Assign specific color animations to each link */
.quick-links-minimal .nav-research { 
  animation: scaleInGreen 0.5s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0; /* Start invisible */
}
.quick-links-minimal .nav-team { 
  animation: scaleInYellow 0.5s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}
.quick-links-minimal .nav-publications { 
  animation: scaleInPurple 0.5s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.quick-links-minimal .nav-news { 
  animation: scaleInOrange 0.5s ease-out forwards;
  animation-delay: 0.25s;
  opacity: 0;
}
.quick-links-minimal .nav-grants { 
  animation: scaleInPink 0.5s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.quick-links-minimal .nav-teaching { 
  animation: scaleInCyan 0.5s ease-out forwards;
  animation-delay: 0.35s;
  opacity: 0;
}
.quick-links-minimal .nav-service { 
  animation: scaleInGreen 0.5s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.quick-links-minimal .nav-join { 
  animation: scaleInYellow 0.5s ease-out forwards;
  animation-delay: 0.45s;
  opacity: 0;
}
.quick-links-minimal .nav-contact { 
  animation: scaleInPurple 0.5s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

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

/* Individual color animations for each link */
@keyframes scaleInGreen {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--purple);
  }
}

@keyframes scaleInYellow {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--yellow);
  }
}

@keyframes scaleInPurple {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--purple);
  }
}

@keyframes scaleInOrange {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--orange);
  }
}

@keyframes scaleInPink {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--pink);
  }
}

@keyframes scaleInCyan {
  from {
    opacity: 0;
    transform: scale(0.8);
    color: #e0e6f2;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    color: var(--purple);
  }
}

/* Neon color variations */
.neon-link.purple {
  color: var(--purple);
  border-color: var(--purple);
}

.neon-link.purple:hover {
  background: rgba(189, 147, 249, 0.1);
  box-shadow: 0 0 15px rgba(189, 147, 249, 0.4),
              inset 0 0 15px rgba(189, 147, 249, 0.1);
  transform: translateY(-2px);
}

.neon-link.cyan {
  color: var(--purple);
  border-color: var(--cyan);
}

.neon-link.cyan:hover {
  background: rgba(139, 233, 253, 0.1);
  box-shadow: 0 0 15px rgba(139, 233, 253, 0.4),
              inset 0 0 15px rgba(139, 233, 253, 0.1);
  transform: translateY(-2px);
}

.neon-link.green {
  color: var(--purple);
  border-color: var(--green);
}

.neon-link.green:hover {
  background: rgba(80, 250, 123, 0.1);
  box-shadow: 0 0 15px rgba(80, 250, 123, 0.4),
              inset 0 0 15px rgba(80, 250, 123, 0.1);
  transform: translateY(-2px);
}

.neon-link.yellow {
  color: var(--yellow);
  border-color: var(--yellow);
}

.neon-link.yellow:hover {
  background: rgba(241, 250, 140, 0.1);
  box-shadow: 0 0 15px rgba(241, 250, 140, 0.4),
              inset 0 0 15px rgba(241, 250, 140, 0.1);
  transform: translateY(-2px);
}

/* Add underline effect for quick links */
.quick-links-minimal .neon-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transition: all 0.3s ease;
  opacity: 0;
}

.quick-links-minimal .neon-link:hover::after {
  opacity: 1;
  animation: glow-pulse 1.5s ease-in-out infinite;
}

/* Match navigation menu colors for quick links */
.quick-links-minimal .nav-research {
  color: #e0e6f2;
}
.quick-links-minimal .nav-research::after {
  background: linear-gradient(90deg, transparent, var(--green) 20%, var(--green) 80%, transparent);
  box-shadow: 0 0 10px rgba(80, 250, 123, 0.8), 0 2px 20px rgba(80, 250, 123, 0.5);
}
.quick-links-minimal .nav-research:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-team {
  color: #e0e6f2;
}
.quick-links-minimal .nav-team:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-publications {
  color: #e0e6f2;
}
.quick-links-minimal .nav-publications:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-news {
  color: #e0e6f2;
}
.quick-links-minimal .nav-news:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-grants {
  color: #e0e6f2;
}
.quick-links-minimal .nav-grants:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-teaching {
  color: #e0e6f2;
}
.quick-links-minimal .nav-teaching:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-service {
  color: #e0e6f2;
}
.quick-links-minimal .nav-service:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-join {
  color: #e0e6f2;
}
.quick-links-minimal .nav-join:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-links-minimal .nav-contact {
  color: #e0e6f2;
}
.quick-links-minimal .nav-contact:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
  font-weight: 600;
  background: rgba(39, 104, 160, 0.4);
  border-color: rgba(39, 104, 160, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(39, 104, 160, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .quick-links-minimal {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

/* Breeding Strategy Styles for Delfino Grant Modal */
.breeding-strategy {
    margin: 20px 0;
    background: rgba(40, 42, 54, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.strategy-step {
    margin-bottom: 20px;
    position: relative;
    padding-left: 45px;
}

.strategy-step:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    color: #282a36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.strategy-step strong {
    color: #8be9fd;
    display: block;
    margin-bottom: 5px;
}

.strategy-step ul {
    margin-top: 10px;
    margin-left: 20px;
    list-style-type: none;
}

.strategy-step ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    color: var(--fg-dark);
}

.strategy-step ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #50fa7b;
}

.breeding-strategy a {
    color: #8be9fd;
    text-decoration: underline;
}

.breeding-strategy a:hover {
    color: #bd93f9;
}

/* Delfino Grant Background Image */
.delfino-grant-item {
    position: relative;
    overflow: hidden;
}

.delfino-grant-item .news-content {
    position: relative;
    background-image: url('../assets/images/news_page/robotics_DNA_beetle.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 350px;
    min-height: 300px;
}

.delfino-grant-item .news-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, 
        rgba(40, 42, 54, 0.95) 0%,
        rgba(40, 42, 54, 0.85) 50%,
        rgba(40, 42, 54, 0.3) 85%,
        rgba(40, 42, 54, 0.1) 100%);
    pointer-events: none;
}

.delfino-grant-item .news-content > * {
    position: relative;
    z-index: 1;
}

/* Center project highlights */
.project-highlights {
    text-align: center;
    margin-top: 20px;
}

/* News Header with Corner Image */
.news-header {
    position: relative;
    overflow: hidden;
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('../assets/images/news_page/robotics_DNA_beetle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
}

@media (max-width: 768px) {
    .delfino-grant-item .news-content {
        background-size: 200px;
        background-position: right bottom;
    }
    
    .delfino-grant-item .news-content::before {
        width: 100%;
        background: linear-gradient(to top, 
            rgba(40, 42, 54, 0.9) 0%,
            rgba(40, 42, 54, 0.7) 50%,
            rgba(40, 42, 54, 0.95) 100%);
    }
}

/* Inline DOI links - subtle styling for use within paragraphs */
.pub-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 4px;
  margin: 0;
  border: none;
  border-radius: 3px;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: inherit;
  background: transparent;
  position: relative;
  white-space: nowrap;
}

.pub-link-inline:hover {
  background: rgba(39, 104, 160, 0.15); /* UCR Blue with transparency */
  color: #4a9eff; /* Lighter blue text */
  transform: scale(1.02);
  padding: 1px 5px;
  border-radius: 6px;
}

.pub-link-inline i {
  font-size: 0.9em;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: transform 0.3s ease;
}

.pub-link-inline:hover i {
  transform: rotate(360deg);
}


/* ============================================= */
/* NEW CONTACT PAGE STYLES */
/* ============================================= */

/* Quick Contact Section */
.quick-contact-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.quick-contact-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.quick-contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: 0 10px 30px rgba(189, 147, 249, 0.3);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 147, 249, 0.2);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--purple);
}

.quick-contact-card h3 {
  color: var(--purple) !important;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  display: block !important;
  text-align: center !important;
  position: static !important;
  width: 100% !important;
}

.quick-contact-card h3::after {
  display: none !important;
}

.quick-contact-card p {
  color: var(--fg-dark);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center !important;
  display: block !important;
}

.contact-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.contact-link:hover {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 121, 198, 0.5);
}

.contact-text {
  color: var(--fg-dark);
  font-weight: 600;
  display: block;
  text-align: center;
}

/* Main Contact Section */
.main-contact-section {
  padding: 80px 0;
  background: var(--bg-darker);
}

.contact-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-column h2,
.contact-info-wrapper h2 {
  margin-bottom: 1.5rem;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  position: relative !important;
}


/* Modern Contact Form */
.contact-form-wrapper {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-intro {
  color: var(--fg-dark);
  margin-bottom: 2rem;
}

.modern-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.modern-contact-form .form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.modern-contact-form input,
.modern-contact-form textarea,
.modern-contact-form select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--comment);
  color: var(--fg);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modern-contact-form label {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--comment);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.modern-contact-form input:focus ~ label,
.modern-contact-form input:not(:placeholder-shown) ~ label,
.modern-contact-form textarea:focus ~ label,
.modern-contact-form textarea:not(:placeholder-shown) ~ label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--purple);
}

.modern-contact-form select {
  cursor: pointer;
}

.form-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s ease;
}

.modern-contact-form input:focus ~ .form-underline,
.modern-contact-form textarea:focus ~ .form-underline,
.modern-contact-form select:focus ~ .form-underline {
  width: 100%;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
  padding-left: 2rem;
}

.info-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
  color: var(--purple) \!important;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h3 i {
  color: var(--purple);
}

.pi-name {
  color: var(--purple) !important;
  font-size: 1.1rem;
}

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

.social-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--bg-darker);
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg-dark);
  transition: all 0.3s ease;
  text-align: center;
}

/* Individual colors for each social link */
.social-link-card[title="ORCID"] {
  color: #a6ce39;
  border: 1px solid rgba(166, 206, 57, 0.3);
}

.social-link-card[title="ORCID"]:hover {
  background: rgba(166, 206, 57, 0.2);
  color: #a6ce39;
  border-color: #a6ce39;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(166, 206, 57, 0.5);
}

.social-link-card[title="Google Scholar"] {
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.social-link-card[title="Google Scholar"]:hover {
  background: rgba(66, 133, 244, 0.2);
  color: #4285f4;
  border-color: #4285f4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.5);
}

.social-link-card[title="LinkedIn"] {
  color: #0077b5;
  border: 1px solid rgba(0, 119, 181, 0.3);
}

.social-link-card[title="LinkedIn"]:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
  border-color: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.5);
}

.social-link-card[title="GitHub"] {
  color: var(--purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
}

.social-link-card[title="GitHub"]:hover {
  background: rgba(189, 147, 249, 0.2);
  color: var(--purple);
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(189, 147, 249, 0.5);
}

.social-link-card i {
  font-size: 1.2rem;
}

.social-link-card span {
  font-weight: 600;
}

/* Collaboration Section */
.collaboration-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.collaboration-section h2 {
  text-align: center !important;
  margin-bottom: 3rem;
  display: block !important;
  width: 100% !important;
  position: relative !important;
}


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

.collab-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.collab-card:hover {
  border-color: var(--purple);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(189, 147, 249, 0.3);
}

.collab-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 147, 249, 0.2);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--purple);
}

.collab-card h3 {
  color: var(--purple) \!important;
  margin-bottom: 1rem;
}

.collab-card p {
  color: var(--fg-dark);
  margin-bottom: 1.5rem;
}

.collab-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.collab-card li {
  color: var(--fg-dark);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.collab-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* Form Status Messages */
.form-status {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(80, 250, 123, 0.2);
  color: var(--green);
  border: 1px solid var(--green);
}

.form-status.error {
  display: block;
  background: rgba(255, 85, 85, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
}

/* Button Styles */
.btn-secondary {
  background: var(--comment);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(189, 147, 249, 0.5);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info-wrapper {
    padding-left: 0;
  }
  
  .modern-contact-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .social-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile footer fix - at the very end to override everything */
@media (max-width: 768px) {
  .site-footer {
    background: linear-gradient(rgba(40, 42, 54, 0.7), rgba(40, 42, 54, 0.65)), 
                url('../assets/images/headers/mobile/footer.png') center/cover !important;
    background-attachment: scroll !important;
  }
  
  /* Removed duplicate mobile background styles - consolidated below */
}

/* CRITICAL MOBILE MODAL FIX - Must be at the very end to override all other modal styles */
@media (max-width: 768px) {
  .modal-header {
    padding: 8px 12px !important;
    background: rgba(189, 147, 249, 0.03) !important;
    min-height: auto !important;
  }
  
  .modal-header h2,
  #modalTitle {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    animation: none !important;
    filter: none !important;
  }
  
  /* Hide the decorative line completely on mobile */
  .modal-header::after {
    display: none !important;
  }
  
  /* Tighter close button */
  .modal .close {
    top: 5px !important;
    right: 10px !important;
    font-size: 24px !important;
    width: 30px !important;
    height: 30px !important;
  }
  
  /* More efficient modal content spacing */
  .modal-content {
    width: 95% !important;
    margin: 3% auto !important;
    max-height: 94vh !important;
  }
  
  .modal-body {
    padding: 15px !important;
    max-height: calc(94vh - 50px) !important;
  }
  
  /* Optimize all modal text sizes for mobile */
  .modal-body h3 {
    font-size: 1.05rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-body h3:first-child {
    margin-top: 0 !important;
  }
  
  .modal-body h4 {
    font-size: 0.95rem !important;
    margin-top: 0.8rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .modal-body p,
  .modal-body li {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
}

/* Desktop/Tablet Modal Optimizations - ONLY font size and padding */
/* MUST OVERRIDE LINE 5772-5830 */
@media screen and (min-width: 769px) {
  div.modal div.modal-content div.modal-header {
    padding: 8px 20px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  
  div.modal div.modal-content div.modal-header h2,
  div.modal div.modal-content div.modal-header h2#modalTitle,
  #publicationModal #modalTitle,
  #grantModal #modalTitle,
  #researchModal #modalTitle {
    font-size: 1.5rem !important;
    font-size: 1.5rem !important; /* Double to ensure override */
  }
  
  div.modal div.modal-content div.modal-body {
    padding: 1.5rem !important;
  }
}



/* CRITICAL: Mobile nav-brand centering - Must be at very end for highest priority */
@media (max-width: 768px) {
  .nav-brand {
    margin-left: 0 !important;
    margin-top: -18px !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center !important;
    z-index: 1 !important;
  }
  
  .nav-brand .since-date {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    width: auto !important;
  }
  
  /* Keep nav-container flex to maintain hamburger position */
  .nav-container {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* Ensure hamburger stays on the right */
  .nav-toggle {
    position: relative !important;
    margin-left: auto !important;
    z-index: 2 !important;
    display: flex !important;
  }
}
