/* about.css - Premium Overhaul */

/* Marquee Background */
.marquee-container {
  position: absolute;
  top: 15vh;
  left: 0;
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  transform: rotate(-3deg) scale(1.2);
}

.marquee-content {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15vw;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
  opacity: 0.05;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.about-hero h1, 
.section-heading h2, 
.story-card-v2 h3, 
.game-card h4, 
.game-card h3 {
  color: #111111 !important;
}

.hero-tagline, 
.section-heading p, 
.story-card-v2 p {
  color: #444444 !important;
}

.section-kicker {
  color: #009624 !important;
  font-weight: 700;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #007e1c 0%, #009624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.about-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-avatar {
  width: 380px;
  height: 480px;
  border-radius: 40px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transform: rotate(3deg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-avatar-wrapper:hover .about-avatar {
  transform: rotate(0deg) scale(1.02);
}

.about-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Glassmorphic Chat Bubble */
.chat-bubble {
  position: absolute;
  top: -20px;
  left: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white, #fff);
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  animation: popInFloat 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s;
}

@keyframes popInFloat {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.typewriter-text {
  overflow: hidden;
  border-right: 3px solid var(--green);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.05em;
  width: 0;
  animation: 
    typing 1.5s steps(20, end) forwards 1.4s,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--green); }
}


/* Story Timeline V2 (Horizontal Grid) */
.story-timeline-v2 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.story-timeline-line {
  display: none; /* Hide vertical line in horizontal layout */
}

.story-card-v2 {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 40px 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.story-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green, #00c853), transparent);
  opacity: 0.3;
}

.story-card-v2:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 24px 60px rgba(0, 200, 83, 0.08);
}

.small-card {
  /* No specific width needed in grid */
}

.main-card {
  background: #0a0a0a;
  border-color: rgba(0, 200, 83, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 200, 83, 0.08);
  padding: 44px 36px;
  transform: scale(1.02);
}

.main-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 200, 83, 0.15);
}

.main-card h3 {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.main-card p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.main-card .bg-number {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12) !important;
}

.bg-number {
  position: absolute;
  top: -10px;
  right: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.main-card .bg-number {
  -webkit-text-stroke: 1px rgba(0, 200, 83, 0.1);
}

.story-card-v2 h3 {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.main-card h3 {
  font-size: 2.3rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 200, 83, 0.9) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-card-v2 p {
  position: relative;
  z-index: 1;
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}

/* Video Section */
.about-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  margin-top: 60px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ══ GAMES SHOWCASE ══════════════════════════════════════ */
.games-showcase {
  margin-top: 64px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.games-showcase::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(0,200,83,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.games-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}

/* BASE CARD */
.game-card {
  position: relative;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    opacity 0.35s ease;
}

/* PER-CARD DYNAMIC GLOW LAYER */
.game-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 100%, var(--card-accent, #fff) 0%, transparent 65%);
}

.game-card:hover .game-card-glow {
  opacity: 0.18;
}

/* SMALL CARDS */
.small-game {
  width: 175px;
  height: 250px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.small-game:hover {
  transform: translateY(-16px) scale(1.04);
  border-color: var(--card-accent, rgba(255,255,255,0.2));
  box-shadow:
    0 24px 48px rgba(0,0,0,0.5),
    0 0 28px color-mix(in srgb, var(--card-accent, #fff) 30%, transparent);
  z-index: 10;
}

/* MAIN GAME (MINECRAFT) */
.main-game {
  width: 320px;
  height: 420px;
  padding: 32px;
  z-index: 5;
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 48px rgba(0, 200, 83, 0.08);
  transform: scale(1.05);
  animation: floatMainGame 6s ease-in-out infinite;
}

.main-game:hover {
  transform: scale(1.08) translateY(-8px);
  border-color: rgba(0, 200, 83, 0.55);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 72px rgba(0, 200, 83, 0.2);
}

@keyframes floatMainGame {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.05) translateY(-12px); }
}



/* MAIN GAME GLOW BLOB */
.main-game-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 200, 83, 0.22) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlowMc 4s ease-in-out infinite alternate;
}

@keyframes pulseGlowMc {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* BADGE */
.main-game-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: linear-gradient(135deg, #00c853, #00ff6a);
  color: #000;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.45);
}

/* GAME BG GRADIENT */
.game-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.45s ease;
}

.bg-val   { background: linear-gradient(180deg, transparent 40%, rgba(255,70,85,0.25) 100%);   opacity: 0.4; }
.bg-rust  { background: linear-gradient(180deg, transparent 40%, rgba(206,94,26,0.25) 100%);   opacity: 0.4; }
.bg-mc    { background: linear-gradient(180deg, transparent 25%, rgba(0,200,83,0.25) 100%);    opacity: 0.5; }
.bg-among { background: linear-gradient(180deg, transparent 40%, rgba(233,30,122,0.25) 100%);  opacity: 0.4; }
.bg-pubg  { background: linear-gradient(180deg, transparent 40%, rgba(242,169,0,0.25) 100%);   opacity: 0.4; }

.game-card:hover .bg-val   { opacity: 0.6; }
.game-card:hover .bg-rust  { opacity: 0.6; }
.game-card:hover .bg-mc    { opacity: 0.7; }
.game-card:hover .bg-among { opacity: 0.6; }
.game-card:hover .bg-pubg  { opacity: 0.6; }

/* GAME INFO */
.game-info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card h4, .game-card h3, .story-card-v2 h3 {
  color: #111111;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.story-card-v2 p {
  color: #333333;
}

.small-game h4 { font-size: 1.35rem; }
.main-game h3  { font-size: 2.6rem; }

.game-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.65);
  transition: color 0.35s ease;
}

