/* ==========================================================================
   COMPUTER ENGINEERING IUG — UNIFIED MODERN DESIGN SYSTEM (VANILLA CSS)
   Palette: Deep Slate Blue (#1B2A4A), Electric Amber (#F59E0B), Cyber Teal (#0EA5E9)
   Mobile-First Architecture with Fluid Clamping and Zero Horizontal Overflow
   ========================================================================== */

:root {
  /* Core High-Tech Engineering Brand Colors */
  --primary-slate: #0C1322;
  --primary-slate-dark: #050811;
  --primary-slate-light: #162238;
  --accent-amber: #FFB800;
  --accent-amber-hover: #E09E00;
  --accent-amber-glow: rgba(255, 184, 0, 0.35);
  --accent-teal: #00D2FF;
  --accent-ruby: #FF1E56;
  --accent-emerald: #00FF9D;
  --accent-purple: #9D4EDD;
  --accent-pink: #FF2E93;

  /* Light Mode Surface & Typography */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-hover: #E2E8F0;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --text-inverse: #FFFFFF;

  --border-default: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-strong: #CBD5E1;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --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.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-arabic: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (High-Tech Cyber Obsidian Atmosphere) */
body.dark-mode {
  --bg-body: #050811;
  --bg-surface: #0C1322;
  --bg-surface-glass: rgba(12, 19, 34, 0.88);
  --bg-surface-subtle: #111A2E;
  --bg-surface-hover: #1A2742;

  --text-main: #F0F6FC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-inverse: #050811;

  --border-default: rgba(0, 210, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(0, 210, 255, 0.28);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 210, 255, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 210, 255, 0.1);
}

/* 16 Theme Color Accent Overrides */
body.theme-blue { --accent-amber: #3b82f6; --accent-amber-glow: rgba(59, 130, 246, 0.25); }
body.theme-green { --accent-amber: #10b981; --accent-amber-glow: rgba(16, 185, 129, 0.25); }
body.theme-purple { --accent-amber: #8b5cf6; --accent-amber-glow: rgba(139, 92, 246, 0.25); }
body.theme-orange { --accent-amber: #f97316; --accent-amber-glow: rgba(249, 115, 22, 0.25); }
body.theme-red { --accent-amber: #ef4444; --accent-amber-glow: rgba(239, 68, 68, 0.25); }
body.theme-pink { --accent-amber: #ec4899; --accent-amber-glow: rgba(236, 72, 153, 0.25); }
body.theme-yellow { --accent-amber: #eab308; --accent-amber-glow: rgba(234, 179, 8, 0.25); }
body.theme-cyan { --accent-amber: #06b6d4; --accent-amber-glow: rgba(6, 182, 212, 0.25); }
body.theme-lime { --accent-amber: #84cc16; --accent-amber-glow: rgba(132, 204, 22, 0.25); }
body.theme-teal { --accent-amber: #14b8a6; --accent-amber-glow: rgba(20, 184, 166, 0.25); }
body.theme-magenta { --accent-amber: #d946ef; --accent-amber-glow: rgba(217, 70, 239, 0.25); }
body.theme-maroon { --accent-amber: #9f1239; --accent-amber-glow: rgba(159, 18, 57, 0.25); }
body.theme-navy { --accent-amber: #38bdf8; --accent-amber-glow: rgba(56, 189, 248, 0.25); }
body.theme-gray { --accent-amber: #94a3b8; --accent-amber-glow: rgba(148, 163, 184, 0.25); }
body.theme-black { --accent-amber: #f59e0b; --accent-amber-glow: rgba(245, 158, 11, 0.25); }

/* Global Reset & Strict Mobile Constraints */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Fluid Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.animate-fade-in {
  animation: fadeIn 0.2s ease forwards;
}

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

/* ==========================================================================
   UNIFIED NAVBAR & HEADER (GLASSMORPHIC)
   ========================================================================== */
.unified-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-default);
  transition: all var(--transition-normal);
  width: 100%;
}

.unified-navbar.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-strong);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
  height: clamp(58px, 8vw, 68px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.navbar-left-group {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 0.75rem);
  flex-shrink: 0;
}

.sidebar-trigger-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-trigger-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 0.65rem);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-link svg {
  width: clamp(28px, 6vw, 36px);
  height: clamp(28px, 6vw, 36px);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  font-size: clamp(0.65rem, 1.8vw, 0.725rem);
  font-weight: 700;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-amber);
}

/* Global Search Center */
.navbar-search-area {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 440px;
  margin: 0 clamp(0.3rem, 1vw, 0.6rem);
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon-inside {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-teal);
  font-size: 0.9rem;
  pointer-events: none;
}

.global-search-input {
  width: 100%;
  padding: 0.55rem 2.5rem 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-default);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  min-height: 42px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.global-search-input:focus {
  border-color: var(--accent-amber);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-amber-glow), 0 0 15px rgba(255, 184, 0, 0.2);
}

/* Live Search Autocomplete Dropdown (Wide & Responsive) */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max(100%, 380px);
  min-width: 320px;
  max-width: min(92vw, 500px);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 210, 255, 0.12);
  max-height: 460px;
  overflow-y: auto;
  z-index: 1200;
  padding: 0.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.search-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.search-dropdown-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  transition: all var(--transition-fast);
}

.search-dropdown-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-dropdown-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  gap: 0.6rem;
}

.search-dd-code {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--accent-amber);
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.search-dd-cat {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
}

.search-dd-lab {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.25);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
}

.search-dd-title {
  display: block;
  font-size: 0.885rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.search-dd-meta {
  display: block;
  font-size: 0.725rem;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}

.search-dd-arrow {
  font-size: 0.75rem;
  color: var(--accent-amber);
  transition: transform var(--transition-fast);
}

.search-dropdown-item:hover .search-dd-arrow {
  transform: translateX(-4px);
  color: var(--accent-teal);
}

.search-dd-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-subtle);
}

.search-dd-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.search-dd-pill:hover {
  background: var(--accent-teal);
  color: #050811;
  border-color: var(--accent-teal);
}

.search-dropdown-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.65rem;
  background: linear-gradient(135deg, var(--primary-slate-light) 0%, var(--primary-slate) 100%);
  border: 1px solid var(--border-default);
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.search-dropdown-all-btn:hover {
  background: var(--accent-amber);
  color: #050811;
  border-color: var(--accent-amber);
}

.search-dropdown-empty {
  padding: 1.5rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Action Controls & Header Tools */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.45rem);
  flex-shrink: 0;
}

.navbar-actions > * {
  flex-shrink: 0;
}

.action-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.action-icon-pill:hover {
  border-color: var(--accent-amber);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.action-icon-pill .count-tag {
  background: var(--accent-amber);
  color: #0F172A;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.mobile-search-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-search-btn {
    display: inline-flex !important;
  }
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.action-btn.tg-btn {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.action-btn.tg-btn:hover {
  background: #0284C7;
  color: #FFFFFF;
}

.action-btn.bot-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn.bot-btn:hover {
  background: #059669;
  color: #FFFFFF;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-default);
  color: var(--accent-amber);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  border-color: var(--accent-amber);
  transform: rotate(20deg) scale(1.08);
  box-shadow: 0 0 16px var(--accent-amber-glow);
}

/* Touch-Scrollable Desktop & Mobile Sub Navigation */
.desktop-subnav {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-default);
  width: 100%;
  display: block;
}

.subnav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.45rem clamp(0.75rem, 3vw, 1.25rem);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.subnav-container::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.subnav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.subnav-link.active {
  background: var(--bg-surface-subtle);
  border-bottom: 2px solid var(--accent-amber);
  color: var(--accent-amber);
}

.subnav-link.highlight-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.subnav-link.highlight-btn:hover {
  background: var(--accent-amber);
  color: #0F172A;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  padding: 10px;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   GLOBAL COLLAPSIBLE SIDEBAR
   ========================================================================== */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
}

.collapsible-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(300px, 86vw, 360px);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  z-index: 2010;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.collapsible-sidebar.sidebar-open {
  transform: translateX(0);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1rem;
  min-height: 100%;
  box-sizing: border-box;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
}

.sidebar-close-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  touch-action: manipulation;
}

/* PWA Card at top of sidebar */
.sb-pwa-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.18));
  border: 1.5px solid #10B981;
  color: var(--text-main);
  cursor: pointer;
  margin-bottom: 0.85rem;
  touch-action: manipulation;
  transition: transform var(--transition-fast);
}

.sb-pwa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.sb-pwa-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #10B981;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sb-pwa-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-pwa-text strong {
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.2;
}

