/* ============================================================
   MYREALITY PORTFOLIO — styles.css
   ============================================================ */

/* === SCROLL PROGRESS BAR === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #25c0f4, #0ff);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px #25c0f4;
}

/* === BACK TO TOP === */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25c0f4;
  color: #101e22;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 0 20px rgba(37, 192, 244, 0.4);
  font-size: 20px;
  font-weight: 900;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  transform: translateY(-4px);
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* === TYPED TEXT CURSOR === */
#typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #25c0f4;
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* === TOAST NOTIFICATION === */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a2f35;
  border: 1px solid #25c0f4;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(37, 192, 244, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* === MOBILE MENU === */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  max-height: 300px;
}

/* === ACTIVE NAV LINK === */
.nav-link {
  transition: color 0.2s;
}
.nav-link.active {
  color: #25c0f4 !important;
}

/* === GITHUB CARD SKELETON LOADER === */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* === FLOATING PARTICLES === */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 192, 244, 0.15);
  animation: float-up linear infinite;
  pointer-events: none;
}
@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* === STAT COUNTERS === */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* === LANGUAGE COLOR DOTS === */
.lang-python {
  background: #3572a5;
}
.lang-javascript {
  background: #f1e05a;
}
.lang-java {
  background: #b07219;
}
.lang-typescript {
  background: #2b7489;
}
.lang-css {
  background: #563d7c;
}
.lang-html {
  background: #e34c26;
}
.lang-jupyter {
  background: #da5b0b;
}
.lang-default {
  background: #6e7681;
}

/* === SKILL TAG HOVER === */
.skill-tag {
  cursor: default;
  transition: background 0.2s, border-color 0.2s;
}
.skill-tag:hover {
  background: rgba(37, 192, 244, 0.2);
}

/* === FILTER BUTTON ACTIVE STATE === */
.filter-btn.active {
  background: rgba(37, 192, 244, 0.1);
  border-color: #25c0f4;
  color: #25c0f4;
}

/* === GITHUB CARD HOVER === */
.github-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.github-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 192, 244, 0.3);
}

/* === WEBSITE MINIATURE ROULETTE === */
.website-roulette {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(295px, 360px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 192, 244, 0.5) rgba(255, 255, 255, 0.05);
}
.website-roulette::-webkit-scrollbar {
  height: 8px;
}
.website-roulette::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}
.website-roulette::-webkit-scrollbar-thumb {
  background: rgba(37, 192, 244, 0.6);
  border-radius: 999px;
}

.website-card {
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 0.85rem;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.website-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 192, 244, 0.45);
}
.website-card.is-active {
  border-color: rgba(37, 192, 244, 0.8);
  background: rgba(37, 192, 244, 0.08);
  box-shadow: 0 8px 24px rgba(37, 192, 244, 0.15);
}
.website-card--placeholder {
  border-style: dashed;
}
.website-card:focus-visible {
  outline: 2px solid #25c0f4;
  outline-offset: 3px;
}

.website-miniature-wrap {
  width: 100%;
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #0b171a;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.9rem;
}
.website-miniature {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  width: 1366px;
  height: 768px;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}
.website-miniature-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(37, 192, 244, 0.15), transparent 60%), #0d1a1f;
}
.website-miniature-fallback {
  text-align: center;
  padding: 1.2rem;
}

.website-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  gap: 0.75rem;
}
.website-card-link {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 192, 244, 0.25);
  color: #25c0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.website-card-link:hover {
  background: rgba(37, 192, 244, 0.15);
  border-color: rgba(37, 192, 244, 0.6);
}

.website-chip {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 192, 244, 0.24);
  color: #25c0f4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.roulette-control {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.roulette-control:hover {
  border-color: rgba(37, 192, 244, 0.55);
  color: #25c0f4;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .website-roulette {
    grid-auto-columns: minmax(88%, 1fr);
  }
}
