@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@100..900&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: Poppins, Arial, Sans-Serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(91, 140, 255, 0.28), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(167, 139, 250, 0.25), transparent 40%),
    linear-gradient(#0a0850, #02011a);
  background-attachment: fixed;
  color: white;
  margin: 0 auto;
  padding: 10px;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 30px;
}

.banner, .marquee, ul, .panel, body > .cards,
.members, .frame, .gallery, footer {
  flex: 0 0 100%;
}

p {
  margin: 0;
  line-height: 1.7;
}

body::before,
body::after,
html::before,
html::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}


body::before {
  inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 20px 40px,   white, transparent),
    radial-gradient(circle 1.5px at 90px 210px,  white, transparent),
    radial-gradient(circle 1.5px at 150px 90px,  white, transparent),
    radial-gradient(circle 1.5px at 230px 250px, white, transparent),
    radial-gradient(circle 1.5px at 270px 30px,  white, transparent),
    radial-gradient(circle 1.5px at 60px 140px,  white, transparent),
    radial-gradient(circle 1.5px at 200px 170px, white, transparent),
    radial-gradient(circle 1.5px at 120px 280px, white, transparent),
    radial-gradient(circle 1.5px at 290px 120px, white, transparent);
  background-size: 300px 300px;
  animation: drift 80s linear infinite;
}


body::after {
  inset: 0;
  background-image:
    radial-gradient(circle 2.5px at 50px 80px,   #cfe3ff, transparent),
    radial-gradient(circle 2.5px at 200px 300px, #cfe3ff, transparent),
    radial-gradient(circle 2.5px at 350px 60px,  #cfe3ff, transparent),
    radial-gradient(circle 2.5px at 400px 400px, #cfe3ff, transparent),
    radial-gradient(circle 2.5px at 120px 380px, #cfe3ff, transparent),
    radial-gradient(circle 2.5px at 300px 200px, #cfe3ff, transparent);
  background-size: 450px 450px;
  animation: drift2 50s linear infinite, twinkle 4s ease-in-out infinite;
}

html::before {
  right: -90px;
  bottom: 12%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8fb8ff, #4b5bd6 45%, #1a1a6e 80%);
  box-shadow: 0 0 60px rgba(111, 177, 255, 0.5), inset -30px -20px 50px rgba(0, 0, 20, 0.7);
  animation: planet 8s ease-in-out infinite alternate;
}

html::after {
  top: 12%;
  left: 70%;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, white, transparent);
  opacity: 0;
  animation: shoot 9s linear infinite;
}

@keyframes drift   { to { background-position: 0 -300px; } }
@keyframes drift2  { to { background-position: 0 -450px; } }
@keyframes twinkle { 50% { opacity: 0.3; } }
@keyframes planet  { to { transform: translateY(-40px); } }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-35deg); }
  3%   { opacity: 1; }
  10%, 100% { opacity: 0; transform: translate(-500px, 350px) rotate(-35deg); }
}


.banner {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 40px 28px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}


.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 54, 0.95), rgba(7, 6, 54, 0.7) 45%, rgba(40, 50, 140, 0.1)),
    linear-gradient(to top, rgba(7, 6, 54, 0.8), transparent 50%);
}

.banner > * {
  position: relative;
  z-index: 1;
}

.banner p {
  max-width: 440px;
}

.tag {
  margin-bottom: 14px;
  padding: 5px 18px;
  border: 1px solid #6fb1ff;
  border-radius: 50px;
  color: #6fb1ff;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
font-family: Archivo, Arial, sans-serif;
font-weight: 500;
  font-size: clamp(52px, 19vw, 170px);
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(111, 177, 255, 0.6));
  animation: appear 1.5s ease;
}

h1 span {
  display: block;
  width: fit-content;
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

h1 .terra {
  background-image: linear-gradient(90deg, #5b8cff, #6fe3ff, #a78bfa, #5b8cff);
}

h1 .nova {
  background-image: linear-gradient(90deg, #ffffff, #a9c3f5, #ffffff, #d6e4ff, #ffffff);
  animation-duration: 6s;
}

.banner .badge {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 84px;
  height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px dashed #6fb1ff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: bold;
  animation: bob 4s ease-in-out infinite alternate;
}

@keyframes zoom   { to { transform: scale(1.2); } }
@keyframes bob    { to { transform: translateY(-10px); } }
@keyframes floatBtn  { 50% { translate: 0 -8px; } }
@keyframes floatLogo { 50% { translate: 0 -10px; rotate: -3deg; } }
@keyframes float  { 50% { transform: translateY(-22px) rotate(-3deg); } }
@keyframes appear {
  from { opacity: 0; letter-spacing: 40px; }
  to   { opacity: 1; letter-spacing: 4px; }
}


.button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 30px;
  border-radius: 50px;
  background: #5b8cff;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.button:hover {
  transform: scale(1.08);
}

.banner .button {
  animation: glow 2.2s ease-in-out infinite, floatBtn 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.7); }
  50%      { box-shadow: 0 0 0 16px rgba(91, 140, 255, 0); }
}


