/* Unlikely Company - Star Citizen ORG Website Styles */
/* Color palette inspired by Star Citizen's dark industrial aesthetic */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Closeness';
  src: url('../fonts/Closeness.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Closeness';
  src: url('../fonts/Closeness-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Closeness';
  src: url('../fonts/Closeness-Bold-Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

:root {
  /* Dark grays - charcoal industrial */
  --bg-dark: #0d0f12;
  --bg-primary: #141820;
  --bg-secondary: #1a2028;
  --bg-card: #1e252f;
  --border: #2a3442;

  /* Blues - atmospheric depth */
  --blue-deep: #0a3d5c;
  --blue-mid: #1a6b94;
  --blue-glow: #2d9cdb;
  --blue-highlight: #4fc3f7;

  /* Accent - warm industrial */
  --accent-gold: #d4a853;
  --accent-orange: #e8862f;

  /* Text */
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Closeness font for headings and branding */
h1, h2, h3, h4, h5, h6,
.site-title,
.site-title a,
.hero-title,
.section-title {
  font-family: 'Closeness', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.site-title a:hover {
  color: var(--blue-highlight);
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-highlight);
}

/* ===== STARFIELD BACKGROUND ===== */
.starfield-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at center bottom, var(--blue-deep) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(42, 156, 219, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(26, 107, 148, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

/* Hero Logo with flip effect */
.hero-logo-container {
  perspective: 1000px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 20px auto;
  animation: fadeInUp 1s ease-out 0.2s both;
  cursor: pointer;
}

.hero-logo-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.hero-logo-container:hover .hero-logo-inner {
  transform: scale(1.05) rotateY(5deg);
}

.hero-logo-container.flipped .hero-logo-inner {
  transform: rotateY(180deg);
}

.hero-logo-container.flipped:hover .hero-logo-inner {
  transform: rotateY(180deg) scale(1.05);
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 600px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: block;
  margin: 0 auto;
}

.hero-logo-front {
  position: relative;
}

.hero-logo-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: rotateY(180deg);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  color: var(--text-primary);
  border: 1px solid var(--blue-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-glow) 0%, var(--blue-mid) 100%);
  box-shadow: 0 0 30px rgba(45, 156, 219, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue-highlight);
  color: var(--blue-highlight);
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 0;
  background: var(--bg-primary);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--blue-glow);
}

.feature-card h3 {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== INFO SECTION ===== */
.info-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.info-item h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-highlight);
  margin-bottom: 10px;
}

.info-item p {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* ===== FOUNDER LETTER ===== */
.founder-letter {
  padding: 100px 0;
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
  min-height: 600px;
}

.founder-letter-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 100%;
  background-image: url('../images/group-pose.jpg');
  background-size: cover;
  background-position: 25% center;
  z-index: 0;
}

.founder-letter-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  bottom: 0;
  background: linear-gradient(to right, transparent 0%, var(--bg-secondary) 100%);
}

.founder-letter .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 30px;
  margin-left: 65%;
  width: 35%;
}

.founder-letter .section-title {
  text-align: left;
  margin-bottom: 40px;
  width: 100%;
  max-width: 500px;
}

.letter-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.letter-content {
  max-width: 500px;
  width: 100%;
  background: rgba(30, 37, 47, 0.92);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-glow);
  border-radius: 8px;
  padding: 35px 35px;
  backdrop-filter: blur(10px);
}

.letter-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.letter-content p:first-child {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.letter-signature {
  color: var(--blue-highlight);
  font-style: italic;
  margin-top: 20px;
  text-align: right;
}

@media (max-width: 1200px) {
  .founder-letter .container {
    width: 50%;
    padding: 0 30px;
  }

  .founder-letter .section-title {
    max-width: 450px;
  }

  .letter-content {
    max-width: 450px;
  }
}

@media (max-width: 1024px) {
  .founder-letter-bg {
    width: 50%;
  }

  .founder-letter .container {
    width: 55%;
  }

  .founder-letter .section-title {
    max-width: 400px;
  }

  .letter-content {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .founder-letter {
    min-height: auto;
    padding: 60px 0;
  }

  .founder-letter-bg {
    position: relative;
    width: 100%;
    left: 0;
    height: 300px;
    margin-bottom: 30px;
  }

  .founder-letter-bg::after {
    background:
      linear-gradient(to top, var(--bg-secondary) 0%, transparent 40%),
      linear-gradient(to bottom, var(--bg-secondary) 0%, transparent 20%);
  }

  .founder-letter .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 0;
  }

  .founder-letter .section-title {
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .letter-wrapper {
    justify-content: center;
  }

  .letter-content {
    max-width: 100%;
    padding: 25px 20px;
  }
}

/* ===== MAIN CONTENT (Other Pages) ===== */
.site-content {
  flex: 1;
  padding: 120px 0 60px;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

h1 {
  font-size: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

h2 {
  font-size: 1.4rem;
  color: var(--blue-highlight);
  margin-top: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

a {
  color: var(--blue-highlight);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--blue-glow);
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 14px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-card);
  color: var(--blue-highlight);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

td {
  color: var(--text-secondary);
}

tr:nth-child(even) {
  background: var(--bg-secondary);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.card h3 {
  color: var(--blue-highlight);
  margin-bottom: 10px;
}

/* ===== MEMBER ROSTER ===== */
.roster-section {
  margin-bottom: 40px;
}

.member-card {
  background: var(--bg-card);
  border-left: 4px solid var(--blue-mid);
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.member-card:hover {
  background: var(--bg-secondary);
}

.member-card .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.member-card .roles {
  color: var(--blue-highlight);
  font-size: 0.9rem;
  margin-top: 5px;
}

.rank-founder { border-left-color: var(--accent-gold); }
.rank-elder { border-left-color: #a0a0a0; }
.rank-veteran { border-left-color: #cd7f32; }
.rank-member { border-left-color: var(--blue-mid); }
.rank-recruit { border-left-color: var(--text-muted); }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-glow);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  color: var(--text-primary);
  border: 1px solid var(--blue-glow);
  padding: 14px 40px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--blue-glow) 0%, var(--blue-mid) 100%);
  box-shadow: 0 0 30px rgba(45, 156, 219, 0.4);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--blue-glow);
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-glow);
  cursor: pointer;
}

.checkbox-label:has(input:checked) {
  background: rgba(45, 156, 219, 0.15);
  border-color: var(--blue-glow);
  color: var(--blue-highlight);
}

input[type="month"] {
  color-scheme: dark;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-primary);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.site-footer a {
  color: var(--blue-highlight);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  h1 { font-size: 1.5rem; }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 10px;
  }
}

/* ===== UTILITIES ===== */
.text-muted { color: var(--text-muted); }
.text-highlight { color: var(--blue-highlight); }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

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

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

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

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

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(45, 156, 219, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(45, 156, 219, 0.5);
  }
}

