/* ================================================
   STYLE.CSS — Component-level styles
   Aaron England Portfolio — Visual Refresh
   ================================================ */

/* ------------------------------------------------
   FULL-BLEED SECTIONS
   ------------------------------------------------ */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ------------------------------------------------
   LOADER
   ------------------------------------------------ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244, 246, 249, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-border, #e5e7eb);
  border-top-color: var(--color-text-muted, #6b7280);
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------
   NAVBAR
   ------------------------------------------------ */
.navbar {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* Brand */
.navbar .navbar-brand,
.navbar .navbar-brand.btn-link {
  color: #1a1a2e !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}
.navbar .navbar-brand:hover {
  opacity: 0.7;
}

/* Nav links */
.navbar .nav-link,
.navbar .nav-link.btn-link {
  color: #4b5563 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm, 8px);
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.btn-link:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06);
}

/* Toggler */
.navbar-toggler {
  border: 1.5px solid #d1d5db !important;
  border-radius: var(--radius-sm, 8px) !important;
  padding: 0.35rem 0.6rem !important;
  outline: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.navbar-toggler:hover {
  border-color: #9ca3af !important;
  background: rgba(0, 0, 0, 0.03);
}
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
  border-color: #2563eb !important;
}
.navbar-toggler-icon {
  filter: brightness(0) opacity(0.6);
}

/* ------------------------------------------------
   SECTIONS
   ------------------------------------------------ */
.section-card {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.4);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  padding: 2.5rem 0;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-header h2,
.section-header h4 {
  margin-bottom: 0.375rem;
}

.section-header .section-subtitle {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.9375rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Inner cards (Home/Away, Player Pool, etc.) */
.inner-card {
  background: var(--color-surface, #ffffff);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inner-card:hover {
  border-color: var(--color-border-hover, #d1d5db);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inner-card h6 {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent, #2563eb);
  margin-bottom: 1rem;
}

/* ------------------------------------------------
   SITE STACK (MARQUEE)
   ------------------------------------------------ */
#Site-Spect.section-card {
  padding: 0.75rem 0;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#Contact-Me.section-card {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#NBA-Mock-Draft .table-responsive {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
}

/* ------------------------------------------------
   ABOUT ME — RAINIER BACKGROUND
   ------------------------------------------------ */
.about-rainier {
  position: relative;
  overflow: hidden;
}

.about-rainier-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.about-rainier-img img {
  width: 100%;
  height: auto;
  opacity: 0.22;
}

/* ------------------------------------------------
   SYSTEMS — CIRCUIT PATTERN BACKGROUND
   ------------------------------------------------ */
.systems-circuit {
  position: relative;
  overflow: hidden;
}

.systems-circuit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/circuit-pattern.svg") repeat;
  background-size: 200px 200px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  z-index: 0;
  pointer-events: none;
}

.systems-circuit > * {
  position: relative;
  z-index: 1;
}

/* --- Music Banff background --- */
.music-banff {
  position: relative;
  overflow: hidden;
}

.music-banff-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.music-banff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.music-banff > *:not(.music-banff-img) {
  position: relative;
  z-index: 1;
}

/* --- Simulation Models basketball court background --- */
.sim-court {
  position: relative;
  overflow: hidden;
}

.sim-court-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.sim-court-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.sim-court > *:not(.sim-court-img) {
  position: relative;
  z-index: 1;
}

/* --- Mock Draft NYC background --- */
.mock-draft-nyc {
  position: relative;
  overflow: hidden;
}

.mock-draft-nyc-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.mock-draft-nyc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.mock-draft-nyc > *:not(.mock-draft-nyc-img) {
  position: relative;
  z-index: 1;
}

/* --- Chatbot AI background --- */
.chatbot-ai {
  position: relative;
  overflow: hidden;
}

.chatbot-ai-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  left: 0;
  right: 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.chatbot-ai-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
}

.chatbot-ai > *:not(.chatbot-ai-img) {
  position: relative;
  z-index: 1;
}

.site-stack-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.site-stack-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: siteStackScroll 60s linear infinite;
  will-change: transform;
}

.site-stack-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-stack-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-md, 12px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-stack-item:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.site-stack-marquee:hover .site-stack-track {
  animation-play-state: paused;
}

@keyframes siteStackScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--stack-group-width))); }
}

