/* Root variables for Modern 2D HUD layout system (Dark, Red, Chrome) */
:root {
  --background: #080203; /* Deep red-tinted obsidian black default */
  --foreground: #f4f4f5; /* Chrome/white text */
  --card-bg: rgba(18, 6, 8, 0.65); /* Translucent dark-red card surface */
  --card-border: #ffffff; /* Crisp white borders for 2D card outlines */
  --navbar-bg: rgba(10, 3, 4, 0.5); /* Transparent initial navbar overlay */
  --navbar-border: rgba(255, 255, 255, 0.15);
  --text-muted: #a1a1aa;
  --accent-red: #ff003c; /* Crimson Neon Red */
  --chrome: #cccccc; /* Chrome Silver */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-pixel: 'Pixelify Sans', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

[data-theme="light"] {
  --background: #c5bebf; /* Premium warm chrome silver background */
  --foreground: #000000; /* Pure black text */
  --card-bg: #ffffff; /* Solid white card panels */
  --card-border: #000000; /* Pure black 2D outlines */
  --navbar-bg: rgba(197, 190, 191, 0.85); /* Silver translucent navbar overlay */
  --navbar-border: #000000;
  --text-muted: #3a3233; /* Dark silver-gray text */
  --accent-red: #b00020; /* Solid deep blood red highlights */
  --chrome: #000000; /* Solid black chrome borders */
}

/* Global Reset and Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
  scroll-behavior: smooth;
}

/* Slim Custom Scrollbar (Themed Red / Silver / Black) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--background);
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 3px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--chrome);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Background overlay helper */
.bg-dot-pattern {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 50%, #200408 0%, #080102 100%);
}

[data-theme="light"] .bg-dot-pattern {
  background: radial-gradient(circle at 50% 50%, #d8d0d1 0%, #c5bebf 100%);
}

/* Navigation System (Centered 1200px Width) */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  top: 0;
  max-width: 100%;
  padding: 0;
}

.nav-container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--navbar-bg);
  border: 1px solid var(--navbar-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  transition: all 0.35s ease;
}

nav.scrolled .nav-container {
  border-radius: 0px;
  border-top: none;
  border-left: none;
  border-right: none;
  background: var(--background);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--navbar-border);
}

.brand-link {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--foreground);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.brand-link img {
  height: 2.8rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-red);
}

.nav-link.active {
  color: var(--foreground);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--navbar-border);
}

[data-theme="light"] .nav-link.active {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--navbar-border);
  margin: 0 0.5rem;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--navbar-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

[data-theme="light"] .btn-login:hover {
  color: #ffffff;
}

.btn-theme-toggle {
  padding: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  border-color: var(--navbar-border);
  color: var(--accent-red);
}

.mobile-menu-btn {
  display: none;
}

/* Y2K Streetwear Editorial Hero (First Layer 100vh) */
.hero-editorial-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background-image: url('../assets/backgroundmantorez.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
}

.hero-editorial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Moody layout overlay */
  z-index: 1;
}

/* Spacing and split layout */
.hero-editorial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px; /* Aligns with nav bounds */
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  gap: 3rem;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-editorial-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-editorial-right {
  display: flex;
  justify-content: flex-end;
}

.hero-right-logo {
  max-width: 25rem;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .hero-editorial-row {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
    justify-content: center;
  }
  .hero-editorial-left {
    align-items: center;
  }
  .hero-editorial-right {
    justify-content: center;
  }
  .hero-right-logo {
    max-width: 18rem;
  }
}