.sb-pwa-text span {
  font-size: 0.675rem;
  color: var(--text-subtle);
}

.sidebar-section-label {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-subtle);
  margin-bottom: 0.4rem;
  display: block;
}

.sidebar-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 38px;
  touch-action: manipulation;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: var(--bg-surface-subtle);
  color: var(--accent-amber);
}

.sidebar-nav-item.active {
  background: var(--primary-slate);
  color: #FFFFFF;
}

.sidebar-nav-item.highlight-item {
  border: 1px dashed var(--accent-amber);
  color: var(--accent-amber);
}

/* Sidebar Theme Swatches Section */
.sidebar-theme-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.sb-theme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sb-theme-reset {
  background: transparent;
  border: none;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-teal);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  min-height: 32px;
  touch-action: manipulation;
}

.sb-swatches-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
  justify-items: center;
}

.sb-swatch-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: 2px solid;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: transform var(--transition-fast);
}

.sb-swatch-btn:hover {
  transform: scale(1.2);
}

.sb-swatch-btn.selected {
  box-shadow: 0 0 0 3px var(--accent-amber-glow);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.sb-channels-grid,
.sb-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.sb-channel-btn,
.sb-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 38px;
  box-sizing: border-box;
  touch-action: manipulation;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
}

.sb-channel-btn:hover,
.sb-contact-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.sb-channel-btn.tg {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-teal);
  border-color: rgba(14, 165, 233, 0.3);
}

