:root {
  --bg-dark: #050816;
  --cyan-neon: #05ffa3;
  --cyan-dark: #00f2fe;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-badge: #05ffa3;
  --font-main: "Be Vietnam Pro", sans-serif;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
#galaxy-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-color: transparent;
  pointer-events: auto;
}
#galaxy-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.galaxy-container {
  width: 100%;
  height: 100%;
  display: block;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}
.section {
  margin-bottom: 7rem;
}
.section-badge {
  color: var(--text-badge);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title.center {
  text-align: center;
  justify-content: center;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.text-center {
  text-align: center;
}
.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 8rem;
}
.flip-card {
  overflow: visible;
  width: 220px;
  height: 290px;
  margin: 0 auto 2rem auto;
}
.flip-content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.4, 0.2, 0.2, 1);
  box-shadow: 0px 0px 20px 2px rgba(5, 255, 163, 0.2);
  border-radius: 16px;
}
.flip-front,
.flip-back {
  background-color: var(--bg-dark);
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.flip-back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.flip-back::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan-neon),
    var(--cyan-dark),
    var(--cyan-neon),
    var(--cyan-neon),
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}
.flip-back-content {
  position: absolute;
  width: 98%;
  height: 98%;
  background-color: var(--bg-dark);
  border-radius: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.flip-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(5, 255, 163, 0.4);
  box-shadow: 0 0 15px rgba(5, 255, 163, 0.3);
}
.flip-card:hover .flip-content {
  transform: rotateY(180deg);
}
@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}
.flip-front {
  transform: rotateY(180deg);
  color: white;
}
.flip-front .flip-front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-front-content .flip-badge {
  background-color: rgba(5, 255, 163, 0.1);
  color: var(--cyan-neon);
  padding: 4px 12px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(5, 255, 163, 0.3);
}
.flip-description {
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 15px;
  background-color: rgba(22, 27, 34, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.flip-title {
  font-size: 1.1rem;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.flip-title p {
  width: 70%;
  margin: 0;
}
.flip-card-footer {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.85rem;
}
.flip-front .flip-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.flip-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--cyan-neon);
  position: relative;
  filter: blur(15px);
  animation: floating 2600ms infinite linear;
  opacity: 0.4;
}
#flip-bottom {
  background-color: var(--cyan-dark);
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}
#flip-right {
  background-color: #6366f1;
  left: 140px;
  top: -80px;
  width: 60px;
  height: 60px;
  animation-delay: -1800ms;
}
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.badge {
  background: rgba(5, 255, 163, 0.1);
  color: var(--cyan-neon);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(5, 255, 163, 0.3);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.greeting {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.highlight {
  background: linear-gradient(90deg, var(--cyan-neon), var(--cyan-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(5, 255, 163, 0.3);
}
.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  font-weight: 500;
}
.bio {
  max-width: 700px;
  font-size: 1.15rem;
  color: #e5e7eb;
  background: var(--glass-bg);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.grid-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.grid-cards > * {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.glass-card,
.glass-panel {
  flex-grow: 1;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 255, 163, 0.4);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(5, 255, 163, 0.15);
}
.glass-card:hover::before {
  left: 150%;
}
.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(5, 255, 163, 0.1);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(5, 255, 163, 0.2);
}
.glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.tech-link {
  text-decoration: none;
  color: inherit;
}
.tech-icon {
  font-size: 1.6rem;
  color: var(--cyan-neon);
}
.fa-python.tech-icon {
  color: #3776ab;
}
.fa-rust.tech-icon {
  color: #dea584;
}
.fa-android.tech-icon {
  color: #3ddc84;
}
.learning .glass-card:hover .icon-wrapper {
  background: rgba(5, 255, 163, 0.2);
  box-shadow: 0 0 15px rgba(5, 255, 163, 0.4);
}
.os-sandbox .icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.os-sandbox .glass-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.os-sandbox .glass-card:hover {
  transform: translateY(-5px);
}
.os-sandbox a:nth-child(1) .glass-card:hover {
  border-color: #00a4ef;
  box-shadow: 0 0 20px rgba(0, 164, 239, 0.3);
}
.os-sandbox a:nth-child(2) .glass-card:hover {
  border-color: #1793d1;
  box-shadow: 0 0 20px rgba(23, 147, 209, 0.3);
}
.os-sandbox a:nth-child(3) .glass-card:hover {
  border-color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}
.os-sandbox a:nth-child(4) .glass-card:hover {
  border-color: #f5f5f7;
  box-shadow: 0 0 20px rgba(245, 245, 247, 0.4);
}
.spotify-widget {
  position: fixed;
  top: 20px;
  right: -280px;
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.05);
  display: flex;
  align-items: flex-start;
}
.spotify-widget:hover {
  transform: translateX(-280px);
}
.main-music-card {
  width: 320px;
  padding: 18px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(5, 255, 163, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-main);
  color: white;
  transition: all 0.3s ease;
}
.main-music-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(5, 255, 163, 0.4);
}
.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.album-art {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-neon), var(--cyan-dark));
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.album-art:hover {
  transform: scale(1.05);
}
.track-details {
  flex-grow: 1;
  overflow: hidden;
}
.track-title {
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.artist-name {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 2px;
}
.volume-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 38px;
  height: 32px;
}
.volume-bars .bar {
  width: 3px;
  background: linear-gradient(180deg, var(--cyan-neon), var(--cyan-dark));
  border-radius: 2px;
  height: 2px;
  transition: height 0.5s ease-out;
}
.volume-bars.playing .bar {
  animation: bounce 0.8s infinite ease-in-out;
  animation-delay: var(--delay);
}
@keyframes bounce {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 26px;
  }
}
.playback-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #8e8e93;
}
.current-time,
.remaining-time {
}
.current-time::before {
  content: none !important;
  display: none !important;
}
.remaining-time::before {
  content: none !important;
  display: none !important;
}
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-neon), var(--cyan-dark));
  border-radius: 2px;
}
.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.control-button {
  margin-top: 2%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  color: #fff;
}
.control-button svg {
  transition: filter 0.2s ease;
}
.control-button:hover {
  background: rgba(5, 255, 163, 0.1);
  color: var(--cyan-neon);
}
.control-button:hover svg {
  filter: drop-shadow(0 0 6px rgba(5, 255, 163, 0.6));
}
.main-control-btns {
  justify-content: center;
  align-items: center;
  display: flex;
  margin-left: 10%;
  gap: 20%;
}
.play-pause-button .icon-pause {
  display: none;
}
#play-toggle:checked ~ .playback-controls .progress-fill,
#play-toggle:checked ~ .playback-controls .progress-handle {
  animation-play-state: paused;
}
.main-music-card:has(#play-toggle:checked) .time-info .current-time::before,
.main-music-card:has(#play-toggle:checked) .time-info .remaining-time::before {
  animation-play-state: paused;
}
#play-toggle:checked ~ .playback-controls .play-pause-button .icon-play {
  display: block;
}
#play-toggle:checked ~ .playback-controls .play-pause-button .icon-pause {
  display: none;
}
#play-toggle:not(:checked) ~ .playback-controls .play-pause-button .icon-play {
  display: none;
}
#play-toggle:not(:checked) ~ .playback-controls .play-pause-button .icon-pause {
  display: block;
}
@keyframes progressAnim {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes handleAnim {
  from {
    left: 0%;
  }
  to {
    left: 100%;
  }
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.game-wrapper {
  position: relative;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.3s ease;
}
.game-wrapper:hover {
  background: linear-gradient(135deg, var(--cyan-neon), transparent);
  transform: translateY(-8px);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(5, 255, 163, 0.2);
}
.game-card {
  background: #0d111a;
  border-radius: 18px;
  height: 200px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.game-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  filter: brightness(0.7) grayscale(0.2);
}
.game-wrapper:hover .game-cover {
  transform: scale(1.1);
  filter: brightness(1) grayscale(0);
}
.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 1;
}
.game-title {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.social-btn {
  text-decoration: none;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 500;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.social-btn:hover {
  background: rgba(5, 255, 163, 0.1);
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(5, 255, 163, 0.3);
  transform: translateY(-3px);
}
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-border),
    transparent
  );
  margin: 3rem 0 1.5rem 0;
}
.footer-credit {
  font-size: 0.9rem;
  color: var(--text-muted);
}
#shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.meteor {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transform: rotate(-45deg);
  animation: shooting 4s linear infinite;
  opacity: 0;
}
.meteor::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 10px #fff,
    0 0 15px var(--cyan-neon);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes shooting {
  0% {
    transform: translateX(100vw) translateY(-50vh) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50vw) translateY(100vh) rotate(-45deg);
    opacity: 0;
  }
}
@media (max-width: 768px) {
  .greeting {
    font-size: 2.5rem;
  }
  .hero {
    margin-top: 3rem;
  }
  .glass-card,
  .glass-panel {
    padding: 1.5rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
