/* ========================================
   FSFA STUDENT JOURNEY - GAME STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700;800&display=swap');

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

:root {
  /* Florence Color Palette */
  --florence-red: #e63946;
  --florence-orange: #f77f00;
  --florence-cream: #fcbf49;
  --florence-teal: #2a9d8f;
  --florence-blue: #264653;
  --dark-bg: #0d1b2a;
  --accent-pink: #ff006e;
  --neon-green: #06ffa5;
  
  /* FSFA Site Colors */
  --nav-bg: #2C2C2C;
  --teal: #4ECDC4;
  --pink: #FF6B9D;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: white;
  overflow-x: hidden;
  margin: 0;
  position: relative;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

/* ========================================
   NAVIGATION (from FSFA site)
   ======================================== */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: block;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.logo a:hover {
  background: var(--pink);
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  background: rgba(44, 44, 44, 0.95);
  border-radius: 15px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-link:hover {
  color: #2C2C2C;
  background: var(--teal);
  transform: translateY(-2px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding-top: 1rem;
  z-index: 1001;
}

.nav-item:nth-last-child(1) .dropdown,
.nav-item:nth-last-child(2) .dropdown {
  left: auto;
  right: 0;
}

.dropdown-content {
  background: #FFFFFF;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1rem 0;
  min-width: 220px;
  border: 3px solid var(--pink);
}

.dropdown-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 360px;
  padding: 0.5rem;
}

.dropdown-two-col a {
  margin: 0.15rem;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #2C2C2C;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-weight: 500;
}

.dropdown-content a:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateX(5px);
}

/* Featured Journey Link Styling */
.dropdown-content a[href="journey-game.html"] {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
  border: 2px solid var(--pink);
  margin: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.dropdown-content a[href="journey-game.html"]:hover {
  background: linear-gradient(135deg, var(--pink), var(--teal));
  border-color: var(--pink);
  transform: translateX(0) scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   START SCREEN
   ======================================== */

.start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.start-screen.hidden {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.start-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.game-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 30px;
  color: var(--florence-cream);
  text-shadow: 4px 4px 0 var(--florence-red),
               8px 8px 0 rgba(0,0,0,0.3);
  animation: titleFloat 3s ease-in-out infinite;
}

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

.start-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.start-btn {
  background: linear-gradient(135deg, var(--florence-red), var(--accent-pink));
  color: white;
  border: none;
  padding: 20px 50px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  min-height: 54px;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.start-btn:active {
  transform: scale(0.95);
}

.start-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6);
}

.controls-hint {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  line-height: 1.6;
}

/* ========================================
   GAME CANVAS
   ======================================== */

.game-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a2332 0%, #0d1b2a 100%);
  overflow: hidden;
  padding-top: 80px; /* Account for fixed nav */
}

/* Parallax Background Layers */
.bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: bottom;
}

.bg-mountains {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path fill="%23264653" opacity="0.3" d="M0,200 L300,100 L600,150 L900,80 L1200,130 L1200,300 L0,300 Z"/></svg>');
  background-size: 1200px 300px;
  animation: parallax 120s linear infinite;
  opacity: 0.4;
}

.bg-buildings {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%232a9d8f" opacity="0.5" x="50" y="150" width="100" height="250"/><rect fill="%23e63946" opacity="0.5" x="200" y="100" width="120" height="300"/><rect fill="%23f77f00" opacity="0.5" x="370" y="130" width="90" height="270"/><rect fill="%23fcbf49" opacity="0.5" x="510" y="80" width="110" height="320"/><rect fill="%232a9d8f" opacity="0.5" x="670" y="120" width="100" height="280"/><rect fill="%23e63946" opacity="0.5" x="820" y="90" width="130" height="310"/><rect fill="%23f77f00" opacity="0.5" x="1000" y="140" width="90" height="260"/></svg>');
  background-size: 1200px 400px;
  animation: parallax 60s linear infinite;
  opacity: 0.6;
}

@keyframes parallax {
  from { background-position-x: 0; }
  to { background-position-x: -1200px; }
}

/* ========================================
   HUD (Heads-Up Display)
   ======================================== */

.hud {
  position: fixed;
  top: 100px; /* Below nav */
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.hud-panel {
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(252, 191, 73, 0.3);
  border-radius: 15px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 120px;
}

.hud-progress {
  flex: 1;
  max-width: 300px;
}

.hud-icon {
  font-size: 1.8rem;
}

.hud-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  opacity: 0.7;
  margin-bottom: 5px;
}

.hud-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--florence-cream);
}

.progress-container {
  width: 100%;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--florence-red), var(--florence-cream));
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--florence-cream);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  font-family: 'Press Start 2P', cursive;
}

/* ========================================
   GAME WORLD
   ======================================== */