.sb-channel-btn.bot {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.sb-contact-btn.wa {
  color: #25D366;
}

.sb-contact-btn.email {
  color: var(--accent-amber);
}

/* ==========================================================================
   HOMEPAGE HERO & GRID STRUCTURES
   ========================================================================== */
.hero-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
}

.hero-title-main {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-sub-p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

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

.hero-actions-row a {
  min-height: 44px;
  touch-action: manipulation;
}

.hero-chip-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-chip-svg-wrap svg {
  max-width: 100%;
  height: auto;
}

/* Quick Stats Bar */
.stats-section {
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-default);
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  width: 100%;
}

.stats-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  width: 100%;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  display: block;
}

.stat-label {
  display: block;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Academic Years Grid */
.academic-years-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  width: 100%;
}

/* Home Page Academic Year Cards (High Contrast Hover Glow) */
a.subject-card,
.year-grid-card {
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  box-sizing: border-box;
}

a.subject-card:hover,
.year-grid-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--accent-amber) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 0 24px var(--accent-amber-glow) !important;
}

/* GPA Highlight Banner on Index */
.gpa-index-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--primary-slate) 0%, #0F172A 100%);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   UNIVERSAL FOOTER
   ========================================================================== */
.engineering-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
  width: 100%;
}

.footer-brand-title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--accent-amber);
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  min-height: 48px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  text-decoration: none;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.contact-link-item:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

.contact-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-teal);
}

.email-action-item:hover .contact-action-badge {
  color: var(--accent-amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

/* ==========================================================================
   MODALS (FAVORITES, CHECKLIST, POMODORO)
   ========================================================================== */
.ce-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.25rem);
}

.ce-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ce-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--border-subtle);
}

.ce-modal-title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ce-modal-body {
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Floating Pomodoro Widget */
.floating-pomodoro-pill {
  position: fixed;
  bottom: clamp(16px, 3vw, 24px);
  left: clamp(16px, 3vw, 24px);
  z-index: 999;
  background: var(--primary-slate);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--transition-fast);
}

.floating-pomodoro-pill:hover {
  transform: translateY(-3px) scale(1.03);
}

.pomo-time-display {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-amber);
}

