/* Modern enhancements and animations for manikineko.nl */

/* ============================================
   BASE ALIGNMENT RESET - Ensures everything snaps to grid
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #23272a 0%, #212529 100%);
  color: #eaf6f6;
  font-family: 'Merriweather Sans', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ensure all containers align properly */
.container, .container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* --- Modern Glassy Rainbow Navbar --- */
.modern-navbar {
  /* Always transparent, glassy look */
  background: rgba(30,32,34,0.82) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 2px 24px 0 #32a89d44, 0 1.5px 0 0 #5865f2;
  border-bottom: 2px solid #32a89d44;
  border-radius: 0 0 24px 24px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  z-index: 1002;
}

.modern-navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: 1.5px;
  text-shadow: 0 3px 12px #32a89d77, 0 2px 2px #23272a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.modern-navbar-brand i {
  color: #32a89d;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px #32a89d88);
}
.modern-navbar-list {
  gap: 0.5rem;
}
.modern-navbar-link {
  color: #eaf6f6 !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0.7rem;
  border-radius: 8px;
  padding: 0.35rem 1.1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
  z-index: 1;
}
.modern-navbar-link:hover, .modern-navbar-link:focus {
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  color: #fff !important;
  box-shadow: 0 2px 16px 0 #32a89d44;
  text-decoration: none;
}
.modern-navbar-toggler {
  border: none;
  background: #32a89d;
  border-radius: 8px;
  color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  transition: background 0.18s;
}
.modern-navbar-toggler:hover {
  background: #5865f2;
}

/* --- Matrix Rain Overlay (Rainbow) --- */
.matrix-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 1001;
  pointer-events: none;
  opacity: 0.38;
  filter: blur(0.5px) hue-rotate(90deg) saturate(170%);
  display: block;
  /* Rainbow effect is achieved via JS (see js/matrix.js) */
}