.world {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 220px 0 100px; /* Extra top padding for HUD */
}

.level-section {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 60px;
  perspective: 1000px;
}

/* Quest Station */
.quest-station {
  position: relative;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(230, 57, 70, 0.1));
  border: 3px solid var(--florence-teal);
  border-radius: 20px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  backdrop-filter: blur(5px);
  -webkit-tap-highlight-color: transparent;
}

.quest-station:active {
  transform: scale(0.98);
}

.quest-station:hover {
  transform: translateY(-10px) rotateX(5deg) scale(1.02);
  border-color: var(--florence-cream);
  box-shadow: 0 20px 60px rgba(252, 191, 73, 0.3);
}

.quest-station.completed {
  border-color: var(--neon-green);
  background: linear-gradient(135deg, rgba(6, 255, 165, 0.1), rgba(42, 157, 143, 0.15));
}

.quest-station.completed::after {
  content: '✓';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark-bg);
  border: 4px solid var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-green);
  animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.station-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.station-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  animation: iconBob 3s ease-in-out infinite;
}

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

.station-info {
  flex: 1;
}

.station-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--florence-cream);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.station-desc {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.station-meta {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.station-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-badge {
  background: linear-gradient(135deg, var(--florence-orange), var(--florence-cream));
  color: var(--dark-bg);
}

.station-cta {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid rgba(252, 191, 73, 0.2);
  text-align: center;
}

.cta-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--florence-red), var(--accent-pink));
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  animation: ctaPulse 2s ease-in-out infinite;
}

.quest-station:hover .cta-text {
  background: linear-gradient(135deg, var(--accent-pink), var(--florence-orange));
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.quest-station.completed .cta-text {
  background: linear-gradient(135deg, var(--florence-teal), var(--neon-green));
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(230, 57, 70, 0.7);
  }
}

/* Connection Path Between Stations */
.connection-path {
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, var(--florence-teal), transparent);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.connection-path::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--florence-cream);
  animation: pathFlow 2s linear infinite;
}

@keyframes pathFlow {
  from { transform: translateY(-20px); }
  to { transform: translateY(50px); }
}

/* ========================================
   GAME MODAL
   ======================================== */

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
}

.game-modal.active {
  display: flex;
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1a2332, #0d1b2a);
  border: 3px solid var(--florence-cream);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-overflow-scrolling: touch;
}

