:root {
  --accent: #0DB9C9;
  --accent-2: #5CE8F2;
  --purple: #a855f7;
  --bg: #010E1A;
  --gb: rgba(2, 18, 32, 0.6);
  --gbo: rgba(13, 185, 201, 0.28);
  --gi: rgba(92, 232, 242, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

/* ─── Video ─── */
video#bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -3;
}
.video-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 4, 12, 0.45);
  z-index: -2;
}

/* ─── Custom cursor glow ─── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(13,185,201,0.12) 0%,
    rgba(13,185,201,0.04) 40%,
    transparent 70%
  );
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* ─── Particles canvas ─── */
.particles-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ─── Enter screen ─── */
.overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex;
  justify-content: center; align-items: center;
  z-index: 100;
  transition: opacity 1.4s ease;
  cursor: pointer;
}
.overlay.fade-out { opacity: 0; pointer-events: none; }

.enter-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}

.enter-rings {
  position: relative;
  width: 80px; height: 80px;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 2.5s ease-in-out infinite;
}
.ring-1 {
  width: 30px; height: 30px;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation-delay: 0s;
}
.ring-2 {
  width: 54px; height: 54px;
  border-color: rgba(13,185,201,0.5);
  animation-delay: 0.4s;
}
.ring-3 {
  width: 78px; height: 78px;
  border-color: rgba(13,185,201,0.2);
  animation-delay: 0.8s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%,-50%) scale(1.08); }
}

.enter-text {
  font-size: 0.85em;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.25em;
  text-transform: lowercase;
}

/* ─── Main panel ─── */
.links {
  display: none;
  flex-direction: column; align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 16px 100px;
  gap: 12px;
  position: relative; z-index: 20;
}
@media (min-height: 720px) { .links { justify-content: center; } }
.links.visible { display: flex; }

/* ─── Tilt card ─── */
.tilt-card {
  width: 100%; max-width: 340px;
  perspective: 800px;
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards;
}

.card-inner {
  background: var(--gb);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--gbo);
  border-radius: 28px;
  padding: 28px 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 var(--gi),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 80px -20px rgba(13,185,201,0.2),
    0 0 40px -20px rgba(168,85,247,0.15);
  will-change: transform;
}

.card-shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 0%),
    rgba(255,255,255,0.06) 0%,
    transparent 60%
  );
  transition: background 0.1s ease;
}

/* ─── Photo ─── */
.photo-wrap {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto 18px;
}

.photo-border {
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0%,
    var(--accent-2) 30%,
    var(--purple) 65%,
    var(--accent) 100%
  );
  z-index: 1;
  animation: spin 5s linear infinite;
}
.photo-border::after {
  content: '';
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #021525;
}

.image-photo {
  position: absolute;
  top: 4px; left: 4px;
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  z-index: 3;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Brand with glitch ─── */
.brand {
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: white;
  margin-bottom: 6px;
  position: relative;
  cursor: default;
  text-shadow: 0 0 20px rgba(13,185,201,0.5);
}
.brand::before,
.brand::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
}
.brand:hover::before {
  opacity: 0.7;
  color: var(--accent-2);
  animation: glitch1 0.3s steps(2) forwards;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.brand:hover::after {
  opacity: 0.7;
  color: var(--purple);
  animation: glitch2 0.3s steps(2) 0.05s forwards;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%  { transform: translateX(-3px); }
  33% { transform: translateX(3px); }
  66% { transform: translateX(-1px); }
  100%{ transform: translateX(0); }
}
@keyframes glitch2 {
  0%  { transform: translateX(3px); }
  33% { transform: translateX(-3px); }
  66% { transform: translateX(2px); }
  100%{ transform: translateX(0); }
}

.subtitle {
  color: rgba(255,255,255,0.42);
  font-size: 0.76em;
  letter-spacing: 0.06em;
}

/* ─── Link buttons ─── */
.link_container {
  display: flex; flex-direction: column;
  align-items: center; gap: 9px;
  width: 100%; max-width: 340px;
}

.link-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--gb);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gbo);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  border-radius: 16px;
  padding: 13px 20px;
  width: 100%;
  font-size: 0.95em;
  position: relative; overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeInUp 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
  cursor: none;
}
.link-btn:nth-child(1) { animation-delay: 0.20s; }
.link-btn:nth-child(2) { animation-delay: 0.30s; }
.link-btn:nth-child(3) { animation-delay: 0.40s; }
.link-btn:nth-child(4) { animation-delay: 0.50s; }
.link-btn:nth-child(5) { animation-delay: 0.60s; }

.link-btn:hover {
  border-color: rgba(13,185,201,0.5);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(13,185,201,0.15);
}
.link-btn:active { transform: scale(0.97); }

/* Shimmer sweep */
.link-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,0.07) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.link-btn:hover::before { transform: translateX(100%); }

/* Ripple element */
.link-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(13,185,201,0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

.btn-glow {
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(13,185,201,0.12), transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.link-btn:hover .btn-glow { opacity: 1; }

.link-btn img {
  width: 20px; height: 20px;
  flex-shrink: 0; filter: invert(1); opacity: 0.85;
}
.link-btn span { position: relative; z-index: 1; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Audio controls ─── */
.audio-controls {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: none; align-items: center; gap: 10px;
  background: var(--gb);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gbo);
  border-radius: 50px;
  padding: 10px 18px; z-index: 50;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
  white-space: nowrap;
}
.audio-controls.visible { display: flex; }

.mute-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  cursor: none; padding: 4px;
  display: flex; align-items: center;
  transition: color 0.2s;
}
.mute-btn:hover { color: var(--accent); }

.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
  outline: none; cursor: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  cursor: none;
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .tilt-card { max-width: 100%; }
  .link_container { max-width: 100%; }
  html, body { cursor: auto; }
  .cursor-glow { display: none; }
}