/* PWA Floating Install Toast Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  width: calc(100% - 40px);
  background: var(--bg-surface);
  border: 1.5px solid var(--accent-amber);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.pwa-banner-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pwa-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pwa-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.pwa-banner-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pwa-banner-install-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--accent-amber);
  color: #0F172A;
  font-weight: 800;
  font-size: 0.825rem;
  border: none;
  cursor: pointer;
  min-height: 38px;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.pwa-banner-install-btn:hover {
  background: #D97706;
}

.pwa-banner-close-btn {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-subtle);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 38px;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.pwa-banner-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* ==========================================================================
   RESPONSIVENESS & MOBILE-FIRST BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .academic-years-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions-row {
    justify-content: center;
  }

  .hero-sub-p {
    margin-left: auto;
    margin-right: auto;
  }

  .gpa-index-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-search-area {
    display: none;
  }

  .navbar-container {
    padding: 0 0.5rem;
    gap: 0.35rem;
    justify-content: space-between;
  }

  .navbar-left-group {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .sidebar-trigger-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 1rem;
  }

  .brand-logo-link svg {
    width: 28px;
    height: 28px;
  }

  .brand-title {
    font-size: 0.775rem;
    letter-spacing: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-subnav {
    display: block !important;
  }

  .subnav-container {
    justify-content: flex-start;
  }

  /* Single clean hamburger on the left - hide any duplicate right toggles */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* Scrollable, Compact Navbar Actions for Mobile with Zero Distortion */
  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px;
    max-width: 100%;
    flex-shrink: 1;
  }

  .navbar-actions::-webkit-scrollbar {
    display: none;
  }

  .action-icon-pill,
  .action-btn,
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
  }

  .action-icon-pill span:not(.count-tag),
  .action-btn span {
    display: none;
  }

  .action-icon-pill i,
  .action-btn i,
  .theme-toggle-btn i {
    font-size: 0.95rem;
    margin: 0;
  }

  /* Absolute badge for favorites count on mobile to prevent stretching width */
  .action-icon-pill .fav-count-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--accent-amber);
    color: #0F172A;
    font-size: 0.625rem;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--bg-surface);
    z-index: 5;
  }

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

@media (max-width: 640px) {
  .academic-years-grid {
    grid-template-columns: 1fr !important;
  }

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

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  a.subject-card,
  .sem-pill,
  .action-icon-pill,
  .resource-chip-link,
  .gpa-tab-btn,
  .filter-chip,
  .toggle-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  .brand-sub {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.72rem;
    max-width: 90px;
  }

  .navbar-container {
    padding: 0 0.35rem;
  }
}

@media (max-width: 360px) {
  .brand-title {
    display: none;
  }

  .stats-grid-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ENHANCED PWA INSTALLATION MODAL & TOASTS
   ========================================================================== */
.pwa-install-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.pwa-install-modal-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pwa-modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pwa-modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--accent-amber);
}

.pwa-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.pwa-app-badge-box {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 0.25rem;
}

.pwa-app-icon-img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-amber);
  position: relative;
  z-index: 2;
}

.pwa-app-badge-glow {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(14, 165, 233, 0.2) 60%, transparent 80%);
  filter: blur(10px);
  z-index: 1;
}

.pwa-modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.pwa-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.pwa-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.pwa-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.pwa-env-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.pwa-env-badge.inapp-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
}

.pwa-env-badge.ios-badge {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #0EA5E9;
}

.pwa-env-badge.android-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.pwa-env-badge.desktop-badge {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #8B5CF6;
}

.pwa-modal-intro {
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.pwa-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pwa-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.pwa-step-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

.pwa-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-amber);
  color: #0F172A;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pwa-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pwa-step-text strong {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 800;
}

.pwa-step-text span {
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.45;
}

.pwa-modal-actions-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
}

.pwa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.pwa-btn-chrome {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #1E293B;
  color: #38BDF8;
  border: 1px solid #38BDF8;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pwa-btn-chrome:hover {
  background: #38BDF8;
  color: #0F172A;
}

.pwa-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-default);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pwa-btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

/* Global feedback toast */
.global-feedback-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #10B981;
  border: 1.5px solid #10B981;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000000;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   ULTIMATE REDESIGN: COMPUTER ENGINEERING IUG DESIGN TOKENS & MOTION SYSTEM
   ========================================================================== */

/* Motion & Reveal System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-scale-in {
  transform: scale(0.94) translateY(20px);
}

.reveal-on-scroll.reveal-left {
  transform: translateX(40px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(-40px);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Floating Pill Navbar Modernization */