/* Masthead Modernization */
.modern-masthead {
  background: linear-gradient(120deg, #23272a 60%, #32a89d 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 32px 0 #32a89d44;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.modern-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px #32a89d99, 0 0px 2px #212529;
  letter-spacing: 2px;
}
.modern-subtitle {
  font-size: 1.5rem;
  color: #08afaf;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.modern-divider {
  border-top: 3px solid #08afaf;
  width: 120px;
  margin: 1rem auto 1.5rem auto;
  opacity: 0.8;
  box-shadow: 0 2px 12px #32a89d44;
}
.modern-lead {
  color: #eaf6f6;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px #23272a;
}

/* Hytale projects blog-style layout */
.hytale-main {
  margin-bottom: 3rem;
}

.hytale-layout {
  align-items: flex-start;
}

.hytale-article {
  margin-bottom: 0;
}

.hytale-article-header {
  margin-bottom: 1rem;
}

.hytale-article-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.hytale-article-meta {
  color: #b6eaff;
  font-size: 0.98rem;
}

.hytale-article-cover {
  margin: 1.5rem 0 2rem;
}

.hytale-article-cover-inner {
  border-radius: 18px;
  min-height: 220px;
  background: linear-gradient(120deg, #23272a 40%, #5865f2 100%);
  border: 1px solid #32a89d55;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaf6f6;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hytale-article-section {
  margin-top: 1.5rem;
}

.hytale-sidebar-column {
  margin-top: 0;
}

.hytale-sidebar {
  position: sticky;
  top: 6.5rem;
}

@media (max-width: 991.98px) {
  .hytale-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

.hytale-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hytale-sidebar-item {
  background: rgba(44, 47, 51, 0.97);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  box-shadow: 0 2px 18px 0 #32a89d33;
  border: 1px solid #32a89d33;
}

.hytale-sidebar-title {
  color: #08afaf;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.hytale-sidebar-meta {
  color: #b6eaff;
  font-size: 0.95rem;
}

/* Modern Buttons */
.btn-modern {
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  box-shadow: 0 2px 16px 0 #32a89d44;
  transition: background 0.25s, transform 0.18s, box-shadow 0.22s;
  margin: 0.3rem 0.6rem;
}
.btn-modern:hover, .btn-modern:focus {
  background: linear-gradient(90deg, #5865f2 0%, #32a89d 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px 0 #5865f2cc;
}

/* Discord Widget Styling */
.discord-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #23272a 0%, #2c2f33 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.25);
  padding: 32px 0;
  margin: 32px auto;
  width: 100%;
  max-width: 400px;
  transition: box-shadow 0.5s;
}
.discord-widget-container:hover {
  box-shadow: 0 12px 48px 0 #5865f2cc;
}

/* Section differentiation */
.page-section {
  border-radius: 22px;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 18px 0 #32a89d33;
  animation: fadein 1s;
  background: rgba(44, 47, 51, 0.94);
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.modern-section-title {
  color: #08afaf;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 8px #32a89d55;
}
.modern-section-desc {
  color: #b6eaff;
  font-size: 1.08rem;
  margin-bottom: 1.8rem;
  font-weight: 500;
}

/* Socials Modern */
.modern-socials-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

/* Discord Section */
.modern-discord-section {
  background: linear-gradient(120deg, #23272a 60%, #5865f2 100%);
}
.modern-discord-container {
  padding: 2.5rem 0 1.5rem 0;
}

/* LLMs & AI Models Section */
.modern-llm-section {
  background: linear-gradient(120deg, #23272a 60%, #32a89d 100%);
  border-radius: 22px;
  box-shadow: 0 2px 18px 0 #32a89d33;
  margin-bottom: 2.5rem;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.modern-llm-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.modern-llm-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2.2rem;
  width: 100%;
}

.modern-llm-card {
  background: rgba(44,47,51,0.97);
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 #5865f244;
  padding: 1.7rem 1.5rem;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border: 2px solid #32a89d33;
  transition: box-shadow 0.18s, border 0.18s;
  box-sizing: border-box;
}
.modern-llm-card:hover {
  box-shadow: 0 8px 32px 0 #5865f2cc;
  border: 2px solid #5865f2;
}
.modern-llm-card h3 {
  color: #08afaf;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
}
.modern-llm-meta {
  color: #b6eaff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.modern-llm-status {
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}
.modern-llm-status .deprecated {
  color: #ffc107;
  font-weight: 700;
}
.modern-llm-status .active {
  color: #32a89d;
  font-weight: 700;
}
.modern-llm-card p {
  color: #eaf6f6;
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
}
.modern-llm-card a {
  color: #5865f2;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.18s;
}
.modern-llm-card a:hover {
  color: #32a89d;
}

/* Yuki bot section */
@keyframes fadein {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#yuki-bot-section {
  background: linear-gradient(120deg, #32a89d 0%, #5865f2 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
  width: calc(100% - 2rem);
  box-shadow: 0 4px 32px 0 rgba(88,101,242,0.17);
  animation: fadein 1.2s;
  box-sizing: border-box;
}
#yuki-bot-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  margin-top: 0;
}

/* Game section */
#game-section {
  background: linear-gradient(120deg, #212529 0%, #32a89d 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
  width: calc(100% - 2rem);
  box-shadow: 0 4px 32px 0 rgba(50,168,157,0.17);
  animation: fadein 1.4s;
  box-sizing: border-box;
  text-align: center;
}
#game-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* Popup modal styling - Banner-like with teal/blue theme */
#eula-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,32,34,0.92);
  justify-content: center;
  align-items: center;
  animation: fadein 0.6s;
  padding: 1rem;
}

#eula-modal .modern-modal-content {
  background: linear-gradient(135deg, #1e2022 0%, #32a89d33 50%, #5865f222 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 48px 0 rgba(50,168,157,0.4), 0 0 0 4px #32a89d66, inset 0 1px 0 0 rgba(255,255,255,0.1);
  max-width: 520px;
  width: 100%;
  text-align: left;
  animation: fadein 1.1s;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, #32a89d 0%, #5865f2 100%) 1;
  border-radius: 24px;
}

#eula-modal .modern-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  border-radius: 24px 24px 0 0;
  opacity: 1;
}

.modern-modal-icon {
  font-size: 3.5rem;
  color: #32a89d;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px #32a89d99);
  align-self: flex-start;
}

.modern-modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.modern-modal-desc {
  font-size: 1.05rem;
  color: #b6eaff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#eula-modal .modern-modal-content a {
  color: #32a89d;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

#eula-modal .modern-modal-content a:hover {
  color: #08afaf;
}

#eula-modal .modern-modal-content button {
  margin-top: 1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  color: #fff;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px 0 rgba(50,168,157,0.5);
  cursor: pointer;
  align-self: center;
}

#eula-modal .modern-modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px 0 rgba(88,101,242,0.6);
  background: linear-gradient(90deg, #5865f2 0%, #32a89d 100%);
}

/* Social button hover for modern socials */
.modern-socials-list .btn-modern {
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 16px 0 #32a89d44;
}
.modern-socials-list .btn-modern:hover {
  transform: translateY(-3px) scale(1.07);
  background: linear-gradient(90deg, #5865f2 0%, #32a89d 100%);
  box-shadow: 0 4px 32px 0 #5865f2cc;
}

/* Custom scrollbar for Discord widget */
.discord-widget-container iframe {
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 #5865f2cc;
  border: none;
  overflow: hidden;
}

/* ============================================
   HYTALE WARNING BANNER
   ============================================ */
.hytale-warning-banner {
  background: linear-gradient(135deg, #dc3545 0%, #8b0000 100%);
  padding: 1.5rem 0;
  margin-top: 76px;
  border-bottom: 3px solid #ff6b6b;
  position: relative;
  z-index: 100;
}

.warning-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.warning-icon {
  font-size: 2.5rem;
  color: #fff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.warning-text h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.warning-text p {
  color: #ffe6e6;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}

@media (max-width: 768px) {
  .hytale-warning-banner {
    margin-top: 70px;
    padding: 1rem;
  }
  .warning-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  .warning-icon {
    font-size: 2rem;
  }
  .warning-text h3 {
    font-size: 1.1rem;
  }
}

/* ============================================
   YUKI SECTION - DEPRECATED STYLING
   ============================================ */
.yuki-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.yuki-header h2 {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.deprecated {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 2px solid #ffc107;
}

.status-badge.active {
  background: rgba(50, 168, 157, 0.2);
  color: #32a89d;
  border: 2px solid #32a89d;
}

.yuki-description {
  color: #eaf6f6;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.yuki-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.yuki-features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #fff;
}

.yuki-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #5865f2;
  font-weight: bold;
}

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

/* ============================================
   GAME SECTION - STEAM STYLING
   ============================================ */
#game-section .game-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #eaf6f6;
  margin-bottom: 1.5rem;
}

.steam-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.steam-widget-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.steam-widget-wrapper iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

.btn-modern.btn-outline {
  background: transparent;
  border: 2px solid #32a89d;
  color: #32a89d !important;
  transition: all 0.25s ease;
}

.btn-modern.btn-outline:hover {
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  border-color: transparent;
  color: #fff !important;
}

/* ============================================
   ML PROFILES SECTION
   ============================================ */
.ml-profiles-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(50, 168, 157, 0.3);
}

.ml-profiles-title {
  color: #08afaf;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ml-profiles-desc {
  color: #b6eaff;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

.ml-profile-card {
  background: rgba(44, 47, 51, 0.97);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ml-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
}

.ml-profile-card.ollama:hover {
  border-color: #ff6b6b;
}

.ml-profile-card.huggingface:hover {
  border-color: #ffd21f;
}

.ml-profile-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.ml-profile-card.ollama .ml-profile-icon {
  color: #ff6b6b;
}

.ml-profile-card.huggingface .ml-profile-icon {
  color: #ffd21f;
}

.ml-profile-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.ml-profile-handle {
  color: #b6eaff;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

/* ============================================
   MODERN PROJECTS SECTION
   ============================================ */
.modern-projects-section {
  background: linear-gradient(120deg, #23272a 0%, #2c2f33 100%);
  border-radius: 22px;
  padding: 3rem 1.5rem;
  margin-bottom: 2.5rem;
}

.modern-projects-section .text-center {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background: rgba(44, 47, 51, 0.97);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid #32a89d33;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #32a89d 0%, #5865f2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(50, 168, 157, 0.25);
  border-color: #5865f2;
}

.project-card.featured {
  border-color: #32a89d66;
  background: linear-gradient(135deg, rgba(44, 47, 51, 0.98) 0%, rgba(50, 168, 157, 0.1) 100%);
}

.project-card.featured::before {
  opacity: 1;
  height: 6px;
}

.project-card.archived {
  opacity: 0.85;
  border-color: #6c757d33;
}

.project-card.archived:hover {
  border-color: #6c757d;
  box-shadow: 0 8px 24px rgba(108, 117, 125, 0.2);
}

.project-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #32a89d 0%, #5865f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(50, 168, 157, 0.4);
}

.project-icon.ai {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.project-icon.deprecated {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.project-icon.archived-icon {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: 0 4px 16px rgba(108, 117, 125, 0.4);
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.project-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
}

.project-status.active {
  background: rgba(50, 168, 157, 0.2);
  color: #32a89d;
  border: 1px solid #32a89d;
}

.project-status.deprecated {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.project-status.archived {
  background: rgba(108, 117, 125, 0.2);
  color: #adb5bd;
  border: 1px solid #6c757d;
}

.project-desc {
  color: #b6eaff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-links .btn-modern {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin: 0;
}

.project-links .btn-modern.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Project card with widget (wide version) */
.project-card.project-wide {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.project-card.project-wide .project-content {
  width: 100%;
}

.steam-widget-wrapper.project-widget {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.steam-widget-wrapper.project-widget iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
  display: block;
}

/* Responsive adjustments for projects */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modern-projects-section {
    padding: 2rem 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .project-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
  
  .project-title {
    font-size: 1.25rem;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links .btn-modern {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1.25rem;
  }
  
  .project-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 12px;
  }
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 1200px) {
  .modern-title {
    font-size: 2.8rem;
  }
  .modern-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 991.98px) {
  .modern-navbar {
    border-radius: 0 0 16px 16px;
  }
  
  .modern-masthead {
    min-height: 50vh;
    border-radius: 0 0 24px 24px;
  }
  
  .modern-title {
    font-size: 2.4rem;
  }
  
  .modern-subtitle {
    font-size: 1.2rem;
  }
  
  .btn-modern {
    padding: 0.7rem 1.8rem;
    font-size: 1.1rem;
  }
  
  #yuki-bot-section,
  #game-section {
    max-width: 95%;
    margin: 1.5rem auto;
    padding: 1.5rem;
  }
  
  .yuki-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ml-profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  
  .modern-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .modern-subtitle {
    font-size: 1.1rem;
  }
  
  .modern-lead {
    font-size: 1.05rem;
  }
  
  .page-section {
    padding: 1.5rem 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .modern-section-title {
    font-size: 1.6rem;
  }
  
  .modern-llm-list {
    gap: 1.5rem;
  }
  
  .modern-llm-card {
    min-width: unset;
    max-width: 100%;
    padding: 1.25rem;
  }
  
  .modern-socials-list {
    flex-direction: column;
    align-items: center;
  }
  
  .modern-socials-list .btn-modern {
    width: 100%;
    max-width: 280px;
  }
  
  #yuki-bot-section h2,
  #game-section h2 {
    font-size: 1.7rem;
  }
  
  .steam-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .steam-actions .btn-modern {
    width: 100%;
    max-width: 300px;
  }
  
  .matrix-overlay {
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .modern-title {
    font-size: 1.7rem;
  }
  
  .modern-subtitle {
    font-size: 1rem;
  }
  
  .btn-modern {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  
  .ml-profile-card {
    padding: 1rem;
  }
  
  .ml-profile-icon {
    font-size: 2rem;
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .matrix-overlay {
    display: none;
  }
}

/* Focus visible for keyboard navigation */
.btn-modern:focus-visible,
.modern-navbar-link:focus-visible,
.ml-profile-card:focus-visible {
  outline: 3px solid #32a89d;
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .matrix-overlay,
  #eula-modal,
  .hytale-warning-banner {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
