* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050508;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
  padding-top: calc(20px + var(--kao-h, 0px));
}

body > .kao-banner {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background:
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 120px, #ff99dd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 110px 50px, #70a1ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 180px 160px, #ffdd67, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 90px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 310px 210px, #00d2d3, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: scrollBg 60s linear infinite;
  will-change: transform;
  z-index: -1;
  opacity: 0.7;
}

/* Reduce animation complexity for mobile */
@media (max-width: 768px) {
  .stars-bg {
    animation: scrollBg 80s linear infinite;
    opacity: 0.5;
    background-size: 250px 250px;
  }

  /* Further reduce for very small screens */
  @media (max-width: 480px) {
    .stars-bg {
      animation: scrollBg 100s linear infinite;
      opacity: 0.3;
      background-size: 200px 200px;
    }
  }
}

@keyframes scrollBg {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lg-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(6, 6, 12, 0.4);
}

.lg-filter-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.glass-box {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.lg-content {
  position: relative;
  z-index: 3;
}

.liquid-glass.lg-fallback .lg-overlay-bg {
  background: rgba(8, 8, 14, 0.55);
}

.container {
  max-width: 650px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding: 45px 30px;
  border-radius: 32px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  font-weight: 400;
}

.projects-section {
  margin-bottom: 40px;
}

.projects-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  display: inline-block;
  font-weight: 700;
}

.projects-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-box {
  background: rgba(30, 30, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 25px 20px;
  width: 280px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  text-decoration: none;
  display: block;
  color: inherit; /* Ensure text color is inherited, not default link blue */
}

.project-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.6s;
}

.project-box:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none; /* Ensure no underline on hover */
}

.project-box:hover::before {
  left: 100%;
}

.project-box h3 {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .projects-container {
    gap: 15px;
  }

  .project-box {
    width: 100%;
    max-width: 280px;
    padding: 20px 15px;
  }
}

/* Reduce animation complexity for mobile */
@media (max-width: 768px) {
  .stars-bg {
    animation: scrollBg 40s linear infinite;
    opacity: 0.4;
    background-size: 250px 250px;
  }

  /* Further reduce for very small screens */
  @media (max-width: 480px) {
    .stars-bg {
      animation: scrollBg 50s linear infinite;
      opacity: 0.3;
      background-size: 200px 200px;
    }
  }
}

.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.social-link {
  color: #ffffff;
  font-size: 2rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.22);
}

.social-link.github:hover {
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.social-link.discord:hover {
  color: #5865f2;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.35);
}

.glass-orb {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  cursor: grab;
  z-index: 1000;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.glass-orb.dragging {
  cursor: grabbing;
  transition: none;
}

.glass-orb .lg-overlay-bg {
  background: rgba(255, 255, 255, 0.1);
}

.glass-orb .glass-box {
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 14px rgba(255, 255, 255, 0.18);
}

.glass-orb.dragging .glass-box {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .title {
    font-size: 2.2rem;
  }
  
  .description {
    font-size: 0.95rem;
  }

  .container {
    padding: 35px 20px;
    border-radius: 26px;
  }
}