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

/* Page setup */
body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

/* Full screen page */
.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

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

  /* background: linear-gradient(135deg, #f4fbff, #eaf3ff, #f7efff); */
  background: linear-gradient(135deg, #96d9ff, #3a90ff, #96d9ff);
}

/* Color blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 1;
  pointer-events: none;
}

/* Blob positions, sizes, colors, and animations */
.blob-one {
  width: 280px;
  height: 280px;
  background: #5fd6ff;
  top: 8%;
  left: 8%;
  animation: moveOne 14s ease-in-out infinite alternate;
}

.blob-two {
  width: 260px;
  height: 260px;
  background: #c77dff;
  top: 10%;
  right: 12%;
  animation: moveTwo 16s ease-in-out infinite alternate;
}

.blob-three {
  width: 240px;
  height: 240px;
  background: #7bdff2;
  bottom: 10%;
  left: 15%;
  animation: moveThree 13s ease-in-out infinite alternate;
}

.blob-four {
  width: 300px;
  height: 300px;
  background: #ff9ee2;
  bottom: 12%;
  right: 10%;
  animation: moveFour 17s ease-in-out infinite alternate;
}

.blob-five {
  width: 220px;
  height: 220px;
  background: #80ffdb;
  top: 35%;
  left: 35%;
  animation: moveFive 12s ease-in-out infinite alternate;
}

.blob-six {
  width: 210px;
  height: 210px;
  background: #8ec5ff;
  top: 50%;
  right: 38%;
  animation: moveSix 15s ease-in-out infinite alternate;
}

.blob-seven {
  width: 190px;
  height: 190px;
  background: #ffd6a5;
  top: 25%;
  left: 62%;
  animation: moveSeven 18s ease-in-out infinite alternate;
}

.blob-eight {
  width: 200px;
  height: 200px;
  background: #bdb2ff;
  bottom: 25%;
  left: 55%;
  animation: moveEight 14s ease-in-out infinite alternate;
}

.blob-nine {
  width: 180px;
  height: 180px;
  background: #a0c4ff;
  top: 60%;
  left: 25%;
  animation: moveNine 19s ease-in-out infinite alternate;
}

.blob-ten {
  width: 230px;
  height: 230px;
  background: #ffc6ff;
  bottom: 42%;
  right: 22%;
  animation: moveTen 16s ease-in-out infinite alternate;
}

/* Hidden checkbox */
.flip-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Clickable card area */
.card-area {
  width: 530px;
  height: 270px;

  position: relative;
  z-index: 5;

  display: block;
  cursor: pointer;

  perspective: 1200px;
}

/* Smooth card bounce */
.card-float {
  width: 100%;
  height: 100%;

  animation: floatCard 3s ease-in-out infinite;
}

/* Hover layer */
.card-hover {
  width: 100%;
  height: 100%;

  transition: transform 0.35s ease;
}

/* Hover only moves up */
.card-area:hover .card-hover {
  transform: scale(1.2) translateY(-8px);
}

/* Actual flipping card */
.card {
  width: 100%;
  height: 100%;
  position: relative;

  transform-style: preserve-3d;

  transition: transform 0.8s ease;
}

/* Flip on click */
.flip-checkbox:checked + .card-area .card {
  transform: rotateY(180deg);
}

/* Both card sides */
.card-side {
  position: absolute;
  width: 100%;
  height: 100%;

  border-radius: 32px;
  padding: 34px;

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

  text-align: center;

  /*
    More transparent glass.
    Lower blur than before.
  */
  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(15%);

  border: 1px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    0 30px 70px rgba(80, 120, 180, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -30px 60px rgba(255, 255, 255, 0.10);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  overflow: hidden;
}

/* Soft glass fog, not too strong */
.card-side::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.30), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), transparent 42%);

  pointer-events: none;
}

/* Thin top glass highlight */
.card-side::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 28px;
  right: 28px;
  height: 1px;

  background: rgba(255, 255, 255, 0.80);
}

/* Keep content above the glass fog */
.logo,
.card-side h1,
.card-side h2,
.card-side p,
.info {
  position: relative;
  z-index: 2;
}

/* Front side */
.card-front {
  background: rgba(255, 255, 255, 0.18);
}

/* Back side */
.card-back {
  transform: rotateY(180deg);

  align-items: flex-start;
  text-align: left;

  background: rgba(255, 255, 255, 0.18);
}

/* Logo */
.logo {
  width: 95px;
  height: 95px;

  border-radius: 26px;

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

  margin-bottom: 24px;

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

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.80);

  box-shadow:
    0 16px 32px rgba(80, 120, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.logo span {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Front text */
.card-front h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: white;
  text-shadow: 0 2px 12px rgba(40, 70, 120, 0.30);
}

.card-front p {
  font-size: 14px;
  opacity: 0.9;
  color: white;
  text-shadow: 0 2px 10px rgba(40, 70, 120, 0.28);
}

/* Back text */
.card-back h2 {
  font-size: 27px;
  margin-bottom: 5px;
  color: white;
  text-shadow: 0 2px 12px rgba(40, 70, 120, 0.30);
}

.job-title {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.info {
  width: 100%;
}

.info p {
  font-size: 14px;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 2px 10px rgba(40, 70, 120, 0.25);
}

/* Card bounce */
@keyframes floatCard {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Blob movements */
@keyframes moveOne {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(260px, 180px) scale(1.15);
  }

  100% {
    transform: translate(520px, 40px) scale(0.95);
  }
}

@keyframes moveTwo {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-300px, 220px) scale(1.2);
  }

  100% {
    transform: translate(-560px, 90px) scale(0.95);
  }
}

@keyframes moveThree {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(360px, -260px) scale(1.15);
  }

  100% {
    transform: translate(720px, -40px) scale(1);
  }
}

@keyframes moveFour {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-360px, -240px) scale(1.2);
  }

  100% {
    transform: translate(-700px, -60px) scale(1);
  }
}

@keyframes moveFive {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-280px, 180px) scale(1.25);
  }

  100% {
    transform: translate(340px, -170px) scale(1);
  }
}

@keyframes moveSix {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(250px, -160px) scale(1.18);
  }

  100% {
    transform: translate(-320px, 190px) scale(1);
  }
}

@keyframes moveSeven {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-420px, 260px) scale(1.2);
  }

  100% {
    transform: translate(-120px, 470px) scale(1);
  }
}

@keyframes moveEight {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(300px, -240px) scale(1.22);
  }

  100% {
    transform: translate(-260px, -360px) scale(1);
  }
}

@keyframes moveNine {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(520px, -120px) scale(1.18);
  }

  100% {
    transform: translate(760px, 160px) scale(1);
  }
}

@keyframes moveTen {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-380px, 140px) scale(1.2);
  }

  100% {
    transform: translate(-680px, -180px) scale(1);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .card-area {
    width: 90%;
    height: 260px;
  }

  .card-side {
    padding: 26px;
    border-radius: 28px;
  }

  .card-front h1 {
    font-size: 22px;
  }

  .card-back h2 {
    font-size: 22px;
  }

  .info p {
    font-size: 13px;
  }

  .logo {
    width: 82px;
    height: 82px;
  }

  .logo span {
    font-size: 24px;
  }
}