/* ============================================
   YAKO — Social Links Hub
   ============================================ */

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

:root {
  /* Instagram gradient colors */
  --ig-1: #833ab4;
  --ig-2: #c13584;
  --ig-3: #e1306c;
  --ig-4: #fd1d1d;
  --ig-5: #f56040;
  --ig-6: #fcaf45;

  /* TikTok */
  --tt-bg: #010101;
  --tt-cyan: #25f4ee;
  --tt-pink: #fe2c55;

  /* Snapchat */
  --snap-yellow: #fffc00;
  --snap-dark: #333;

  /* Spotify */
  --sp-green: #1db954;
  --sp-dark: #191414;

  /* Center card */
  --center-bg: #0d1117;
  --center-border: rgba(255, 255, 255, 0.08);

  /* Text shadow animation colors (Yako) */
  --color-primary: #a2d2ff;
  --color-secondary: #7ec8e3;
  --color-tertiary: #5bb5d5;
  --color-quaternary: #38a3c7;
  --color-quinary: #1591b9;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.grid-container {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #0a0a0a;
  position: relative;
}

/* ============================================
   PANEL BASE
   ============================================ */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              z-index 0s;
  z-index: 1;
}

.panel:hover {
  transform: scale(1.04);
  z-index: 10;
}

/* Glow overlay */
.panel-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.panel:hover .panel-glow {
  opacity: 1;
}

/* Logo */
.panel-logo {
  width: clamp(80px, 12vw, 180px);
  height: clamp(80px, 12vw, 180px);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.panel:hover .panel-logo {
  transform: scale(1.1);
}

/* Label under logo */
.panel-label {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.panel:hover .panel-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   INSTAGRAM
   ============================================ */
.panel-instagram {
  background: linear-gradient(135deg, var(--ig-1), var(--ig-2), var(--ig-3), var(--ig-4), var(--ig-5));
  color: #fff;
}

.panel-instagram .panel-glow {
  background: radial-gradient(circle at center, rgba(225, 48, 108, 0.4) 0%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(225, 48, 108, 0.3);
}

.panel-instagram:hover .panel-logo {
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

/* ============================================
   TIKTOK
   ============================================ */
.panel-tiktok {
  background: var(--tt-bg);
  color: #fff;
}

.panel-tiktok .panel-logo {
  filter: drop-shadow(2px 0 0 var(--tt-cyan)) drop-shadow(-2px 0 0 var(--tt-pink));
}

.panel-tiktok .panel-glow {
  background: radial-gradient(circle at center, rgba(37, 244, 238, 0.15) 0%, rgba(254, 44, 85, 0.15) 50%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(254, 44, 85, 0.2);
}

.panel-tiktok:hover .panel-logo {
  filter: drop-shadow(3px 0 0 var(--tt-cyan)) drop-shadow(-3px 0 0 var(--tt-pink))
          drop-shadow(0 0 25px rgba(37, 244, 238, 0.5));
}

/* ============================================
   SNAPCHAT
   ============================================ */
.panel-snapchat {
  background: var(--snap-yellow);
  color: var(--snap-dark);
}

.panel-snapchat .panel-glow {
  background: radial-gradient(circle at center, rgba(255, 252, 0, 0.5) 0%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(255, 252, 0, 0.25);
}

.panel-snapchat:hover .panel-logo {
  filter: drop-shadow(0 0 25px rgba(51, 51, 51, 0.4));
}

/* ============================================
   SPOTIFY
   ============================================ */
.panel-spotify {
  background: var(--sp-green);
  color: var(--sp-dark);
}

.panel-spotify .panel-glow {
  background: radial-gradient(circle at center, rgba(29, 185, 84, 0.5) 0%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(29, 185, 84, 0.3);
}

.panel-spotify:hover .panel-logo {
  filter: drop-shadow(0 0 25px rgba(25, 20, 20, 0.5));
}

/* ============================================
   CENTER PROFILE CARD
   ============================================ */
.panel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(240px, 30vw, 400px);
  height: clamp(220px, 35vh, 340px);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--center-border);
  border-radius: 24px;
  z-index: 20;
  cursor: default;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.panel-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 80px rgba(162, 210, 255, 0.15),
              0 0 60px rgba(162, 210, 255, 0.08),
              0 0 0 1px rgba(162, 210, 255, 0.12);
}

.panel-center .panel-glow {
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(162, 210, 255, 0.08) 0%, transparent 70%);
}

.panel-center:hover .panel-glow {
  opacity: 1;
}

.center-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  gap: 12px;
}

/* Profile picture */
.profile-pic-wrapper {
  width: clamp(70px, 8vw, 110px);
  height: clamp(70px, 8vw, 110px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(162, 210, 255, 0.3);
  box-shadow: 0 0 20px rgba(162, 210, 255, 0.15);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  flex-shrink: 0;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   YAKO TEXT SHADOW ANIMATION
   ============================================ */
.name-wrapper {
  display: flex;
  align-content: center;
  justify-content: center;
}

.text-shadows {
  text-shadow: 3px 3px 0 var(--color-secondary),
    6px 6px 0 var(--color-tertiary),
    9px 9px var(--color-quaternary),
    12px 12px 0 var(--color-quinary);
  font-family: 'Bungee', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  text-align: center;
  margin: 0;
  color: var(--color-primary);
  animation: shadows 1.2s ease-in infinite;
  letter-spacing: 0.4rem;
}

@keyframes shadows {
  0% {
    text-shadow: none;
  }
  10% {
    transform: translate(-3px, -3px);
    text-shadow: 3px 3px 0 var(--color-secondary);
  }
  20% {
    transform: translate(-6px, -6px);
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary);
  }
  30% {
    transform: translate(-9px, -9px);
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary),
      9px 9px var(--color-quaternary);
  }
  40% {
    transform: translate(-12px, -12px);
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary),
      9px 9px var(--color-quaternary),
      12px 12px 0 var(--color-quinary);
  }
  50% {
    transform: translate(-12px, -12px);
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary),
      9px 9px var(--color-quaternary),
      12px 12px 0 var(--color-quinary);
  }
  60% {
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary),
      9px 9px var(--color-quaternary),
      12px 12px 0 var(--color-quinary);
  }
  70% {
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary),
      9px 9px var(--color-quaternary);
  }
  80% {
    text-shadow: 3px 3px 0 var(--color-secondary),
      6px 6px 0 var(--color-tertiary);
  }
  90% {
    text-shadow: 3px 3px 0 var(--color-secondary);
  }
  100% {
    text-shadow: none;
  }
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: rgba(162, 210, 255, 0.1);
  border: 1px solid rgba(162, 210, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.panel-center:hover .tag {
  background: rgba(162, 210, 255, 0.18);
  border-color: rgba(162, 210, 255, 0.3);
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 3px;
  }

  .panel-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    border-radius: 0;
    order: -1;
    min-height: 180px;
  }

  .panel-center:hover {
    transform: scale(1.02);
  }

  .panel-logo {
    width: 60px;
    height: 60px;
  }

  .text-shadows {
    font-size: 2rem;
  }
}

/* ============================================
   PARTICLE CANVAS (behind everything)
   ============================================ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