@media (prefers-reduced-motion: reduce) {
  .site-stack-track {
    animation: none !important;
    transform: none !important;
  }
}

/* ------------------------------------------------
   FLOWCHART (Systems section)
   ------------------------------------------------ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flow-stage-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

@media (max-width: 575.98px) {
  .flow-stage-btn {
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 45% !important;
    padding: 0.75rem 0.5rem !important;
  }
}

/* ------------------------------------------------
   CHAT
   ------------------------------------------------ */
.chat-window {
  background: var(--color-bg, #f4f6f9);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  height: 275px;
  overflow-y: auto;
  padding: 1rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  white-space: pre-wrap;
  font-size: 0.9375rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble-user {
  background: var(--color-accent, #2563eb);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-assistant {
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #1a1a2e);
  border: 1px solid var(--color-border, #e5e7eb);
  border-bottom-left-radius: 4px;
}

.chat-action-btn {
  display: inline-block;
  margin: 0.4rem 0.25rem 0.15rem 0;
  padding: 0.4rem 0.85rem;
  background: var(--color-accent, #2563eb);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.chat-action-btn:hover {
  background: var(--color-accent-hover, #1d4ed8);
  transform: scale(1.03);
}
.chat-action-btn:active {
  transform: scale(0.97);
}

.chat-voice-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  vertical-align: middle;
}

.chat-voice-name {
  font-weight: 700;
  color: var(--color-accent, #2563eb);
  font-size: 0.8125rem;
}

/* Chat input group */
.chat-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chat-input-group textarea {
  flex: 1;
  resize: none;
}

.chat-input-group .btn-send {
  background: var(--color-accent, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.chat-input-group .btn-send:hover:not(:disabled) {
  background: var(--color-accent-hover, #1d4ed8);
}
.chat-input-group .btn-send:active:not(:disabled) {
  transform: scale(0.97);
}
.chat-input-group .btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Voice selector */
.voice-selector .form-check {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm, 8px);
  transition: background 0.15s ease;
  cursor: pointer;
}
.voice-selector .form-check:hover {
  background: rgba(37, 99, 235, 0.04);
}

.voice-selector .form-check-input:checked {
  background-color: var(--color-accent, #2563eb) !important;
  border-color: var(--color-accent, #2563eb) !important;
}

/* ------------------------------------------------
   FLOATING CHAT WIDGET
   ------------------------------------------------ */
.chat-widget-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--color-accent, #2563eb);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
}
.chat-widget-fab:hover,
.chat-widget-fab:active {
  background: var(--color-accent-hover, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.chat-widget-panel {
  position: fixed;
  bottom: 76px;
  left: 24px;
  width: 360px;
  max-height: 480px;
  background: var(--color-surface, #ffffff);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.chat-widget-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

/* Resize handles */
.chat-resize-top {
  position: absolute;
  top: -4px;
  left: 12px;
  right: 12px;
  height: 8px;
  cursor: n-resize;
  z-index: 10;
}
.chat-resize-right {
  position: absolute;
  top: 12px;
  right: -4px;
  bottom: 12px;
  width: 8px;
  cursor: e-resize;
  z-index: 10;
}
.chat-resize-corner {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  cursor: ne-resize;
  z-index: 11;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-accent, #2563eb);
  color: #fff;
}

.chat-widget-title {
  font-weight: 700;
  font-size: 1rem;
}

.chat-widget-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.chat-widget-close:hover {
  opacity: 1;
}

.chat-widget-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  background: var(--color-bg, #f4f6f9);
  min-height: 0;
}

.chat-widget-input-group {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.chat-widget-input-group textarea {
  flex: 1;
  resize: none;
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .chat-widget-panel {
    width: calc(100vw - 2rem) !important;
    height: 60vh !important;
    max-height: 60vh !important;
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }
  .chat-resize-top,
  .chat-resize-right,
  .chat-resize-corner {
    display: none;
  }
}

/* ------------------------------------------------
   MUSIC
   ------------------------------------------------ */
.music-artwork-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

.music-artwork-wrap img {
  border-radius: var(--radius-md, 12px);
  transition: transform 0.4s ease;
}

.music-artwork-wrap:hover img {
  transform: scale(1.02);
}

.music-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: rgba(37, 99, 235, 0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
  animation: musicPulse 1.5s infinite;
}
.music-play-btn:hover {
  transform: scale(1.08);
  background: rgba(37, 99, 235, 0.95);
}

.music-play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

@keyframes musicPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* ------------------------------------------------
   SIMULATION BUTTONS (NFL / NBA / Optimize)
   ------------------------------------------------ */
.sim-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--color-accent, #2563eb);
  border-radius: 999px;
  background: transparent;
  color: var(--color-accent, #2563eb);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.sim-button:hover:not(:disabled) {
  background: var(--color-accent, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.sim-button:active:not(:disabled) {
  transform: scale(0.97);
}

.sim-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sim-button .sim-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ------------------------------------------------
   TABLES
   ------------------------------------------------ */
.table {
  font-size: 0.875rem;
}

.table thead th {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #6b7280);
  border-bottom: 2px solid var(--color-border, #e5e7eb);
  padding: 0.65rem 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(37, 99, 235, 0.02);
}

.table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* ------------------------------------------------
   PREDICTION RESULTS
   ------------------------------------------------ */
.prediction-result {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(244, 246, 249, 1) 100%);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
}

/* ------------------------------------------------
   BACK TO TOP
   ------------------------------------------------ */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: bold;
  background: var(--color-accent, #2563eb);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#back-to-top:hover,
#back-to-top:active {
  background: var(--color-accent-hover, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.site-footer {
  background: rgba(240, 241, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  padding: 1.5rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.8125rem;
}

.site-footer a {
  color: var(--color-accent, #2563eb);
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--color-accent-hover, #1d4ed8);
}

/* ------------------------------------------------
   ICON TILES (contact, tech stack)
   ------------------------------------------------ */
.icon-tile {
  height: 60px;
  width: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.icon-tile:hover {
  transform: scale(1.06);
}

@media (max-width: 420px) {
  .icon-tile {
    height: 48px;
    width: 96px;
  }
}

/* ------------------------------------------------
   MODEL TILES
   ------------------------------------------------ */
.model-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.75rem 1.25rem;
  background: var(--color-surface, #ffffff);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-align: center;
  font-family: inherit;
}

.model-tile:hover {
  border-color: var(--color-accent, #2563eb);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.model-tile-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent, #2563eb);
  background: rgba(37, 99, 235, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.model-tile-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.model-tile-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.model-tile-icons .model-tile-icon {
  width: 36px;
  height: 36px;
}

.model-tile-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text, #1a1a2e);
  line-height: 1.3;
}

.model-tile-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.5;
}

/* ------------------------------------------------
   PORTFOLIO CARDS
   ------------------------------------------------ */
.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.portfolio-card:hover {
  border-color: var(--color-accent, #2563eb);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.portfolio-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background: #f3f4f6;
}

.portfolio-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-img-wrap img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portfolio-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text, #1a1a2e);
}

.portfolio-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.5;
  margin: 0;
}

/* ------------------------------------------------
   SIMULATION TABS
   ------------------------------------------------ */
.sim-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.sim-tab {
  padding: 0.6rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.sim-tab:hover {
  color: var(--color-text, #111);
}

.sim-tab--active {
  color: var(--color-accent, #2563eb);
}

.sim-tab--active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent, #2563eb);
  border-radius: 1px;
}

/* ------------------------------------------------
   ALERT OVERRIDE
   ------------------------------------------------ */
.alert-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
}

/* ------------------------------------------------
   BUTTONS — Bootstrap overrides
   ------------------------------------------------ */
.btn-dark {
  background: var(--color-text, #1a1a2e);
  border-color: var(--color-text, #1a1a2e);
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-dark:hover {
  background: #111827;
  border-color: #111827;
}

.btn-outline-dark {
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  border-width: 1.5px;
  transition: all 0.2s ease;
}

/* ------------------------------------------------
   MOBILE TWEAKS
   ------------------------------------------------ */
@media (max-width: 768px) {
  section .container {
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .section-card {
    border-radius: var(--radius-md, 12px);
    padding: 1.75rem 0;
  }

  h2 { font-size: 1.625rem; }
  h4 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  #root {
    padding: 0 0.5rem 0;
  }
}
