.page-content {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(47, 191, 255, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at top left,
      rgba(47, 191, 255, 0.08),
      transparent 30%
    ),
    #001429;
}

/* SCROLL CONTAINER */

.scroll-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 40px 16px 80px;
  width: 100%;
  max-width: 100vw;
}

/* PANELS / SECTIONS */

.panel {
  position: relative;
  padding: 48px;
  border-radius: 32px;
  overflow: visible;
  background:
    radial-gradient(
      circle at top left,
      rgba(47, 191, 255, 0.08),
      transparent 30%
    ),
    #001429;
  animation: fadeIn 0.7s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.section-intro,
.section-programming,
.section-gamedev,
.section-music {
  background: transparent;
  box-shadow: none;
}

.section-music {
  margin-bottom: 100px;
}

.section-intro {
  border-radius: 0;
}

/* Ambient Glow */
.panel::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -150px;
  right: -120px;
  background: radial-gradient(rgba(47, 191, 255, 0.12), transparent 70%);
  pointer-events: none;
}

/* INTRO SECTION */

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  min-height: 80vh;
}

.section-intro h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin-bottom: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #5ce1ff, #4f6dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-intro p {
  font-size: 18px;
  max-width: 800px;
  line-height: 1.7;
  color: #b8d8ff;
  opacity: 0.95;
}

/* CAROUSEL WRAPPER */

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: min(100%, 1400px);
  margin: 0 auto;
  min-width: 0;
}

/* PROJECTS CAROUSEL */

.projects-carousel {
  display: flex;
  flex: 0 1 520px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.projects-carousel .card {
  display: none;
}

.projects-carousel .card.active {
  display: flex;
  animation: cardFadeIn 0.35s ease both;
}

/* CARD DESIGN */

.card {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  background: linear-gradient(
    180deg,
    rgba(0, 41, 86, 0.96),
    rgba(0, 20, 41, 0.98)
  );
  border: 1px solid rgba(92, 225, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px #93d8ff;
}

/* Hover Animation */

.card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(92, 225, 255, 0.45);
}

/* CARD HEADER */

.card-header {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, #3fc8ff, #4f6dff);
}

.project-card-header {
  align-items: flex-end;
  justify-content: flex-start;
  min-height: clamp(240px, 48vw, 360px);
}

.card-header-label {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* CARD CONTENT */

.card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 14px;
  font-size: 24px;
  color: #5ce1ff;
}

.card-content p {
  margin-bottom: 20px;
  color: #b8d8ff;
  font-size: 15px;
  line-height: 1.7;
}

/* CARD FOOTER */

.card-footer {
  padding: 0 28px 28px;
  display: flex;
  gap: 14px;
}

/* BUTTONS */

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  background-image: linear-gradient(
    to right,
    #1a2980 0%,
    #26d0ce 51%,
    #1a2980 100%
  );
  background-size: 200% auto;
  box-shadow: 0 0 20px #eee;
  transition:
    transform 0.5s ease,
    background-position 0.5s ease;
  border: 0;
  cursor: pointer;
}

.card-link:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

/* CAROUSEL BUTTONS */

.carousel-button {
  max-width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.carousel-button:hover:not(:disabled) {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* LOADING CARD */

.card.loading {
  min-height: 300px;
  align-items: center;
  justify-content: center;
}

.card-loader {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(92, 225, 255, 0.18);
  border-top: 4px solid #5ce1ff;
  animation: spin 1s linear infinite;
}

/* ANIMATIONS */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* SCROLLBAR */

.projects-carousel::-webkit-scrollbar {
  display: none;
}

/* MUSIC */

.hidden {
  display: none;
}

.music-player.hidden {
  display: none;
}

.music-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(180px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  width: min(90%, 700px);
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 20, 41, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(92, 225, 255, 0.2);
  box-shadow: 0 0 25px rgba(92, 225, 255, 0.2);
  z-index: 999;
}

.player-info {
  min-width: 0;
}

#current-track-title {
  display: block;
  overflow: hidden;
  color: #5ce1ff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls button {
  width: 64px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #5ce1ff;
  color: #001429;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.player-progress input {
  width: 100%;
  accent-color: #5ce1ff;
  cursor: pointer;
}

.player-time {
  color: #b8d8ff;
  font-size: 14px;
  white-space: nowrap;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {
  .panel {
    padding: 32px 16px;
  }

  .carousel-wrapper {
    gap: 14px;
  }

  .section-intro {
    padding: 90px 20px 60px;
    min-height: 70vh;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-intro h1 {
    font-size: 56px;
  }

  .section-intro p {
    font-size: 16px;
  }

  .panel {
    padding: 20px 0;
  }

  .carousel-wrapper {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 10px;

    width: 100%;
    max-width: 560px;
  }

  .projects-carousel {
    width: 100%;
    flex-basis: auto;
  }

  .card-content {
    padding: 22px;
  }

  .project-card-header {
    min-height: clamp(220px, 58vw, 300px);
  }

  .card-footer {
    flex-direction: column;
  }

  .music-player {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
  }

  .player-progress,
  .player-time {
    grid-column: 1 / -1;
  }

  .carousel-button {
    width: 46px;
    height: 46px;

    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .section-intro {
    min-height: 100vh;
    padding: 72px 20px 48px;
  }

  .section-intro h1 {
    font-size: 44px;
  }

  .section-intro p {
    font-size: 15px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .card-content p {
    font-size: 14px;
  }

  .project-card-header {
    min-height: 220px;
  }

  .scroll-container {
    gap: 48px;
    padding: 32px 12px 64px;
  }

  .carousel-wrapper {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .projects-carousel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .carousel-button {
    grid-row: 2;
    justify-self: center;
    margin-top: 14px;
  }

  .carousel-button.left {
    grid-column: 1;
  }

  .carousel-button.right {
    grid-column: 2;
  }
}
