/* Modern Link-in-Bio Design */
:root {
  --primary-bg: url('bg.png');
  --secondary-bg: rgba(20, 20, 30, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-light: #888888;
  --accent: #2563eb;
  --border: #e5e5e5;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --neon-glow: 0 0 40px rgba(255, 20, 147, 0.8), 0 0 80px rgba(255, 20, 147, 0.6), 0 0 120px rgba(255, 20, 147, 0.4);
  --neon-glow-hover: 0 0 50px rgba(255, 255, 255, 0.9), 0 0 100px rgba(255, 20, 147, 0.8), 0 0 150px rgba(255, 20, 147, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-bg) center/cover no-repeat fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
}

/* Header Section */
.header {
  margin-bottom: 40px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.avatar-container {
  display: none;
}

.main-avatar {
  width: 120px;
  height: auto;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
}

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
               0 0 16px rgba(255, 20, 147, 0.6);
  letter-spacing: 2px;
  position: relative;
  z-index: 5;
  white-space: nowrap;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Links Grid */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.link-card {
  position: relative;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(12px);
  border: 3px solid rgba(255, 20, 147, 0.8);
  box-shadow: var(--neon-glow), var(--shadow);
  transform: scale(0.95);
}

.link-card:hover {
  transform: translateY(-8px) scale(0.98);
  box-shadow: var(--neon-glow-hover), var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.9);
}

.link-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: 2.2 / 1;
}

.link-card.wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.5 / 1;
}

.link-card.social {
  aspect-ratio: 1;
}

.link-card.project {
  aspect-ratio: 2.5 / 1;
}

.link-card.shop {
  aspect-ratio: 1.2;
}

.card-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.link-card:hover .bg-image {
  opacity: 0.4;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.featured .card-content {
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 30px;
}

.card-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.social .card-content {
  justify-content: flex-end;
  padding-bottom: 25px;
}

.social span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact .card-content {
  justify-content: flex-end;
  padding-bottom: 25px;
}

.contact span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-light);
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    max-width: 100%;
  }
  
  .profile-name {
    font-size: 36px;
    padding: 10px 20px;
    white-space: normal;
  }
  
  .links-grid {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .card-content {
    padding: 18px;
  }
  
  .card-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .card-content p {
    font-size: 13px;
  }
  
  .social span {
    font-size: 15px;
  }
  
  /* Improve touch targets */
  .link-card {
    min-height: 60px;
    border-width: 2px;
  }
  
  .link-card.social {
    min-height: 120px;
  }
  
  .link-card.featured {
    min-height: 140px;
  }
  
  .link-card.wide {
    min-height: 120px;
  }
  
  .link-card.shop {
    min-height: 140px;
  }
  
  /* Enhanced neon glow for mobile */
  .link-card {
    box-shadow: 
      0 0 30px rgba(255, 20, 147, 0.6),
      0 0 60px rgba(255, 20, 147, 0.4),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .link-card:hover {
    box-shadow: 
      0 0 40px rgba(255, 255, 255, 0.8),
      0 0 80px rgba(255, 20, 147, 0.6),
      0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Responsive Design for larger screens */
@media (min-width: 481px) {
  .container {
    max-width: 420px;
  }
}