:root {
  --primary: #0088ff;
  --secondary: #00fbff;
  --accent: #0055ff;
  --bg-dark: #000000;
  --bg-light: #050510;
  --glass: rgba(0, 50, 150, 0.05);
  --glass-border: rgba(0, 150, 255, 0.1);
  --text-main: #ffffff;
  --text-dim: #a0b0ff;
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --nav-height: 80px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  margin-top: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout */
section {
  padding: 70px 10% 50px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

#home {
  min-height: 100vh;
  padding-top: 80px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.5));
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

/* Hero Section */
#home {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  opacity: 0.4;
}

#hero-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 0;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent, var(--bg-dark));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-text h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 400px;
  height: 400px;
  position: relative;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 5px solid var(--glass-border);
  animation: blob 10s infinite alternate;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  100% {
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
  }
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--primary);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Grid Components */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.glass-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  transition: transform 0.1s ease-out, border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 136, 255, 0.25);
}

.glass-card>* {
  transform: translateZ(20px);
}

/* Experience Timeline Styling */
#experience {
  position: relative;
  overflow: visible;
}

.experience-timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--glass-border);
  transform: translateX(-50%);
  border-radius: 10px;
}

.experience-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-item:nth-child(even) {
  left: 50%;
  transform: translateX(30px);
}

.experience-item:nth-child(odd) {
  left: 0;
  text-align: right;
  transform: translateX(-30px);
}

.experience-item.active {
  opacity: 1;
  transform: translateX(0);
}

.experience-node {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 4px solid var(--glass-border);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.experience-item:nth-child(even) .experience-node {
  left: -12px;
}

.experience-item:nth-child(odd) .experience-node {
  right: -12px;
}

.experience-item.active .experience-node {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  background: var(--primary);
}

.experience-item .glass-card {
  padding: 25px;
  text-align: left;
}

@media (max-width: 768px) {
  .experience-timeline::before {
    left: 20px;
  }

  .experience-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
    transform: translateX(20px) !important;
  }

  .experience-node {
    left: 8px !important;
    right: auto !important;
  }
}

/* Skills Track Styling */
#skills {
  position: relative;
  overflow: visible;
}

.skills-container {
  position: relative;
  max-width: 900px;
  margin: 30px auto 0;
  padding-left: 50px;
}

.skills-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--glass-border);
  border-radius: 10px;
}

.skills-bar-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  border-radius: 10px;
  transition: height 0.1s linear;
}

.skill-item {
  position: relative;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item.active {
  opacity: 1;
  transform: translateX(0);
}

.skill-dot {
  position: absolute;
  left: -58px;
  top: 25px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 4px solid var(--glass-border);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.skill-item.active .skill-dot {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

/* Hero Entry Animations */
.hero-text h3 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards 0.2s;
}

.hero-text h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards 0.4s;
}

.hero-text p {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards 0.6s;
}

.btn-group {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards 0.8s;
}

.hero-image {
  opacity: 0;
  transform: scale(0.9);
  animation: heroScaleIn 1s ease forwards 0.5s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  nav ul {
    display: none;
  }
}

/* ===================================================
   ACHIEVEMENTS SECTION & 3D CARD DECK
=================================================== */

.achievements-section {
  position: relative;
  overflow: visible;
  padding: 80px 8% 60px;
}

.achievements-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 35px;
}

.section-subtitle {
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.deck-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.deck-action-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px 24px;
  cursor: pointer;
}

/* Stage Layout */
.achievements-stage-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 20px;
  min-height: 540px;
  position: relative;
}

/* Deck Table Side (Left) */
.deck-table-side {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.deck-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.deck-counter-badge strong {
  color: var(--secondary);
}

.deck-wrapper {
  position: relative;
  width: 280px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.cards-deck-stack {
  position: relative;
  width: 260px;
  height: 380px;
  transform-style: preserve-3d;
}

.deck-hint {
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

/* Individual Cards in the Deck */
.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.deck-card:hover {
  transform: translateY(-28px) scale(1.06) !important;
  z-index: 99 !important;
  box-shadow: 0 20px 45px rgba(0, 136, 255, 0.4), 0 0 25px rgba(0, 251, 255, 0.3) !important;
}

.deck-card.active-in-deck {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 25px rgba(0, 251, 255, 0.5) !important;
}

/* Card Shuffle Animation */
@keyframes cardShuffleLeft {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-80px, -20px) rotate(-22deg) scale(0.95); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes cardShuffleRight {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(80px, -20px) rotate(22deg) scale(0.95); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.deck-card.shuffling-left {
  animation: cardShuffleLeft 0.5s ease-in-out;
}

.deck-card.shuffling-right {
  animation: cardShuffleRight 0.5s ease-in-out;
}

/* Card Back Common Styling */
.card-back-frame {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #0d1a38 0%, #050816 70%, #02030a 100%);
  border: 2px solid rgba(0, 200, 255, 0.3);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 136, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(0, 251, 255, 0.3);
  border-radius: 11px;
  pointer-events: none;
}

.card-back-pattern {
  width: 82%;
  height: 86%;
  background: 
    linear-gradient(135deg, rgba(0, 136, 255, 0.08) 25%, transparent 25%) -12px 0,
    linear-gradient(225deg, rgba(0, 136, 255, 0.08) 25%, transparent 25%) -12px 0,
    linear-gradient(315deg, rgba(0, 136, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0, 136, 255, 0.08) 25%, transparent 25%);
  background-size: 24px 24px;
  background-color: rgba(3, 8, 25, 0.85);
  border: 1px solid rgba(0, 150, 255, 0.25);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-center-emblem {
  text-align: center;
  position: relative;
  z-index: 2;
}

.emblem-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  filter: drop-shadow(0 0 12px var(--primary));
  margin-bottom: 8px;
}

.emblem-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 251, 255, 0.6);
}

.emblem-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-top: 4px;
  font-weight: 600;
}

/* Card Corners Pips */
.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-heading);
  user-select: none;
}

