/* ===== CSS VARIABLES ===== */
:root {
  /* GMU Brand Colors */
  --mason-green: #005239;
  --mason-gold: #FFC733;
  --logo-black: #333333;
  --secondary-gray: #727579;
  /* Aliases used by How It Works styles (legacy names) */
  --gmu-green: var(--mason-green);
  --gmu-gold: var(--mason-gold);
  --gmu-dark-green: #003d2b;
  --gmu-light-gold: rgba(255, 199, 51, 0.12);
  
  /* Colors */
  --primary-color: #005239;
  --primary-dark: #003d2b;
  --primary-light: #00704f;
  --secondary-color: #727579;
  --accent-color: #FFC733;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent text selection issues and improve touch on mobile */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  a, button, .btn {
    touch-action: manipulation; /* Prevent double-tap zoom */
  }
}

/* Utility: hidden elements */
.hidden {
  display: none !important;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 768px) {
  body {
    font-size: 15px; /* Slightly smaller base font on mobile */
  }
}

/* Loading screen removed to eliminate CLS */

/* Loading screen styles removed as loading screen was eliminated to reduce CLS */

/* ===== MAIN APP ===== */
.main-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--mason-green);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--mason-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--white);
}

.navbar-brand i {
  margin-right: var(--space-sm);
  font-size: var(--font-size-3xl);
}

.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: var(--space-sm);
}

/* When navbar contains two logos, keep them aligned and responsive */
.brand-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand .navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-brand .navbar-logo.secondary {
  height: 30px; /* slightly smaller for WindTexter to fit visually */
  opacity: 0.95;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin-left: auto;
}

.navbar-nav li {
  margin-left: var(--space-xl);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--mason-gold);
}

.nav-link.active-link {
  color: var(--mason-gold);
}

.nav-link.active-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: var(--mason-gold);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  cursor: pointer;
  padding: var(--space-sm);
}

/* Tablet: compress spacing to avoid cutoff */
@media (max-width: 992px) {
  .navbar {
    padding: 0 var(--space-md);
  }
  .navbar-nav li {
    margin-left: var(--space-md);
  }
  .nav-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.95rem;
  }
  .navbar-brand .navbar-logo { height: 34px; }
  .navbar-brand .navbar-logo.secondary { height: 26px; }
}

/* Tablet seamless navbar-hero (769px-992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .main-content { margin-top: 0; }
  .hero-section { 
    padding-top: 120px; /* add more breathing room between navbar and text */
    margin-top: -1px; 
  }
}

/* Mobile navbar: hamburger + dropdown menu */
@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--space-md);
    height: 64px;
  }
  .header { height: 64px; }
  /* Overlap hero background by 1px to avoid device rounding seams */
  .hero-section { margin-top: -1px; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 1001;
  }
  .navbar-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--mason-green);
    flex-direction: column;
    padding: var(--space-sm) 0;
    gap: 0;
    margin: 0;
    display: none; /* hidden by default */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .navbar-nav.mobile-open { display: flex; }
  .navbar-nav li { 
    margin: 0; 
    width: 100%; 
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
  }
  .navbar-nav li:first-child { border-top: none; }
  .nav-link { 
    display: block; 
    padding: var(--space-md) var(--space-lg);
    width: 100%;
  }
  /* Stretch active underline across full width in mobile menu */
  .nav-link.active-link::after {
    left: 0;
    right: 0; /* stretch to both edges */
    transform: none;
    width: auto;
    bottom: 0;
    height: 3px;
  }
  .brand-logos .navbar-logo { height: 28px; }
  .brand-logos .navbar-logo.secondary { height: 22px; }
  /* Remove top margin so hero background can sit flush under fixed header */
  .main-content { margin-top: 0; }
  .header { box-shadow: none; }
  section { scroll-margin-top: 80px; }
}

/* ===== UNIFIED SECTION HEADER ===== */
.section-title,
.intro-section h2,
.how-it-works-section .section-title,
.future-features-card .card-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--mason-green);
  margin-bottom: var(--space-xl);
}