/* Hero animations */
.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Scroll-triggered animations (initial state) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for feature cards */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* Founder letter animations */
.founder-letter-bg {
  animation: fadeInLeft 1.2s ease-out 0.3s both;
  animation-play-state: paused;
}

.founder-letter .section-title {
  animation: fadeInRight 1s ease-out 0.5s both;
  animation-play-state: paused;
}

.founder-letter .letter-content {
  animation: fadeInRight 1s ease-out 0.7s both;
  animation-play-state: paused;
}

/* Enhanced hover effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Navigation link hover animation */
.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-highlight);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Feature card enhanced hover */
.feature-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(45, 156, 219, 0.2);
}

.feature-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
  color: var(--blue-highlight);
}

/* Info section fade in */
.info-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.info-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.info-item:nth-child(1) { transition-delay: 0s; }
.info-item:nth-child(2) { transition-delay: 0.15s; }
.info-item:nth-child(3) { transition-delay: 0.3s; }
.info-item:nth-child(4) { transition-delay: 0.45s; }

/* Section titles animation */
.section-title {
  position: relative;
}

/* Letter content hover glow */
.letter-content {
  transition: box-shadow 0.4s ease;
}

.letter-content:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(45, 156, 219, 0.15);
}

/* ===== RECRUITMENT PAGE BACKGROUND ===== */
.recruitment-bg {
  position: relative;
}

.recruitment-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: -40%;
  width: 80%;
  height: 100%;
  background-image: url('../images/beetle-light-r.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* ===== GUIDE INDEX ===== */
.guide-index {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-glow);
  border-radius: 8px;
  padding: 20px 25px;
  margin: 30px 0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.guide-index h4 {
  color: var(--blue-highlight);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.guide-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-index li {
  margin: 0;
}

.guide-index a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.guide-index a::before {
  content: '→';
  margin-right: 8px;
  color: var(--blue-glow);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  display: inline-block;
}

.guide-index a:hover {
  color: var(--blue-highlight);
  background: rgba(45, 156, 219, 0.1);
  padding-left: 20px;
}

.guide-index a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Smooth scroll offset for fixed header */
:target {
  scroll-margin-top: 100px;
}

/* ===== ROSTER PAGE ANIMATIONS ===== */

/* Page title animation */
.site-content h1 {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* Roster section animations */
.roster-section h2,
.site-content h2 {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.roster-section h2.animated,
.site-content h2.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Member card animations */
.member-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
              background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.member-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for member cards within each section */
.member-card:nth-child(1) { transition-delay: 0s; }
.member-card:nth-child(2) { transition-delay: 0.08s; }
.member-card:nth-child(3) { transition-delay: 0.16s; }
.member-card:nth-child(4) { transition-delay: 0.24s; }
.member-card:nth-child(5) { transition-delay: 0.32s; }
.member-card:nth-child(6) { transition-delay: 0.4s; }
.member-card:nth-child(7) { transition-delay: 0.48s; }
.member-card:nth-child(8) { transition-delay: 0.56s; }

/* Enhanced member card hover */
.member-card:hover {
  background: var(--bg-secondary);
  transform: translateX(10px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Rank-specific hover glows */
.member-card.rank-founder:hover {
  border-left-color: var(--accent-gold);
  box-shadow: -4px 0 20px rgba(212, 168, 83, 0.3);
}

.member-card.rank-elder:hover {
  border-left-color: #c0c0c0;
  box-shadow: -4px 0 20px rgba(192, 192, 192, 0.3);
}

.member-card.rank-veteran:hover {
  border-left-color: #cd7f32;
  box-shadow: -4px 0 20px rgba(205, 127, 50, 0.3);
}

.member-card.rank-member:hover {
  border-left-color: var(--blue-highlight);
  box-shadow: -4px 0 20px rgba(45, 156, 219, 0.3);
}

.member-card.rank-recruit:hover {
  border-left-color: var(--text-secondary);
  box-shadow: -4px 0 20px rgba(154, 160, 166, 0.2);
}

/* Member name hover effect */
.member-card .name {
  transition: color 0.3s ease;
}

.member-card:hover .name {
  color: var(--blue-highlight);
}

/* Roster section dividers animation */
.site-content hr {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transform-origin: left;
}

.site-content hr.animated {
  opacity: 1;
  transform: scaleX(1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
