/* ── VARIABLES ── */
:root {
  --black: #080808;
  --white: #f0eeeb;
  --red: #c8000a;
  --red-dim: #8a0007;
  --grey: #1a1a1a;
  --grey-2: #242424;
  --muted: #888;
  --line: #222;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand a { color: inherit; }
.nav-brand span { color: var(--red); }

.nav-center {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 22px;
  height: 64px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:first-child { border-left: 1px solid rgba(255,255,255,0.05); }

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.nav-link.active { color: var(--red); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* LIQUID GLASS BUTTONS */
.btn {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 40px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  
  /* Liquid Glass Base */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--white);
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.red {
  background: rgba(200, 0, 10, 0.15);
  border: 1px solid rgba(200, 0, 10, 0.4);
  box-shadow: 0 4px 16px rgba(200, 0, 10, 0.15), inset 0 1px 0 rgba(255, 100, 100, 0.2);
}

.btn.red:hover {
  background: rgba(200, 0, 10, 0.3);
  border-color: rgba(200, 0, 10, 0.6);
  box-shadow: 0 8px 24px rgba(200, 0, 10, 0.25), inset 0 1px 0 rgba(255, 150, 150, 0.3);
}

/* Nav specific CTA (Portal button - Flashy) */
.nav-cta, .mobile-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 28px;
  border-radius: 50px;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(45deg, #cc0000, #ff1a1a, #8b0000, #ff4d4d);
  background-size: 300% 300%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(200, 0, 10, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: portalGlow 5s ease infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-cta::before, .mobile-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.nav-cta:hover, .mobile-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(200, 0, 10, 0.8), 0 0 40px rgba(255, 50, 50, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.5);
  border-color: #fff;
  letter-spacing: 0.2em;
  color: #fff !important;
  padding-left: 28px !important; /* override mobile hover */
}

.nav-cta:hover::before, .mobile-cta:hover::before {
  left: 100%;
}

@keyframes portalGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover { color: var(--white); padding-left: 32px; }

.mobile-menu .mobile-cta {
  margin: 24px;
}

.mobile-menu .mobile-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  padding: 20px 24px 8px;
  border-bottom: none;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-top {
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--red); }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-email {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-email:hover { color: var(--white); border-color: var(--white); }

.footer-nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.72rem;
  color: #333;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── RESPONSIVE BASE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .footer-top { padding: 40px 24px; grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 16px 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 16px; }
  
  .footer-top { grid-template-columns: 1fr; padding: 48px 20px; gap: 40px; }
  .footer-bottom { padding: 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand { font-size: 2rem; }
  
  h1 { line-height: 0.9; }
  h2 { line-height: 0.95; }
}


/* ── SOCIAL BUTTONS (PILL STYLE) ── */
.social-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-social svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  display: block;
}
@media (hover: hover) {
  .btn-social:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@media (hover: none) {
  .btn-social:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.96);
  }
}

/* ── LIGHTBOX (Liquid Glass Gallery) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open { opacity: 1; pointer-events: all; }

/* Close Button — glass pill */
.lb-close-btn {
  position: fixed; top: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer; width: 48px; height: 48px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lb-close-btn:hover {
  background: rgba(200, 0, 10, 0.2);
  border-color: rgba(200, 0, 10, 0.5);
  color: var(--white);
  transform: rotate(90deg);
  box-shadow: 0 4px 24px rgba(200, 0, 10, 0.2);
}

/* Inner container */
.lightbox-inner {
  position: relative;
  width: min(92vw, 1200px);
  display: flex; flex-direction: column;
  gap: 16px;
  animation: lbSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lbSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Image Frame — liquid glass card */
.lightbox-img-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px;
  max-height: 72vh;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 68vh;
  object-fit: contain; display: block;
  border-radius: 12px;
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  will-change: transform;
}
.lightbox-img-wrap img.fading { opacity: 0; }

/* Zoom */
.lightbox-img-wrap { cursor: zoom-in; overflow: hidden; }
.lightbox-img-wrap.zoomed { cursor: zoom-out; }
.lightbox-img-wrap.zoomed img {
  transform: scale(2.5);
}
.lightbox.is-zoomed .lb-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Arrow Buttons — circular glass */
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(200, 0, 10, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 0, 10, 0.35);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lb-arrow:hover {
  background: rgba(200, 0, 10, 0.2);
  border-color: rgba(200, 0, 10, 0.4);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(200, 0, 10, 0.2);
}
.lb-arrow-prev { left: 24px; }
.lb-arrow-next { right: 24px; }
.lb-arrow[disabled] { opacity: 0.15; pointer-events: none; }

/* Info Bar — glass panel */
.lightbox-info {
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.lightbox-meta .lb-type {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.lightbox-meta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.04em;
  line-height: 1; margin-bottom: 2px;
}
.lightbox-meta p {
  font-size: 0.78rem; color: var(--muted); font-weight: 300;
  max-width: 50ch;
}
.lb-counter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.12em;
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 18px;
}
.lb-counter span { color: var(--white); }

/* Thumbnail Strip */
.lb-thumbs {
  display: flex; gap: 8px;
  padding: 4px 0 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  justify-content: center;
}
.lb-thumbs::-webkit-scrollbar { height: 3px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.lb-thumb {
  flex-shrink: 0; width: 72px; height: 48px;
  object-fit: cover; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}
.lb-thumb:hover {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.lb-thumb.active {
  border-color: var(--red);
  opacity: 1;
  box-shadow: 0 2px 12px rgba(200, 0, 10, 0.3);
}

/* Project Nav — hidden in case study lightbox */
.lb-project-nav { display: none; }
.lb-proj-btn {
  background: none; border: none; color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; transition: color 0.2s; padding: 4px 0;
}
.lb-proj-btn:hover { color: var(--white); }
.lb-proj-btn[disabled] { opacity: 0.2; pointer-events: none; }

@media (max-width: 768px) {
  .lightbox-inner { width: 96vw; gap: 10px; }
  .lightbox-img-wrap { max-height: 55vh; padding: 8px; border-radius: 14px; }
  .lightbox-img-wrap img { max-height: 52vh; border-radius: 8px; }
  .lb-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .lb-arrow-prev { left: 12px; }
  .lb-arrow-next { right: 12px; }
  .lb-close-btn { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-info { padding: 12px 16px; border-radius: 10px; flex-direction: column; align-items: flex-start; }
  .lb-counter { align-self: flex-end; padding: 6px 14px; font-size: 1.1rem; }
  .lb-thumb { width: 56px; height: 38px; border-radius: 6px; }
}

/* ── CTA STRIP (shared) ── */
.portfolio-cta + footer { border-top: none; }

.portfolio-cta {
  margin: 0 48px 0;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 64px 48px;
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.portfolio-cta::before {
  content: '';
  position: absolute;
  top: -100%; left: -50%;
  width: 200%; height: 300%;
  background: radial-gradient(circle at center, rgba(200,0,10,0.08) 0%, transparent 60%);
  animation: rotateGlow 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.portfolio-cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
}

@media (max-width: 768px) {
  .portfolio-cta {
    margin: 0 20px;
    padding: 40px 28px;
    flex-direction: column;
    text-align: center;
  }
}

/*  LEGENDARY MODAL UI  */
.legendary-modal {
    position: relative;
    background: #050505 !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 30px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    overflow: hidden;
}

.legendary-modal::before {
    content: "";
    position: absolute;
    top: 0; left: -50%;
    width: 200%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), #fff, var(--accent-color), transparent);
    animation: legendaryGlow 4s linear infinite;
    opacity: 0.8;
}

@keyframes legendaryGlow {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Floating Labels */
.floating-group {
    position: relative;
    margin-bottom: 32px;
}

.floating-input {
    width: 100%;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px;
    padding: 24px 20px 10px 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.floating-input:focus {
    outline: none;
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(200,0,10,0.15), inset 0 2px 10px rgba(0,0,0,0.5);
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input.has-value ~ .floating-label {
    top: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Legendary Cards */
.legendary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(10,10,10,0.9));
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: perspective(1000px) translateZ(0);
    position: relative;
    overflow: hidden;
}

.legendary-card:hover {
    transform: perspective(1000px) translateZ(10px) translateY(-2px);
    background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(15,15,15,0.9));
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.legendary-card.active {
    border-color: var(--accent-color);
    background: linear-gradient(145deg, rgba(200,0,10,0.05), rgba(10,10,10,0.9));
    box-shadow: 0 0 20px rgba(200,0,10,0.15), inset 0 0 10px rgba(200,0,10,0.05);
}

/* Cyber Toggle */
.cyber-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.cyber-toggle::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cyber-toggle-input:checked + .cyber-toggle {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.cyber-toggle-input:checked + .cyber-toggle::after {
    transform: translateX(20px);
    background: #fff;
}

/* Animated Button */
.legendary-btn {
    position: relative;
    padding: 16px 40px;
    background: linear-gradient(45deg, #cc0000, #ff1a1a);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(200,0,10,0.4), inset 0 2px 0 rgba(255,255,255,0.2);
}

.legendary-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
}

.legendary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(200,0,10,0.6), 0 0 20px rgba(255,50,50,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
}

.legendary-btn:hover::before {
    left: 100%;
}



    /* --- CUSTOM VIDEO PLAYER --- */
    .custom-video-wrapper {
      position: relative;
      cursor: pointer;
    }
    .video-overlay-play {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80px;
      height: 80px;
      background: rgba(200, 0, 10, 0.8);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      opacity: 0;
      transition: opacity 0.3s, transform 0.3s;
      pointer-events: none;
      z-index: 10;
    }
    .custom-video-wrapper.is-paused .video-overlay-play {
      opacity: 1;
    }
    .custom-video-wrapper:hover .video-overlay-play {
      transform: translate(-50%, -50%) scale(1.1);
    }
    
    .video-controls {
      position: absolute;
      bottom: 20px;
      left: 20px;
      right: 20px;
      height: 50px;
      background: rgba(10, 10, 10, 0.85);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 25px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s, transform 0.3s;
      z-index: 20;
    }
    .custom-video-wrapper:hover .video-controls,
    .custom-video-wrapper.is-paused .video-controls {
      opacity: 1;
      transform: translateY(0);
    }
    
    .vc-btn {
      background: none;
      border: none;
      color: var(--white);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      transition: background 0.2s, color 0.2s;
    }
    .vc-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--red);
    }
    .vc-btn svg {
      width: 20px;
      height: 20px;
    }
    
    .vc-progress-container {
      flex: 1;
      height: 20px;
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    .vc-progress-bar {
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      position: relative;
      transition: height 0.2s;
    }
    .vc-progress-container:hover .vc-progress-bar {
      height: 6px;
    }
    .vc-progress-filled {
      height: 100%;
      background: var(--red);
      border-radius: 2px;
      width: 0%;
      pointer-events: none;
    }
    
    .vc-time {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      min-width: 80px;
      text-align: center;
    }
    .vc-volume-wrapper {
      display: flex;
      align-items: center;
      position: relative;
    }
    .vc-volume-container {
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px);
      width: 32px;
      height: 100px;
      background: rgba(10, 10, 10, 0.9);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 12px 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      margin-bottom: 12px;
      z-index: 30;
    }
    .vc-volume-wrapper:hover .vc-volume-container {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }
    .vc-volume-bar {
      width: 4px;
      height: 100%;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      cursor: pointer;
      position: relative;
    }
    .vc-volume-filled {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--white);
      border-radius: 2px;
      pointer-events: none;
    }


    .vc-volume-container::after {
      content: '';
      position: absolute;
      bottom: -15px;
      left: 0;
      width: 100%;
      height: 15px;
      background: transparent;
    }