.marquee {
  overflow: hidden;
  margin-top: 20px;
  border-radius: 50px;
  background: linear-gradient(90deg, #5b8cff, #6fb1ff, #a78bfa);
  color: #070636;
  font-family: "Rubik Mono One", Arial, sans-serif;
  font-size: 14px;
}

.marquee p {
  padding: 12px 0;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px;
  list-style: none;
  font-weight: bold;
  background: rgba(10, 10, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  backdrop-filter: blur(12px);
}

ul.open {
  display: flex;
  transform-origin: top right;
  animation: dropIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

ul.open li {
  animation: slideIn 0.4s ease both;
}

ul.open li:nth-child(1) { animation-delay: 0.05s; }
ul.open li:nth-child(2) { animation-delay: 0.12s; }
ul.open li:nth-child(3) { animation-delay: 0.19s; }

li {
  flex: 1;
}

ul a {
  display: block;
  padding: 11px 0;
  border-radius: 50px;
  color: white;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

ul a:hover,
ul a.active {
  background: linear-gradient(90deg, #5b8cff, #6fb1ff);
  color: #070636;
  box-shadow: 0 0 20px rgba(111, 177, 255, 0.6);
}

@media (min-width: 700px) {
  li {
    flex: none;
  }

  ul a {
    padding: 11px 28px;
  }
}


h2 {
  flex: 1.3 1 320px;
  margin: 70px 0 0;
  padding-left: 16px;
  border-left: 6px solid #6fb1ff;
  font-family: "Rubik Mono One", Arial, sans-serif;
  font-size: clamp(26px, 6vw, 46px);
  line-height: 1.15;
}

body > p {
  flex: 1 1 320px;
  margin-top: 12px;
}


h2 span {
  background: linear-gradient(90deg, #5b8cff, #6fb1ff, #a78bfa, #5b8cff);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 300%; } }


.panel {
  margin-top: 30px;
  padding: 40px 20px;
  border-radius: 30px;
  background:
    linear-gradient(rgba(7, 6, 54, 0.8), rgba(30, 40, 130, 0.75)),
    url("https://picsum.photos/seed/panel/1000/600") center / cover;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

body > .cards {
  margin-top: 30px;
}

.card {
  flex: 1 1 220px;
  padding: 25px;
  border-radius: 25px;
  background: white;
  color: #11143a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

.card:nth-child(2) {
  border-radius: 25px 80px 25px 25px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(91, 140, 255, 0.6);
}

.card h3 {
  margin: 14px 0 6px;
}

.card p {
  margin-bottom: 8px;
  color: #555a80;
  font-size: 15px;
}

.card img {
  width: 100%;
  border-radius: 15px;
}

.icon {
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #5b8cff, #6fb1ff);
  font-size: 26px;
  transition: 0.5s;
}

.card:hover .icon {
  transform: rotate(-15deg) scale(1.15);
}


/* ---------- MEMBERS (fixed) ---------- */

.members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px 20px;
  margin-top: 30px;
  padding-bottom: 110px;
}

.member {
  flex: 0 1 calc(50% - 10px);   
  max-width: 220px;
  text-align: center;
  transition: transform 0.4s;
  cursor: pointer;
}

.member img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid #6fb1ff;
  border-radius: 50%;           
  background: #0d0c52;          
  transition: 0.4s;
  animation: ring 3s ease-in-out infinite;
}

.member img:hover {
  transform: scale(1.1) rotate(4deg);
}

.member.tap img {
  animation: tap 0.45s ease;
}

.member h3 {
  margin: 15px 0 0;
  color: #6fb1ff;
  font-size: 15px;
}

.member p {
  font-weight: bold;
  color: #d6d6e8;
}

.member:nth-child(odd)  { transform: none; }
.member:nth-child(even) { transform: translateY(70px); }

.member:nth-child(odd):hover  { transform: scale(1.05); }
.member:nth-child(even):hover { transform: translateY(70px) scale(1.05); }

@media (min-width: 700px) {
  .members {
    justify-content: space-between;
  }

  .member {
    flex: 1 1 140px;
  }
}

@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 177, 255, 0.6); }
  50%      { box-shadow: 0 0 0 14px rgba(111, 177, 255, 0); }
}


.frame {
  margin-top: 30px;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(120deg, #5b8cff, #6fb1ff, #a78bfa, #5b8cff);
  background-size: 300%;
  box-shadow: 0 0 50px rgba(91, 140, 255, 0.4);
  animation: shine 6s linear infinite;
}

iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 24px;
  background: #0d0c52;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
  margin-top: 30px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.tile p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 25px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 6, 54, 0.95));
  font-weight: bold;
  opacity: 0;
  transition: 0.4s;
}

.tile:hover img { transform: scale(1.2) rotate(3deg); }
.tile:hover p   { opacity: 1; }

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
  }

  .tile:nth-child(5),
  .tile:nth-child(6) {
    grid-column: span 2;
  }
}


