/* Reset & vars */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --bg:#787969;
  --accent:#ff6b3c;
  --muted:#ffffff;
  --max-width:1100px;
}

/* Page background */
/* body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(135deg, #cfaeae, #60a8a8, #639799);
  background-attachment: fixed;
  color: #eef2f5;
  line-height: 1.5;
} */

/* Navbar */
.navbar {
  position: fixed; top:0; left:0; right:0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(73, 21, 21, 0.6), rgba(10,12,14,0));
  backdrop-filter: blur(4px);
}
.logo { font-weight: 800; font-size: 20px; display: flex; gap: 2px; }
.logo-game span { color: #fff; }
.logo-banai span:nth-child(1){ color: #ff8800; }
.logo-banai span:nth-child(2){ color: #f1c40f; }
.logo-banai span:nth-child(3){ color: #2ecc71; }
.logo-banai span:nth-child(4){ color: #15e8f7; }
.logo-banai span:nth-child(5){ color: #0059ff; }

/* Navbar links always white */
.navlinks a {
  color: #fff;
  text-decoration: none;
  margin-left: 22px;
  font-weight: 600;
  font-size: 14px;
}
.navlinks a:hover {  
  color: #ff6b3c;
  text-shadow: 0 0 6px var(--accent);
}

/* Hero */
.hero {
  min-height: 70vh;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,12,0.55), rgba(7,10,12,0.7));
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  max-width: var(--max-width); padding: 100px 20px;
}
.hero-title {
  font-size: 72px; line-height: 1;
  text-transform: uppercase; font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.hero-sub { color: var(--muted); margin: 18px auto 28px; font-size: 18px; }

/* Sections */
/* Global section styling */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
  width: 100%;          /* make it span full width */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;     /* remove rounded edges */
}

.section::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(20,20,25,0.65); /* static overlay only */
  z-index:-1;
}


/* Optional: fallback page background */
:root {
  --page-bg: linear-gradient(135deg, #cfaeae, #60a8a8, #639799);
}

body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0f, #151520);
  color: #eef2f5;
  line-height: 1.5;
}



.section h2 {
  font-size: 40px; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 900; color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
  position: relative;
}
.section h2::after {
  content: ""; display: block; width: 80px; height: 4px;
  margin: 10px auto 0;
  background: var(--accent); border-radius: 2px;
}
.section p, .section li {
  font-size: 16px; color: #f0f0f0;
  line-height: 1.8; margin-bottom: 16px;
}
.lead { color: var(--muted); text-align: center; margin: 20px auto; max-width: 800px; }

/* Base button style (works for <a> and <button>) */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff; /* text always visible */
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
  font-family: inherit; /* inherit site font */
}

/* Span inside button */
.btn span {
  position: relative;
  z-index: 2; /* text always above pseudo-elements */
  display: inline-block;
}

/* Hover effect layers */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 0;
  background: #fff;
  z-index: 1; /* behind text */
  transition: width 0.4s ease;
}

.btn::before { left: 50%; }
.btn::after  { right: 50%; }

/* Hover animation */
.btn:hover::before,
.btn:hover::after { width: 50%; }

.btn:hover { color: var(--accent); background: #fff; }

/* Optional: different size for card buttons */
.game-card .btn {
  padding: 10px 22px;
  font-size: 14px;
}

.game-card a.btn {
  color: #fff; /* force white text */
}
.game-card a.btn:hover {
  color: var(--accent);
}

/* Media */
.media-wrap { max-width: 900px; margin: 0 auto 24px; text-align: center; }
.video-carousel { position: relative; max-width: 800px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.7); }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.carousel-btn {
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent);
  padding: 8px 16px; border-radius: 6px;
  cursor: pointer; font-weight: 600;
  transition: .3s;
}
.carousel-btn:hover { background: #fff; color: var(--accent); }
.carousel-btn.active { background: #fff; color: var(--accent); }

/* Games */
.games-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.game-card {
  background: rgba(255,255,255,0.08);
  padding: 14px; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}
.game-card img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 6px; margin-bottom: 10px;
}
.game-card h3 { margin: 6px 0 8px; font-size: 18px; }
.game-card p { color: var(--muted); font-size: 14px; }
.game-card a { color: var(--accent); text-decoration: none; }
.game-card a:hover { text-decoration: underline; }


/* Back-to-top Button (shutter) */
#backToTop {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  display: none;
  z-index: 100;
  overflow: hidden;
}
#backToTop span { position: relative; z-index: 2; }
#backToTop::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 100%;
  background: #fff;
  transform: translateY(100%); /* start below */
  transition: transform 0.4s ease;
  z-index: 1;
}
#backToTop:hover::before { transform: translateY(0); }
#backToTop:hover { color: var(--accent); }