@keyframes modalSlide {
  from { transform: translateY(100px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:active {
  transform: scale(0.9);
}

.modal-close:hover {
  background: var(--florence-red);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.modal-icon {
  font-size: 4rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--florence-cream);
}

.modal-body {
  line-height: 1.8;
  font-size: 1.05rem;
}

.modal-body h3 {
  color: var(--florence-orange);
  margin: 25px 0 15px;
  font-size: 1.4rem;
}

.modal-body h4 {
  color: var(--florence-teal);
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.modal-body ul {
  margin: 15px 0;
  padding-left: 30px;
}

.modal-body li {
  margin: 10px 0;
}

.modal-body a {
  color: var(--florence-cream);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.modal-body a:hover {
  color: var(--neon-green);
  border-bottom: 2px solid var(--neon-green);
}

.info-box, .warning-box, .success-box {
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 5px solid;
}

.info-box {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--florence-red);
}

.warning-box {
  background: rgba(247, 127, 0, 0.1);
  border-color: var(--florence-orange);
}

.success-box {
  background: rgba(42, 157, 143, 0.1);
  border-color: var(--florence-teal);
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-btn {
  background: linear-gradient(135deg, var(--florence-red), var(--accent-pink));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
  min-height: 48px;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.game-btn:active {
  transform: scale(0.95);
}

.game-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
}

.game-btn.secondary {
  background: transparent;
  border: 2px solid var(--florence-cream);
}

.game-btn.secondary:hover {
  background: rgba(252, 191, 73, 0.1);
}

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

/* ========================================
   ACHIEVEMENT DISPLAY
   ======================================== */

.achievements {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(6, 255, 165, 0.1));
  border: 2px solid var(--neon-green);
  border-radius: 20px;
  padding: 40px;
  margin: 60px auto;
  max-width: 1200px;
  width: 90%;
}

.achievements-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.badge-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.achievement-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.achievement-badge:hover::before {
  left: 100%;
}

.achievement-badge.earned {
  border-color: var(--neon-green);
  background: rgba(6, 255, 165, 0.1);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 255, 165, 0.3); }
  50% { box-shadow: 0 0 25px rgba(6, 255, 165, 0.6); }
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  filter: grayscale(1) opacity(0.3);
  transition: all 0.3s ease;
}

.achievement-badge.earned .achievement-icon {
  filter: grayscale(0) opacity(1);
  animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
  from { transform: rotate(-180deg) scale(0); }
  to { transform: rotate(0) scale(1); }
}

.achievement-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.achievement-badge.earned .achievement-name {
  color: var(--neon-green);
}

/* ========================================
   FOOTER (from FSFA site)
   ======================================== */

.footer {
  background: var(--nav-bg);
  padding: 3rem 0 1.5rem;
  color: #FFFFFF;
  border-top: 3px solid var(--pink);
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 3rem;
}

.footer-circles {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.circle-link {
  width: 110px;
  height: 110px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
  text-transform: uppercase;
}

.circle-link:hover {
  background: var(--teal);
  color: #2C2C2C;
  border-color: var(--teal);
  transform: scale(1.1);
}

.circle-link span {
  line-height: 1.2;
}

.footer-links-section {
  display: flex;
  gap: 4rem;
  flex: 1;
  justify-content: flex-end;
}

.footer-column {
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  color: var(--pink);
  text-transform: capitalize;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-column ul li a:hover {
  color: var(--teal);
  transform: translateX(5px);
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

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

.address-column h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--pink);
}

.address-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0;
}

.address-column a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.address-column a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-left {
  flex: 1;
  text-align: left;
  color: #FFFFFF;
}

.footer-social {
  flex: 1;
  text-align: center;
}

.footer-social a {
  color: #FFFFFF;
  margin: 0 10px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--teal);
  transform: scale(1.2);
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right .privacy-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right .privacy-link:hover {
  color: var(--teal);
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */

.particle {
  position: fixed;
  pointer-events: none;
  animation: particleFloat 4s ease-out forwards;
  z-index: 9999;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) rotate(360deg);
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.quest-station {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.6s ease;
}

.quest-station.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--florence-red), var(--florence-cream));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-pink), var(--florence-orange));
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
  /* Navigation Mobile */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(44, 44, 44, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0;
  }
  
  .nav-menu.active {
    max-height: 800px;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    padding-top: 0;
  }
  
  .dropdown-content {
    box-shadow: none;
    margin: 0 1rem;
    border-radius: 0;
  }
  
  .dropdown-two-col {
    grid-template-columns: 1fr;
    min-width: auto;
  }
  
  /* Start Screen Mobile */
  .game-title {
    font-size: 1.8rem;
  }
  
  .start-subtitle {
    font-size: 1rem;
  }
  
  .start-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
  }
  
  .controls-hint {
    font-size: 0.6rem;
  }
  
  /* HUD Mobile */
  .hud {
    top: 85px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 10px;
  }
  
  .hud-panel {
    padding: 10px 15px;
    min-width: auto;
  }
  
  .hud-progress {
    max-width: 100%;
  }
  
  .hud-icon {
    font-size: 1.5rem;
  }
  
  .hud-label {
    font-size: 0.55rem;
  }
  
  .hud-value {
    font-size: 1.1rem;
  }
  
  /* Game World Mobile */
  .world {
    padding: 350px 0 80px;
  }
  
  .level-section {
    width: 95%;
    margin-bottom: 40px;
  }
  
  .quest-station {
    padding: 20px;
  }
  
  .station-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .station-icon {
    font-size: 2.5rem;
  }
  
  .station-title {
    font-size: 1.4rem;
  }
  
  .station-desc {
    font-size: 0.9rem;
  }
  
  .station-meta {
    justify-content: center;
  }
  
  .station-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .cta-text {
    font-size: 0.85rem;
    padding: 10px 25px;
  }
  
  .connection-path {
    height: 40px;
  }
  
  /* Modal Mobile */
  .modal-content {
    padding: 25px;
    max-height: 85vh;
  }
  
  .modal-header {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-icon {
    font-size: 3rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-body {
    font-size: 0.95rem;
  }
  
  .modal-body h3 {
    font-size: 1.2rem;
  }
  
  .modal-body h4 {
    font-size: 1rem;
  }
  
  .game-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
  
  /* Achievements Mobile */
  .achievements {
    padding: 25px;
  }
  
  .achievements-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .badge-showcase {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  
  .achievement-badge {
    padding: 15px;
  }
  
  .achievement-icon {
    font-size: 2rem;
  }
  
  .achievement-name {
    font-size: 0.75rem;
  }
  
  /* Footer Mobile */
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .footer-circles {
    justify-content: center;
  }
  
  .circle-link {
    width: 90px;
    height: 90px;
    font-size: 0.7rem;
  }
  
  .footer-links-section {
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }
  
  .footer-column {
    min-width: 150px;
  }
  
  .footer-middle {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-left,
  .footer-social,
  .footer-right {
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .game-title {
    font-size: 1.4rem;
  }
  
  .station-title {
    font-size: 1.2rem;
  }
  
  .achievements-title {
    font-size: 1.2rem;
  }
  
  .badge-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}
