/* Profile page - cyberpunk bento layout */
* { cursor: none !important; }

#bgVideo {
  position: fixed;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; object-fit: cover;
}

.bg-fallback {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 30%, rgba(0,245,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 70% at 80% 70%, rgba(168,85,247,0.1) 0%, transparent 60%), #020208;
  animation: bgBreath 8s ease-in-out infinite alternate;
}

@keyframes bgBreath { 0%{filter:brightness(1)} 100%{filter:brightness(1.2) saturate(1.1)} }

.overlay {
  position: fixed; inset: 0; z-index: 3;
  background: rgba(0,0,0,0.52); pointer-events: none;
}

/* Cursor */
#cursorDot {
  position: fixed; width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; transform: translate(-50%,-50%);
  z-index: 99999; box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
  will-change: left, top;
}

#cursorRing {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(0,245,255,0.45); border-radius: 50%;
  pointer-events: none; transform: translate(-50%,-50%);
  z-index: 99998; transition: left 0.06s ease, top 0.06s ease;
  will-change: left, top;
}

body:active #cursorDot { transform: translate(-50%,-50%) scale(1.6); }
body:active #cursorRing { width: 22px; height: 22px; border-color: var(--pink); }

.trail {
  position: fixed; border-radius: 50%; pointer-events: none;
  animation: trailFade 0.6s linear forwards; z-index: 99997;
}

@keyframes trailFade { 0%{opacity:0.65;transform:scale(1)} 100%{opacity:0;transform:scale(0.1)} }

/* Enter overlay */
#enterOverlay {
  position: fixed; inset: 0; background: #020208;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  z-index: 99999; transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
}

.enter-logo {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(36px,6vw,68px); letter-spacing: 6px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: logoGlow 2.5s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0%{filter:drop-shadow(0 0 10px rgba(0,245,255,0.25))}
  100%{filter:drop-shadow(0 0 25px rgba(0,245,255,0.75)) drop-shadow(0 0 45px rgba(168,85,247,0.45))}
}

.enter-sub {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  animation: blink 1.8s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:0.4} 50%{opacity:0.95} }

.enter-hint {
  position: absolute; bottom: 36px; font-size: 11px;
  letter-spacing: 2px; color: rgba(255,255,255,0.22); text-transform: uppercase;
}

/* Main page */
#mainPage {
  position: relative; width: 100%; min-height: 100vh; z-index: 10;
  opacity: 0; pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
  display: flex; justify-content: center; align-items: center;
}
#mainPage.visible { opacity: 1; pointer-events: auto; }

.page {
  width: 100%; min-height: 100vh; padding: 60px 20px 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}

.bento-container {
  display: grid; grid-template-columns: repeat(3,1fr); grid-gap: 24px;
  width: 100%; max-width: 1150px;
  animation: gridScaleIn 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes gridScaleIn { from{opacity:0;transform:scale(0.96) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }

.bento-card {
  background: var(--card-bg); backdrop-filter: blur(36px);
  border: 1px solid var(--card-border); border-radius: 24px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; cursor: pointer !important;
  min-width: 0;
}

.bento-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 65%); z-index: 1;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,245,255,0.45);
  box-shadow: 0 20px 45px rgba(0,245,255,0.12), 0 0 35px rgba(168,85,247,0.06);
}

