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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a1a;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.background-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.strip-container {
  display: flex;
  animation: scroll 45s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.strip-container img {
  height: 100vh;
  object-fit: cover;
  min-width: 100vw;
}

.content {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.name {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 600;
}

.username {
  font-size: 20px;
  color: #aaa;
  margin: 0 0 10px;
}

.description {
  font-size: 16px;
  color: #ccc;
  margin: 0 0 30px;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.link-icon {
  font-size: 22px;
  margin-right: 15px;
}

.link-text {
  flex: 1;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
}

.link-more {
  font-size: 20px;
  color: #aaa;
  min-width: 24px;
  text-align: right;
}

.qr-code {
  position: fixed;
  bottom: 25px;
  right: 25px;
  cursor: pointer;
  z-index: 100;
}

.qr-code img {
  width: 80px;
  height: 80px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #111;
  transition: transform 0.3s;
}

.qr-code:hover img {
  transform: scale(1.1);
}

/* Модал */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #222;
  border-radius: 20px;
  border: 2px solid #4d4d4d;
  margin: 15% auto;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: modalOpen 0.3s;
}

@keyframes modalOpen {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff4d4d;
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #fff;
}

.qr-large {
  width: 250px;
  height: 250px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #111;
}

@media (max-width: 480px) {
  .content {
    padding: 30px 15px;
  }
  
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  
  .qr-code {
    bottom: 15px;
    right: 15px;
  }
  
  .qr-code img {
    width: 60px;
    height: 60px;
  }
  
  .modal-content {
    margin: 25% auto;
    padding: 30px 20px;
  }
  
  .qr-large {
    width: 200px;
    height: 200px;
  }
}

.background-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  display: flex;
  flex-direction: column;
}

.strip-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  animation: scroll 45s linear infinite;
}

.strip-item {
  flex: 0 0 auto;
  width: 300px;
  height: 533px; /* Фиксированная высота */
  border-radius: 12px;
  overflow: hidden;
  background-color: #1a1a1a; /* Темный фон для областей, не занятых изображением */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Изображение вписывается целиком */
  display: block;
  transition: transform 0.4s ease;
}

.strip-item:hover img {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Затемнение фона */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Основной контент */
.content {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(15, 15, 20, 0.95);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Модал */
.modal-content {
  background: rgba(30, 30, 40, 0.95);
  border: 2px solid #fff;
  backdrop-filter: blur(5px);
  border-radius: 20px;
}

/* Для мобильных устройств */
@media (max-width: 1000px) {
  .strip-item {
    width: 250px;
  }
}

@media (max-width: 800px) {
  .strip-item {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .strip-item {
    width: 150px;
  }
}