/* Logo animation
.logo-game span,.logo-banai span {
  display: inline-block;
  animation: logoBuild 3s ease-in-out infinite;
}
.logo-game span:nth-child(1){ animation-delay: 0s; }
.logo-game span:nth-child(2){ animation-delay: 0.1s; }
.logo-game span:nth-child(3){ animation-delay: 0.2s; }
.logo-game span:nth-child(4){ animation-delay: 0.3s; }
.logo-banai span:nth-child(1){ animation-delay: 0.4s; }
.logo-banai span:nth-child(2){ animation-delay: 0.5s; }
.logo-banai span:nth-child(3){ animation-delay: 0.6s; }
.logo-banai span:nth-child(4){ animation-delay: 0.7s; }
.logo-banai span:nth-child(5){ animation-delay: 0.8s; }
@keyframes logoBuild {
  0% { transform: translateY(20px) rotate(-15deg) scale(0.3); opacity: 0; filter: blur(4px); }
  40% { transform: translateY(0) scale(1); opacity: 1; filter: none; }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: none; }
} */

/* Responsive */
@media(max-width: 800px) {
  .hero-title { font-size: 40px; }
  .navbar { 
    padding: 12px 18px; 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  .games-grid {
    grid-template-columns: 1fr;  /* stack cards on small screens */
  }
  .section {
    padding: 60px 15px;  /* less padding for small screens */
  }
}


.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Game card styling */
.game-card {
  background: rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.game-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.game-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Show More/Less functionality */
.games-grid-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 0; /* will be set dynamically in JS */
  transition: max-height 0.5s ease;
}
.btn.visible {
  display: inline-block;
}
.btn.invisible {
  display: none;
}

/* Keep the section title centered */
.section-title {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

/* Gradient colored "Policy" */
.section-title .accent-text {
  background: linear-gradient(90deg, #ff8800, #f1c40f, #2ecc71, #15e8f7, #0059ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Underline */
.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff8800, #f1c40f, #2ecc71, #15e8f7, #0059ff);
  animation: expandUnderline 1s forwards;
  animation-delay: 0.5s;
}

/* Fade in animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandUnderline {
  to { width: 100px; }
}

/* Left align all text in this section */
.section.text-left {
  text-align: left;
}
.section.text-left p,
.section.text-left ul,
.section.text-left h3 {
  margin-left: 0;
  margin-right: 0;
}

.btn-icon {
  height: 22px;      /* adjust as needed */
  margin-left: 8px;  /* space between text and icon */
  vertical-align: middle;
}
.btn-dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 8px;
  z-index: 10;

  font-size: 14px; /* 👈 added */
}


.btn-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  text-decoration: none;
  color: #fff;
}

.dropdown-content a:hover { color: var(--accent); }

/* Team Section */
.team-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.team-card {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
  text-align: center;
  transition: transform 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid var(--accent);
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #fff;
}

.team-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-links a {
  color: #fff;
  margin: 0 6px;
  font-size: 14px;
  text-decoration: none;
}
.team-links a:hover {
  color: #ece923;
  text-shadow: 0 0 6px var(--accent);
}

.policy-section {
  padding: 120px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.policy-title {
  font-size: 42px;
  margin-bottom: 10px;
  color: #fff;
  text-align: left;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.last-updated {
  color: #bbb;
  margin-bottom: 30px;
  font-size: 14px;
  text-align: left;
}

.policy-content section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.policy-content h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}

.policy-content p,
.policy-content ul {
  font-size: 15px;
  color: #eee;
  line-height: 1.7;
  margin-bottom: 14px;
}

.policy-content ul {
  padding-left: 20px;
  list-style: disc;
}


/* ===== IMPROVED VEHICLE-STYLE LOGO (NO WHEELS) ===== */
.navbar .logo {
  position: relative;
  overflow: visible;
}

/* Drive in → idle → fade & glide out */
/* Drive in → idle → smooth fade/glide out */
.logo--drive {
  animation: driveInIdleOut 7s ease-out infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
}


@keyframes driveInIdleOut {
  0%   { transform: translate3d(-140%,0,0); opacity: 0; }
  10%  { transform: translate3d(-20%,0,0);  opacity: 1; }
  15%  { transform: translate3d(0,0,0);     opacity: 1; }
  70%  { transform: translate3d(0,0,0);     opacity: 1; }
  100% { transform: translate3d(120%,0,0);  opacity: 0; }
}


/* Stop per-letter animation on drive logo */
.logo--drive .logo-game span,
.logo--drive .logo-banai span {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}


/* --- Entry smoke (soft cartoon puffs) --- */
.logo--drive .smoke {
  position: absolute;
  left: -10px;
  bottom: -6px;
  width: 1px; height: 1px;      /* anchor point */
  pointer-events: none;
}
.logo--drive .smoke::before,
.logo--drive .smoke::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170,170,170,.8) 0%, rgba(170,170,170,.4) 45%, rgba(170,170,170,0) 70%);
  filter: blur(.6px);
  opacity: 0;
  animation: puffIn 1.4s ease-out infinite;
}
.logo--drive .smoke::after { animation-delay: .35s; }

