/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #e0e0f0;
  background: #0d0b1a;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Star Canvas ===== */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Utility ===== */
.container {
  /* widened to allow more horizontal space for team rows */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(13, 11, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Square button for PlotUper icon + label: make whole rectangle clickable */
.plotuper-square {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  text-decoration: none;
}
.plotuper-square:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
}

/* Ensure icon inside the square stays compact */
.plotuper-square .header__icon { width: 28px; height: 28px; }

.header__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.header__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0b8e0;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  gap: 28px;
}

/* mobile nav copy is hidden by default on desktop */
.header__mobile-nav { display: none; }

.header__link {
  color: #a8a0c8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8ea8ff;
  border-radius: 2px;
  transition: width 0.3s;
}

.header__link:hover {
  color: #fff;
}

.header__link:hover::after {
  width: 100%;
}

/* ===== main ===== */
.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 40px;
}

.main__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease-out;
}

.main__logo {
  width: 500px;
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 20px;
  /* warm amber glow for lighthouse */
  filter: drop-shadow(0 0 36px rgba(255, 200, 110, 0.45)) drop-shadow(0 8px 30px rgba(0,0,0,0.28));
  animation: float 4s ease-in-out infinite;
}

.main__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  background: linear-gradient(135deg, #a8c8f0 0%, #d0d8f0 40%, #8ea8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-shadow: none;
}

.main__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  color: #c0c4e0;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.main__cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #8ea8ff;
  border-radius: 50px;
  color: #8ea8ff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s;
}

.main__cta:hover {
  background: #8ea8ff;
  color: #0d0b1a;
  box-shadow: 0 0 30px rgba(111, 179, 255, 0.4);
}

.main__scroll-hint {
  margin-top: auto;
  padding-bottom: 20px;
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.2rem;
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #a8c8f0, #8ea8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title--light {
  background: linear-gradient(90deg, #e0e0f0, #8ea8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== About ===== */
.about {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.projects__card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}

.projects__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  image-rendering: auto; /* allow smoothing */
  background: rgba(0,0,0,0.35);
  padding: 10px;
  border-radius: 14px; /* smoothed corners */
  flex: 0 0 72px;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease;
  will-change: transform;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.projects__info { text-align: left; }

.projects__name { font-size: 1.05rem; font-weight: 800; color: #ffffff; margin-bottom: 6px; }

.projects__desc { color: rgba(224,224,240,0.66); font-size: 0.95rem; line-height: 1.45; margin: 0; }

.projects__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  border-color: rgba(111,179,255,0.08);
}

.about__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.about__card:hover {
  background: rgba(111,179,255,0.05);
  border-color: rgba(111,179,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about__icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(11,18,36,0.62);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex: 0 0 80px;
  border: 1px solid rgba(111,179,255,0.06);
  box-shadow: 0 8px 20px rgba(6,10,20,0.36);
  position: relative;
  overflow: visible;
}

.about__icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* subtle blue glow on hover */
.about__icon-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 140%;
  height: 140%;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(111,179,255,0.22), rgba(111,179,255,0.06) 45%, rgba(111,179,255,0) 70%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 1;
}

.about__icon-wrap:hover::after,
.about__card:hover .about__icon-wrap::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.about__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f0f0ff;
}

.about__card-text {
  font-size: 0.9rem;
  color: #a0a0c0;
  line-height: 1.65;
}

/* ===== Projects ===== */
.projects {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.projects__grid {
  display: grid;
  /* wider cards: increase min column width so fewer columns fit */
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}

/* Compact left-icon project card, image forced 1:1 */
.projects__card {
  display: flex;
  align-items: flex-start; /* allow content to sit slightly lower */
  gap: 18px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  position: relative;
  overflow: visible;
  z-index: 2;
  transition:
    transform 0.32s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.38s cubic-bezier(.2,.8,.2,1),
    border-color 0.32s ease,
    background 0.32s ease;
  min-height: 96px; /* reduced height */
}

/* ensure anchor-wrapped cards inherit link behavior without default underline */
.projects__card.projects__link,
.projects__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  cursor: pointer; /* ensure pointer shows for whole card */
  width: 100%;     /* make anchor fill the grid cell */
}

@keyframes card-glow-in {
  0%   { box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 0px rgba(111,179,255,0), 0 0 0px rgba(111,179,255,0); }
  40%  { box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 18px rgba(111,179,255,0.12), 0 0 36px rgba(111,179,255,0.05); }
  100% { box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 28px rgba(111,179,255,0.18), 0 0 60px rgba(111,179,255,0.09); }
}

.projects__card:hover {
  transform: translateY(-10px) scale(1.035);
  animation: card-glow-in 0.55s cubic-bezier(.2,.8,.2,1) forwards;
  border-color: rgba(111,179,255,0.22);
  background: rgba(111,179,255,0.045);
}

/* ===== Mobile / Responsive tweaks ===== */
/* On small screens hide the regular nav and show compact titles inside the left block */
@media (max-width: 780px) {
  .header {
    padding: 12px 14px;
  }
  .header__nav { display: none; }
  .header__label { display: none; }
  .plotuper-square {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 48px;
    position: relative; /* anchor for absolute mobile nav */
  }
  .header__mobile-nav {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(180deg, rgba(6,8,14,0.96), rgba(18,16,30,0.96));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 12px 10px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
    min-width: 140px;
    max-width: 46vw;
    z-index: 110;
  }
  .header__categories-toggle {
    background: transparent;
    border: none;
    color: #dcdaf2;
    font-size: 1.05rem;
    margin-left: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
  }
  .header__categories-toggle:focus { outline: 2px solid rgba(142,168,255,0.12); }

  .header__categories-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(180deg, rgba(6,8,14,0.96), rgba(18,16,30,0.96));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 8px 8px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
    min-width: 140px;
    max-width: 46vw;
    z-index: 111;
  }
  .header__categories-dropdown.visible { display: block; }
  .header__categories-dropdown .header__link { display:block; padding:10px 6px; }
  .header__mobile-nav .header__link {
    display: block;
    color: #e8e6f8;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 6px;
    white-space: nowrap;
  }
  .header__mobile-nav .header__link:hover {
    background: rgba(111,179,255,0.04);
    color: #fff;
  }
}