.unified-navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.unified-navbar.is-scrolled {
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.08);
}

/* Glowing Gradient Pill CTA */
.nav-cta-glow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  color: #0F172A !important;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  animation: shineLoop 4s infinite ease-in-out;
}

@keyframes shineLoop {
  0% { transform: rotate(30deg) translateX(-100%); }
  25%, 100% { transform: rotate(30deg) translateX(100%); }
}

.nav-cta-glow-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #000000 !important;
}

/* ==========================================================================
   HERO SECTION — ULTIMATE HIGH-TECH ENGINEERING CENTERPIECE
   ========================================================================== */
.hero-epic-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, #0B1120 0%, #0F172A 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  color: #F8FAFC;
}

/* Technical Circuit Grid Overlay */
.hero-grid-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  pointer-events: none;
}

.hero-epic-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-epic-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Hero Badge */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-amber);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(245, 158, 11, 0.15);
  margin-bottom: 1.5rem;
}

.hero-live-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 20px #10B981;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Hero Typography */
.hero-epic-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.hero-gradient-text-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-gradient-text-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-epic-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .hero-epic-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero CTA Row */
.hero-epic-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .hero-epic-cta-row {
    justify-content: center;
  }
}

.hero-primary-glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-weight: 900;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
}

.hero-primary-glow-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
  color: #000000;
}

.hero-secondary-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  background: rgba(30, 41, 59, 0.75);
  color: #F8FAFC;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
}

.hero-secondary-glass-btn:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* Quick Metrics Row */
.hero-quick-metrics-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .hero-quick-metrics-row {
    justify-content: center;
  }
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: #94A3B8;
  margin-top: 0.2rem;
}

/* Hero Centerpiece Visual (SVG Architecture Core) */
.hero-centerpiece-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-cpu-svg-container {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  animation: floatHeroCore 6s ease-in-out infinite;
}

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

/* SVG Animations */
.svg-bus-flow {
  stroke-dasharray: 8 12;
  animation: busSignalFlow 2s linear infinite;
}

.svg-bus-flow-reverse {
  stroke-dasharray: 6 10;
  animation: busSignalFlowReverse 1.8s linear infinite;
}

@keyframes busSignalFlow {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

@keyframes busSignalFlowReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 40; }
}

.svg-orbital-spin {
  transform-origin: 250px 250px;
  animation: orbitalSpin 25s linear infinite;
}

.svg-orbital-spin-reverse {
  transform-origin: 250px 250px;
  animation: orbitalSpinReverse 35s linear infinite;
}

@keyframes orbitalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitalSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.svg-core-pulse {
  animation: corePulseGlow 3s ease-in-out infinite alternate;
}

@keyframes corePulseGlow {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.06); opacity: 1; filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8)); }
}

/* Floating HUD Chips */
.floating-hud-badge {
  position: absolute;
  padding: 0.5rem 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #F8FAFC;
  font-size: 0.775rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.hud-top-left {
  top: 8%;
  left: -5%;
  border-color: rgba(14, 165, 233, 0.4);
  animation: hudFloatA 5s ease-in-out infinite;
}

.hud-bottom-right {
  bottom: 8%;
  right: -5%;
  border-color: rgba(245, 158, 11, 0.4);
  animation: hudFloatB 5.5s ease-in-out infinite;
}

.hud-bottom-left {
  bottom: 12%;
  left: 0%;
  border-color: rgba(16, 185, 129, 0.4);
  animation: hudFloatC 6s ease-in-out infinite;
}

@keyframes hudFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hudFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes hudFloatC {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 576px) {
  .floating-hud-badge {
    display: none;
  }
}

/* ==========================================================================
   ENGINEERING DOMAINS & TRACKS SHOWCASE
   ========================================================================== */
.engineering-domains-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-main-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.section-lead-p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.engineering-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.domain-interactive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.domain-interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #0EA5E9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.domain-interactive-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, #0EA5E9);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.15), 0 0 20px rgba(14, 165, 233, 0.1);
}

.domain-interactive-card:hover::before {
  opacity: 1;
}

.domain-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--icon-bg, rgba(14, 165, 233, 0.12));
  color: var(--card-accent, #0EA5E9);
}

