:root {
  --background-color: #ffffff;
  --card-background: #f9f9f9;
  --text-primary: #1c1c1e;
  --text-secondary: #757575;
  --border-color: #e5e5e5;
  --accent-color: #00A954;
  --skeleton-color: #e1e1e1;
  --font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  display: flex;
  max-width: 1399px;
  margin: 0 auto;
  padding: 80px 60px;
  gap: 120px;
}


.profile-section {
  width: 35%;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: calc(100vh - 160px);
}

.profile-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-header {
  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  background-color: var(--skeleton-color);
}

.profile-name {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.profile-bio {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
  text-align: left;
}

.links-section {
  width: 65%;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.section-title:not(:first-child) {
  margin-top: 40px;
}

.links-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.links-container.social-grid {
  grid-template-columns: repeat(2, max-content);
}

.link-card {
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background-color 0.2s ease, transform 0.1s ease-out;
  overflow: hidden;
}

.link-card:hover {
  background-color: var(--card-background);
}

.link-card:active {
  transform: scale(0.96);
  transition: transform 0.1s ease-in;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-grow: 1;
  min-width: 0;
}

.card-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.link-card:not(.social-card) .card-icon-container {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--text-primary);
  border: solid 1px var(--border-color);
  padding: 8px;
}

.card-icon-container .feather {
  width: 26px;
  height: 26px;
}

.card-icon-container .card-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
}

.card-url {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.card-preview {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.card-preview .error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.link-card.social-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 180px;
  height: 180px;
}

.social-card .card-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 12px;
}

.social-card .card-text {
  flex-grow: 1;
  width: 100%;
}

.social-card .card-title {
  font-size: 18px;
}

.social-card .card-url {
  margin-top: 4px;
}

@keyframes pulse {
  0% {
    background-color: var(--skeleton-color);
  }

  50% {
    background-color: #d1d1d1;
  }

  100% {
    background-color: var(--skeleton-color);
  }
}

.skeleton {
  width: 100%;
  height: 100%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    padding: 40px 27px;
    gap: 40px;
  }

  .profile-section {
    position: static;
    width: 100%;
    height: auto;
  }

  .links-section {
    width: 100%;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 32px;
  }

  .profile-bio {
    font-size: 16px;
  }

  .section-title {
    font-size: 18px;
  }

  .links-container {
    gap: 20px;
  }

  .link-card {
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }

  .link-card:not(.social-card) .card-icon-container {
    width: 48px;
    height: 48px;
  }

  .card-preview {
    width: 120px;
    height: 80px;
  }

  .social-card .card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 10px;
  }

  .social-card .card-title {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .links-container {
    grid-template-columns: 1fr;
  }

  .links-container.social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .link-card.social-card {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .profile-name {
    font-size: 28px;
  }
}

.site-footer {
  padding: 20px 0;
  text-align: left;
  border-top: none;
  margin-top: 0;
  opacity: 0;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.footer-made-by {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
}

@media (max-width: 992px) {
  .profile-section {
    justify-content: flex-start;
  }

  .site-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }
}

.aloon-link {
  font-weight: 600;
  position: relative;
  background: linear-gradient(to right, #6a6a6a 0, #fff 10%, #656565 20%);
  background-position: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  background-size: 200px;
}

@-moz-keyframes shine {
  0% {
    background-position: -50px;
  }

  60% {
    background-position: 120px;
  }

  100% {
    background-position: 120px;
  }
}

@-webkit-keyframes shine {
  0% {
    background-position: -50px;
  }

  60% {
    background-position: 120px;
  }

  100% {
    background-position: 120px;
  }
}

@-o-keyframes shine {
  0% {
    background-position: -50px;
  }

  60% {
    background-position: 120px;
  }

  100% {
    background-position: 120px;
  }
}

@keyframes shine {
  0% {
    background-position: -50px;
  }

  60% {
    background-position: 120px;
  }

  100% {
    background-position: 120px;
  }
}

.video-embed-wrapper {
  grid-column: span 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  mask-image: -webkit-radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.video-embed-wrapper:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background-color: var(--skeleton-color);
  pointer-events: none;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.3s ease;
  color: white;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
}

.video-embed-wrapper:hover .video-overlay {
  opacity: 0.9;
}

.video-overlay .play-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.video-overlay .overlay-text {
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


@media (max-width: 576px) {
  .video-embed-wrapper {
    grid-column: 1 / -1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.593);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.video-modal-overlay.closing {
  animation: fadeOut 0.3s ease-in forwards;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: -5px;
  background: none;
  border: none;
  color: rgb(36, 36, 36);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.close-modal:hover {
  opacity: 1;
}

.video-player-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.grid-spacer {
  display: block;
}

@media (max-width: 576px) {
  .grid-spacer {
    display: none;
  }
}