.game-card:hover .game-label {
  color: rgba(0,0,0,0.7);
}

/* GAME LOGOS */
.game-logo {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 64px;
  height: 64px;
  object-fit: contain;
  z-index: 2;
  opacity: 0.9;
  filter: brightness(0);
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), opacity 0.4s ease;
  pointer-events: none;
}

.main-game .game-logo {
  width: 96px;
  height: 96px;
  transform: translate(-50%, -60%);
  filter: brightness(0) drop-shadow(0 0 16px rgba(0, 200, 83, 0.4));
}

.game-card:hover .game-logo {
  transform: translate(-50%, -58%) scale(1.12);
  opacity: 1;
}

.main-game:hover .game-logo {
  transform: translate(-50%, -63%) scale(1.1);
}

/* Real PNG logos — no white filter, show natural colors */
.game-logo.real-logo {
  filter: none;
  opacity: 0.92;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: normal;
}

.game-card:hover .game-logo.real-logo {
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.bento-item {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}

.bento-item:hover {
  border-color: rgba(0, 200, 83, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 200, 83, 0.08);
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}

.bento-item > * {
  z-index: 2;
  position: relative;
}

.bento-icon {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  color: var(--green);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-item:hover .bento-icon {
  transform: scale(1.1) rotate(-5deg);
  opacity: 1;
  color: #00ff6a;
}

.section-heading h2 {
  color: #111111;
}

.section-heading p {
  color: #666666;
}

.bento-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--white);
}

.bento-item p {
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}

.bento-large { grid-column: span 8; }
.bento-small { grid-column: span 4; }


/* Community CTA */
.community-cta {
  text-align: center;
  padding: 120px 40px;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(5, 26, 13, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(0, 200, 83, 0.15);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 200, 83, 0.05);
  margin-top: 100px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.community-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), inset 0 0 80px rgba(0, 200, 83, 0.08);
}

.community-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
}

/* Background Glow */
.community-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.community-cta .section-kicker {
  color: var(--green);
  margin-bottom: 16px;
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.community-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 0 30px rgba(0, 200, 83, 0.3);
  background: linear-gradient(to bottom, #fff 0%, #00c853 150%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.community-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 650px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Button Refinement */
.btn-youtube, .btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  text-decoration: none;
}

.btn-youtube {
  background: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 0, 0, 0.5);
  background: #ff1a1a;
}

.btn-discord {
  background: #5865F2;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(88, 101, 242, 0.5);
  background: #6a76f4;
}

.btn-youtube svg, .btn-discord svg {
  transition: transform 0.4s ease;
}

.btn-youtube:hover svg, .btn-discord:hover svg {
  transform: rotate(-5deg) scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 80px;
  }
  .about-avatar-wrapper {
    order: -1;
  }
  .chat-bubble {
    left: 50%;
    transform: translate(-50%, 20px) !important;
    animation: popInFloatCenter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s;
  }
  @keyframes popInFloatCenter {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
  }
  
  .bento-large, .bento-small {
    grid-column: span 12;
  }
  
  .story-timeline-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .main-card, .small-card {
    padding: 32px 28px;
    transform: none !important;
  }
  .bg-number {
    font-size: 5rem;
  }
  .marquee-content {
    font-size: 20vw;
  }

  .games-track {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .about-avatar { width: 280px; height: 360px; }
  .chat-bubble { font-size: 1.1rem; padding: 14px 24px; }
  .bento-item { padding: 30px; min-height: 280px; }
  .bento-icon { top: 30px; right: 30px; width: 48px; height: 48px; }
  .bento-item h3 { font-size: 1.8rem; }
  .story-card-v2 { padding: 28px 24px; }
  .main-card { padding: 36px 28px; }
  .story-card-v2 h3 { font-size: 1.5rem; }
  .main-card h3 { font-size: 1.8rem; }
  .bg-number { font-size: 4rem; }
  .community-cta { padding: 60px 20px; }
  .community-cta h2 { font-size: 2.5rem; }
  
  .games-track {
    flex-direction: column;
  }
  .main-game {
    order: -1;
    width: 100%;
    height: 300px;
    animation: none;
  }
  .small-game {
    width: 100%;
    height: 120px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .bg-val, .bg-rust, .bg-among, .bg-pubg {
    background: linear-gradient(90deg, transparent 20%, inherit);
  }
}
