:root {
  /* Modern Gradient Color Palette - Deep Ocean to Sunset */
  --primary-900: #0f172a;        /* Rich navy - deep backgrounds */
  --primary-800: #1e293b;        /* Slate navy */
  --primary-700: #334155;        /* Cool slate */
  --primary-600: #475569;        /* Medium slate */
  --primary-500: #64748b;        /* Muted slate */

  /* Vibrant Accent Colors - Orange to Red */
  --accent-coral: #ff6b6b;       /* Vibrant coral pink */
  --accent-orange: #FF8C00;      /* Dark orange */
  --accent-red: #FF4500;         /* Orange red */
  --accent-purple: #FF8C00;      /* Orange */
  --accent-violet: #FF4500;      /* Orange red */
  --accent-teal: #14b8a6;        /* Fresh teal */
  --accent-emerald: #10b981;     /* Success green */

  /* Gradient Combinations */
  --gradient-sunset: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
  --gradient-ocean: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Neutral Palette */
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #9ca3af;

  /* Surface Colors with Glass Morphism */
  --surface-primary: rgba(255, 255, 255, 0.95);
  --surface-secondary: rgba(255, 255, 255, 0.85);
  --surface-glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(148, 163, 184, 0.15);
  --glass-border-hover: rgba(148, 163, 184, 0.4);

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

  /* Legacy mappings for compatibility */
  --indigo-500: var(--accent-violet);
  --indigo-600: #4f46e5;
  --indigo-700: var(--accent-purple);
  --muted: var(--text-secondary);
  --card-bg: var(--surface-primary);

  /* Design Tokens */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --focus-color: var(--accent-purple);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 75px rgba(99, 102, 241, 0.15);
  --shadow-xl: 0 35px 100px rgba(99, 102, 241, 0.2);
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-orange);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 50%, #e6f4f1 100%);
  background-attachment: fixed;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* High contrast focus for better visibility */
.btn:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
}

.explorable-image:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
  border-radius: 12px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.orb-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.orb.o1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #5eead4 0%, #14b8a6 100%);
  left: -12%;
  top: -8%;
  animation: float1 14s ease-in-out infinite;
}

.orb.o2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #6ee7b7 0%, #34d399 100%);
  right: -12%;
  top: 30%;
  animation: float2 18s ease-in-out infinite;
}

.orb.o3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #99f6e4 0%, #5eead4 100%);
  left: 40%;
  bottom: -8%;
  animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(30px) translateX(20px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes float2 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(-18px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes float3 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(35px) translateX(-25px); }
  100% { transform: translateY(0) translateX(0); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
  
  .fade-in {
    transition: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(20, 184, 166, 0.25) 50%, rgba(45, 212, 191, 0.2) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  border-color: var(--glass-border-hover);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrap img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
  transition: all 0.3s ease;
}

.logo-wrap img:hover {
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.2);
  transform: scale(1.05);
}

.brand {
  font-weight: 800;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #000000;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  background: var(--gradient-ocean);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .logo-wrap img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .navbar {
    margin: 0.25rem;
    padding: 0.75rem;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Custom Hero Styling for Visual Peer Review */

/* The outer container for the entire hero section */
.hero-section {
    padding: 0;
    margin: 1.25rem;
    position: relative;
}


/* The actual hero div with custom background color overlay */
.hero-section .hero {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.85) 0%, rgba(255, 69, 0, 0.85) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: visible;
    margin: 0;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1;
}

.hero-section .hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3);
}

.hero-section .hero::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;
    pointer-events: none;
}

.hero-section .hero:hover::before {
    left: 100%;
}

/* Add subtle animated background effect */
.hero-section .hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Ensure the main container inside the hero keeps the established max-width */
.hero-section .hero .container {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Content wrapper */
.hero-section .hero-content {
    padding: 20px;
}

/* Hero Heading (H1) */
.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    line-height: 1.2;
    text-shadow: none;
}

/* New Subheading (H2) */
.hero-section .hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Paragraph/Kicker text */
.hero-section .hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
    color: #000000;
    text-shadow: none;
}

/* Button container spacing */
.hero-section .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Primary button inside hero - white background */
.hero-section .hero .btn.primary {
    background: white;
    color: #FF4500;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-section .hero .btn.primary::before {
    display: none;
}

.hero-section .hero .btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Ghost button inside hero - white border */
.hero-section .hero .btn.ghost {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.hero-section .hero .btn.ghost:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-color: #000000;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-section .hero {
        padding: 60px 0;
    }

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

    .hero-section .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-section .hero-content p {
        font-size: 1rem;
    }

    .hero-section .hero .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section .hero {
        padding: 50px 0;
    }

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

    .hero-section .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-section .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .hero .container {
        padding: 0 1rem;
    }
}

