/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100vh;
  /* background: #3a90ffb8; */
  background: #061426;

}


/* Page setup */
body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: white;

}

/* Full screen page */
.page {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0px 32px;

}

.portal-badge {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3px;


  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(10px) saturate(100%);

  border: 1px solid rgba(255, 255, 255, 0.55);

  box-shadow:
    5px 10px 5px #285aa02e,
    inset 1px 1px 10px #285aa02e;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #80ffdb;
  /* background: #ff8b5a; */

  /* Online... */
  box-shadow:
    0 0 12px #80ffdbf2,
    0 0 24px #80ffdb8c;

  animation: pulseDot 1.8s ease-in-out infinite;
}

/* Color blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  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: 600px;
  height: 350px;

  position: relative;
  z-index: 5;

  display: block;
  cursor: pointer;

  perspective: 1400px;
}

/* 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;

  background-color: #00000029;
  border-radius: 32px;
}

/* 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: 14px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);

  border: 1px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    0 34px 70px rgba(45, 95, 170, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.925),
    inset 0 -10px 20px rgba(255, 255, 255, 0.633);

  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: 99;
}

/* Front side */
.card-front {
  background: #006aff2c;
  font-size: 28px;
  margin-bottom: 10px;
  color: white;
}


.card-bg-img {
  position: absolute;
  /* inset: 0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  /* z-index: 0; */
  pointer-events: none;
}

.card-bg-img.is-loaded {
  opacity: 0.8;
}




/* Logo */
.logo {
  width: 100%;
  height: 100%;

  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;

  opacity: 0;
  filter: blur(15px);
  transition: opacity var(--load-duration, 0.8s) ease-in-out, filter var(--load-duration, 0.8s) ease-in-out;

}

.logo.is-loaded {
  opacity: 1;
  filter: blur(0);
  /* background-color: #80ffdb8c; */
}

.logo-img {
  width: 70%;
  object-fit: contain;

  filter: drop-shadow(3px 4px 2px rgba(0, 0, 0, 0.579));

  opacity: 0;
  transition: opacity var(--load-duration, 0.8s) ease-in-out;
}

.logo-img.is-loaded {
  opacity: 1;
}

.front-subtitle {

  padding: 9px 15px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 200;
  letter-spacing: 1px;

  color: #ffffff;

  background: rgba(255, 255, 255, 0.14);

  border: 1px solid rgba(255, 255, 255, 0.34);

  box-shadow:
    inset 0px 1px 80px #285aa024,
    0px 12px 8px #285aa024;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.579);
}


.front-hint {
  font-size: 12px;
  opacity: 0.9;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.579);
}

/* Back side */
.card-back {
  transform: rotateY(180deg);
  padding-top: 20px;
  align-items: center;
  text-align: left;

  background-color: #006aff2c;
}

.backCardContainer {
  /* background-color: #80ffdb; */
  width: 100%;
  height: 80%;
  margin-bottom: 30px;

  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  z-index: 999;
}

.name-title {
  /* background-color: #5fd6ff; */
  width: 90%;
  /* margin-top: 20px; */
}

.backCard-leftContainer {
  /* background-color: #6400b0; */
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.backCard-rightContainer {
  /* background-color: #c77dff; */
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.backCard-leftContainer,
.backCard-rightContainer {
  min-width: 250px;
}

.job-title {
  font-size: 15px;
  opacity: 0.85;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: start; */
  text-align: left;
}

.left-btn {
  text-align: left;
}

.contact-field {
  padding: 9px 15px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0px 1px 80px #285aa024,
    0px 12px 8px #285aa024;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.579);
}

.contact-link {
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.579);
}

.view-portfolio-btn {
  transition: all 0.5s ease-in-out;
  text-decoration: none;
}

.view-portfolio-btn:hover {
  transform: scale(1.2);
}



.load-slide-up {
  transform: translateY(100px) scale(0);
}

.load-slide-up.is-loaded {
  animation: loadedCard var(--load-duration, 1s) ease-in-out forwards;
}

@keyframes loadedCard {
  0% {
    transform: translateY(100px) scale(0);
  }

  30% {
    transform: translateY(-50px) scale(1.2);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}


/* Card bounce */
@keyframes floatCard {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* 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/tablets */
@media (max-width: 770px) {

  .card-area:hover .card-hover {
    transform: scale(1) translateY(0px);
  }


  .portal-badge {
    top: 24px;
    font-size: 12px;
    padding: 9px 15px;
  }

  .card-area {
    height: 440px;
  }

  .backCardContainer {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }

  .backCard-leftContainer,
  .backCard-rightContainer {
    width: 70%;
    height: auto;
  }


  .card-side::after {
    border-radius: 31px;
  }

  .bottom-note {
    bottom: 24px;
    font-size: 12px;
  }


  .name-title {
    /* background-color: #5fd6ff; */
    width: 90%;
    text-align: center;
  }

  .contact-field, .info {
    text-align: center;
  }

}


@media (max-width: 680px) {
  .backCardContainer {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
  }

  .backCard-leftContainer,
  .backCard-rightContainer {
    width: 70%;
    /* height: auto; */
  }
}

/* Extra small phones */
@media (max-width: 450px) {

  .card-area:hover .card-hover {
    transform: scale(1) translateY(0px);
  }

  .card-area {
    max-height: 470px;
  }

  .card-side {
    padding: 20px 20px;
  }

  .portal-badge {
    width: max-content;
    max-width: 90%;
  }

  .backCard-leftContainer,
  .backCard-rightContainer {
    width: 70%;
    height: auto;
  }

  .contact-field, .info {
    width: stretch;
  }

  .page {
    padding: 0px 25px;
  }

  .logo-img {
    width: 80%;
  }

  .front-subtitle {
    font-size: 9px;
  }

}