/* ===== Root / Fonts ===== */
:root {
  --bg: #0b0f14;
  --muted: #9aa4ae;
  --accent: #9fb4ff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Base ===== */
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: #e6eef8;
  overflow-x: hidden;
}

/* ===== Canvas & Nebula ===== */
canvas.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(600px 300px at 10% 20%, rgba(159,180,255,0.06), transparent 10%),
    radial-gradient(500px 260px at 85% 80%, rgba(200,180,255,0.04), transparent 8%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ===== Wrapper ===== */
.wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  flex-direction: column;
}

/* ===== Card ===== */
.card {
  width: 880px;
  max-width: 94%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 20px;
  padding: 36px 36px 48px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(8px) saturate(130%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInCard 1.2s ease forwards;
}

@keyframes fadeInCard {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Logo ===== */
.logo {
  max-width: 420px;
  width: 60%;
  height: auto;
  display: block;
  margin-top: 4px;
  filter: drop-shadow(0 0 20px rgba(159,180,255,0.15));
  animation: fadeIn 1.6s ease;
  cursor: pointer;
}

/* ===== Banner ===== */
.banner {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 24px;
  display: block;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
  animation: fadeIn 2.6s ease;
  max-height: 100px;
  object-fit: contain;
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Headings & Text ===== */
h1 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

p.lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  max-width: 760px;
  line-height: 1.5;
}

/* --- ABOUT SECTION --- */
.about {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.about-img {
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}

.about-text {
  max-width: 500px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  margin: 6px 0;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-img {
    width: 80%;
    max-width: 420px;
    margin-bottom: 10px;
  }

  .about-text {
    max-width: 90%;
    justify-content: normal;
  }
}

/* ===== Buttons Section ===== */
.actions {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  transition: transform 0.3s ease;
  transform: scale(1);
}

.btn-img:hover {
  transform: scale(1.08);
}

.btn-img:active {
  transform: scale(0.97);
  transition: transform 0.15s ease;
}

/* ===== Social Media Buttons ===== */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 12vw;
  max-width: 64px;
  min-width: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1);
}

/* ===== CSS Stars ===== */
.css-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(180deg, #fff, #cfe4ff);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.12);
  opacity: 0.9;
}

.css-star.tw1 { left: 12%; top: 22%; animation: twinkle 5s linear infinite; }
.css-star.tw2 { left: 72%; top: 10%; animation: twinkle 7s linear infinite; }
.css-star.tw3 { left: 32%; top: 68%; animation: twinkle 6s linear infinite; }

@keyframes twinkle {
  0%,100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.6); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about { flex-direction: column; text-align: center; }
  .about img { width: 220px; }
  .btn-img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  .wrap { padding: 24px; }
  .about img { width: 200px; }
  .btn-img { width: 120px; height: 120px; }
  .social-links a { max-width: 50px; min-width: 36px; }
}

@media (max-width: 480px) {
  h1 { font-size: 22px; }
  .about-text { font-size: 14px; }
  .btn-img { width: 100px; height: 100px; }
  .social-links a { max-width: 40px; min-width: 32px; }
}
