@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Bebas+Neue&display=swap');

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

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  overflow: hidden;
  position: relative;
}

/* ===================== BACKGROUND ===================== */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* ===================== PAGE ===================== */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ===================== HEADER ===================== */
.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.2);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}

/* Name typewriter */
.name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.name-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 6px;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
}

.name-line-1 {
  animation:
    typing1 0.8s steps(8, end) 0.3s forwards,
    blink 0.7s step-end 0.3s 3,
    hideCursor1 0.1s 1.2s forwards;
}

.name-line-2 {
  animation:
    typing2 1.1s steps(11, end) 1.4s forwards,
    blink 0.7s step-end 1.4s 4,
    hideCursor2 0.1s 2.7s forwards;
}

@keyframes typing1 {
  from { width: 0; }
  to   { width: calc(8ch + 48px); }
}

@keyframes typing2 {
  from { width: 0; }
  to   { width: calc(11ch + 66px); }
}

@keyframes blink {
  0%, 100% { border-color: rgba(255, 255, 255, 0.7); }
  50%       { border-color: transparent; }
}

@keyframes hideCursor1 {
  to { border-color: transparent; }
}

@keyframes hideCursor2 {
  to { border-color: transparent; }
}

.sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  margin-top: 4px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 3s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===================== LINKS ===================== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(14px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.link-telegram:hover {
  background: rgba(34, 158, 217, 0.18);
  border-color: rgba(0, 167, 244, 0.45);
  box-shadow: 0 0 24px rgba(34, 158, 217, 0.2);
}

.link-instagram:hover {
  background: rgba(214, 36, 159, 0.15);
  border-color: rgba(214, 36, 159, 0.4);
  box-shadow: 0 0 24px rgba(214, 36, 159, 0.18);
}

.link-tiktok:hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(254, 44, 85, 0.18);
}

.link-youtube:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.18);
}

.link-twitter:hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
}

.link-threads:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

/* Icon */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.icon-telegram {
  background: #40B3E0;
  border-radius: 50% !important;
}

.icon-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.icon-tiktok {
  background: #000000;
}

.icon-youtube {
  background: #fafafa;
  padding: 6px;
}

.icon-twitter {
  background: #000;
  border: 1.5px solid #555;
}

.icon-threads {
  background: #000;
  border: 1.5px solid #555;
}

.icon-youtube img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.icon-tiktok img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.platform {
  font-size: 15px;
  font-weight: 600;
  color: #f0f0f0;
  line-height: 1;
}

.handle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  transition: color 0.2s;
}

.link:hover .arrow {
  color: rgba(255, 255, 255, 0.6);
}

/* ===================== FOOTER ===================== */
.footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
  text-align: center;
  letter-spacing: 0.5px;
}

.visitor-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
  letter-spacing: 1px;
}

/* ===================== MUSIC BUTTON ===================== */
.music-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===================== INTRO OVERLAY ===================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 15, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.intro-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.intro-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  background: #111;
}

.intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 5px;
  color: #fff;
  line-height: 1.15;
}

.intro-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  animation: blinkHint 1.3s ease-in-out infinite;
}

@keyframes blinkHint {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ===================== MOBILE ===================== */
@media (max-width: 480px) {
  body {
    padding: 60px 12px 16px;
    align-items: flex-start;
  }

  .page {
    gap: 18px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .name-line {
    font-size: 28px;
    letter-spacing: 4px;
  }

  @keyframes typing1 {
    from { width: 0; }
    to   { width: calc(8ch + 32px); }
  }

  @keyframes typing2 {
    from { width: 0; }
    to   { width: calc(11ch + 44px); }
  }

  .links {
    gap: 8px;
  }

  .link {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .icon img {
    width: 38px;
    height: 38px;
  }

  .icon-youtube {
    padding: 5px;
  }

  .icon-youtube img {
    width: 28px;
    height: 28px;
  }

  .icon-tiktok img {
    width: 22px;
    height: 22px;
  }

  .platform {
    font-size: 14px;
  }

  .handle {
    font-size: 11px;
  }
}
