/* =====================================================
   SKILLS PAGE LAYOUT
===================================================== */

.skills-page {
  max-width: 1300px;
  width: 92%;
  margin: auto;
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.page-title {
  font-size: 48px;
  color: #38bdf8;
}

.page-subtitle {
  color: #9ca3af;
  margin-bottom: 50px;
}


/* =====================================================
   SKILLS CONTAINER (GLASS BOX)
===================================================== */

.skills-container {
  position: relative;
  padding: 70px 40px;
  border-radius: 22px;

  background: rgba(255,255,255,0.04);

  box-shadow:
    0 0 40px rgba(56,189,248,0.12),
    0 0 80px rgba(56,189,248,0.05);
}


/* =====================================================
   RANDOM FLOATING LAYOUT
===================================================== */

.skills-grid {
  position: relative;
  height: 420px;
}


/* =====================================================
   SKILL CIRCLE
===================================================== */

.skill-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top,
              rgba(2,6,23,0.95),
              rgba(0,0,0,1));

  border: 1px solid rgba(56,189,248,0.25);

  color: #e5e7eb;
  text-align: center;

  transition: 0.3s ease;

  box-shadow:
    inset 0 0 20px rgba(56,189,248,0.15),
    0 0 30px rgba(56,189,248,0.15);

  animation: floatSkill var(--speed) ease-in-out infinite;
}

.skill-circle i {
  font-size: 30px;
  margin-bottom: 6px;
}

.skill-circle span {
  font-size: 13px;
  color: #cbd5f5;
}



/* Hover Effect */
.skill-circle:hover {
  transform: translateY(-10px) scale(1.08);

  box-shadow:
    inset 0 0 25px rgba(56,189,248,0.25),
    0 0 40px rgba(56,189,248,0.35),
    0 0 80px rgba(56,189,248,0.15);
}

/* different floating speeds */
.skill-circle:nth-child(1) { --speed: 4s; }
.skill-circle:nth-child(2) { --speed: 3s; }
.skill-circle:nth-child(3) { --speed: 3.5s; }
.skill-circle:nth-child(4) { --speed: 4.5s; }
.skill-circle:nth-child(5) { --speed: 3s; }
.skill-circle:nth-child(6) { --speed: 3.8s; }
.skill-circle:nth-child(7) { --speed: 3.8s; }
.skill-circle:nth-child(8) { --speed: 5s; }
.skill-circle:nth-child(9) { --speed: 4.9s; }
.skill-circle:nth-child(10) { --speed: 1.9s; }

/* =====================================================
   RANDOM POSITIONS (AI CLOUD STYLE)
===================================================== */

.skill-circle:nth-child(1) { top: 20px; left: 80px; }
.skill-circle:nth-child(2) { top: 10px; left: 45%; }
.skill-circle:nth-child(3) { top: 20px; right: 80px; }

.skill-circle:nth-child(4) { top: 150px; left: 180px; }
.skill-circle:nth-child(5) { top: 170px; left: 50%; }
.skill-circle:nth-child(6) { top: 150px; right: 180px; }

.skill-circle:nth-child(7) { bottom: 20px; left: 120px; }
.skill-circle:nth-child(8) { bottom: 12px; left: 48%; }
.skill-circle:nth-child(9) { bottom: 20px; right: 120px; }

.skill-circle:nth-child(10) { top: 200px; left: 30%; }


/* =====================================================
   FLOAT ANIMATION
===================================================== */

@keyframes floatSkill {
  0%,100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}


/* =====================================================
   RESPONSIVE (AUTO CENTER ON MOBILE)
===================================================== */

@media (max-width: 900px) {

  .skills-grid {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .skill-circle {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
}

.skills-container {
  overflow: hidden;
  position: relative;
}

.skills-container::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at var(--x, 50%) var(--y, 50%),
      rgba(56,189,248,0.15),
      transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .skills-container:hover::before {
    opacity: 1;
  }
}

@media (max-width: 600px) {

  .skill-circle {
    width: 90px;
    height: 90px;
  }

  .skill-circle i {
    font-size: 24px;
  }

  .skill-circle span {
    font-size: 11px;
  }

  .skills-container {
    padding: 40px 20px;
  }
}