@keyframes puffIn {
  /* Only puff during the arrival/early idle window */
  0%   { transform: translate(-4px, 0) scale(.5); opacity: 0; }
  8%   { transform: translate(-10px, -3px) scale(.8); opacity: .85; }
  20%  { transform: translate(-24px, -8px) scale(1.2); opacity: .5; }
  35%  { transform: translate(-38px, -12px) scale(1.6); opacity: .0; }
  100% { opacity: 0; }
}

/* --- Cartoon wind streaks on entry --- */
.logo--drive .wind {
  position: absolute;
  left: -26px;
  bottom: -2px;
  width: 1px; height: 1px;      /* anchor point */
  pointer-events: none;
}
.logo--drive .wind::before,
.logo--drive .wind::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%),
    linear-gradient(90deg, rgba(150,200,255,.0) 0%, rgba(150,200,255,.4) 50%, rgba(150,200,255,0) 100%);
  box-shadow: 0 0 6px rgba(180,220,255,.35);
  transform: scaleX(0);
  opacity: 0;
  animation: gust 1.1s ease-out infinite;
}
.logo--drive .wind::after {
  height: 2px;
  bottom: 6px;
  animation-delay: .22s;
}

@keyframes gust {
  0%   { transform: translateX(0)   scaleX(0.1); opacity: 0; }
  8%   { transform: translateX(-8px) scaleX(1.0); opacity: .9; }
  22%  { transform: translateX(-24px) scaleX(1.4); opacity: .45; }
  35%  { transform: translateX(-42px) scaleX(1.1); opacity: 0; }
  100% { opacity: 0; }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .logo--drive { animation: none; opacity: 1; transform: none; }
  .logo--drive .smoke::before,
  .logo--drive .smoke::after,
  .logo--drive .wind::before,
  .logo--drive .wind::after { animation: none; opacity: 0; }
}


/* ===== New CodePen-like Footer ===== */
.footer {
  background: linear-gradient(135deg, #161616, #464646);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 20%);
  background-size: 50px 50px;
  animation: footerBG 10s linear infinite;
  z-index: 0;
}

@keyframes footerBG {
  0%   { transform: translate(0,0); }
  100% { transform: translate(50px,50px); }
}

.footer-container { position: relative; z-index: 1; }

.footer-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-text { font-size: 1rem; opacity: .9; }

.footer-email a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-email a:hover { color: #00d4ff; }

.footer-social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.footer-social a:hover {
  background: #2c2c2c;
  color: #111;
  transform: scale(1.1);
}

.footer-copy {
  font-size: .9rem;
  margin-top: 12px;
  opacity: .75;
}

/* Anchor offset so the fixed navbar doesn't cover it */
#contact { scroll-margin-top: 100px; }


@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --cyberpunk-yellow: #f0e801;
  --among-us-red: #c51110;
  --fall-guys-pink: #fa40a3;
}

.bg-cyberpunk:hover {
  background: var(--cyberpunk-yellow);
}
.bg-among-us:hover {
  background: var(--among-us-red);
}
.bg-fall-guys:hover {
  background: var(--fall-guys-pink);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}
/* Make the games container behave like Tailwind's grid utilities */
._container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: min(1100px, 95%);
  margin: 0 auto;
  align-items: start;
}
.card {
  transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
}

.name {
  transform: translate3d(0, 0, 50px);
  transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
}

.card:hover .name {
  top: 1rem;
  opacity: 1;
}

.buy {
  left: 50%;
  transform: translate3d(-50%, 0, 50px);
  transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
}

