:root {
  --blur: 10px;
  --radius: 32px;
  --card-w: 340px;
  --accent: rgba(147, 197, 253, 0.6);
  --accent-secondary: rgba(196, 181, 253, 0.6);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-bg: linear-gradient(135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.15) 100%);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: #0b0c10;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 80%, rgba(147, 197, 253, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.25) 0%, transparent 50%),
    #0b0c10;
  background-size: cover;
}

.background-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/images/water.gif") center/cover no-repeat;
  z-index: -1;
  opacity: 0.7;
}

.background-wrapper.water-failed::before {
  background: none;
}

.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: float 20s infinite linear;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

.card {
  width: var(--card-w);
  background: var(--gradient-bg);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.card.loaded {
  opacity: 1;
  transform: translateY(0);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  z-index: 2;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.avatar-container::before,
.avatar-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.avatar-container::before {
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--accent);
  opacity: 0.3;
  animation-delay: 0.5s;
}

.avatar-container::after {
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: var(--accent-secondary);
  opacity: 0.2;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.card:hover .avatar {
  transform: scale(1.05) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.2);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--text-primary), #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(147, 197, 253, 0.3);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(147, 197, 253, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(147, 197, 253, 0.5); }
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-weight: 400;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.skill-tag {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(10px);
}

.skill-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-tag:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.accordion {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.accordion-header:hover {
  background: rgba(0, 0, 0, 0.3);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  display: block;
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion.active .accordion-content {
  max-height: 600px;
}

.accordion-buttons {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.accordion-btn {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  text-decoration: none;
}

.accordion-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(5px);
}

.accordion-btn:active {
  transform: translateX(5px) scale(0.98);
}

.accordion-btn .iconoir {
  font-size: 16px;
  opacity: 0.9;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-btn:hover .iconoir {
  transform: scale(1.1);
}

.iconoir-telegram { color: #229ED9; }
.iconoir-mail { color: #EA4335; }
.iconoir-music-double-note { color: #1DB954; }
.iconoir-wallet { color: #0098EA; }
.iconoir-discord { color: #5865F2; }
.iconoir-wechat { color: #07C160; }
.iconoir-play { color: #fff; }
.iconoir-pause { color: #fff; }

.music-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
}

.music-content-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.music-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.music-info {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.music-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.music-control {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.accordion-btn:hover .music-control {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.music-progress {
  padding: 0 16px 8px;
}

.music-progress-bar {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.music-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.music-progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.music-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}

.music-volume-icon {
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.music-volume-bar {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.music-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.music-volume-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.single-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.single-btn {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.single-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.single-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}

.audio-player {
  display: none;
}

.iconoir {
  stroke-width: 1.5;
}

@media (max-width: 400px) {
  :root {
    --card-w: 300px;
    --radius: 24px;
  }

  .card {
    padding: 32px 20px 28px;
    margin: 10px;
  }

  .single-buttons {
    grid-template-columns: 1fr;
  }

  .single-btn {
    padding: 12px 0;
  }
}

@media (max-height: 700px) {
  .card {
    margin: 10px;
    padding: 30px 20px 26px;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }

  .skills {
    margin-bottom: 24px;
  }

  .buttons {
    margin-bottom: 20px;
  }
}