/* Card animations */
.bento-profile { animation: cardFade 0.6s 0.1s both; }
.bento-discord { animation: cardFade 0.6s 0.2s both; }
.bento-github { animation: cardFade 0.6s 0.3s both; }
.bento-audio { animation: cardFade 0.6s 0.4s both; }
.bento-socials { animation: cardFade 0.6s 0.5s both; }
@keyframes cardFade { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* Grid layout */
.bento-profile { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
.bento-discord { grid-column: span 1; grid-row: span 2; justify-content: space-between; gap: 16px; }
.bento-github { grid-column: span 1; gap: 16px; }
.bento-audio { grid-column: span 1; justify-content: space-between; gap: 18px; }
.bento-games { grid-column: span 3; gap: 16px; }
.bento-socials { grid-column: span 3; gap: 16px; }

/* Profile card */
.profile-left { position: relative; flex-shrink: 0; }
.avatar-wrap { position: relative; width: 140px; height: 140px; }

.ring1 {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--cyan) 20%, var(--purple) 45%, var(--pink) 65%, transparent 80%, var(--cyan) 100%);
  animation: spinRing 3.5s linear infinite; filter: blur(8px); opacity: 0.85;
}
.ring2 {
  position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0%, rgba(0,245,255,0.6) 25%, transparent 50%, rgba(168,85,247,0.6) 75%, transparent 100%);
  animation: spinRing 2.6s linear infinite reverse; filter: blur(4px);
}
@keyframes spinRing { to{transform:rotate(360deg)} }

.avatar-inner {
  position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; z-index: 2;
  border: 2px solid rgba(0,245,255,0.3); box-shadow: 0 0 35px rgba(0,245,255,0.2);
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nitro-deco {
  position: absolute; inset: -11px; width: 162px; height: 162px; z-index: 9; pointer-events: none;
}

.profile-right { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.username-row { display: flex; align-items: center; gap: 12px; }

.username {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(26px,3.8vw,38px); letter-spacing: 1px; color: #fff;
  text-shadow: 0 0 20px rgba(0,245,255,0.5), 0 0 40px rgba(168,85,247,0.3);
  position: relative;
}
.username::before, .username::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden; clip: rect(0,9999px,0,0);
}
.username::before { left: 2px; text-shadow: -2px 0 #ff003c; animation: glitchT 3.5s infinite linear alternate-reverse; }
.username::after { left: -2px; text-shadow: 2px 0 var(--cyan); animation: glitchB 3.5s infinite linear alternate-reverse; }

@keyframes glitchT {
  0%,90%,100%{clip:rect(0,9999px,0,0)} 92%{clip:rect(0,9999px,14px,0);transform:translate(-3px,-2px)}
  94%{clip:rect(8px,9999px,20px,0);transform:translate(3px,2px)} 96%{clip:rect(4px,9999px,12px,0);transform:translate(-2px,0)}
}
@keyframes glitchB {
  0%,90%,100%{clip:rect(0,9999px,0,0)} 91%{clip:rect(14px,9999px,26px,0);transform:translate(3px,3px)}
  93%{clip:rect(6px,9999px,18px,0);transform:translate(-3px,-2px)} 95%{clip:rect(0,9999px,14px,0);transform:translate(2px,0)}
}

.tagline { font-family: var(--font-heading); font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.location-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,245,255,0.03); border: 1px solid rgba(0,245,255,0.15);
  padding: 8px 18px; border-radius: 30px; margin-top: 6px;
  transition: all 0.3s;
}
.location-badge:hover {
  background: rgba(0,245,255,0.08); border-color: rgba(0,245,255,0.5);
  box-shadow: 0 0 25px rgba(0,245,255,0.25); transform: translateY(-2px) scale(1.02);
}

.pulse-ring {
  width: 8px; height: 8px; background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan); position: relative;
}
.pulse-ring::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(0,245,255,0.5); animation: radarPulse 2s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
@keyframes radarPulse { 0%{transform:scale(0.6);opacity:1} 100%{transform:scale(2.5);opacity:0} }

