/* ==========================================================================
   City of Port St. Lucie - FiveM Server Stylesheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Core Colors */
  --color-bg-base: #0a0e1a;
  --color-bg-alt: #0f1525;
  
  /* Accent Colors */
  --color-accent-teal: #00d4aa;
  --color-accent-gold: #f0a030;
  --color-accent-coral: #ff6b6b;
  
  /* Text Colors */
  --color-text-main: #ffffff;
  --color-text-muted: #a0a8b8;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-accent-teal), #0093e9);
  --gradient-secondary: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-coral));
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-glow-teal: 0 0 20px rgba(0, 212, 170, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(240, 160, 48, 0.3);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s ease-out;
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grid pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-teal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-glow-teal);
}

/* Shimmer Effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.glass-card:hover::before {
  left: 200%;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-teal);
}

.btn-discord {
  background: #5865F2; /* Discord Color */
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: var(--glass-blur);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-accent-teal);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(10, 14, 26, 0.2);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-accent-teal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent-teal);
  transition: width var(--transition-normal);
}
.nav-links a:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    linear-gradient(to bottom, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.65) 50%, var(--color-bg-base) 100%),
    linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, transparent 50%, rgba(88, 101, 242, 0.06) 100%);
  z-index: 1;
}

/* Radial Glow behind content */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Floating Particles (CSS only representation) */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent-teal);
  opacity: 0.3;
  z-index: 1;
  animation: float 6s infinite ease-in-out;
}
.particle-1 { width: 10px; height: 10px; top: 20%; left: 10%; animation-duration: 5s; }
.particle-2 { width: 15px; height: 15px; top: 70%; left: 80%; animation-duration: 7s; animation-delay: 1s; background: var(--color-accent-gold); }
.particle-3 { width: 8px; height: 8px; top: 40%; left: 70%; animation-duration: 4s; animation-delay: 2s; background: var(--color-accent-coral); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  position: relative;
  z-index: 5;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-teal);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- About Section --- */
.about-section {
  background-color: var(--color-bg-base);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about-visual {
  position: relative;
  padding: 2rem;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient-primary);
  border-radius: 16px;
  transform: rotate(3deg);
  opacity: 0.2;
  z-index: 0;
}

.about-card {
  z-index: 1;
}

/* --- Features Section (Modern Bento Grid) --- */
.features-section {
  background-color: var(--color-bg-alt);
  position: relative;
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 25px var(--bento-glow, rgba(0, 212, 170, 0.15));
}

.bento-wide {
  grid-column: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.bento-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.bento-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: all var(--transition-normal);
}

.bento-card:hover .bento-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--shadow-glow-teal);
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
  color: var(--color-text-main);
}

.bento-wide h3 {
  font-size: 1.5rem;
}

.bento-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.bento-chip:hover {
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.3);
  color: var(--color-accent-teal);
}

@media (max-width: 992px) {
  .features-bento {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
}

/* --- Staff Section (Expandable Card Selector) --- */
.staff-section {
  background-color: var(--color-bg-base);
}

/* Staff Category Filter Tabs */
.staff-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.staff-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-blur);
}

.staff-tab:hover {
  background: var(--glass-bg-hover);
  color: var(--color-text-main);
  border-color: var(--glass-border-light);
  transform: translateY(-2px);
}

.staff-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-teal);
}

.staff-selector {
  display: flex;
  gap: 0.75rem;
  min-height: 200px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.staff-card-exp.is-hidden {
  display: none !important;
}

.staff-card-exp {
  flex: 0 0 80px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;
}

.staff-card-exp:hover {
  border-color: var(--staff-accent, var(--glass-border-light));
  background: var(--glass-bg-hover);
}

.staff-card-exp.active {
  flex: 1 1 auto;
  border-color: var(--staff-accent, var(--glass-border-light));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Mini state (collapsed) */
.staff-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem 0.5rem;
  transition: opacity 0.3s ease;
}

.staff-card-exp.active .staff-mini {
  display: none;
}

.staff-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--glass-border-light);
}

.staff-full-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--staff-accent, var(--color-accent-teal));
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.2);
}

.staff-mini-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
  white-space: nowrap;
}

/* Full state (expanded) */
.staff-full {
  display: none;
  padding: 1.75rem 2rem;
  gap: 1.5rem;
  align-items: center;
  height: 100%;
}

.staff-card-exp.active .staff-full {
  display: flex;
}

.discord-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discord-tag {
  font-size: 0.75rem;
  color: var(--color-accent-teal);
  font-family: var(--font-body);
  font-weight: 500;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
}

.staff-full-info {
  flex: 1;
}

.staff-full-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.staff-role {
  color: var(--color-accent-gold);
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.staff-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Bottom accent line on active card */
.staff-card-exp.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--staff-accent, var(--color-accent-teal));
}

@media (max-width: 768px) {
  .staff-selector {
    flex-direction: column;
  }
  .staff-card-exp {
    flex: 0 0 60px;
  }
  .staff-mini {
    flex-direction: row;
    padding: 0.75rem 1.25rem;
  }
  .staff-full {
    padding: 1.5rem;
  }
}


/* --- Connect Section --- */
.connect-section {
  background-color: var(--color-bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  position: relative;
  text-align: center;
  padding: 3.25rem 2rem 2.25rem;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card::before {
  display: none;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 160, 48, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
  line-height: 1;
}

.step-card h3 {
  margin: 0.75rem 0 0.75rem;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Footer --- */
.footer {
  background-color: #05080f;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

/* --- OneSystems Partner Card (Compact) --- */
.partner-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(0, 212, 170, 0.06), transparent 60%);
  pointer-events: none;
}

.partner-left {
  flex: 1;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.partner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-teal);
  box-shadow: 0 0 6px var(--color-accent-teal);
}

.partner-text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.partner-link {
  color: var(--color-accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.partner-link:hover {
  text-decoration: underline;
  color: #fff;
}

.partner-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.partner-logo-pill:hover {
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.35);
  color: var(--color-accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

@media (max-width: 768px) {
  .partner-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .partner-badge {
    margin: 0 auto 0.5rem;
  }
  .partner-logo-pill {
    width: 100%;
    justify-content: center;
  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

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

/* Animation Classes for Scroll Reveal */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.fade-in-up {
  transform: translateY(40px);
}
.animate-on-scroll.slide-in-left {
  transform: translateX(-50px);
}
.animate-on-scroll.slide-in-right {
  transform: translateX(50px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Active Nav Link */
.nav-links a.active {
  opacity: 1;
  color: var(--color-accent-teal);
}
.nav-links a.active::after {
  width: 100%;
}

/* Nav Discord Button */
.btn-nav-discord {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.85rem !important;
}

/* Hero Background for Parallax & Instant Render */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.4) 0%, rgba(8, 12, 24, 0.85) 100%), url('cityofpslbanner.webp') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
  filter: saturate(0.8) brightness(0.7);
  transition: opacity 0.3s ease-in;
}

.hero-particles {
  z-index: 1 !important;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 1.3rem;
  }
  
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section-padding { padding: 4rem 0; }
  .stat-number { font-size: 2rem; }
}
