/* EXPERIENCE PAGE BACKGROUND */
body {
  background: #05060f;
  font-family: "Poppins", sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 70px 0;
  opacity: 0;
  animation: fadeInPage 1.2s ease forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

.experience-section {
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.title {
  font-size: 2.4rem;
  margin-bottom: 60px;
  color: #b39a84;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* ===================== */
/*       CARD DESIGN     */
/* ===================== */
.parent {
  width: 290px;
  height: 300px;
  perspective: 1000px;
  position: relative;
}

.card {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(
    120deg,
    #c9b7a0 60%,
    #d9bba7 88%,
    #d8a78b 40%,
    rgba(204, 88, 56, 0.603) 48%
  );
  transition: all 0.5s ease-in-out;
  transform-style: preserve-3d;
  box-shadow: 0 25px 25px -5px rgba(204, 88, 56, 0.18);
  position: relative;
}

.glass {
  transform-style: preserve-3d;
  position: absolute;
  inset: 8px;
  border-radius: 55px;
  border-top-right-radius: 100%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(238, 238, 238, 0.55) 100%
  );
  transform: translate3d(0px, 0px, 25px);
  border-left: 1px solid rgba(204, 88, 56, 0.4);
  border-bottom: 1px solid rgba(204, 88, 56, 0.4);
  transition: all 0.5s ease-in-out;
}

.content {
  padding: 30px 30px 0px 30px;
  transform: translate3d(0, 0, 26px);
  text-align: left;
  font-family: "Audiowide", cursive;
}

.content .title {
  color: #a85a45;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 20px;
}

.content .text {
  color: #50453e;
  font-size: 15px;
  margin-top: 0;
  
}

.bottom {
  padding: 10px 12px;
  transform-style: preserve-3d;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0, 0, 26px);
}

.bottom .social-buttons-container {
  display: none;
}

.view-more-button {
  display: none;
}

.logo {
  position: absolute;
  right: 0;
  top: 0;
  transform-style: preserve-3d;
}

.logo .circle {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  background: rgba(204, 88, 56, 0.25);
  transition: all 0.5s ease-in-out;
}

.logo .circle1 { width: 170px; top: 8px; right: 8px; transform: translate3d(0,0,20px); }
.logo .circle2 { width: 140px; top: 10px; right: 10px; transform: translate3d(0,0,40px); }
.logo .circle3 { width: 110px; top: 17px; right: 17px; transform: translate3d(0,0,60px); }
.logo .circle4 { width: 80px; top: 23px; right: 23px; transform: translate3d(0,0,80px); }
.logo .circle5 { width: 50px; top: 30px; right: 30px; transform: translate3d(0,0,100px); }

.parent:hover .card {
  transform: rotate3d(1, 1, 0, 30deg);
  box-shadow: 0 50px 25px -40px rgba(204, 88, 56, 0.3),
              0px 25px 30px rgba(204, 88, 56, 0.1);
}

.parent:hover .card .logo .circle2 { transform: translate3d(0,0,60px); }
.parent:hover .card .logo .circle3 { transform: translate3d(0,0,80px); }
.parent:hover .card .logo .circle4 { transform: translate3d(0,0,100px); }
.parent:hover .card .logo .circle5 { transform: translate3d(0,0,120px); }

/* RESPONSIVE */
@media (max-width: 800px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}

/* STAR BACKGROUND LAYERS */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
}

.stars {
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.7;
  animation: moveStars 140s linear infinite;
}

.stars2 {
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.4;
  animation: moveStars 200s linear infinite;
}

.stars3 {
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.2;
  animation: moveStars 260s linear infinite;
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: 2000px 2000px; }
}
/* ===================== */
/*   MOBILE OPTIMIZATION */
/* ===================== */

/* Tablet */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .parent {
    width: 350px;
    height: auto;
  }

  .content {
    padding: 80px 40px 20px 20px;
  }
}

/* Phone */
@media (max-width: 480px) {
  /* Prevent sideways scrolling */
  html, body {
    overflow-x: hidden;
  }

  /* Card resizing */
  .parent {
    width: 92%;
    height: auto; /* card grows with text */
  }

  /* Reduce 3D animation on phones (smooth & faster) */
  .parent:hover .card {
    transform: none;
  }

  /* Content spacing */
  .content {
    padding: 40px 60px 0px 30px;
  }

  .content .title {
    font-size: 18px;
  }

  .content .text {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
  }

  /* Smaller circles for the logo */
  .logo .circle1 { width: 120px; }
  .logo .circle2 { width: 100px; }
  .logo .circle3 { width: 80px; }
  .logo .circle4 { width: 60px; }
  .logo .circle5 { width: 40px; }

  /* Reduce star animation for performance */
  .stars, .stars2, .stars3 {
    opacity: 0.3;
    animation-duration: 200s;
  }
}
