/* ============================================================
   TVA Support - Premium Bio Link
   CSS3 Only - No Frameworks
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --glass-bg: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .25);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  --glass-radius: 30px;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, .7);
  --text-muted: rgba(255, 255, 255, .4);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: #0a0a0a;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { border: none; outline: none; background: none; cursor: none; font-family: inherit; }
img { display: block; max-width: 100%; }
svg { vertical-align: middle; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 4px; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition: opacity .8s var(--transition-smooth), visibility .8s var(--transition-smooth);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-logo {
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.loading-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.loading-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  border-radius: 4px;
  transition: width .3s var(--transition-smooth);
}

.loading-percent {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   BACKGROUND - VIDEO + OVERLAYS
   ============================================================ */
.bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay layers */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: 1;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .03) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, .4) 100%);
  z-index: 2;
}

.bg-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 3;
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ============================================================
   SNOW CANVAS
   ============================================================ */
.snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.floating-container {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  pointer-events: none;
}

.floating-line {
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .04), transparent);
  pointer-events: none;
}

/* ============================================================
   LIGHT ORB
   ============================================================ */
.light-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: transform .15s ease-out;
}

/* ============================================================
   CURSOR EFFECTS
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow, .cursor-trail-canvas { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ============================================================
   SOCIAL ICON COLORS
   ============================================================ */
.social-btn:nth-child(1) .social-icon {
  color: #4fc3f7;
}
.social-btn:nth-child(1):hover .social-icon {
  color: #81d4fa;
  filter: drop-shadow(0 0 6px rgba(79, 195, 247, .4));
}

.social-btn:nth-child(2) .social-icon {
  color: #aed581;
}
.social-btn:nth-child(2):hover .social-icon {
  color: #c5e1a5;
  filter: drop-shadow(0 0 6px rgba(174, 213, 129, .4));
}

.social-btn:nth-child(3) .social-icon {
  color: #f06292;
}
.social-btn:nth-child(3):hover .social-icon {
  color: #f48fb1;
  filter: drop-shadow(0 0 6px rgba(240, 98, 146, .4));
}

/* ============================================================
   MAIN PANEL
   ============================================================ */
.main-panel {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ============================================================
   GLASS CARD BASE
   ============================================================ */
.glass-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  padding: 28px 24px;
  transition: opacity .5s var(--transition-smooth), filter .5s var(--transition-smooth),
              background .4s var(--transition-smooth), border-color .4s var(--transition-smooth),
              box-shadow .4s var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px) scale(.96);
  filter: blur(4px);
}

.glass-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.glass-card:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .5);
}

/* ============================================================
   AVATAR CARD
   ============================================================ */
.avatar-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 32px;
  position: relative;
  overflow: visible;
}

.avatar-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  animation: avatarRingFloat 4s ease-in-out infinite;
}

.avatar-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 70%);
  animation: avatarGlowPulse 3s ease-in-out infinite;
}

@keyframes avatarRingFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(5deg); }
}

@keyframes avatarGlowPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.1); }
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 30px rgba(255, 255, 255, .15);
  transition: all .4s var(--transition-smooth);
  z-index: 1;
}

.avatar-wrapper:hover {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 50px rgba(255, 255, 255, .25);
  border-color: var(--white);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .05);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INFO CARD
   ============================================================ */
.info-card {
  text-align: center;
  padding: 24px;
}

.info-name {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.info-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #4ade80; }
  50% { opacity: .4; box-shadow: 0 0 8px #4ade80; }
}

.info-status {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* ============================================================
   TYPING EFFECT
   ============================================================ */
.typing-container {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.typing-cursor {
  animation: blinkCursor .8s step-end infinite;
  color: var(--white);
  font-weight: 100;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   SOCIAL BUTTONS
   ============================================================ */
.social-card {
  padding: 24px;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-grid-3 {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
  transition: all .3s var(--transition-smooth);
  flex: 1;
}

.social-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.social-btn:active {
  transform: translateY(0) scale(.97);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.social-btn:hover .social-icon {
  color: var(--white);
}

.social-label {
  font-size: 12px;
  letter-spacing: .5px;
}

/* Shine effect */
.social-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--transition-smooth);
  pointer-events: none;
}

.social-btn:hover .social-btn-shine {
  left: 150%;
}

/* Ripple container */
.social-btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   VISITOR COUNTER
   ============================================================ */
.visitor-card {
  padding: 20px 24px;
}

.visitor-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.visitor-icon {
  font-size: 24px;
  animation: visitorFloat 2s ease-in-out infinite;
}

@keyframes visitorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.visitor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.visitor-count {
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}

/* ============================================================
   CLOCK CARD
   ============================================================ */
.clock-card {
  text-align: center;
  padding: 24px;
}

.clock-display {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.clock-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ============================================================
   ABOUT CARD
   ============================================================ */
.about-card {
  padding: 28px 24px;
}

.about-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 16px;
}

.about-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text strong {
  color: var(--white);
}

/* ============================================================
   FOOTER CARD
   ============================================================ */
.footer-card {
  text-align: center;
  padding: 20px 24px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-heart {
  display: inline-block;
  color: rgba(255, 100, 100, .6);
  animation: heartGlow 2s ease-in-out infinite;
}

@keyframes heartGlow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); text-shadow: 0 0 8px rgba(255, 100, 100, .3); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floating {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes breathing {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* ============================================================
   RESPONSIVE - DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  .main-panel {
    padding: 80px 20px 100px;
    gap: 24px;
  }

  .glass-card {
    padding: 32px 28px;
    border-radius: 32px;
  }

  .info-name { font-size: 32px; }
  .clock-display { font-size: 42px; }

  .social-btn { padding: 16px 18px; font-size: 14px; }

  .avatar-wrapper {
    width: 150px;
    height: 150px;
  }

  .avatar-ring { width: 170px; height: 170px; }
  .avatar-glow { width: 190px; height: 190px; }
}

/* ============================================================
   RESPONSIVE - TABLET & MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .main-panel {
    padding: 50px 14px 70px;
    gap: 16px;
  }

  .glass-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .info-name {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .avatar-wrapper {
    width: 110px;
    height: 110px;
  }

  .avatar-card { padding: 30px 18px 24px; }
  .avatar-ring { width: 130px; height: 130px; }
  .avatar-glow { width: 150px; height: 150px; }

  .social-btn { padding: 13px 14px; font-size: 13px; }

  .clock-display { font-size: 28px; letter-spacing: 2px; }
  .visitor-count { font-size: 18px; }
  .about-text { font-size: 13px; }

}

/* ============================================================
   RESPONSIVE - SMALL MOBILE
   ============================================================ */
@media (max-width: 360px) {
  .main-panel { padding: 40px 10px 60px; }
  .glass-card { padding: 16px 14px; border-radius: 20px; }
  .info-name { font-size: 19px; letter-spacing: 2px; }
  .avatar-wrapper { width: 95px; height: 95px; }
  .avatar-card { padding: 24px 14px 20px; }
  .clock-display { font-size: 24px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .glass-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