/* Hamburger button */
.header__hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: #e6e3f6;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
}
.header__hamburger:focus { outline: 2px solid rgba(142,168,255,0.12); }

@media (max-width: 780px) {
  .header__hamburger { display: inline-flex; margin-left: 12px; }
}

/* Right drawer menu */
.right-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 84vw;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(18,16,30,0.98), rgba(6,8,14,0.98));
  box-shadow: -18px 0 40px rgba(0,0,0,0.6);
  transform: translateX(108%);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
  z-index: 120;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.right-drawer.visible { transform: translateX(0); }
.right-drawer__close {
  align-self: flex-end;
  background: transparent; border: none; color: #cfcfea; font-size: 1.2rem; padding: 8px; cursor: pointer;
}
.right-drawer .header__link { display:block; padding: 12px 6px; border-radius:8px; color:#e8e6f8; }
.right-drawer .header__link:hover { background: rgba(142,168,255,0.04); color: #fff; }

/* Disable hover/scale interactions on touch devices (keep on desktop) */
@media (hover: none), (pointer: coarse) {
  .team__member:hover .team__avatar,
  .team__card:hover,
  .team__social:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .team__avatar { transition: none !important; }
  .team__card { transition: background 0.2s ease !important; }
}

/* ===== Social overlay (mobile full-screen) ===== */
.social-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,8,14,0.92);
  color: #fff;
  padding: 24px;
}
.social-overlay.visible { display: flex; }
.social-overlay__box {
  max-width: 920px;
  width: 100%;
  background: rgba(18,16,30,0.96);
  border-radius: 12px;
  padding: 20px 20px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
}
.social-overlay__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #cfcfea;
  font-size: 1.1rem;
  padding: 8px;
  cursor: pointer;
}
.social-overlay__title { font-size: 1.4rem; font-weight: 900; margin-bottom: 14px; color: #ffffff; line-height: 1.2; text-shadow: 0 6px 18px rgba(0,0,0,0.6); }
.social-overlay__href { word-break: break-all; color: #9fb8ff; font-weight: 700; margin-top: 6px; }

/* appear animation for overlay box */
@keyframes overlay-pop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.social-overlay__box { transform-origin: 50% 48%; }
.social-overlay.visible .social-overlay__box.animate { animation: overlay-pop 260ms cubic-bezier(.2,.8,.2,1) both; }

@media (min-width: 781px) {
  /* overlay still exists but not used on desktop; keep it hidden */
  .social-overlay { display: none !important; }
}

/* simpler shadow under card using pseudo-element (restored) */
.projects__card::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(.85);
  bottom: -12px;
  width: calc(100% - 36px);
  height: 18px;
  background: rgba(3,6,12,0.55);
  filter: blur(14px);
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
  pointer-events: none;
  z-index: 0;
}
.projects__card:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.projects__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  image-rendering: auto; /* smoother edges for logos */
  background: rgba(0,0,0,0.36);
  padding: 8px;
  border-radius: 18px; /* larger radius for bigger icons */
  flex: 0 0 96px;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), box-shadow 320ms ease;
  will-change: transform;
  box-shadow: 0 8px 24px rgba(0,0,0,0.36);
}

