:root {
  --bg: #0f0d16;
  --bg-2: #151325;
  --card: #1a162a;
  --accent: #a78bff;
  --accent-2: #6f5bff;
  --text: #f4f2ff;
  --muted: #a9a3c7;
  --glow: 0 0 18px rgba(167, 139, 255, 0.28), 0 0 40px rgba(111, 91, 255, 0.25);
  --stroke: rgba(255, 255, 255, 0.06);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(900px 500px at 20% -10%, rgba(167, 139, 255, 0.14), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(111, 91, 255, 0.16), transparent 55%),
              linear-gradient(180deg, #0f0d16 0%, #121024 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.bg-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-media img,
.bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--bg-media-opacity, 0.5);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 20% -10%, rgba(167, 139, 255, 0.35), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(111, 91, 255, 0.35), transparent 55%),
              rgba(10, 9, 16, 0.7);
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
}

.bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.has-bg-media .bubbles {
  display: none;
}

.has-bg-media {
  background: #0f0d16;
}

.bubble {
  position: absolute;
  bottom: -120px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(167, 139, 255, 0.25), rgba(111, 91, 255, 0.05) 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: floatUp 16s linear infinite;
  opacity: 0.6;
}

.bubble:nth-child(2) {
  left: 20%;
  width: 220px;
  height: 220px;
  animation-duration: 20s;
  animation-delay: -8s;
}

.bubble:nth-child(3) {
  left: 45%;
  width: 90px;
  height: 90px;
  animation-duration: 14s;
  animation-delay: -12s;
}

.bubble:nth-child(4) {
  left: 70%;
  width: 180px;
  height: 180px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.bubble:nth-child(5) {
  left: 85%;
  width: 120px;
  height: 120px;
  animation-duration: 15s;
  animation-delay: -10s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-60vh) translateX(30px) scale(1.08);
  }
  100% {
    transform: translateY(-120vh) translateX(-20px) scale(1.12);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.logo-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-image img {
  height: var(--logo-size, 28px);
  width: auto;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(167, 139, 255, 0.08), rgba(111, 91, 255, 0.08));
  border: 1px solid rgba(167, 139, 255, 0.2);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--glow);
}

.hero-card h1 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(142, 247, 196, 0.15);
  border: 1px solid rgba(142, 247, 196, 0.35);
  margin-bottom: 16px;
  color: var(--text);
}

.cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05080f;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--glow);
}

.section-title {
  margin: 52px 0 20px;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(8, 12, 24, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 255, 0.25);
  box-shadow: 0 20px 45px rgba(9, 9, 22, 0.65), var(--glow);
}

.card h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0e16;
  border: 1px solid var(--stroke);
}

.media img,
.media iframe {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.detail {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.detail .panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(142, 247, 196, 0.15);
  border: 1px solid rgba(142, 247, 196, 0.35);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.footer {
  margin-top: 80px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 255, 0.25);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  font: inherit;
}

.button:hover {
  border-color: rgba(167, 139, 255, 0.5);
  box-shadow: var(--glow);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 255, 0.35);
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  background: rgba(15, 18, 26, 0.7);
  transition: all 0.2s ease;
}

.admin-link:hover {
  border-color: rgba(167, 139, 255, 0.6);
  box-shadow: var(--glow);
}

.gallery-item.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
  }
}