.card-corner span.rank {
  font-size: 1.15rem;
}

.card-corner span.suit {
  font-size: 1rem;
  margin-top: 2px;
}

.card-corner.top-left {
  top: 10px;
  left: 12px;
}

.card-corner.bottom-right {
  bottom: 10px;
  right: 12px;
  transform: rotate(180deg);
}

.card-corner.top-right {
  top: 10px;
  right: 12px;
}

.card-corner.bottom-left {
  bottom: 10px;
  left: 12px;
  transform: rotate(180deg);
}

/* Suit Colors */
.suit-red, .suit-hearts, .suit-diamonds {
  color: #ff3b69;
  filter: drop-shadow(0 0 6px rgba(255, 59, 105, 0.5));
}

.suit-black, .suit-spades, .suit-clubs {
  color: var(--secondary);
  filter: drop-shadow(0 0 6px rgba(0, 251, 255, 0.5));
}

/* Showcase Side (Right) */
.showcase-side {
  flex: 1.2;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.showcase-card-3d {
  width: 330px;
  height: 480px;
  perspective: 1400px;
  margin: 0 auto;
}

.card-inner-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.4, 1.2);
  cursor: pointer;
}

.card-inner-flipper.is-flipped {
  transform: rotateY(180deg);
}

/* Dealing pop animation */
@keyframes cardDealPop {
  0% { transform: scale(0.85) rotateY(0deg); opacity: 0.6; }
  40% { transform: scale(1.05) rotateY(90deg); opacity: 1; }
  100% { transform: scale(1) rotateY(180deg); opacity: 1; }
}

.card-inner-flipper.dealing {
  animation: cardDealPop 0.75s cubic-bezier(0.2, 0.85, 0.4, 1.15) forwards;
}

.card-face-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 136, 255, 0.25);
  border: 2px solid rgba(0, 200, 255, 0.35);
  overflow: hidden;
}

.card-back-design {
  transform: rotateY(0deg);
}

.card-front-design {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(8, 14, 38, 0.96), rgba(4, 7, 20, 0.98));
  backdrop-filter: blur(20px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(0, 240, 255, 0.4);
}

/* Card Front Content */
.card-front-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 24px;
  padding-right: 4px;
}

.card-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 251, 255, 0.3);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.card-company-pill i {
  color: var(--secondary);
}

.card-badge-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
}

/* Image preview in card */
.card-media-box {
  position: relative;
  width: 100%;
  height: 195px;
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 150, 255, 0.25);
  background: #02040b;
  cursor: pointer;
}

.card-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.card-media-box:hover img {
  transform: scale(1.05);
}

.card-media-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 60, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.card-media-box:hover .card-media-hover-overlay {
  opacity: 1;
}

.card-media-hover-overlay i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.card-media-hover-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* Card Body */
.card-info-box {
  margin-top: 2px;
}

.card-info-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-info-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.card-info-meta .card-date {
  color: var(--secondary);
  font-weight: 600;
}

.card-info-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(220, 230, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Showcase Controls */
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-deck-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-deck-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.08);
}

.btn-deck-action {
  padding: 10px 18px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

/* ===================================================
   LIGHTBOX MODAL
=================================================== */

.achievement-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.achievement-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 15, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 24px 30px;
  border-radius: 20px;
  background: rgba(6, 11, 30, 0.95);
  border: 1.5px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 136, 255, 0.3);
  overflow-y: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  color: var(--secondary);
  transform: scale(1.15);
}

.lightbox-header {
  margin-bottom: 15px;
}

.lightbox-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 136, 255, 0.2);
  border: 1px solid rgba(0, 251, 255, 0.4);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.lightbox-header h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #020308;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  margin-bottom: 16px;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-footer p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Responsive Rules for Achievements */
@media (max-width: 992px) {
  .achievements-stage-container {
    flex-direction: column;
    gap: 40px;
  }

  .deck-table-side {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .deck-wrapper {
    width: 240px;
    height: 350px;
  }

  .cards-deck-stack {
    width: 220px;
    height: 330px;
  }

  .showcase-card-3d {
    width: 285px;
    height: 440px;
  }

  .card-media-box {
    height: 160px;
  }

  .card-info-title {
    font-size: 1.05rem;
  }

  .showcase-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lightbox-content {
    padding: 18px;
  }
}