.lk-flag { width: 22px; height: 14px; object-fit: cover; border-radius: 2px; }
.location-text { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: #fff; }

/* Discord card */
.discord-header, .github-header, .audio-header, .socials-title-row {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 12px;
}
.discord-icon-wrap, .github-icon-wrap, .audio-icon-wrap, .socials-title-row {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 700; letter-spacing: 2px;
}
.discord-icon-wrap i { color: #5865f2; font-size: 14px; }
.github-icon-wrap i { color: #fff; font-size: 14px; }
.audio-icon-wrap i { color: var(--cyan); font-size: 14px; }
.socials-title-row i { color: var(--purple); font-size: 13px; }

.dc-status-label {
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(88,101,242,0.3); color: rgba(88,101,242,0.9); letter-spacing: 1px;
}
.dc-profile-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.dc-avatar-wrap { position: relative; flex-shrink: 0; }
.dc-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(88,101,242,0.35); }
.dc-status-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #060612; }
.dc-user-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dc-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff; }
.dc-tag {
  display: flex; align-items: center; gap: 4px;
  background: rgba(20,20,45,0.85); border: 1px solid rgba(168,85,247,0.45);
  color: #d8b4fe; font-size: 9px; font-weight: 700; padding: 2px 7px 2px 4px; border-radius: 6px;
}
.dc-tag img { width: 12px; height: 12px; object-fit: contain; }
.dc-activity { font-size: 11px; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rich presence */
.dc-rich-presence {
  margin-top: 16px; padding: 14px; background: rgba(255,255,255,0.03);
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 12px;
}
.dc-rp-header { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); font-weight: 700; }
.dc-rp-body { display: flex; align-items: center; gap: 14px; }
.dc-rp-image-wrap { position: relative; flex-shrink: 0; }
.dc-rp-image { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.06); }
.dc-rp-small-image { position: absolute; bottom: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #060614; background: #060614; }
.dc-rp-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dc-rp-name { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-rp-details-text, .dc-rp-state { font-size: 11px; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-rp-progress { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.dc-rp-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.dc-rp-fill { height: 100%; width: 0%; background: #1db954; border-radius: 99px; transition: width 0.5s linear; box-shadow: 0 0 8px rgba(29,185,84,0.4); }
.dc-rp-time-row { display: flex; justify-content: space-between; font-size: 9px; color: rgba(255,255,255,0.35); }

/* GitHub card */
.gh-profile-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.gh-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(168,85,247,0.35); box-shadow: 0 0 15px rgba(168,85,247,0.15); }
.gh-user-details { display: flex; flex-direction: column; gap: 2px; }
.gh-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: #fff; }
.gh-login { font-family: var(--font-mono); font-size: 11px; color: rgba(168,85,247,0.85); }
.gh-bio { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.5; }

.gh-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,0.05); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.01); }
.gh-stat-box { text-align: center; padding: 10px 4px; display: flex; flex-direction: column; justify-content: center; }
.gh-stat-box + .gh-stat-box { border-left: 1px solid rgba(255,255,255,0.05); }
.gh-stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--cyan); text-shadow: 0 0 10px rgba(0,245,255,0.15); }
.gh-stat-label { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.gh-langs-container { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-lang { font-family: var(--font-mono); font-size: 10px; padding: 3px 10px; border-radius: 20px; background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.22); color: rgba(244,114,182,0.85); transition: all 0.3s; }
.gh-lang:hover { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.45); transform: translateY(-1px); }