/* Individual overrides can go here if needed */
.intro-section h2 {
  text-align: center;
}

.how-it-works-section .section-title {
  margin-bottom: 15px;
}

.future-features-card .card-title {
  margin-bottom: 0; /* Or adjust as needed */
}

/* ===== UNIFIED SECTION SUB-HEADER ===== */
.section-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 800px; /* Increased for better line wrapping on wider screens */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Desktop: add top margin for fixed header */
@media (min-width: 993px) {
  .main-content {
    margin-top: 80px;
  }
}

/* ===== SECTIONS ===== */
section {
  scroll-margin-top: 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(90deg, var(--mason-green) 70%, var(--mason-gold) 100%);
  color: var(--white);
  min-height:75vh; /* Full viewport height for maximum impact */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px; /* Generous padding for full height hero */
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 400px;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--mason-gold);
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
}

/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.hero-primary-cta {
  background: var(--mason-gold) !important;
  color: var(--logo-black) !important;
  border: 2px solid var(--mason-gold) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: 0 !important; /* Completely rectangular - no curved borders */
  padding: var(--space-md) calc(var(--space-xl) + 4px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-shadow: none;
  transition: all var(--transition-fast);
}

.hero-primary-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-xl) !important;
  background: #ffD466 !important; /* Slightly brighter gold on hover */
}

.hero-secondary-cta {
  background: transparent !important;
  color: var(--mason-gold) !important;
  border: 2px solid var(--mason-gold) !important; /* Colored border using theme gold */
  font-weight: 600 !important;
  border-radius: 0 !important; /* Completely rectangular - no curved borders */
  padding: var(--space-md) calc(var(--space-xl) + 4px) !important;
  text-shadow: none;
  transition: all var(--transition-fast);
}

.hero-secondary-cta:hover {
  background: rgba(255, 199, 51, 0.1) !important; /* Light gold background on hover */
  border-color: var(--mason-gold) !important;
  color: var(--mason-gold) !important;
  transform: translateY(-3px) !important;
}

/* Removed pulse animation for a static, immediately visible CTA */

.hero-image {
  flex: 1;
  text-align: center;
  min-width: 300px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Reserve space for the hero image to avoid CLS: use aspect-ratio and ensure image fills container */
.hero-image {
  display: block;
  position: relative;
  /* aspect-ratio derived from intrinsic size 919 / 703 */
  aspect-ratio: 919 / 703;
  width: 100%;
  max-width: 520px; /* keep hero image reasonably sized on large screens */
  margin-left: auto;
  margin-right: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile hero adjustments: smaller, stacked, readable */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 56px 16px 32px 16px; /* slightly reduced */
  }
  .hero-content { margin-top: 50px; margin-bottom: 20px; }
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-text { min-width: 0; text-align: center; }
  .hero-text h1 { font-size: 2.1rem; margin-bottom: 0.5rem; }
  .hero-text p { font-size: 0.98rem; line-height: 1.5; margin-bottom: 1rem; }
  .hero-ctas { justify-content: center; flex-direction: column; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }
  .hero-image { aspect-ratio: auto; max-width: 360px; width: 100%; margin: 0 auto; }
  .hero-image img { width: 100%; height: auto; }
}

/* Adjust text sizing on shorter landscape viewports but keep hero tall */
@media (max-height: 760px) and (min-width: 900px) {
  .hero-text h1 { font-size: 3.4rem; }
  .hero-text p { margin-bottom: 1.5rem; }
  .hero-image { max-width: 440px; }
}

/* About video & concise layout */
.about-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.about-brief p {
  margin-bottom: var(--space-lg);
  font-size: 17px;
  line-height: 1.65;
}

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

@media (max-width: 768px) {
  .about-media { gap: var(--space-xl); }
  .about-brief p { font-size: var(--font-size-base); line-height: 1.6; }
}

