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

:root {
  /* Velvet Obsidian & Electric Aurora Color System */
  --bg-primary: #020205; /* Deep Velvet Space Black */
  --bg-secondary: #08080f;
  
  --accent-cyan: #00f5d4; /* Electric Mint Cyan */
  --accent-blue: #0052d4; /* Electric Indigo Blue */
  --accent-purple: #7c3aed; /* Cosmic Purple */
  
  --text-primary: #ffffff; /* Chrome White */
  --text-secondary: #a1a1aa; /* Zinc Gray */
  --text-muted: #52525b;
  
  /* Dark Glass Design Tokens */
  --card-bg: rgba(13, 13, 18, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* --- 1. Shifting Cosmic Mesh Background --- */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  mix-blend-mode: screen; /* Dynamic color blend on dark backdrops */
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.2) 0%, transparent 70%); /* Electric Cyan */
  top: -10%;
  left: 15%;
  animation: floatBlob1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 82, 212, 0.22) 0%, transparent 70%); /* Electric Indigo */
  bottom: -20%;
  right: 15%;
  animation: floatBlob2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%); /* Cosmic Purple */
  top: 35%;
  left: 45%;
  animation: floatBlob3 22s infinite alternate ease-in-out;
}

/* Particle Canvas Overlay */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Interactive Cursor Glow Overlay */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.08) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
}

/* --- 2. Floating Holographic Portrait (Desktop) --- */
.floating-avatar {
  position: absolute;
  top: 20%;
  right: 18%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.85),
    0 0 50px -15px rgba(0, 245, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  
  animation: driftPortrait 8s infinite alternate ease-in-out;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.floating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: blur(1.5px) grayscale(5%) contrast(1.05) brightness(0.95);
  transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

/* Hover States for Portrait */
.floating-avatar:hover {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 
    0 40px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 60px -5px rgba(0, 245, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.floating-avatar:hover img {
  filter: blur(0px) grayscale(0%) contrast(1.0) brightness(1.02);
  transform: scale(1.08);
}

.avatar-glow-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  z-index: 1;
  opacity: 0.35;
  filter: blur(3px);
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

.floating-avatar:hover .avatar-glow-ring {
  opacity: 0.7;
  filter: blur(6px);
}

.avatar-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

/* --- 3. Centered Display Typography --- */
.display-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  z-index: 5;
  position: relative;
  margin: 0;
  pointer-events: none;
  text-align: center;
  will-change: transform;
  
  /* Silver/white metallic text gradient */
  background: linear-gradient(to bottom, #ffffff 40%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.75);
  transform: translateZ(80px);
  animation: revealName 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 4. Floating macOS-Style Dark Glass Dock --- */
.glass-dock {
  position: fixed;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  display: flex;
  gap: 2.5rem;
  padding: 0.9rem 2.8rem;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  z-index: 10;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s var(--transition-fast), box-shadow 0.4s var(--transition-fast), background 0.4s var(--transition-fast);
  animation: revealDock 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-dock:hover {
  border-color: rgba(0, 245, 212, 0.35);
  background: rgba(13, 13, 18, 0.6);
  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 245, 212, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  transition: color 0.3s var(--transition-fast), transform 0.3s var(--transition-fast);
}

.dock-item i {
  color: var(--accent-cyan);
  width: 18px;
  height: 18px;
  transition: color 0.3s var(--transition-fast), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item svg.wa-icon {
  fill: var(--accent-cyan);
  width: 18px;
  height: 18px;
  transition: fill 0.3s var(--transition-fast), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover States for Dock Items */
.dock-item:hover {
  color: var(--text-primary);
  transform: translateY(-2.5px);
}

.dock-item:hover i {
  color: #ffffff;
  transform: scale(1.15) rotate(5deg);
}

.dock-item:hover svg.wa-icon {
  fill: #25d366; /* Brand WhatsApp Green */
  transform: scale(1.15) rotate(5deg);
}

/* --- Clipboard Toast Message --- */
.toast {
  position: fixed;
  bottom: 16%;
  left: 50%;
  transform: translate(-50%, 100%);
  background: rgba(13, 13, 18, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* --- Keyframe Animations --- */
@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.1); }
  100% { transform: translate(-60px, -40px) scale(0.9); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1.15); }
  50% { transform: translate(-100px, 120px) scale(0.95); }
  100% { transform: translate(80px, -80px) scale(1.1); }
}

@keyframes floatBlob3 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-80px, -100px) scale(1.15); }
  100% { transform: translate(100px, 60px) scale(0.95); }
}

@keyframes driftPortrait {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes driftPortraitMobile {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes pulseGlowMobile {
  0%, 100% {
    opacity: 0.35;
    filter: blur(3px);
  }
  50% {
    opacity: 0.75;
    filter: blur(7px);
  }
}

@keyframes revealName {
  from {
    transform: translateY(40px) translateZ(80px);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateZ(80px);
    opacity: 1;
  }
}

@keyframes revealDock {
  from {
    transform: translate(-50%, 40px) translateZ(40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0) translateZ(40px);
    opacity: 1;
  }
}

/* --- Responsive Media Queries (Mobile Viewport Optimization) --- */
@media (max-width: 992px) {
  body {
    perspective: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden !important; /* Zero scroll on mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5vh; /* Unified vertical spacing gap */
    padding: 1.5rem 1rem 6rem;
  }
  
  .blob-container {
    height: 100vh;
  }
  
  /* Reset absolute properties to static flex positioning */
  .floating-avatar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    width: 160px !important;
    height: 160px !important;
    margin: 0 !important;
    animation: driftPortraitMobile 6s infinite alternate ease-in-out !important;
    box-shadow: 
      0 20px 40px -5px rgba(0, 0, 0, 0.8),
      0 0 40px -10px rgba(0, 245, 212, 0.2);
  }
  
  .avatar-glow-ring {
    animation: pulseGlowMobile 6s infinite alternate ease-in-out !important;
    opacity: 0.45;
  }
  
  .floating-avatar img {
    filter: blur(1.5px) grayscale(5%) contrast(1.05) brightness(0.95);
  }
  
  /* Center centerpiece title */
  .display-name {
    position: relative !important;
    font-size: clamp(2.5rem, 8.5vw, 3.8rem) !important;
    width: 92% !important;
    margin: 0 !important;
    transform: none !important;
    text-align: center !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    animation: revealNameMobile 1s ease forwards;
  }
  
  /* Centered Fixed Glass Dock capsule */
  .glass-dock {
    position: fixed !important;
    bottom: 5vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    justify-content: center !important;
    gap: 1.6rem !important;
    padding: 0.8rem 1.6rem !important;
    animation: revealDockMobile 1.2s ease forwards !important;
    background: rgba(13, 13, 18, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  }
  
  .dock-item {
    font-size: 0.92rem;
    gap: 0.55rem;
  }
  
  .toast {
    bottom: 15%;
    left: 50%;
  }

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

  @keyframes revealDockMobile {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
  }
}

@media (max-width: 480px) {
  body {
    gap: 4vh;
  }
  
  .display-name {
    font-size: clamp(2.3rem, 10vw, 3.2rem) !important;
  }
  
  .floating-avatar {
    width: 145px !important;
    height: 145px !important;
  }
  
  .glass-dock {
    gap: 1.25rem !important;
    width: 92% !important;
    padding: 0.75rem 1.2rem !important;
  }
  
  .dock-item {
    font-size: 0.86rem;
  }
}