/* Audio card */
.visualizer-container { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.visualizer-container .bar { width: 2.5px; height: 2px; background: var(--cyan); border-radius: 2px 2px 0 0; transition: height 0.15s ease; }
.bento-audio.playing .visualizer-container .bar { animation: bounceBar 0.8s ease-in-out infinite alternate; }
.bento-audio.playing .visualizer-container .bar:nth-child(1) { animation-delay: 0.1s; background: var(--cyan); }
.bento-audio.playing .visualizer-container .bar:nth-child(2) { animation-delay: 0.4s; background: var(--purple); }
.bento-audio.playing .visualizer-container .bar:nth-child(3) { animation-delay: 0.2s; background: var(--pink); }
.bento-audio.playing .visualizer-container .bar:nth-child(4) { animation-delay: 0.6s; background: var(--cyan); }
.bento-audio.playing .visualizer-container .bar:nth-child(5) { animation-delay: 0.3s; background: var(--purple); }
.bento-audio.playing .visualizer-container .bar:nth-child(6) { animation-delay: 0.5s; background: var(--pink); }
.bento-audio.playing .visualizer-container .bar:nth-child(7) { animation-delay: 0.1s; background: var(--cyan); }
.bento-audio.playing .visualizer-container .bar:nth-child(8) { animation-delay: 0.4s; background: var(--purple); }
@keyframes bounceBar { 0%{height:2px} 100%{height:18px} }

.audio-body { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.vinyl-deck-wrap { position: relative; width: 82px; height: 82px; flex-shrink: 0; }
.vinyl-glow { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(0,245,255,0.15); background: radial-gradient(circle, transparent 40%, rgba(0,245,255,0.05) 100%); }
.rotating-vinyl { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #080816; box-shadow: 0 0 15px rgba(0,0,0,0.8); animation: spinVinyl 10s linear infinite; animation-play-state: paused; }
.bento-audio.playing .rotating-vinyl { animation-play-state: running; }
@keyframes spinVinyl { to{transform:rotate(360deg)} }
.vinyl-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; background: #020208; border-radius: 50%; border: 1.5px solid rgba(0,245,255,0.45); box-shadow: inset 0 0 4px var(--cyan); }
.audio-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.music-title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); opacity: 0.8; }

.audio-deck-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.audio-ctrl-btn { background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer !important; transition: all 0.2s; font-size: 16px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.audio-ctrl-btn:hover { color: #fff; transform: scale(1.18); }
.audio-ctrl-btn.play-btn { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #000; font-size: 13px; box-shadow: 0 0 15px rgba(0,245,255,0.35); }
.audio-ctrl-btn.play-btn:hover { transform: scale(1.08); box-shadow: 0 0 22px rgba(0,245,255,0.6); }

.audio-progress-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.audio-prog-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; cursor: pointer !important; position: relative; }
.audio-prog-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width 0.1s linear; box-shadow: 0 0 6px var(--cyan); }
.audio-time { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.35); flex-shrink: 0; }

.audio-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); gap: 10px; }
.track-dots { display: flex; gap: 6px; }
.tdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: 0.3s; cursor: pointer !important; }
.tdot.active { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.card-vol-control { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.45); font-size: 12px; background: rgba(255,255,255,0.03); padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); }
#volSlider { width: 60px; cursor: pointer !important; accent-color: var(--cyan); height: 3px; }

