:root {
  --bg: #000000;
  --card-bg: #0a0a0a86;
  --border: transparent;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  --accent-green: #22c55e;
  --accent-yandex: #fc3;
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  font-size: 15px;
  overflow-x: hidden;
}

.container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1350px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

a {
  text-decoration: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.column:nth-child(1) .card:nth-child(1) {
  animation-delay: 0.1s;
}

.column:nth-child(1) .card:nth-child(2) {
  animation-delay: 0.2s;
}

.column:nth-child(1) .card:nth-child(3) {
  animation-delay: 0.3s;
}

.column:nth-child(1) .card:nth-child(4) {
  animation-delay: 0.4s;
}

.column:nth-child(1) .card:nth-child(5) {
  animation-delay: 0.5s;
}

.column:nth-child(2) .card:nth-child(1) {
  animation-delay: 0.3s;
}

.column:nth-child(2) .card:nth-child(2) {
  animation-delay: 0.4s;
}

.column:nth-child(2) .card:nth-child(3) {
  animation-delay: 0.5s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
  background-color: #0f0f0f;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-family: monospace;
  opacity: 0.5;
}

.widgets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.widget-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.3s;
  animation: fadeInUp 1s ease-out forwards;
}

.widget-card:hover {
  background: #0f0f0f;
  transform: scale(1.02);
}

.widget-val {
  font-size: 1.05rem;
  font-weight: 700;
}

.widget-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.profile-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-left {
  flex-shrink: 0;
}

.avatar-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1a1a1a;
}

.profile-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.username-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.username-nick {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--accent-orange);
  text-decoration: none;
}

.badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 10px;
  background: #0a0a0aa8;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: 0.2s;
}

.badge:hover {
  background: #222;
}

.bio-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e4e1e1;
  margin-top: 5px;
}

.action-buttons {
  margin-top: 5px;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.btn-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.yandex-card {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  padding-bottom: 10px;
}

.album-art-wrap {
  width: 70px;
  height: 70px;
  position: relative;
}

.album-cover {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #111;
  object-fit: cover;
}

.track-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.track-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.equalizer {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 24px;
}

.bar {
  width: 5px;
  background: var(--text-muted);
  border-radius: 3px;
  height: 5px;
  transition: background 0.3s;
}

.playing .bar {
  background: var(--accent-yandex);
  animation: bounce 1s infinite;
}

.playing .bar:nth-child(1) {
  animation-delay: 0s;
}

.playing .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.playing .bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 24px;
  }
}

.machines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.machine-col {
  text-align: center;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 12px;
  transition: 0.2s;
}

.machine-col:hover {
  background: #151515;
}

.machine-icon {
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}

.machine-icon-server {
  color: var(--accent-green);
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-bottom: 12px;
}

.machine-icon-periphery {
  color: var(--accent-orange);
}

.machine-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}

.machine-sub {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.machine-sub a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.specs-list {
  text-align: left;
  list-style: none;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.8rem;
}

.specs-list li::before {
  content: "• ";
  color: #333;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a0a86;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: 0.2s;
}

.skill-item:hover {
  background: #1a1a1a;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.status-pill {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

.status-progress {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
}

.text-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 24px;
  color: white;
}

.text-content h3:first-child {
  margin-top: 0;
}

.text-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.credits-wrap h3 {
  color: white;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.credits-wrap p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.8;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #0f0f11;
  border: 1px solid #222;
  padding: 30px;
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  transform: scale(0.9);
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
  border: 1px solid transparent;
}

.modal-btn i {
  font-size: 24px;
}

.modal-btn:hover {
  background: #222;
  transform: translateY(-3px);
}

.close-modal {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}

.close-modal:hover {
  color: white;
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .machines-grid {
    gap: 10px;
  }

  .widgets-row {
    gap: 10px;
  }
}