.card:hover .buy {
  bottom: 1rem;
  opacity: 1;
}

img {
  transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
}

.card:hover img {
  transform: translate3d(0, 0, 50px);
  transform-style: preserve-3d;
}

.image::before {
  content: "";
  border-radius: .25rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: .25rem;
  opacity: 0;
  transition: all .5s;
}

.card:hover .image::before {
  opacity: .2;
}

.image-1::before {
  background: center / cover url("https://images.igdb.com/igdb/image/upload/t_cover_big/co1rft.jpg");
}
.image-2::before {
  background: center / cover url("https://images.igdb.com/igdb/image/upload/t_cover_big/co1uaf.jpg");
}
.image-3::before {
  background: center / cover url("https://images.igdb.com/igdb/image/upload/t_cover_big/co2fq7.jpg");
}


/* Space below the "Our Games" heading */
#games h1 {
  margin: 0 0 32px; /* adjust 32px to taste */
}

/* Optional: use grid row gap so anything after the h1 stays spaced nicely */
#games > .min-h-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 32px;   /* keeps consistent spacing below the heading */
}


/* Center remaining cards horizontally (and wrap if more than one) */
#games ._container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical align for single row */
  gap: 2rem;
  width: min(1100px, 95%);
  margin: 0 auto;
  min-height: 380px;         /* so 1–2 cards sit nicely in the middle */
}

/* Fixed card sizing */
#games .card {
  width: 320px;          /* pick your width */
  /* height: 480px; */   /* uncomment if you want a strict height */
}

/* Image wrapper with aspect ratio (acts like a frame) */
#games .card .image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;   /* choose ratio: 1/1, 3/4, 16/9, etc. */
  overflow: hidden;
  border-radius: 8px;
  background: #000;      /* background fills empty space */
}

/* Image contained inside, no cropping */
#games .card .image img.product {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Change from 'contain' to 'cover' */
  background: #000;   /* Optional, for letterboxing if needed */
  display: block;
}

/* Ensure menu can render outside card */
.card { position: relative; overflow: visible; }
/* Open state for mobile/tap */
.card-dropdown.is-open .dropdown-content { display: block; }

/* Move trigger to middle-right */
.card-dropdown {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 5;
}

/* Panel opens to the right, vertically centered */
.card-dropdown .dropdown-content {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px); /* to the RIGHT of the trigger */
  transform: translateY(-50%);
  right: auto;
  min-width: 200px;
  display: none;
  padding: 8px;
  border-radius: 10px;
  background: rgba(15,15,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  z-index: 10;
}

/* Side arrow pointing from card to panel (optional) */
.card-dropdown .dropdown-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid rgba(15,15,20,0.92);
}

/* Show on hover/focus (unchanged) */
.card:hover .dropdown-content,
.card:focus-within .dropdown-content,
.card-dropdown:hover .dropdown-content,
.card-dropdown:focus-within .dropdown-content {
  display: block;
}

/* ===================== */
/* Card dropdown (mobile)*/
/* ===================== */
@media (max-width: 768px) {
  .card {
    transition: transform 0.3s ease;
  }

  .card.is-open {
    transform: scale(0.9);         /* shrink slightly */
    transform-origin: left center; /* shrink towards left */
    z-index: 10;
  }

  .card.is-open .card-dropdown {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
  }

  .card.is-open .card-dropdown .dropdown-content {
    min-width: 160px;
    max-width: 60vw;               /* auto-clamp */
    transform: translateY(-50%);
  }

  .card.is-open .card-dropdown .dropdown-content::before {
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(15,15,20,0.92);
  }
}

/* ===================== */
/* Team Section (desktop)*/
/* ===================== */
.team-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.team-card {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
  text-align: center;
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); }

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid var(--accent);
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #fff;
}

.team-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-links a {
  color: #fff;
  margin: 0 6px;
  font-size: 14px;
  text-decoration: none;
}
.team-links a:hover {
  color: #ece923;
  text-shadow: 0 0 6px var(--accent);
}

/* ===================== */
/* Team Section (mobile) */
/* ===================== */
@media (max-width: 768px) {
  .team-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .team-grid::-webkit-scrollbar { display: none; }

  .team-card {
    flex: 0 0 100%;          /* 👈 one full card per swipe */
    max-width: none;
    scroll-snap-align: start;
  }

  .team-card:first-child { margin-left: 0; }
  .team-card:last-child { margin-right: 16px; }
}
