@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Press+Start+2P&display=swap');

/* --- COSMIC UNIVERSE BACKGROUND --- */
body {
  font-family: 'Outfit', sans-serif;
  background-color: #050505;
  background-image: 
    radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000000 100%);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- STAR FIELD ANIMATION --- */
.stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: -2;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle var(--duration) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --- FLIP CARD MECHANICS (3D) --- */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-back {
  background: linear-gradient(135deg, #240b36 0%, #0f0c29 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

/* --- UTILITIES --- */
.pixel-font { font-family: 'Press Start 2P', cursive; }

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.skill-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.skill-pill:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: #00d2ff;
  transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #4a1d63; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00d2ff; }