/* Socials */
.socials-grid { display: grid; grid-template-columns: repeat(5,1fr); grid-gap: 14px; margin-top: 8px; }
.soc-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px 8px; text-decoration: none; transition: all 0.3s cubic-bezier(0.25,1,0.5,1); }
.soc-item i { font-size: 22px; color: rgba(255,255,255,0.7); transition: color 0.3s, transform 0.3s; }
.soc-label { font-family: var(--font-heading); font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.45); transition: color 0.3s; letter-spacing: 0.5px; }
.soc-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.04); }
.soc-item:hover i { transform: scale(1.12); }
.soc-item:hover .soc-label { color: #fff; }

.soc-discord:hover { border-color: rgba(88,101,242,0.5); box-shadow: 0 0 20px rgba(88,101,242,0.25); }
.soc-discord:hover i { color: #5865F2; }
.soc-github:hover { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 20px rgba(255,255,255,0.15); }
.soc-github:hover i { color: #fff; }
.soc-youtube:hover { border-color: rgba(255,0,0,0.5); box-shadow: 0 0 20px rgba(255,0,0,0.2); }
.soc-youtube:hover i { color: #FF0000; }
.soc-tiktok:hover { border-color: rgba(0,245,255,0.5); box-shadow: 0 0 20px rgba(0,245,255,0.2); }
.soc-tiktok:hover i { color: #00f5ff; }
.soc-instagram:hover { border-color: rgba(225,48,108,0.5); box-shadow: 0 0 20px rgba(225,48,108,0.2); }
.soc-instagram:hover i { color: #E1306C; }
.soc-facebook:hover { border-color: rgba(24,119,242,0.5); box-shadow: 0 0 20px rgba(24,119,242,0.2); }
.soc-facebook:hover i { color: #1877F2; }
.soc-spotify:hover { border-color: rgba(29,185,84,0.5); box-shadow: 0 0 20px rgba(29,185,84,0.2); }
.soc-spotify:hover i { color: #1DB954; }
.soc-steam:hover { border-color: rgba(102,192,244,0.5); box-shadow: 0 0 20px rgba(102,192,244,0.2); }
.soc-steam:hover i { color: #66c0f4; }
.soc-twitch:hover { border-color: rgba(145,70,255,0.5); box-shadow: 0 0 20px rgba(145,70,255,0.2); }
.soc-twitch:hover i { color: #9146FF; }
.soc-website:hover { border-color: rgba(0,245,255,0.5); box-shadow: 0 0 20px rgba(0,245,255,0.25); }
.soc-website:hover i { color: var(--cyan); }
.soc-email:hover { border-color: rgba(244,114,182,0.5); box-shadow: 0 0 20px rgba(244,114,182,0.25); }
.soc-email:hover i { color: var(--pink); }

/* Visit counter */
.visit-counter {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; padding: 6px 14px;
  background: rgba(4,4,10,0.75); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; color: rgba(255,255,255,0.5); backdrop-filter: blur(10px); z-index: 300;
}
.visit-counter i { color: var(--cyan); font-size: 11px; }

/* Email modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2,2,12,0.85);
  backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center;
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: rgba(6,6,20,0.88); backdrop-filter: blur(32px);
  border: 1px solid rgba(0,245,255,0.2); box-shadow: 0 0 35px rgba(0,245,255,0.15), 0 25px 60px rgba(0,0,0,0.7);
  border-radius: 24px; padding: 34px 28px; width: min(430px,92%);
  text-align: center; transform: scale(0.92); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 26px; cursor: pointer !important; transition: color 0.2s; }
.modal-close:hover { color: #fff; }
.modal-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(0,245,255,0.08); border: 1px solid rgba(0,245,255,0.35); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--cyan); }
.modal-title { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: #fff; }
.modal-desc { font-family: var(--font-heading); font-size: 13px; color: rgba(255,255,255,0.45); }
.modal-copy-box { width: 100%; display: flex; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 6px 6px 6px 16px; margin-top: 10px; gap: 12px; }
.modal-email-text { flex: 1; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.85); user-select: all; text-align: left; }
.modal-copy-btn { background: linear-gradient(135deg, var(--cyan), var(--purple)); border: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #000; font-size: 16px; cursor: pointer !important; transition: transform 0.2s; }
.modal-copy-btn:hover { transform: scale(1.05); }
.modal-copy-btn.copied { background: #1db954; color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .bento-container { grid-template-columns: repeat(2,1fr); max-width: 780px; }
  .bento-profile { grid-column: span 2; }
  .bento-discord { grid-column: span 1; grid-row: span 2; }
  .bento-games { grid-column: span 2; }
  .bento-socials { grid-column: span 2; }
  .socials-grid { grid-template-columns: repeat(5,1fr); }
}

@media (max-width: 768px) {
  .bento-container { grid-template-columns: 1fr; grid-gap: 18px; padding: 10px; }
  .bento-profile, .bento-discord, .bento-github, .bento-audio, .bento-socials, .bento-games { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento-profile { flex-direction: column; text-align: center; align-items: center; gap: 20px; padding: 30px 20px; }
  .profile-right { align-items: center; }
  .username-row { justify-content: center; }
  .socials-grid { grid-template-columns: repeat(2,1fr); grid-gap: 10px; }
  .games-grid { grid-template-columns: repeat(3,1fr); }
}

/* About Me card */
.bento-about {
  grid-column: span 2;
  animation: cardFade 0.6s 0.15s both;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.about-icon-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.about-icon-wrap i {
  color: var(--pink);
  font-size: 14px;
}

.about-content {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 768px) {
  .bento-about { grid-column: span 1 !important; }
}

/* Powered by badge */
.powered-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  padding: 8px 16px;
  background: rgba(4, 4, 10, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  z-index: 300;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.powered-badge:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

.powered-badge i {
  color: var(--cyan);
  font-size: 10px;
}

.powered-badge strong {
  color: var(--cyan);
  font-weight: 700;
}

/* ===== TEMPLATE: MINIMAL ===== */
/* Centered single-column stack */
.template-minimal .bento-container {
  grid-template-columns: 1fr;
  max-width: 600px;
  gap: 16px;
}
.template-minimal .bento-profile {
  grid-column: span 1;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.template-minimal .profile-right { align-items: center; }
.template-minimal .username-row { justify-content: center; }
.template-minimal .bento-discord,
.template-minimal .bento-github,
.template-minimal .bento-audio { grid-column: span 1; grid-row: span 1; }
.template-minimal .bento-socials { grid-column: span 1; }
.template-minimal .socials-grid { grid-template-columns: repeat(3, 1fr); }
.template-minimal .bento-card {
  border-radius: 16px;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.template-minimal .bento-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.template-minimal .bg-grid { display: none; }
.template-minimal .scanlines { display: none; }
.template-minimal .ring1, .template-minimal .ring2 { filter: blur(12px); opacity: 0.5; }
.template-minimal .username { text-shadow: none; }
.template-minimal .username::before, .template-minimal .username::after { display: none; }

/* ===== TEMPLATE: TERMINAL ===== */
/* Monospace hacker console look */
.template-terminal .bento-container {
  grid-template-columns: 1fr;
  max-width: 700px;
  gap: 0;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  overflow: hidden;
}
.template-terminal .bento-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(34,197,94,0.15);
  background: rgba(0,10,0,0.8);
  padding: 20px 24px;
}
.template-terminal .bento-card:last-child { border-bottom: none; }
.template-terminal .bento-card:hover {
  transform: none;
  background: rgba(34,197,94,0.03);
  border-color: rgba(34,197,94,0.15);
  box-shadow: none;
}
.template-terminal .bento-card::before { display: none; }
.template-terminal .bento-profile {
  grid-column: span 1;
  flex-direction: row;
  border-bottom: 1px solid rgba(34,197,94,0.3);
}
.template-terminal .bento-discord,
.template-terminal .bento-github,
.template-terminal .bento-audio { grid-column: span 1; grid-row: span 1; }
.template-terminal .bento-socials { grid-column: span 1; }
.template-terminal .socials-grid { grid-template-columns: repeat(4, 1fr); }
.template-terminal .bg-grid {
  background-image: none;
}
.template-terminal .scanlines { opacity: 0.15; }
.template-terminal .username {
  font-family: var(--font-mono);
  text-shadow: 0 0 10px var(--cyan);
}
.template-terminal .username::before, .template-terminal .username::after { display: none; }
.template-terminal .ring1, .template-terminal .ring2 { display: none; }
.template-terminal .avatar-inner { border-radius: 4px; border-color: var(--cyan); }
.template-terminal .avatar-wrap { border-radius: 4px; }

/* ===== TEMPLATE: GLASS ===== */
/* Frosted glass, soft, elegant */
.template-glass .bento-container {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  gap: 20px;
}
.template-glass .bento-profile { grid-column: span 2; }
.template-glass .bento-discord { grid-column: span 1; grid-row: span 1; }
.template-glass .bento-github { grid-column: span 1; grid-row: span 1; }
.template-glass .bento-audio { grid-column: span 2; grid-row: span 1; }
.template-glass .bento-games { grid-column: span 2; }
.template-glass .bento-socials { grid-column: span 2; }
.template-glass .bento-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.template-glass .bento-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.template-glass .bg-grid { display: none; }
.template-glass .scanlines { display: none; }
.template-glass .username { text-shadow: none; }
.template-glass .username::before, .template-glass .username::after { display: none; }
.template-glass .ring1 { filter: blur(14px); opacity: 0.6; }
.template-glass .ring2 { filter: blur(8px); opacity: 0.4; }

/* ===== TEMPLATE: NEON ===== */
/* Heavy glow, bold borders, vibrant */
.template-neon .bento-container {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1150px;
}
.template-neon .bento-card {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(var(--cyan), 0.3), inset 0 0 15px rgba(0,0,0,0.5);
  border-radius: 20px;
}
.template-neon .bento-card:hover {
  box-shadow: 0 0 30px var(--cyan), 0 0 60px rgba(168,85,247,0.2), inset 0 0 20px rgba(0,0,0,0.5);
  transform: translateY(-4px) scale(1.01);
}
.template-neon .username {
  text-shadow: 0 0 30px var(--cyan), 0 0 60px var(--purple);
}
.template-neon .ring1 { opacity: 1; filter: blur(6px); }
.template-neon .ring2 { opacity: 1; filter: blur(3px); }
.template-neon .scanlines { display: none; }

/* ===== TEMPLATE: SPLIT ===== */
/* Fixed left sidebar with profile, content on right */
.template-split .page {
  padding: 0;
  min-height: 100vh;
}
.template-split .bento-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto;
  max-width: 100%;
  width: 100%;
  gap: 0;
  min-height: 100vh;
}
.template-split .bento-profile {
  grid-column: 1;
  grid-row: 1 / 20;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(168,85,247,0.15);
  background: rgba(10,5,20,0.95);
  gap: 16px;
  padding: 32px 20px;
  overflow: hidden;
}
.template-split .bento-profile:hover {
  transform: none;
  border-color: rgba(168,85,247,0.15);
  box-shadow: none;
}
.template-split .profile-left { transform: scale(0.85); }
.template-split .profile-right { align-items: center; }
.template-split .username-row { justify-content: center; }
.template-split .username { font-size: clamp(18px, 2.5vw, 24px); }
.template-split .tagline { font-size: 12px; text-align: center; }

.template-split .bento-discord,
.template-split .bento-github,
.template-split .bento-audio,
.template-split .bento-socials {
  grid-column: 2;
  grid-row: span 1;
  margin: 12px 20px;
  border-radius: 16px;
}
.template-split .bento-discord { grid-row: span 1; }
.template-split .bento-socials .socials-grid { grid-template-columns: repeat(3, 1fr); }
.template-split .bg-grid { display: none; }
.template-split .scanlines { opacity: 0.05; }
.template-split .username::before, .template-split .username::after { display: none; }

@media (max-width: 768px) {
  .template-split .bento-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .template-split .bento-profile {
    position: relative;
    height: auto;
    grid-row: auto;
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid rgba(168,85,247,0.15);
    border-radius: 16px;
    padding: 30px 20px;
  }
  .template-split .profile-left { transform: scale(1); }
  .template-split .bento-discord,
  .template-split .bento-github,
  .template-split .bento-audio,
  .template-split .bento-socials {
    grid-column: 1;
    margin: 0;
  }
}

/* ===== TEMPLATE: 3D CARDS ===== */
/* Perspective tilt, floating depth effect */
.template-cards3d .page { perspective: 1400px; }
.template-cards3d .bento-container {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  gap: 28px;
  transform-style: preserve-3d;
}
.template-cards3d .bento-profile { grid-column: span 2; transform: rotateX(3deg) translateZ(20px); }
.template-cards3d .bento-discord { grid-column: span 1; grid-row: span 1; transform: rotateY(-4deg) rotateX(2deg) translateZ(10px); }
.template-cards3d .bento-github { grid-column: span 1; grid-row: span 1; transform: rotateY(4deg) rotateX(2deg) translateZ(10px); }
.template-cards3d .bento-audio { grid-column: span 2; grid-row: span 1; transform: rotateX(-2deg) translateZ(15px); }
.template-cards3d .bento-games { grid-column: span 2; transform: rotateX(1deg) translateZ(8px); }
.template-cards3d .bento-socials { grid-column: span 2; transform: rotateX(2deg) translateZ(5px); }
.template-cards3d .bento-card {
  border-radius: 20px;
  border: 1px solid rgba(96,165,250,0.2);
  background: rgba(8,8,20,0.9);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(96,165,250,0.05);
  transition: transform 0.6s cubic-bezier(0.25,1,0.5,1), box-shadow 0.6s, border-color 0.3s;
  transform-style: preserve-3d;
}
.template-cards3d .bento-card:hover {
  transform: rotateX(0deg) rotateY(0deg) translateZ(40px) translateY(-10px) scale(1.03) !important;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 50px rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.5);
}
.template-cards3d .bg-grid { display: none; }
.template-cards3d .scanlines { display: none; }
.template-cards3d .username::before, .template-cards3d .username::after { display: none; }
.template-cards3d .username { text-shadow: 0 0 30px var(--cyan); }
.template-cards3d .ring1 { filter: blur(10px); opacity: 0.7; }
.template-cards3d .ring2 { filter: blur(5px); opacity: 0.5; }

/* ===== TEMPLATE: ORBIT ===== */
/* Centered hero profile, cards arranged radially below */
.template-orbit .bento-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  gap: 32px;
}
.template-orbit .bento-profile {
  width: 100%;
  max-width: 550px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 40px;
  border-radius: 999px / 40%;
  border: 1px solid rgba(244,114,182,0.25);
  background: radial-gradient(ellipse at center, rgba(244,114,182,0.06) 0%, rgba(6,6,18,0.7) 70%);
  box-shadow: 0 0 80px rgba(244,114,182,0.1), 0 30px 60px rgba(0,0,0,0.5);
}
.template-orbit .profile-right { align-items: center; }
.template-orbit .username-row { justify-content: center; }
.template-orbit .bento-profile:hover {
  box-shadow: 0 0 100px rgba(244,114,182,0.15), 0 30px 70px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

/* Cards in a horizontal row below the hero */
.template-orbit .bento-discord,
.template-orbit .bento-github,
.template-orbit .bento-audio {
  width: 100%;
  max-width: 500px;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: 24px;
  border-color: rgba(244,114,182,0.12);
}

.template-orbit .bento-socials {
  width: 100%;
  max-width: 800px;
  border-radius: 24px;
  border-color: rgba(244,114,182,0.12);
}
.template-orbit .socials-grid { grid-template-columns: repeat(5, 1fr); }
.template-orbit .bento-card:hover {
  border-color: rgba(244,114,182,0.4);
  box-shadow: 0 0 40px rgba(244,114,182,0.12), 0 20px 50px rgba(0,0,0,0.4);
}
.template-orbit .bg-grid { display: none; }
.template-orbit .scanlines { display: none; }
.template-orbit .username::before, .template-orbit .username::after { display: none; }
.template-orbit .username { text-shadow: 0 0 30px var(--pink); font-size: clamp(28px, 4vw, 42px); }
.template-orbit .ring1 {
  background: conic-gradient(from 0deg, transparent 0%, var(--pink) 20%, var(--purple) 45%, var(--cyan) 65%, transparent 80%, var(--pink) 100%);
}
.template-orbit .avatar-wrap { width: 160px; height: 160px; }
.template-orbit .nitro-deco { width: 182px; height: 182px; inset: -11px; }
.template-orbit .tagline { font-size: 15px; max-width: 400px; }

/* Games card */
.bento-games { animation: cardFade 0.6s 0.45s both; }

.games-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 12px;
}
.games-icon-wrap {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 700; letter-spacing: 2px;
}
.games-icon-wrap i { color: var(--pink); font-size: 14px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  transition: all 0.3s;
}

.game-item:hover {
  transform: translateY(-3px);
  border-color: rgba(244,114,182,0.3);
  background: rgba(244,114,182,0.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.game-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.game-icon-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(244,114,182,0.08);
  border: 1px solid rgba(244,114,182,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 16px;
}

.game-name-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 768px) {
  .bento-games { grid-column: span 1 !important; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Overflow fixes */
.gh-bio { word-break: break-word; overflow-wrap: break-word; }
.tagline { word-break: break-word; }