.editorial-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Yeezy/Editorial Minimalist Buttons */
.editorial-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 0.8rem 1.8rem;
  background: transparent;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.editorial-btn.btn-primary {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.editorial-btn.btn-primary:hover {
  background: var(--accent-red);
  color: #ffffff;
}

/* Scroll indicator widget */
.editorial-scroll-widget {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  animation: bounceSlow 2s infinite ease-in-out;
}

@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Scrollable Content Container (Below the Fold) */
.scroll-content-container {
  position: relative;
  background-color: var(--background);
  padding: 6rem 0;
  z-index: 20;
}

/* Grid Layout for Partners list (Aligned perfectly to 1200px) */
.partners-grid-section {
  width: 100%;
  max-width: 1200px; /* Strict header match */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem; /* Strict padding match */
}

.partners-section-header {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.partners-title {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid-3-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 768px) {
  .grid-3-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Modern Partners Cards inside the grid (Sleek 1px borders) */
.canvas-card {
  position: relative;
  height: 25rem;
  width: 100%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.canvas-card:hover, .canvas-card.active {
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

.card-content-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.canvas-card:hover .card-content-initial, .canvas-card.active .card-content-initial {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.card-icon-svg {
  width: 3rem;
  height: 3rem;
  color: var(--foreground);
  opacity: 0.6;
  transition: color 0.25s ease;
}

.canvas-card:hover .card-icon-svg, .canvas-card.active .card-icon-svg {
  color: var(--accent-red);
}

/* Expanding Circular Portal reveal container (Gate Wipe effect) */
.portal-container {
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Custom gate wipe timing */
  overflow: hidden;
  text-align: center;
}

.canvas-card:hover .portal-container, .canvas-card.active .portal-container {
  clip-path: circle(120% at 50% 50%); /* Portal spreads from center to every side */
}

/* Smooth rotating red glow animation background */
.pixelate-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 60, 0.25) 0%, transparent 65%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.pixelate-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 0, 60, 0.4),
    transparent 30%,
    rgba(255, 0, 60, 0.4) 50%,
    transparent 70%,
    rgba(255, 0, 60, 0.4) 90%,
    transparent
  );
  animation: glowRotate 8s linear infinite; /* Smooth slow rotation */
  filter: blur(40px); /* Soft glow blur */
}

[data-theme="light"] .pixelate-bg {
  background: radial-gradient(circle at 50% 50%, rgba(176, 0, 32, 0.2) 0%, transparent 65%);
}

[data-theme="light"] .pixelate-bg::before {
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(176, 0, 32, 0.3),
    transparent 30%,
    rgba(176, 0, 32, 0.3) 50%,
    transparent 70%,
    rgba(176, 0, 32, 0.3) 90%,
    transparent
  );
}

.canvas-card:hover .pixelate-bg {
  opacity: 1;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-image-container {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-description {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--foreground);
  border-top: 1px dashed var(--card-border);
  padding-top: 0.75rem;
  width: 100%;
  z-index: 5;
}

/* Members Page Layout (Header Overlap Bug Fixed) */
.page-container {
  padding-top: 10rem; /* Increased top padding to push text down below navbar */
  padding-bottom: 4rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.section-container {
  width: 100%;
  max-width: 1200px; /* Strict header match */
  margin: 0 auto;
  padding: 0 1rem; /* Strict padding match */
}

.members-title-section {
  text-align: center;
  margin-bottom: 4rem;
}

.members-title {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 3rem;
  color: var(--foreground);
  text-transform: uppercase;
}

/* High-density grid configuration (Fits 6 columns on large screens) */
.grid-members {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media(min-width: 480px) {
  .grid-members {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(min-width: 768px) {
  .grid-members {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media(min-width: 992px) {
  .grid-members {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media(min-width: 1200px) {
  .grid-members {
    grid-template-columns: repeat(6, 1fr); /* 6 columns layout */
  }
}

/* Sleek centered Y2K cards with thin borders (1px) */
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered content placement */
  text-align: center; /* Centered text */
  padding: 1.75rem 1.25rem; /* Taller, vertical layout */
  border-radius: 12px;
  border: 1px solid var(--card-border); /* Sleek 1px border style */
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  text-decoration: none;
  color: var(--foreground);
  position: relative; /* Pins absolutely positioned views badge */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 16.5rem; /* Fixed height to prevent size changes */
  overflow: hidden; /* Hide overflow from bio typing */
}

.member-card-top, .member-info {
  position: relative;
  z-index: 2;
}

.card-flame {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 0, 60, 0.18) 0%, rgba(255, 0, 60, 0) 80%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.member-card:hover .card-flame {
  opacity: 1;
}

.card-flame::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.25) 0%, transparent 55%),
              radial-gradient(circle, rgba(255, 120, 0, 0.18) 0%, transparent 45%);
  animation: flameFlow 6s ease-in-out infinite alternate;
}

@keyframes flameFlow {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-10px) scale(1.05) rotate(180deg); }
  100% { transform: translateY(-20px) scale(0.95) rotate(360deg); }
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .member-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.member-avatar-wrapper {
  position: relative;
  width: 3.75rem; /* Centered avatar container */
  height: 3.75rem;
  margin-bottom: 0.5rem;
}

.member-avatar-decoration {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 5;
}

.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

[data-theme="light"] .member-avatar {
  border-color: rgba(0, 0, 0, 0.15);
}

.status-dot {
  position: absolute;
  bottom: 0.1rem;
  right: 0.1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2.5px solid #0f0f12;
  background: #747f8d;
  box-sizing: content-box;
}

[data-theme="light"] .status-dot {
  border-color: #ffffff;
}

/* Online: solid green circle */
.status-dot.online {
  background: #23a55a;
}

/* Idle: yellow with moon cutout */
.status-dot.idle {
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23f0b232' d='M12 6A6 6 0 110 6a6 6 0 0112 0z'/%3E%3Cpath fill='%230f0f12' d='M7.5.5a5 5 0 00-2 9.5A5 5 0 017.5.5z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  border-radius: 50%;
}
[data-theme="light"] .status-dot.idle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23f0b232' d='M12 6A6 6 0 110 6a6 6 0 0112 0z'/%3E%3Cpath fill='%23ffffff' d='M7.5.5a5 5 0 00-2 9.5A5 5 0 017.5.5z'/%3E%3C/svg%3E");
}

/* DND: red with white horizontal bar */
.status-dot.dnd {
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23f23f43'/%3E%3Crect x='2.5' y='4.5' width='7' height='3' rx='1.5' fill='%230f0f12'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  border-radius: 50%;
}
[data-theme="light"] .status-dot.dnd {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23f23f43'/%3E%3Crect x='2.5' y='4.5' width='7' height='3' rx='1.5' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Offline: gray hollow ring */
.status-dot.offline {
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23747f8d'/%3E%3Ccircle cx='6' cy='6' r='3' fill='%230f0f12'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  border-radius: 50%;
}
[data-theme="light"] .status-dot.offline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23747f8d'/%3E%3Ccircle cx='6' cy='6' r='3' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Absolute views badge on card top right */
.member-views-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--foreground);
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .member-views-badge {
  background: rgba(0, 0, 0, 0.03);
}

.member-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center column */
  width: 100%;
}

.member-username {
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 1.05rem; /* Centered username */
  color: var(--foreground);
  text-transform: uppercase;
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.member-card:hover .member-username {
  color: var(--accent-red);
}

.member-slug-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.member-status {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.2rem;
  height: 2.4rem;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-verified-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--card-border);
  padding-top: 0.5rem;
  width: 100%;
  text-align: center; /* Centered badge */
}

/* User Detailed Bio Pages */
.profile-body {
  background-color: #070709;
  color: #ffffff;
  height: 100vh;
  overflow: hidden;
}

@media (max-height: 650px) {
  .profile-body {
    height: auto;
    overflow-y: auto;
  }
}

.bg-media-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#media-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-media-video, .bg-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transform: scale(1.03);
}

.bg-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Enter screen overlay */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #09090b;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.enter-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.enter-text {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.enter-btn {
  position: relative;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #ffffff;
  text-transform: lowercase;
  cursor: pointer;
  background: transparent;
  border: none;
  display: inline-block;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

/* Top-left corner */
.enter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

/* Top-right corner */
.enter-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  border-right: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

/* Bottom-left corner */
.enter-btn-inner::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

/* Bottom-right corner */
.enter-btn-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  border-right: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.enter-btn:hover::before,
.enter-btn:hover::after,
.enter-btn:hover .enter-btn-inner::before,
.enter-btn:hover .enter-btn-inner::after {
  border-color: var(--accent-red);
  width: 20px;
  height: 20px;
}

.enter-btn:hover {
  color: var(--accent-red);
  text-shadow: 0 0 8px rgba(255, 0, 60, 0.4);
}

/* Detail Bio card page */
.bio-layout {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.btn-back-members {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-members:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.profile-card {
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.profile-card * {
  transform-style: preserve-3d;
}

.profile-avatar-wrapper {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  transform: translateZ(60px);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.profile-avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.15) translateZ(5px);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.profile-name {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 2.25rem;
  color: #ffffff;
  text-transform: uppercase;
  transform: translateZ(40px);
}

.profile-bio-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  width: 100%;
  transform: translateZ(30px);
}

.profile-socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  transform: translateZ(30px);
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  transform: scale(1.1);
  border-color: var(--accent-red);
}

.social-icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* Spotify Widget */
.presence-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.presence-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: left;
  width: 100%;
}

.presence-art-wrapper {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.presence-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.presence-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.25rem;
}

.presence-header svg {
  width: 0.85rem;
  height: 0.85rem;
}

.presence-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

/* Audio toggle */
.music-toggle-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.music-toggle-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.music-toggle-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Mobile responsive menu */
@media (max-width: 768px) {
  nav {
    top: 0;
    left: 0;
    transform: none;
    padding: 0;
  }
  .nav-container {
    height: 3.5rem;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 1rem;
    border-bottom: 1px solid var(--navbar-border);
    gap: 0.5rem;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
  }
  .brand-link img {
    height: 2.2rem;
  }
  .page-container {
    padding-top: 7.5rem;
  }
}

/* Background Canvas Particle Rain */
#flame-rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Page Transition System */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-transition-overlay.fade-out {
  opacity: 0;
}

/* Custom Interactive Flame Cursor */
.profile-body, .profile-body * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #000000;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background-color 0.2s, border-color 0.2s;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.6);
  background: var(--accent-red);
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--accent-red);
}