footer {
  position: relative;
  margin-top: 80px;
  padding: 22px 26px;
  border-radius: 0 0 35px 35px;
  background: #1a416e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer p {
  max-width: 480px;
  margin: 2px 0;
  color: #cfe3ff;
  font-size: 13px;
  line-height: 1.5;
}

footer .footer-title {
  margin-bottom: 4px;
  background: linear-gradient(90deg, #6fb1ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Chakra Petch", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo {
  width: 200px;
  height: 130px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;

  animation: float 3s ease-in-out infinite;
}

.logo img {
  display: block;
  width: 275%;
  height: 275%;
  object-fit: contain;
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -27px;
  height: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%231a416e' d='M0 30C200 0 400 0 600 30S1000 60 1200 30V60H0Z'/%3E%3C/svg%3E") 0 0 / 600px 28px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%236fb1ff' fill-opacity='0.35' d='M0 30C200 60 400 60 600 30S1000 0 1200 30V60H0Z'/%3E%3C/svg%3E") 0 0 / 800px 28px repeat-x;
  animation: wave 9s linear infinite;
}

@keyframes wave {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 600px 0, -800px 0; }
}

.logo-sma {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  animation: floatLogo 3.5s ease-in-out infinite;
}

.logo-sma img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.topbar {
  z-index: 5;
  width: 100%;
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.topbar .logo {
  margin-bottom: 0;
}

.menu-wrap {
  position: relative;
}

.burger {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: 0.3s;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.burger:hover,
.burger[aria-expanded="true"] {
  background: #5b8cff;
  box-shadow: 0 0 20px rgba(111, 177, 255, 0.6);
}

button.button {
  border: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.button:active {
  transform: scale(0.95);
}

.about {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.5s ease, margin-top 0.5s ease;
}

.about.open {
  grid-template-rows: 1fr;
  margin-top: 18px;
}

.about-inner {
  min-height: 0;
  overflow: hidden;
}

.about-box {
  padding: 22px;
  border: 1px solid rgba(111, 177, 255, 0.6);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.about.open .about-box {
  opacity: 1;
  transform: none;
}

.about-box h3 {
  margin: 0 0 8px;
  color: #6fb1ff;
  font-family: "Rubik Mono One", Arial, sans-serif;
  font-size: 18px;
}

.about-box p {
  max-width: none;
  font-size: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(2, 1, 26, 0.82);
  backdrop-filter: blur(6px);
}

.modal.open {
  display: flex;
  animation: fade 0.4s ease;
}

.modal.closing {
  animation: fadeOut 0.4s ease forwards;
}

body.lock {
  overflow: hidden;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  padding: 26px 22px;
  border-radius: 25px;
  background: white;
  color: #11143a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-top img {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border: 4px solid #6fb1ff;
  border-radius: 50%;
  object-fit: cover;
  background: #0d0c52;
  animation: spinIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both, ring 3s ease-in-out 1s infinite;
}

.profile-top h3 {
  margin: 0;
  padding-right: 24px;
  font-size: 17px;
}

.role {
  color: #5b8cff;
  font-size: 13px;
  font-weight: bold;
}

.label {
  margin-top: 10px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tasks {
  margin: 4px 0 0;
  padding-left: 18px;
  list-style: disc;
  color: #555a80;
  font-size: 14px;
}

.tasks li {
  animation: slideIn 0.4s ease both;
  animation-delay: calc(0.5s + var(--i) * 0.1s);
}

.profile-desc .label {
  margin: 0 0 4px;
}

.profile-desc {
  animation: fadeUp 0.5s ease 0.75s both;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed #cfd8ff;
  color: #555a80;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  border: 0;
  background: none;
  color: #11143a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.credit {
  flex: 0 0 100%;
  margin-top: 10px;
  color: #cfe3ff;
  font-size: 13px;
}

.credit a {
  color: #6fb1ff;
}

.member:focus-visible,
.burger:focus-visible,
.button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 4px;
}

@keyframes fade    { from { opacity: 0; } }
@keyframes tap {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(111, 177, 255, 0.9); }
  40%  { transform: scale(0.86); }
  100% { transform: scale(1.04); box-shadow: 0 0 0 44px rgba(111, 177, 255, 0); }
}
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes dropIn  { from { opacity: 0; transform: scale(0.6) translateY(-10px); } }
@keyframes spinIn  { from { opacity: 0; transform: scale(0) rotate(-180deg); } }


h2, .panel, body > .cards, .members, .frame, .gallery, footer {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: none; }
}


@supports (animation-timeline: view()) {
  h2, .panel, body > .cards, .members, .frame, .gallery, footer {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
