* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.container {
  max-width: 90%;
  width: 100%;
  position: relative;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: clamp(4rem, 12vw, 8rem) auto clamp(3rem, 10vw, 6rem);
}

.main-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.main-logo:hover {
  transform: scale(1.04);
}

.team-member {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(165, 180, 252, 0.5);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transition: all 0.35s ease;
  z-index: 2;
}

.team-member.member-2 {
  border: 3px solid transparent;
  box-shadow: 
    0 0 8px 2px rgba(165, 200, 255, 0.6),
    0 0 20px 6px rgba(100, 150, 255, 0.35),
    0 0 40px 12px rgba(80, 120, 255, 0.15),
    inset 0 0 12px rgba(165, 200, 255, 0.4);
  transition: all 0.4s ease;
}

.team-member.member-2:hover {
  box-shadow: 
    0 0 12px 4px rgba(165, 200, 255, 0.9),
    0 0 30px 10px rgba(100, 150, 255, 0.6),
    0 0 60px 20px rgba(80, 120, 255, 0.3),
    inset 0 0 16px rgba(165, 200, 255, 0.6);
  transform: scale(1.08);
}

.team-member:hover {
  transform: scale(1.06);           /* csökkentve 1.12-ről → kisebb konfliktus az :active-val */
  border-color: #c084fc;
  z-index: 10;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tükrözés */
.member-1 img,
.member-4 img {
  transform: scaleX(-1);
}

/* Név alul */
.team-member::after {
  content: attr(data-name);
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2px, 0.8vw, 8px);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 35%, transparent);
  color: #ffffff;
  font-size: clamp(0.68rem, 2.2vw, 0.95rem);
  font-weight: 600;
  padding: clamp(8px, 2.5vw, 16px) 6px clamp(4px, 1.5vw, 8px);
  text-align: center;
  pointer-events: none;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  opacity: 0.94;
  transition: opacity 0.3s ease;
}

.team-member.member-2::after {
  background: linear-gradient(
    to top,
    #1a1f3a 35%,
    #2c3560 65%,
    rgba(165, 200, 255, 0.18) 85%,
    transparent
  );
  color: #d4e0ff;
  text-shadow:
    0 0 3px rgba(165, 200, 255, 0.6),
    0 0 8px rgba(165, 200, 255, 0.4),
    0 1px 2px rgba(0,0,0,0.7);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.team-member:hover::after {
  opacity: 1;
}

/* ────────────────────────────────────────────────
   AKTÍV ÁLLAPOT – óramutató irányú kitolódás
───────────────────────────────────────────────── */

.team-member:active {
  z-index: 15;
  transition: all 0.22s ease-out;
}

/* Erős specifitás + !important a megbízhatóságért */
/*.team-member.member-1:active {
  transform: scale(1.12) translateX(20px) !important;
}
*/
.team-member.member-2:active {
  transform: scale(1.12) translateY(20px) !important;
}
/*
.team-member.member-3:active {
  transform: scale(1.12) translateX(-20px) !important;
}
*/
.team-member.member-4:active {
  transform: scale(1.12) translateY(-20px) !important;
}

.team-member.member-1:active {
  transform: translateX(60px) !important;   /* nagyon látható jobbra */
  background: red !important;               /* látszik, hogy aktív-e */
}

.team-member.member-3:active {
  transform: translateX(-60px) !important;  /* nagyon látható balra */
  background: lime !important;
}

/* Nagyobb képernyők */
@media (min-width: 641px) {
  .team-member.member-1:active { transform: scale(1.12) translateX(32px) !important; }
  .team-member.member-2:active { transform: scale(1.12) translateY(32px) !important; }
  .team-member.member-3:active { transform: scale(1.12) translateX(-32px) !important; }
  .team-member.member-4:active { transform: scale(1.12) translateY(-32px) !important; }
}

/* Mobil */
@media (max-width: 640px) {
  .team-member.member-1:active { transform: scale(1.12) translateX(14px) !important; }
  .team-member.member-2:active { transform: scale(1.12) translateY(14px) !important; }
  .team-member.member-3:active { transform: scale(1.12) translateX(-14px) !important; }
  .team-member.member-4:active { transform: scale(1.12) translateY(-14px) !important; }
}

/* ────────────────────────────────────────────────
   Méretfüggő pozíciók és méretek
───────────────────────────────────────────────── */

@media (min-width: 1025px) {
  .logo-wrapper {
    max-width: 720px;
    margin: 10rem auto 7rem;
  }

  .team-member {
    width: 200px;
    height: 200px;
  }

  .member-1 { top: -110px; left: 50%; transform: translateX(-50%); }
  .member-2 { top: 35%;    right: -110px; }
  .member-3 { bottom: -110px; left: 50%; transform: translateX(-50%); }
  .member-4 { top: 35%;    left: -110px; }

  .team-member::after {
    font-size: 1.15rem;
    padding: 20px 8px 10px;
    bottom: 8px;
  }

  h1 { font-size: 3.6rem; margin-top: 2rem; margin-bottom: 1.8rem; }
  .subtitle { font-size: 1.5rem; }
  .lang { font-size: 1.2rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .logo-wrapper {
    max-width: 520px;
    margin: 7rem auto 5.5rem;
  }

  .team-member {
    width: 160px;
    height: 160px;
    border-width: 3.5px;
  }

  .member-1 { top: -80px; left: 50%; transform: translateX(-50%); }
  .member-2 { top: 37%;   right: -80px; }
  .member-3 { bottom: -80px; left: 50%; transform: translateX(-50%); }
  .member-4 { top: 37%;   left: -80px; }

  .team-member::after {
    font-size: 1rem;
    padding: 14px 6px 7px;
    bottom: 5px;
  }

  h1 { font-size: 3rem; margin-top: 1.8rem; margin-bottom: 1.5rem; }
  .subtitle { font-size: 1.35rem; }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .logo-wrapper {
    max-width: 340px;
    margin: 8rem auto 5rem;
  }

  .team-member {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .member-1 { top: -45px; left: 50%; transform: translateX(-50%); }
  .member-2 { top: 40%;   right: -38px; }
  .member-3 { bottom: -45px; left: 50%; transform: translateX(-50%); }
  .member-4 { top: 40%;   left: -38px; }

  .team-member::after {
    font-size: 0.78rem;
    padding: 9px 4px 4px;
    bottom: 2px;
  }

  h1 {
    font-size: clamp(2.1rem, 8vw, 2.5rem);
    margin-top: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .lang {
    font-size: 0.95rem;
  }
}

h1 {
  font-weight: 700;
  background: linear-gradient(to right, #a5b4fc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  line-height: 1.6;
  opacity: 0.9;
}

.lang {
  color: #94a3b8;
  margin-top: 0.8rem;
}