h2 {
  font-size: 2rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  margin-left: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.center {
  text-align: center;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.kicker {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.section {
  margin: 3rem 1rem;
}

.section:first-of-type {
  margin-top: 2rem;
}

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

.card {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  font-family: inherit;
  line-height: 1.5;
}

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

.btn.primary {
  background: var(--gradient-ocean);
  color: #000000;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

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

.btn.primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn.ghost {
  background: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.btn.ghost:hover {
  background: var(--gradient-ocean);
  color: #000000;
  border-color: transparent;
}

.btn.primary.active {
  box-shadow: var(--shadow-lg);
}

.btn.ghost.active {
  background: var(--gradient-ocean);
  color: #000000;
  border-color: transparent;
}

/* Progress Sidebar */
.progress-sidebar {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 250px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  z-index: 50;
  transition: all 0.3s ease;
}

.progress-sidebar h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-sunset);
  border-radius: 999px;
  transition: width 0.5s ease;
  width: 0%;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

#progress-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin: 0 0 1rem 0;
}

.progress-checklist {
  margin-top: 1rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.progress-item.completed {
  color: var(--primary-900);
  font-weight: 600;
}

.progress-checkbox {
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.progress-item.completed .progress-checkbox {
  color: var(--accent-emerald);
}

.progress-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .progress-sidebar {
    right: 10px;
    width: 220px;
  }
}

@media (max-width: 1200px) {
  .progress-sidebar {
    display: none;
  }
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--indigo-500);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover,
.upload-area.hover {
  background: rgba(92, 107, 192, 0.05);
  border-color: var(--indigo-700);
}

.image-frame {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.9), rgba(243, 247, 255, 0.95));
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.image-frame img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.06);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--accent-purple);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Rubric Section */
.rubric-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.5), rgba(243, 247, 255, 0.3));
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.rubric-section:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.rubric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rubric-header label {
  font-weight: 600;
  color: var(--primary-900);
  flex: 1;
  min-width: 200px;
}

.rating-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: white;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.rating-select:hover {
  border-color: var(--accent-purple);
}

.rating-select:focus {
  border-color: var(--focus-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-box {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.2s ease;
  background: white;
}

.comment-box:hover {
  border-color: var(--accent-purple);
}

.comment-box:focus {
  border-color: var(--focus-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-box::placeholder {
  color: var(--text-light);
  font-style: italic;
}

/* Nudge Box */
.nudge-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.08));
  border-left: 4px solid var(--accent-violet);
  animation: fadeIn 0.5s ease;
}

/* Individual Nudges under each comment box */
.individual-nudge {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(99, 102, 241, 0.06));
  border-left: 3px solid var(--accent-violet);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.individual-nudge .nudge-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.individual-nudge .nudge-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
}

.individual-nudge.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
  border-left-color: var(--accent-emerald);
}

.individual-nudge.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 107, 107, 0.08));
  border-left-color: var(--accent-coral);
}

.individual-nudge.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(20, 184, 166, 0.08));
  border-left-color: var(--accent-teal);
}

.nudge-box.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.1));
  border-left-color: var(--accent-emerald);
}

.nudge-box.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(255, 107, 107, 0.1));
  border-left-color: var(--accent-coral);
}

.nudge-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

th {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  font-weight: 700;
  color: var(--primary-900);
  border-bottom: 2px solid var(--accent-purple);
}

tr:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
}

td:last-child {
  max-width: 300px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    padding: 0.5rem;
    min-width: 80px;
  }

  td:last-child {
    max-width: 200px;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.4rem;
  }
}

/* Modern Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-card-modern {
  background: var(--surface-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: visible;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.team-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glass-border-hover);
}

.team-card-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.team-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.team-card-modern:hover .team-card-header::before {
  transform: scale(1.2);
}

.team-avatar {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 1;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: none;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-modern:hover .team-avatar img {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.team-avatar-sm {
  width: 150px;
  height: 150px;
}

.team-card-body {
  padding: 1.75rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card-body h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--primary-900);
  font-weight: 800;
}

.team-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.team-affiliation {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.5rem 0 1rem 0;
  flex: 1;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: auto;
}

.team-card-compact .team-card-header {
  padding: 1.5rem;
}

.team-card-compact .team-card-body {
  padding: 1.5rem;
}

.team-card-compact .team-card-body h3 {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-avatar {
    width: 160px;
    height: 160px;
  }

  .team-avatar-sm {
    width: 130px;
    height: 130px;
  }
}

/* Footer */
.footer {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  margin-top: 1.25rem;
}