/* ===== SESSION MANAGEMENT ===== */
.session-controls {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.session-controls .button-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .session-controls .button-row {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .session-controls .button-row .btn {
    width: 100%;
  }
  
  .session-controls .session-status {
    width: 100%;
  }
}

.session-controls .form-group {
  margin-bottom: 0;
}

.session-controls .form-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.session-controls input[type="checkbox"] {
  margin: 0;
  transform: scale(1.1);
}

.session-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: var(--radius-md);
  color: var(--mason-green);
  font-weight: 500;
  font-size: var(--font-size-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .session-status {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    gap: var(--space-xs);
  }
  
  .session-status span {
    word-break: break-all;
  }
}

.session-status i {
  color: var(--mason-green);
  flex-shrink: 0;
}

/* ===== CONVERSATION STYLING ===== */
.conversation-turn.context {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
  margin-left: 25%;
  margin-right: var(--space-sm);
  border-radius: 18px 18px 4px 18px;
  text-align: center;
  max-width: 70%;
}

@media (max-width: 768px) {
  .conversation-turn.context {
    margin-left: 10%;
    margin-right: var(--space-xs);
    max-width: 85%;
    font-size: 0.85rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

.conversation-turn.alice {
  background-color: var(--mason-green);
  color: white;
  margin-bottom: var(--space-sm);
  margin-left: 25%;
  margin-right: var(--space-sm);
  border-radius: 18px 18px 4px 18px;
  position: relative;
}

@media (max-width: 768px) {
  .conversation-turn.alice {
    margin-left: 10%;
    margin-right: var(--space-xs);
    max-width: 85%;
    font-size: 0.85rem;
  }
}

.conversation-turn.alice .turn-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.conversation-turn.alice .turn-content {
  color: white;
}

.conversation-turn.alice .turn-bits {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  display: inline-block;
  margin-top: 4px;
}

.conversation-turn.bob {
  background-color: #e5e5ea;
  color: #000;
  margin-bottom: var(--space-sm);
  margin-right: 25%;
  margin-left: var(--space-sm);
  border-radius: 18px 18px 18px 4px;
  position: relative;
}

@media (max-width: 768px) {
  .conversation-turn.bob {
    margin-right: 10%;
    margin-left: var(--space-xs);
    max-width: 85%;
    font-size: 0.85rem;
  }
}

.conversation-turn.bob .turn-role {
  color: #666;
  font-size: 11px;
}

.conversation-turn.bob .turn-content {
  color: #000;
}

.turn-bits {
  font-size: var(--font-size-xs);
  color: #666;
  font-style: italic;
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .turn-bits {
    font-size: 0.65rem;
  }
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  max-width: 70%;
  border-radius: var(--radius-md);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .typing-indicator {
    max-width: 85%;
    padding: var(--space-xs) var(--space-sm);
  }
}

.typing-indicator.alice-typing {
  background-color: rgba(0, 82, 57, 0.1);
  margin-left: 25%;
  margin-right: var(--space-sm);
  border-radius: 18px 18px 4px 18px;
}

@media (max-width: 768px) {
  .typing-indicator.alice-typing {
    margin-left: 10%;
    margin-right: var(--space-xs);
  }
}

.typing-indicator.bob-typing {
  background-color: #e5e5ea;
  margin-right: 25%;
  margin-left: var(--space-sm);
  border-radius: 18px 18px 18px 4px;
}

@media (max-width: 768px) {
  .typing-indicator.bob-typing {
    margin-right: 10%;
    margin-left: var(--space-xs);
  }
}

.typing-indicator span {
  font-size: 11px;
  color: #666;
  margin-right: 8px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: #999;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
  margin: 0;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* ===== CHAT SECTION ===== */
.chat-section {
  padding: var(--space-2xl) 0;
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Path info sections */
.path-info {
  background: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .path-info {
    padding: 6px;
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .path-info code {
    font-size: 0.7rem;
    word-break: break-all;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--space-lg);
  }
}

/* .section-title has been unified */

/* .section-subtitle has been unified */

/* Mobile section header adjustments */
@media (max-width: 768px) {
  /* Unified mobile header style */
  .section-title,
  .intro-section h2,
  .how-it-works-section .section-title,
  .future-features-card .card-title {
    font-size: var(--font-size-3xl);
  }

  .section-subtitle {
    font-size: 17px;
  }
  
  /* Chat section mobile improvements */
  .chat-section {
    padding: var(--space-xl) 0;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .card {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .session-controls {
    margin-top: var(--space-lg);
  }
  
  .button-row {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .button-row .btn {
    width: 100%;
  }
  
  .future-features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Results grid mobile responsiveness */
  .results-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Path results mobile layout */
  .path-result {
    margin-bottom: var(--space-md);
  }
  
  .conversation-log {
    max-height: 400px;
  }
  
  /* Conversation turns mobile adjustments */
  .conversation-turn.alice,
  .conversation-turn.bob {
    margin-left: var(--space-xs);
    margin-right: var(--space-xs);
    max-width: 90%;
  }
  
  /* Form inputs mobile */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* .future-features-card .card-title mobile is now unified */
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

[data-animate="scroll"],
.scroll-animate-ready,
.scroll-animate-visible {
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.scroll-animate-ready {
  opacity: 0;
  transform: translateY(20px);
}

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

@media (max-width: 768px) {
  .card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .card:hover {
    transform: translateY(0); /* Disable hover effect on mobile */
  }
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .card-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-xl);
  margin-right: var(--space-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .card-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
    margin-right: var(--space-sm);
  }
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

@media (max-width: 768px) {
  .card-title {
    font-size: var(--font-size-lg);
  }
}

.card-description {
  color: var(--gray-600);
  margin-top: var(--space-xs);
  font-size: 17px;
}

@media (max-width: 768px) {
  .card-description {
    font-size: 0.85rem;
  }
}

/* ===== FORMS ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

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

.form-group {
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .form-group {
    margin-bottom: var(--space-md);
  }
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
  background-color: var(--white);
}

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

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

@media (max-width: 768px) {
  .form-textarea {
    min-height: 100px;
    max-height: 200px;
  }
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .form-help {
    font-size: 0.75rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  
  .btn i {
    margin-right: var(--space-xs);
  }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mason-green), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--mason-gold);
  color: var(--logo-black);
  border: 1px solid var(--mason-gold);
}

.btn-secondary:hover:not(:disabled) {
  background: #e6b52e;
  border-color: #e6b52e;
}

.btn-success {
  background: linear-gradient(135deg, var(--mason-gold), #e6b52e);
  color: var(--logo-black);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: var(--white);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    width: 100%;
  }
}

.btn i {
  margin-right: var(--space-sm);
}

/* Button loading state */
.btn.loading {
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== RESULTS DISPLAY ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.path-result {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .path-result {
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
}

.path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

@media (max-width: 768px) {
  .path-header {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
  }
}

.path-title {
  font-weight: 600;
  color: var(--gray-800);
  font-size: var(--font-size-base);
}

@media (max-width: 768px) {
  .path-title {
    font-size: 0.9rem;
  }
}

.path-status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .path-status {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

.path-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.path-status.status-example {
  background: rgba(255, 199, 51, 0.15);
  color: #d97706;
  border: 1px solid rgba(255, 199, 51, 0.3);
}

.path-status.disabled {
  background: rgba(156, 163, 175, 0.1);
  color: var(--gray-500);
}

.path-result.path-disabled {
  opacity: 0.6;
  background: var(--gray-100);
}

.path-result.path-disabled .conversation-log {
  background: var(--gray-50);
}

.path-result.path-disabled .conversation-turn {
  opacity: 0.7;
}

.path-result.active-focus {
  border: 2px solid var(--mason-gold);
  box-shadow: 0 4px 12px rgba(255, 199, 51, 0.4);
  background: linear-gradient(to bottom, rgba(255, 199, 51, 0.08), var(--gray-50));
  transition: all 0.3s ease;
}

.conversation-log {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .conversation-log {
    max-height: 350px;
    padding: var(--space-xs);
    margin-top: var(--space-sm);
  }
}

.conversation-turn {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  max-width: 70%;
  word-wrap: break-word;
  word-break: break-word;
  animation: fadeInMessage 0.4s ease-in;
}

@media (max-width: 768px) {
  .conversation-turn {
    max-width: 85%;
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

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

.conversation-turn.user {
  background: rgba(37, 99, 235, 0.1);
  margin-left: var(--space-lg);
}

.conversation-turn.assistant {
  background: var(--gray-100);
  margin-right: var(--space-lg);
}

.turn-role {
  font-weight: 600;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
  .turn-role {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }
}

.turn-content {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .turn-content {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ===== CODE DISPLAY ===== */
.code-block {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  font-size: var(--font-size-sm);
  overflow-x: auto;
  margin: var(--space-md) 0;
  word-wrap: break-word;
  word-break: break-all;
}

@media (max-width: 768px) {
  .code-block {
    padding: var(--space-md);
    font-size: 0.75rem;
    max-width: 100%;
  }
}

/* Code elements inside other containers */
code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  code {
    font-size: 0.7rem;
  }
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-800);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: var(--space-md) 0 0 0;
}

.code-title {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
  font-weight: 600;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.copy-btn:hover {
  color: var(--gray-200);
}

/* ===== FUTURE FEATURES ===== */
.future-features-card {
  margin-top: var(--space-2xl);
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  position: relative;
  overflow: hidden;
}

.future-features-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--mason-green));
}

.future-features-card .card-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
  color: var(--white);
}

/* .future-features-card .card-title is now unified */

.future-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature-item {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--mason-green), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--mason-green);
  margin: 0 0 var(--space-sm) 0;
}

.feature-description {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Responsive design for future features */
@media (max-width: 768px) {
  .future-features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin: 0 auto var(--space-md) auto;
  }
  
  .footer-logos {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .lab-logo-text {
    padding: var(--space-md);
  }
  
  .lab-name {
    font-size: var(--font-size-base);
  }
  
  .dept-name {
    font-size: var(--font-size-sm);
  }
}

/* ===== ABOUT SECTION ===== */
.intro-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--gray-50), var(--white));
}

/* .intro-section h2 is now unified */

.project-details-box {
  max-width: 1000px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.project-details-box p {
  margin-bottom: var(--space-lg);
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  text-align: left;
}

/* Mobile About adjustments: reduce size and padding */
@media (max-width: 768px) {
  .intro-section { 
    min-height: auto; 
    padding: var(--space-xl) var(--space-md);
  }
  /* .intro-section h2 mobile is now unified */
  .project-details-box { 
    padding: var(--space-lg); 
    border-radius: var(--radius-lg);
  }
  .project-details-box p { 
    font-size: var(--font-size-base); 
    line-height: 1.7;
  }
}

.project-details-box p:last-child {
  margin-bottom: 0;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.how-it-works-section .section-header {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

/* .how-it-works-section .section-title is now unified */

/* .how-it-works-section .section-subtitle is now unified */

.how-it-works-section .section-subtitle strong {
  color: var(--gmu-green);
  font-weight: 600;
}

.how-it-works-section .architecture-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.how-it-works-section .diagram-flow .flow-arrow {
  font-size: 2.5rem;
  color: var(--gmu-gold);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.how-it-works-section .technical-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.how-it-works-section .step-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible; /* allow badges to overflow without being clipped */
}

.how-it-works-section .step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.how-it-works-section .step-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.how-it-works-section .step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--gmu-green);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ensure step badges are visibly on top and not clipped/obscured */
.how-it-works-section .step-number {
  position: relative;
  z-index: 2;
  border: 2px solid var(--white);
  font-size: 1.9rem;
  background-color: var(--gmu-green) !important;
  color: #fff !important;
  z-index: 999; /* ensure it's on top of surrounding elements */
}

.how-it-works-section .step-info {
  flex-grow: 1;
}

.how-it-works-section .step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.how-it-works-section .step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.how-it-works-section .step-content {
  margin-top: 6px;
  flex: 1 1 auto;
}

.how-it-works-section .step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gmu-dark-green);
  margin: 0 0 10px 0;
}

.how-it-works-section .step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-it-works-section .tag {
  background-color: #e9ecef;
  color: #555;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.how-it-works-section .step-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.how-it-works-section .step-content p:last-child {
  margin-bottom: 0;
}

.how-it-works-section .step-content strong {
  color: var(--gmu-dark-green);
  font-weight: 600;
}

.how-it-works-section .step-content em {
  font-style: italic;
  color: var(--gmu-green);
}

.how-it-works-section .featured-step {
  background-color: var(--gmu-light-gold);
  border-color: var(--gmu-gold);
}

.how-it-works-section .featured-step .step-number {
  background-color: var(--gmu-gold);
  color: var(--gmu-dark-green);
}

.how-it-works-section .featured-step .step-title {
  color: var(--gmu-dark-green);
}

.how-it-works-section .technical-note {
  font-size: 0.9rem !important;
  font-style: italic;
  color: #666 !important;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Simple version styles */
/* removed simplified hiw-simple styles */

/* Visualizations */
.how-it-works-section .technical-flow,
.how-it-works-section .multipath-visualization,
.how-it-works-section .steganography-demo,
.how-it-works-section .conversation-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}
.how-it-works-section .technical-steps {
  display: grid;
  grid-template-columns: 1fr; /* Always single column for simplicity */
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* Featured step stands out: span two columns on wide screens */
/* Featured step no longer spans columns to keep grid orderly */
.how-it-works-section .flow-item i {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--gmu-green);
}

.how-it-works-section .technical-flow .flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-it-works-section .flow-arrow-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gmu-gold);
  margin: 0 8px;
}

.how-it-works-section .reverse-flow .flow-item i {
  color: var(--gmu-dark-green);
}

.how-it-works-section .multipath-visualization {
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.how-it-works-section .data-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}

.how-it-works-section .data-block i {
  font-size: 2rem;
  color: var(--gmu-dark-green);
}

.how-it-works-section .splitter i {
  font-size: 2.5rem;
  color: var(--gmu-gold);
  transform: rotate(90deg);
}

.how-it-works-section .paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 520px) {
  .how-it-works-section .paths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

.how-it-works-section .path-item {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.how-it-works-section .path-item i {
  color: var(--gmu-green);
}

.how-it-works-section .steganography-demo {
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .how-it-works-section .steganography-demo {
    flex-direction: column; /* keep vertical even on tablet/desktop */
    justify-content: flex-start;
  }
}
  /* How It Works: reduce overall density on mobile */
  /* .how-it-works-section .section-title mobile is now unified */
  /* .how-it-works-section .section-subtitle is now unified with the general mobile subtitle style */
  .how-it-works-section .technical-steps { gap: 16px; }
  .how-it-works-section .step-card { padding: 14px; }
  .how-it-works-section .step-title { font-size: 1.1rem; }
  .how-it-works-section .step-content p { font-size: 0.92rem; line-height: 1.5; margin-bottom: 14px; }
  .how-it-works-section .tag { padding: 3px 8px; font-size: 0.7rem; }
  .how-it-works-section .step-tags { gap: 6px; }
  .how-it-works-section .step-number { width: 40px; height: 40px; font-size: 1.2rem; margin-right: 12px; }

.how-it-works-section .demo-input {
  display: flex;
  align-items: center;
  gap: 20px;
}

.how-it-works-section .binary-data {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  letter-spacing: 1px;
}

.how-it-works-section .llm-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.how-it-works-section .llm-model i {
  font-size: 2.5rem;
  color: var(--gmu-dark-green);
}

.how-it-works-section .demo-output .covertext {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.how-it-works-section .conversation-example {
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  background-color: #e9f5ff;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: hide visual diagrams, keep text only */
@media (max-width: 768px) {
  .how-it-works-section .section-title {
    font-size: var(--font-size-3xl);
  }
  .how-it-works-section .section-subtitle {
    font-size: var(--font-size-base);
  }
  .how-it-works-section .architecture-diagram,
  .how-it-works-section .technical-flow,
  .how-it-works-section .multipath-visualization,
  .how-it-works-section .steganography-demo,
  .how-it-works-section .conversation-example {
    display: none !important;
  }
  .how-it-works-section .step-card {
    padding: 20px;
  }
}

.how-it-works-section .message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 80%;
}

.how-it-works-section .message.sender {
  align-self: flex-start;
}

.how-it-works-section .message.receiver {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.how-it-works-section .message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
}

.how-it-works-section .sender .message-bubble {
  background-color: #007bff;
  color: white;
  border-bottom-left-radius: 4px;
}

.how-it-works-section .receiver .message-bubble {
  background-color: #f0f0f0;
  color: #333;
  border-bottom-right-radius: 4px;
}

.how-it-works-section .hidden-data, 
.how-it-works-section .auto-generated {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  padding-bottom: 5px;
}

.how-it-works-section .hidden-data {
  color: #e85a5a;
  font-family: 'Courier New', Courier, monospace;
}

.how-it-works-section .auto-generated {
  color: #5a9de8;
}

/* ===== FOOTER ===== */
.footer-content {
  background: var(--mason-green);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-patent {
  margin-bottom: var(--space-lg);
}

.footer-link {
  color: var(--mason-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.footer-lab-info {
  margin-bottom: var(--space-lg);
}

.lab-logo-text {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  display: inline-block;
}

.lab-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.dept-name {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* Mobile footer: compact and organized */
@media (max-width: 768px) {
  .footer-content {
    padding: var(--space-lg) var(--space-md); /* reduce from 48px to 24px vertical */
  }
  .footer-logos {
    flex-direction: column; /* stack logos vertically */
    gap: var(--space-sm); /* reduce gap between logos */
    margin-bottom: var(--space-md); /* tighter spacing */
  }
  .footer-logo-img {
    height: 40px; /* smaller logos */
  }
  .footer-patent {
    margin-bottom: var(--space-md); /* reduce spacing */
  }
  .footer-link {
    font-size: var(--font-size-sm); /* smaller link text */
  }
  .footer-lab-info {
    margin-bottom: var(--space-md); /* reduce spacing */
  }
  .lab-logo-text {
    padding: var(--space-md); /* reduce from 24px to 16px */
    font-size: var(--font-size-sm); /* make more compact */
  }
  .lab-name {
    font-size: var(--font-size-base); /* smaller lab name */
    margin-bottom: var(--space-xs);
  }
  .dept-name {
    font-size: var(--font-size-xs); /* smaller department name */
  }
  .footer-copyright {
    font-size: var(--font-size-xs); /* smaller copyright */
  }
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none; /* allow clicks to pass through except on notification */
}

@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }
}

.notification {
  pointer-events: auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 12px;
  min-width: 280px;
  max-width: 420px;
  border-left: 4px solid var(--primary-color);
  color: var(--gray-800);
  overflow: hidden;
}

@media (max-width: 768px) {
  .notification {
    min-width: 0;
    max-width: 100%;
    font-size: 0.9rem;
  }
}

.notification.success { border-left-color: #16a34a; }
.notification.error { border-left-color: #dc2626; }
.notification.warning { border-left-color: #f59e0b; }
.notification.info { border-left-color: var(--primary-color); }

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.notification-message {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.notification-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 4px;
}

.notification-close i { font-size: 0.9rem; }

/* Features Section */

/* Scoped spacing adjustments for Features (Future Work) section */
.features-section {
  /* Add balanced vertical padding; modest top, a bit more bottom to separate from footer */
  padding: var(--space-xl) 0 var(--space-2xl);
}

/* Tighten space between section header and the feature card grid */
.features-section .section-header {
  margin-bottom: var(--space-xl); /* was var(--space-2xl) globally */
}

/* Reduce the large top margin originally on the future-features-card */
.features-section .future-features-card {
  margin-top: var(--space-lg); /* override previous var(--space-2xl) */
}

@media (max-width: 768px) {
  .features-section {
    padding: var(--space-lg) 0 var(--space-2xl); /* slightly tighter on mobile top */
  }
  .features-section .section-header {
    margin-bottom: var(--space-lg);
  }
  .features-section .future-features-card {
    margin-top: var(--space-md);
  }
}