/* Make it fully responsive and device friendly on mobile & tablets */
@media (max-width: 768px) {
  .canvas-card {
    height: 20rem; /* Compact partner cards on tablet */
  }
}

@media (max-width: 480px) {
  /* Homepage Partners Cards */
  .canvas-card {
    height: 16rem; /* Neater, shorter partner cards on mobile */
  }
  .card-description {
    font-size: 0.8rem;
    padding-top: 0.25rem;
  }
  .card-icon-svg {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  /* Profile Page Cards */
  .profile-card {
    padding: 1.25rem; /* Shrunk padding */
    gap: 1rem;
    max-width: calc(100% - 1rem);
  }
  .profile-avatar-wrapper {
    width: 5.25rem; /* Shrunk from 6.5rem */
    height: 5.25rem;
  }
  .profile-name {
    font-size: 1.65rem; /* Shrunk from 2.25rem */
  }
  .profile-bio-text {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .btn-back-members {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  .bio-layout {
    padding: 4.5rem 0.5rem 1.5rem 0.5rem; /* Extra top padding to make room for back button */
  }
  
  /* Shrunk Social Buttons */
  .social-icon-btn {
    width: 2.25rem; /* Shrunk from 2.75rem */
    height: 2.25rem;
  }
  .social-icon-btn svg {
    width: 1rem;
    height: 1rem;
  }

  /* Shrunk Lanyard widgets */
  .presence-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .presence-art-wrapper {
    width: 3.25rem; /* Shrunk from 4.5rem */
    height: 3.25rem;
  }
  .presence-info {
    font-size: 0.75rem;
  }
  .presence-title {
    font-size: 0.8rem !important;
  }
}

/* Hide the custom cursor completely on touch screens where hover is not supported */
@media (hover: none) {
  .custom-cursor, #cursor-canvas {
    display: none !important;
  }
  .profile-body, .profile-body * {
    cursor: auto !important;
  }
}