@media (prefers-reduced-motion: reduce) {
  .projects__card {
    transition: none !important;
    transform: none !important;
  }
}

.projects__info { padding: 0; }

.projects__name { font-size: 1.02rem; font-weight: 800; color: #fff; margin-bottom: 4px; }

.projects__desc { color: rgba(224,224,240,0.66); font-size: 0.92rem; line-height: 1.35; margin: 0; }

.projects__note {
  display: block;
  margin: 0 auto 14px auto;
  color: rgba(224,224,240,0.55);
  font-size: 0.9rem;
  text-align: center;
  max-width: 820px;
}

/* Ensure note sits right under the section title and cards start below it */
.section-title + .projects__note {
  margin-top: 4px;
}
.projects .section-title { margin-bottom: 6px; }
.projects__grid { margin-top: 6px; }

/* ===== Team ===== */
.team {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

/* Each card slot is fixed width so 6 fit per row on desktop */
.team__member {
  width: calc((100% - 18px * 5) / 6);
  min-width: 160px;
  max-width: 220px;
  box-sizing: border-box;
}

.team__avatar {
  width: 160px;
  height: 160px;
  border-radius: 0;
  object-fit: cover;
  image-rendering: pixelated;
  margin-bottom: 8px;
  border: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.team__member:hover .team__avatar {
  transform: scale(1.08);
  z-index: 6;
}

.team__card {
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.45s cubic-bezier(.2,.8,.2,1), transform 0.2s ease, box-shadow 0.45s cubic-bezier(.2,.8,.2,1);
  position: relative;
}

.team__card:hover {
  background: rgba(111,179,255,0.06);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(111,179,255,0.06);
  border: 1px solid rgba(111,179,255,0.06);
}

.team__avatar-link { display: block; border-radius: 8px; pointer-events: auto; cursor: pointer; text-decoration: none; }
.team__avatar-link:focus { outline: none; }
.team__avatar-link:focus-visible { outline: 2px solid rgba(142,168,255,0.16); outline-offset: 3px; }

.team__links { display:flex; gap:10px; margin-top:4px; }
.team__social img { width:24px; height:24px; display:block; filter:brightness(0.95); transition: filter 240ms ease, transform 240ms ease; }
.team__social { display:inline-flex; align-items:center; justify-content:center; position:relative; z-index:1; }

/* Hover / focus effects for member social buttons */
.team__social {
  padding: 6px;
  border-radius: 8px;
  position: relative;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), background 0.32s ease, box-shadow 0.32s ease;
  will-change: transform, box-shadow;
}

/* soft radial glow behind icon, animates on hover/focus */
.team__social::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,168,255,0.18) 0%, rgba(142,168,255,0.08) 30%, rgba(142,168,255,0) 70%);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(.2,.8,.2,1), transform 420ms cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