.footer img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: none;
}

/* Analytics Stat Cards */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--accent-purple);
  border-color: var(--glass-border-hover);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-card {
  padding: 2rem;
}

.chart-card h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-card .kicker {
  margin-bottom: 1rem;
}

.chart-card canvas {
  max-height: 400px;
  width: 100%;
}

/* Info Tooltip */
.info-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--gradient-ocean);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  cursor: help;
  margin-left: 0.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.info-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.info-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 650px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.info-tooltip.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translate(-50%, -60%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Backdrop for tooltip */
.tooltip-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip-backdrop.show {
  display: block;
  opacity: 1;
}

.info-tooltip h4 {
  margin: 0 0 1.25rem 0;
  color: var(--primary-900);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.info-tooltip p {
  margin: 0 0 1.25rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.info-tooltip img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
}

.info-tooltip ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.info-tooltip li {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 2rem;
  position: relative;
}

.info-tooltip li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
  font-size: 1.2rem;
}

.info-tooltip li strong {
  color: var(--accent-purple);
  font-weight: 700;
}

/* Close button for tooltip */
.tooltip-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tooltip-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

/* Secondary Navigation for Demo/Analytics Toggle */
.secondary-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}

.secondary-nav-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  backdrop-filter: blur(10px);
}

.secondary-nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--glass-border-hover);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-nav-btn.active {
  background: var(--gradient-ocean);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.secondary-nav-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .secondary-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .secondary-nav-btn {
    width: 100%;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* About Section Styles */
.about-section {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  flex: 0 0 420px;
  max-width: 420px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 968px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

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

  .about-image {
    flex: 1;
    max-width: 100%;
  }
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom: 6px solid var(--accent-purple);
  border-color: var(--glass-border-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.feature-number {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: #000000;
  color: white;
}

/* Different colors for each number */
.feature-card:nth-child(1) .feature-number {
  background: #FF4500; /* Orange Red */
}

.feature-card:nth-child(2) .feature-number {
  background: #2563eb; /* Blue */
}

.feature-card:nth-child(3) .feature-number {
  background: #10b981; /* Green */
}

.feature-card:nth-child(4) .feature-number {
  background: #8b5cf6; /* Purple */
}

.feature-card:nth-child(5) .feature-number {
  background: #f59e0b; /* Amber */
}

.feature-card:nth-child(6) .feature-number {
  background: #ec4899; /* Pink */
}

/* Different colors for Smart Nudges section numbers */
.nudges-section .feature-card:nth-child(1) .feature-number {
  background: #0891b2; /* Cyan */
}

.nudges-section .feature-card:nth-child(2) .feature-number {
  background: #059669; /* Emerald */
}

.nudges-section .feature-card:nth-child(3) .feature-number {
  background: #7c3aed; /* Violet */
}

.nudges-section .feature-card:nth-child(4) .feature-number {
  background: #d946ef; /* Fuchsia */
}

.nudges-badge {
  display: inline-block;
  background: var(--gradient-ocean);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  margin-bottom: 1rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Form Styles for Join Page */
.participation-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--focus-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.required {
  color: #dc2626;
}

/* NSF Support Section */
.nsf-card {
  padding: 2rem;
}

.nsf-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.nsf-text {
  flex: 1;
  text-align: left;
}

.nsf-text h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-900);
}

.nsf-text .kicker {
  margin-bottom: 1.25rem;
  display: block;
}

.nsf-text p:last-child {
  margin-bottom: 0;
}

.nsf-logo {
  flex: 0 0 160px;
  text-align: center;
}

.nsf-logo img {
  max-width: 100%;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.nsf-logo a:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .nsf-content {
    flex-direction: column;
    text-align: center;
  }

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

  .nsf-logo {
    flex: 0 0 auto;
  }
}

/* Contact Page */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.contact-info-card,
.contact-form-card {
  height: 100%;
}

.contact-methods {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-color: var(--glass-border-hover);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.contact-details {
  flex: 1;
}

.contact-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--primary-900);
}

.contact-details p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--accent-violet);
  text-decoration: underline;
}

.contact-form-card h2 {
  margin-top: 0;
}

.contact-form {
  margin-top: 1.5rem;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto;
  }
}

/* Publications Page (Journals & Conferences) */
.publications-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.publication-card {
  background: var(--surface-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  gap: 0;
  flex-direction: row;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glass-border-hover);
}

.publication-card.highlight-card {
  border: 2px solid var(--primary-600);
  box-shadow: 0 8px 24px rgba(255, 115, 0, 0.15);
  background: linear-gradient(135deg, var(--surface-primary) 0%, rgba(255, 115, 0, 0.03) 100%);
}

