/* 
=========================================
   VNU AI & DIGITAL TECH PORTFOLIO CSS
   Theme: Cute Pet Journey (Sweet Pink)
   Author: Senior UX Designer & award-winning Frontend Developer
   Updated: Removed dark-mode, custom cursor, and audio engine.
=========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

/* --- CUSTOM PROPERTIES --- */
:root {
  /* Cute Pink Theme Palette */
  --bg-primary: #fff5f6;
  --bg-secondary: #ffe4e6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(244, 63, 94, 0.15);
  --border-hover: rgba(244, 63, 94, 0.4);
  --text-primary: #4d122b;
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #db2777; /* Pink 600 */
  
  /* Cute Accent Colors */
  --color-primary: 340, 82%, 52%; /* Pink-500 #ec4899 */
  --color-secondary: 325, 78%, 62%; /* Pastel Rose */
  --color-accent: 38, 92%, 50%; /* Warm Gold #d97706 */
  --color-success: 142, 60%, 45%; /* Soft Green */
  
  --font-sans: 'Quicksand', sans-serif;
  --font-display: 'Be Vietnam Pro', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  --shadow-cozy: 0 10px 25px rgba(244, 63, 94, 0.06);
  --shadow-cozy-hover: 0 15px 35px rgba(244, 63, 94, 0.15), 0 0 15px rgba(251, 191, 36, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 600; /* Keeps Quicksand readable and neat */
}

/* --- LOADER SCREEN --- */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff5f6;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.loader-spinner {
  font-size: 3rem;
  color: #ec4899;
  animation: walkPulse 1s ease-in-out infinite alternate;
}

@keyframes walkPulse {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.1); }
}

.loader-text {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8c3a5c;
  letter-spacing: 1px;
}

/* --- FLOATING COZY BACKGROUND Shapes --- */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.8;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.04) 0%, transparent 40%);
}

#canvas-net {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- COZY ROUNDED GLASS SYSTEM --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid var(--border-color);
  border-radius: 28px;
  box-shadow: var(--shadow-cozy);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  transform: scale(1.01) translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-cozy-hover);
}

/* --- TYPOGRAPHY --- */
.font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: cuteShine 5s linear infinite;
}

@keyframes cuteShine {
  to { background-position: 200% center; }
}

/* --- HEADER / NAVBAR --- */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 245, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.glass-header.scrolled {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.nav-link::after {
  content: '🐾';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.65rem;
}

.nav-link:hover,
.nav-link.active {
  color: #db2777;
  background-color: rgba(244, 63, 94, 0.08);
}

.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.glow-orb {
  position: absolute;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12) 0%, transparent 70%);
  filter: blur(30px);
  top: 15%;
  left: 5%;
  animation: floatOrb 14s ease-in-out infinite alternate;
  z-index: -1;
}

.glow-orb-secondary {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  filter: blur(30px);
  bottom: 10%;
  right: 10%;
  animation: floatOrb 16s ease-in-out infinite alternate-reverse;
  z-index: -1;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.1); }
}

/* --- PET PASSPORT (ABOUT ME) --- */
.passport-card {
  position: relative;
  overflow: hidden;
}

.passport-stamp {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 90px;
  height: 90px;
  border: 3px dashed rgba(244, 63, 94, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 63, 94, 0.5);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-15deg);
  pointer-events: none;
  background-color: rgba(244, 63, 94, 0.02);
}

/* --- SKILL RADAR CHART CONTAINER --- */
.radar-container {
  min-height: 300px;
}




/* --- PROJECT CARDS & TABS --- */
.tab-btn {
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-color: #f43f5e;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: cuteFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cuteFade {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- PROMPT LAB GAME (PET FEEDING) --- */
.drag-item {
  cursor: grab;
  user-select: none;
  transition: var(--transition-smooth);
}

.drag-item:active {
  cursor: grabbing;
  transform: scale(0.9);
}

.drop-zone {
  min-height: 80px;
  border-radius: 18px;
  transition: var(--transition-smooth);
}

.drop-zone.dragover {
  border-color: #ec4899;
  background-color: rgba(236, 72, 153, 0.08);
  transform: scale(1.03);
}

/* --- MODAL PDF VIEWER --- */
.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11000;
  background-color: rgba(77, 18, 43, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pdf-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pdf-modal-container {
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-radius: 32px;
  box-shadow: 0 15px 40px rgba(77, 18, 43, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pdf-modal.open .pdf-modal-container {
  transform: scale(1);
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* --- FLOATING CONTROLS --- */
.floating-control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(244,63,94,0.15);
  transition: var(--transition-smooth);
  background: white;
  border: 2px solid var(--border-color);
  z-index: 998;
}

.floating-control-btn:hover {
  transform: translateY(-4px) rotate(10deg);
}

/* --- FOOTER DECORATION --- */
footer::before {
  content: '🐾 🐾 🐾';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 4px;
}

/* --- HELPER CLASSES --- */
.no-hover:hover {
  transform: none !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-cozy) !important;
}