.domain-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.domain-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.domain-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.domain-chip-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-subtle);
}

/* ==========================================================================
   ACADEMIC TOOLS SUITE SHOWCASE
   ========================================================================== */
.academic-tools-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--bg-body);
}

.tools-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
}

.tool-suite-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.tool-suite-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12), 0 0 15px rgba(245, 158, 11, 0.1);
}

.tool-suite-card:hover .tool-card-arrow {
  transform: translateX(-4px);
  color: var(--accent-amber);
}

.tool-card-arrow {
  font-size: 0.85rem;
  color: var(--text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   COMMUNITY & STUDENT HUB (MATCHING REFERENCE VIDEO STYLE)
   ========================================================================== */
.community-hub-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-default);
}

.community-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.community-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--card-hover-border, var(--accent-teal));
}

.comm-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.comm-tg-icon { background: rgba(14, 165, 233, 0.15); color: #0EA5E9; }
.comm-bot-icon { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.comm-wa-icon { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.comm-pwa-icon { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON (AS SEEN IN REFERENCE VIDEO)
   ========================================================================== */
.floating-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7) translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.floating-back-to-top:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.65);
  color: #000000;
}


/* ==========================================================================
   NAVBAR GLOWING RUBY CTA (MATCHING REFERENCE DESIGN)
   ========================================================================== */
.nav-cta-ruby-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #FF1E56 0%, #D90429 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.825rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 18px rgba(255, 30, 86, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta-ruby-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: rubyBtnShine 3.5s infinite;
}

@keyframes rubyBtnShine {
  0% { left: -60%; }
  35%, 100% { left: 160%; }
}

.nav-cta-ruby-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 26px rgba(255, 30, 86, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   CYBERNETIC SILICON HEART & BRANCHING CIRCUIT TREE CENTERPIECE
   ========================================================================== */
.hero-circuit-tree-container {
  width: 100%;
  max-width: 680px;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(255, 30, 86, 0.18));
  animation: floatCyberHeart 6.5s ease-in-out infinite;
}

@keyframes floatCyberHeart {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.4deg); }
}

.svg-laser-pulse {
  animation: laserPulseFlow 2.4s ease-in-out infinite alternate;
}

@keyframes laserPulseFlow {
  0% { opacity: 0.65; filter: drop-shadow(0 0 4px #00D2FF); }
  100% { opacity: 1; filter: drop-shadow(0 0 14px #00D2FF) drop-shadow(0 0 22px #00D2FF); }
}

.svg-node-spark {
  animation: nodeSparkle 1.8s ease-in-out infinite alternate;
}

@keyframes nodeSparkle {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 12px #FFB800); }
}

@media (max-width: 1140px) {
  .pwa-navbar-btn span,
  .action-icon-pill span:not(.count-tag),
  .action-btn span {
    display: none;
  }
  .action-icon-pill, .action-btn {
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .navbar-search-area {
    display: none;
  }
  .mobile-search-btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   FUTURE ENGINEER & AI SHOWCASE SECTION (MATCHING REFERENCE DESIGN)
   ========================================================================== */
.engineer-ai-showcase-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.engineer-ai-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 992px) {
  .engineer-ai-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.engineer-showcase-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.18);
  background: #050811;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.engineer-showcase-visual-frame:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 184, 0, 0.25);
}

.engineer-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.6s ease;
}

.engineer-showcase-visual-frame:hover .engineer-showcase-img {
  transform: scale(1.03);
}

.showcase-stat-pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: 2rem 0;
}

.showcase-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.showcase-stat-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

.showcase-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  line-height: 1.1;
  display: block;
  margin-bottom: 0.25rem;
}

.showcase-stat-lbl {
  font-size: clamp(0.725rem, 1.5vw, 0.825rem);
  font-weight: 700;
  color: var(--text-muted);
}

/* Showcase Gallery Interactive Tabs */
.showcase-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .showcase-tabs-nav {
    justify-content: center;
  }
}

.showcase-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.showcase-tab-btn:hover {
  border-color: var(--accent-teal);
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.showcase-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18) 0%, rgba(255, 184, 0, 0.18) 100%);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

#showcaseMainImg {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