.publication-card.highlight-card:hover {
  border-color: var(--primary-700);
  box-shadow: 0 12px 32px rgba(255, 115, 0, 0.25);
}

.publication-year {
  background: var(--gradient-ocean);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  order: 2;
}

.publication-content {
  flex: 1;
  padding: 2rem;
  order: 1;
}

.publication-title {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: var(--primary-900);
  font-weight: 700;
  line-height: 1.4;
}

.publication-authors {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.publication-authors::before {
  content: "👥 ";
  margin-right: 0.25rem;
}

.publication-venue {
  margin: 0 0 1rem 0;
}

.venue-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
  border: 1px solid var(--accent-purple);
  border-radius: 999px;
  color: var(--accent-purple);
  font-size: 0.875rem;
  font-weight: 700;
  font-style: normal;
}

.publication-citation {
  margin: 0 0 1rem 0;
  color: var(--primary-900);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 500;
}

.publication-citation em {
  font-style: italic;
}

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

.publication-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .publication-card {
    flex-direction: column;
  }

  .publication-year {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 1.5rem;
    min-width: auto;
    text-align: center;
    order: 1;
  }

  .publication-content {
    padding: 1.5rem;
    order: 2;
  }
}

/* Join Page */
.join-form-card {
  max-width: 800px;
  margin: 0 auto;
}

.join-form-card h2 {
  margin-top: 0;
  text-align: center;
}

.join-form-card .kicker {
  text-align: center;
  margin-bottom: 2rem;
}

/* Lightbox styles for explorable images */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ccc;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

.explorable-image {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explorable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Print styles */
@media print {
  .orb-wrap,
  .navbar,
  .btn,
  .progress-sidebar,
  .lightbox {
    display: none;
  }

  body {
    background: white;
  }

  .card {
    break-inside: avoid;
  }
}

/* ===== COMPREHENSIVE MOBILE FIXES ===== */

/* General mobile viewport fixes */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Section spacing */
  .section {
    margin: 1.5rem 0.5rem;
  }

  /* Cards */
  .card {
    padding: 1.25rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }

  /* Headings */
  h2 {
    font-size: 1.5rem;
    margin-left: 0.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Grid adjustments */
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Feature cards */
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Image overflow fixes */
img {
  max-width: 100%;
  height: auto;
}

.image-frame img,
.about-image img,
.explorable-image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .about-image {
    max-width: 100%;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

/* Form elements mobile fixes */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="file"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

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

  .rating-select {
    min-width: 100%;
    font-size: 16px;
  }

  .rubric-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rubric-header label {
    min-width: 100%;
  }

  .comment-box {
    min-height: 100px;
  }

  /* Upload area */
  .upload-area {
    padding: 0.75rem;
  }
}

/* Demo page mobile fixes */
@media (max-width: 768px) {
  #demo-content .card {
    padding: 1rem;
  }

  .rubric-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .individual-nudge {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .nudge-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
}

/* Contact page mobile fixes */
@media (max-width: 768px) {
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Info tooltip mobile fixes */
@media (max-width: 768px) {
  .info-tooltip {
    width: 95vw;
    max-height: 90vh;
    padding: 1.5rem;
  }

  .info-tooltip h4 {
    font-size: 1.3rem;
  }

  .info-tooltip p,
  .info-tooltip li {
    font-size: 0.9rem;
  }
}

/* Stat cards mobile */
@media (max-width: 768px) {
  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }
}

/* Chart cards mobile */
@media (max-width: 768px) {
  .chart-card {
    padding: 1rem;
  }

  .chart-card canvas {
    max-height: 300px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .section {
    margin: 1rem 0.25rem;
  }

  .card {
    padding: 1rem;
    border-radius: 12px;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .hero-section {
    margin: 0.5rem;
  }

  .hero-section .hero {
    padding: 30px 0;
  }

  .hero-section .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-section .hero-content p {
    font-size: 0.9rem;
  }

  .footer {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }

  .footer img {
    width: 20px;
    height: 20px;
  }

  /* Publication cards */
  .publication-content {
    padding: 1rem;
  }

  .publication-year {
    padding: 1rem;
    font-size: 1.2rem;
  }

  .publication-citation {
    font-size: 0.85rem;
  }

  .publication-abstract {
    font-size: 0.85rem;
  }

  /* Join form */
  .join-form-card {
    padding: 1rem;
  }

  /* NSF section */
  .nsf-card {
    padding: 1rem;
  }

  .nsf-logo img {
    height: 60px;
  }
}