.team__social:hover,
.team__social:focus-visible {
  transform: translateY(-4px) scale(1.12);
  background: rgba(142,168,255,0.06);
  box-shadow: 0 10px 28px rgba(142,168,255,0.12);
}

.team__social:hover::after,
.team__social:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.team__social:active { transform: scale(0.98); }
.team__social:focus-visible { outline: 2px solid rgba(142,168,255,0.16); outline-offset: 3px; }

.team__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #f0f0ff;
}

.team__name {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #f0f0ff;
}
/* Nickname / head texture label shown under the name */
.team__nick {
  font-size: 0.92rem;
  color: #9fb8ff;
  font-weight: 600;
  margin-bottom: 4px;
}
.team__role {
  font-size: 0.95rem;
  color: #a0a0c0;
}
.team__social img {
  width: 24px;
  height: 24px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.team__social { opacity: 0.95; }
.team__social:hover { transform: translateY(-2px); }
 
/* ===== Team Badges (player positioning icons) ===== */
.team__badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  z-index: 8;
  pointer-events: auto;
}
.team__badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease, background 0.14s ease;
}
.team__badge img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.team__badge:hover { transform: translateY(-3px) scale(1.08); background: rgba(142,168,255,0.06); }

/* Dark overlay rectangle behind badge icon to prevent light avatars hiding icons */
.team__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: inherit;
  z-index: 0;
}
.team__badge img { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .team__badges { left: 8px; top: 8px; gap: 6px; }
  .team__badge { width: 22px; height: 22px; padding: 3px; }
}

/* Custom tooltip for badges (instant show) */
.badge-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(18,18,28,0.96);
  color: #e8e8ff;
  font-size: 0.84rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(142,168,255,0.08);
  box-shadow: 0 8px 28px rgba(2,6,18,0.6);
  pointer-events: none;
  transform: translateY(-6px);
  white-space: nowrap;
  opacity: 0;
}
.badge-tooltip.visible { opacity: 1; transform: translateY(0); }


/* ===== Team: hide roles and enlarge social icons ===== */
/* Hide the small role text under names (keeps markup intact) */
.team__role { display: none !important; }

/* Allow showing role for specific cards (e.g., Кайзерр!) */
.team__card--show-role .team__role { display: block !important; color: #a0a0c0; font-size: 0.95rem; margin-top: 6px; }

/* Larger social icon buttons for better tap targets and visibility */
.team__links { gap: 8px; margin-top: -2px; transform: translateY(-2px); }
.team__social { padding: 8px 10px; border-radius: 10px; }
.team__social img { width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }

@media (max-width: 768px) {
  .team__social img { width: 28px; height: 28px; }
}

/* Ensure social buttons are visible under each team card (force display) */
.team__card .team__links {
  display: flex !important;
  gap: 10px !important;
  margin-top: 6px !important;
}

.team__card .team__links .team__social { display: inline-flex !important; }


/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__text {
  font-size: 1rem;
  color: #a0a0c0;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.footer__social {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.footer__social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0.7);
  transition: filter 0.3s;
}

.footer__social:hover {
  background: rgba(111, 179, 255, 0.15);
  border-color: rgba(111, 179, 255, 0.4);
}

.footer__social:hover img {
  filter: brightness(1);
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
  text-align: center;
  margin-top: 18px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 0.8; }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .main__logo {
    width: 160px;
  }

  .about__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    gap: 16px;
  }

  .team__member {
    width: calc((100% - 16px) / 2);
    max-width: none;
  }

  .team__avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .team__member {
    width: 100%;
    max-width: none;
  }

  .main__title {
    font-size: 2rem;
  }
}

/* Prevent images from being dragged/copied/downloaded easily */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* disable callout on iOS */
}

