@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core Palette - Dark Mode Only */
  --bg-dark: #0f172a;
  --accent-dark: #60a5fa;
  --text-dark: #f8fafc;
  --muted-dark: #94a3b8;

  /* Glass Vars */
  --glass-bg-dark: rgba(15, 23, 42, 0.6);
  --glass-border-dark: rgba(255, 255, 255, 0.1);

  --shadow-dark:
    0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.3);

  /* Animation */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(245, 158, 11, 0.15) 0px, transparent 50%),
    url('456.png');
  background-size: cover, cover, cover, cover, cover;
  background-blend-mode: overlay;
  background-attachment: fixed;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Card Container */
.card {
  width: min(100%, 400px);
  background: var(--glass-bg-dark);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-dark);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.8s var(--ease-elastic) forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Decorative Card Shine */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: transform 0.5s;
}

/* Avatar */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s ease;
  animation: pulse-blue 1.5s infinite;
}



/* Typography */
.name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  /* Full Rainbow Gradient */
  background: linear-gradient(to right,
      #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

.taglines {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-dark);
}

.gaming-quote {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--accent-dark);
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.handle {
  font-size: 0.95rem;
  color: var(--muted-dark);
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  cursor: pointer;
}

.handle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Links */
.links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.link {
  --brand-color: var(--accent-dark);
  /* Default fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s var(--ease-elastic);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideIn 0.5s var(--ease-elastic) forwards;
}

/* Stagger animations for links */
.link:nth-child(1) {
  animation-delay: 0.1s;
}

.link:nth-child(2) {
  animation-delay: 0.2s;
}

.link:nth-child(3) {
  animation-delay: 0.3s;
}

.link:nth-child(4) {
  animation-delay: 0.4s;
}

.link:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--brand-color);
  border-color: var(--brand-color);
}

.link:active {
  transform: scale(0.98);
}

.icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  margin-right: 0;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.link:hover .icon {
  background: var(--brand-color);
  color: white;
  /* If the brand color is white/light, we might need dark text.
     For now, assuming most brands look okay with white icon or we can specificy exception.
     Let's handle the specific white brands independently or mix-blend-mode */
}

/* Brand Colors */
.brand-instagram {
  --brand-color: #E1306C;
}

.brand-x {
  --brand-color: #ffffff;
}

.brand-github {
  --brand-color: #ffffff;
}

.brand-playstation {
  --brand-color: #0070d1;
}

.brand-xbox {
  --brand-color: #107C10;
}

.brand-email {
  --brand-color: #f59e0b;
}

/* Special handling for white/light brands to ensure icon is visible */
.brand-x:hover .icon,
.brand-github:hover .icon {
  color: #000000;
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.9), 0 0 0 0 rgba(0, 200, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 25px rgba(0, 255, 255, 0), 0 0 0 40px rgba(0, 200, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0), 0 0 0 0 rgba(0, 200, 255, 0);
  }
}

.footer {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--muted-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
    border-radius: 20px;
  }
}