/* main.css — Bento index page */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --white: #f8f6ff;
  --p200: #d9b8ff;
  --p400: #a855f7;
  --p500: #9333ea;
  --p600: #7e22ce;
  --p700: #6b21a8;
  --p900: #1a0533;
  --dark: #0a0212;
  --dark2: #0f0320;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(168, 85, 247, 0.18);
  --glass-border-hover: rgba(168, 85, 247, 0.4);
  --pink: #f472b6;
  --pink-g: rgba(244, 114, 182, 0.12);
  --glow-p: 0 0 40px rgba(168, 85, 247, 0.25);
  --glow-k: 0 0 40px rgba(244, 114, 182, 0.2);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 18px;
  --card-pad: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--p500);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

#cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p400);
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  transition: transform 0.1s;
}

#cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.22s, height 0.22s, border-color 0.22s, background 0.22s;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--p400);
  background: rgba(168, 85, 247, 0.07);
}

/* ── NOISE ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── BG ORBS ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--p500);
  top: -200px;
  left: -100px;
  animation-duration: 22s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: -100px;
  right: -80px;
  animation-duration: 18s;
  animation-delay: -8s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--p400);
  top: 50%;
  left: 50%;
  animation-duration: 26s;
  animation-delay: -14s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(60px, 40px) scale(1.08);
  }
}

/* ── BENTO GRID ── */
.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── BASE CARD ── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: cardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-p);
  transform: translateY(-3px);
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card[data-delay="0"] {
  animation-delay: 0.05s;
}

.card[data-delay="1"] {
  animation-delay: 0.12s;
}

.card[data-delay="2"] {
  animation-delay: 0.19s;
}

.card[data-delay="3"] {
  animation-delay: 0.26s;
}

.card[data-delay="4"] {
  animation-delay: 0.33s;
}

.card[data-delay="5"] {
  animation-delay: 0.40s;
}

.card[data-delay="6"] {
  animation-delay: 0.47s;
}

.card[data-delay="7"] {
  animation-delay: 0.54s;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--p400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.8;
}

/* ── BIO ── */
.card--bio {
  grid-column: span 3;
}

.bio-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.bio-avatar {
  flex-shrink: 0;
  position: relative;
  width: 72px;
  height: 72px;
}

.avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p600), var(--p900));
  border: 2px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.bio-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--p400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.bio-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.bio-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 16px;
}

.bio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--p200);
  letter-spacing: 0.08em;
  background: rgba(168, 85, 247, 0.06);
}

/* ── STATUS / LANYARD ── */
.card--status {
  grid-column: span 1;
}

.status-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.discord-icon {
  width: 18px;
  height: 18px;
  color: #5865f2;
}

.status-body {
  min-height: 48px;
}

.status-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.loading-pulse {
  background: rgba(255, 255, 255, 0.2);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.2
  }

  50% {
    opacity: 0.9
  }
}

.status-online {
  background: #3ba55d;
  box-shadow: 0 0 8px rgba(59, 165, 93, 0.6);
}

.status-idle {
  background: #faa81a;
  box-shadow: 0 0 8px rgba(250, 168, 26, 0.6);
}

.status-dnd {
  background: #ed4245;
  box-shadow: 0 0 8px rgba(237, 66, 69, 0.6);
}

.status-offline {
  background: #747f8d;
}

.status-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-user-info {
  font-family: var(--font-mono);
}

.status-username {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
}

.status-state {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.status-activity {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* SPOTIFY */
.spotify-wrap {
  border-top: 1px solid rgba(244, 114, 182, 0.1);
  padding-top: 12px;
}

.spotify-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotify-ico {
  width: 20px;
  height: 20px;
  color: #1db954;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  overflow: hidden;
}

.spotify-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  display: block;
  margin-bottom: 2px;
}

.spotify-track {
  font-size: 0.78rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.spotify-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #1db954;
  animation: wave 1.2s ease-in-out infinite;
}

.spotify-wave span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.spotify-wave span:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}

.spotify-wave span:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}

.spotify-wave span:nth-child(4) {
  height: 8px;
  animation-delay: 0.1s;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ── CLOCK ── */
.card--clock {
  grid-column: span 1;
}

.clock-inner {
  text-align: center;
  padding: 10px 0;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 40%, var(--p400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.clock-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  text-transform: capitalize;
}

.clock-tz {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

/* ── QUOTE ── */
.card--quote {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(244, 114, 182, 0.03));
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  letter-spacing: -0.01em;
}

.quote-glyph {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: rgba(168, 85, 247, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* ── CTA CARDS ── */
.card--cta {
  grid-column: span 1;
  position: relative;
  overflow: hidden;
}

.card--portfolio {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(147, 51, 234, 0.03));
}

.card--amigos {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(168, 85, 247, 0.03));
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 300;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p500), var(--p600));
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.45);
}

.cta-btn--pink {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.8), rgba(168, 85, 247, 0.8));
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.25);
}

.cta-btn--pink:hover {
  box-shadow: 0 8px 28px rgba(244, 114, 182, 0.4);
}

.cta-deco {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(168, 85, 247, 0.07);
  font-family: var(--font-display);
  pointer-events: none;
  line-height: 1;
}

.cta-deco--pink {
  color: rgba(244, 114, 182, 0.08);
}

/* ── STACK ── */
.card--stack {
  grid-column: span 2;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 85, 247, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s, color 0.2s;
}

.stack-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--white);
}

.stack-icon {
  font-size: 1rem;
}

/* ── SOCIAL LINKS ── */
.card--links {
  grid-column: span 2;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-link svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-link span {
  flex: 1;
}

.link-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--white);
  background: rgba(168, 85, 247, 0.05);
}

.social-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--bio {
    grid-column: span 2;
  }

  .card--status {
    grid-column: span 1;
  }

  .card--clock {
    grid-column: span 1;
  }

  .card--quote {
    grid-column: span 2;
  }

  .card--cta {
    grid-column: span 1;
  }

  .card--stack {
    grid-column: span 2;
  }

  .card--links {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .bento {
    grid-template-columns: 1fr;
    padding: 16px 12px 40px;
    gap: 10px;
  }

  .card--bio,
  .card--status,
  .card--clock,
  .card--quote,
  .card--cta,
  .card--stack,
  .card--links {
    grid-column: span 1;
  }

  .bio-inner {
    flex-direction: column;
  }

  .clock-time {
    font-size: 2.2rem;
  }
}