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

body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  padding: 20px;
  background-image: url("../images/Dubai_Downtown_Burj_Complete_Enhanced2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  overflow: hidden;
}

.body-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    #1d3f75f2 0%,
    #1d3f75d9 50%,
    #1d3f75bf 100%
  );
}

.card-container {
  max-width: 600px;
  width: 100%;
  height: 800px;
  position: relative;
  perspective: 1000px;
}

.card {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Front Card (First Image) */
.card-front {
  background: #1d3f75;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  z-index: 2;
}

.card-front.hide {
  opacity: 0;
  transform: rotateY(-90deg) scale(0.8);
  z-index: 1;
}

.brand-logo {
  width: 100%;
  height: 200px;
  /* margin-bottom: 60px; */
  animation: fadeInDown 1s ease-out;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-shape {
  width: 45%;
  height: 100%;
}

.logo-shape img {
  width: 100%;
  object-fit: cover;
  filter: drop-shadow(1px 2px 3px #35353559);
}

.person-photo {
  border-radius: 20px;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.3s both;
  filter: drop-shadow(2px 4px 6px black);
  bottom: 0;
  position: absolute;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info {
  width: 100%;
  position: absolute;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.6s both;
  bottom: 30px;
  background-color: #1d3f75;
  padding: 10px 0;
}

.person-name {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.person-title {
  font-size: 24px;
  color: #fbaf3f;
  font-weight: 400;
}

/* Back Card (Second Image) */
.card-back {
  background: #1d3f75;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: rotateY(90deg) scale(0.8);
}

.card-back.show {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  z-index: 2;
}

.company-name {
  font-size: 38px;
  font-weight: 300;
  color: #fbaf3f;
  margin-bottom: 50px;
  letter-spacing: 2px;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.profile-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fbaf3f;
  overflow: hidden;
  margin-bottom: 40px;
  animation: scaleIn 0.6s ease-out 0.8s both;
  box-shadow: 0 8px 20px rgba(251, 175, 63, 0.3);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  width: 100%;
  padding: 32px 40px;
}

.contact-item {
  margin-bottom: 35px;
  text-align: center;
  animation: slideInLeft 0.6s ease-out both;
  display: flex;
  /* justify-content: center; */
  align-items: flex-start;
  gap: 15px;
}

.contact-item:nth-child(1) {
  animation-delay: 1s;
}
.contact-item:nth-child(2) {
  animation-delay: 1.15s;
}
.contact-item:nth-child(3) {
  animation-delay: 1.3s;
}
.contact-item:nth-child(4) {
  animation-delay: 1.45s;
}

.contact-label {
  font-size: 20px;
  color: #fbaf3f;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.person-info-back {
  padding: 30px 0px;
}
.person-info-back .person-name {
  font-size: 24px;
}
.person-info-back .person-title {
  font-size: 20px;
}
.contact-value {
  font-size: 18px;
  color: #e0e0e0;
  font-weight: 300;
  text-align: left;
}
.contact-value a {
  color: #e0e0e0;
  text-decoration: none;
}

.cta-button {
  background: linear-gradient(135deg, #fbaf3f 0%, #d4952b 100%);
  color: #1d3f75;
  border: none;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(251, 175, 63, 0.4);
  animation: fadeInUp 0.6s ease-out 1.6s both;
  letter-spacing: 1px;
  width: 45%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(251, 175, 63, 0.6);
}

.cta-button:active {
  transform: translateY(-1px);
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 40px;
  left: 0;
}

.icon-button {
  background: transparent;
  color: #fbaf3f;
  border: 2px solid #fbaf3f;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out 1.8s both;
}

.icon-button:hover {
  background: rgba(251, 175, 63, 0.1);
  transform: rotate(180deg);
  box-shadow: 0 4px 12px rgba(251, 175, 63, 0.2);
  color: #fff;
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.front-flip-btn,
.back-flip-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: fadeInDown 0.6s ease-out 1.2s both;
  z-index: 5;
}

.secondary-button {
  display: none; /* Removed or hidden */
}

.icon-box {
  width: 24px;
  height: 24px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .card-container {
    height: 700px;
  }

  .brand-logo {
    width: 100%;
    height: 150px;
  }
  .person-photo {
    height: 100%;
    width: 100%;
  }
  .logo-shape {
    width: 60%;
  }

  .person-photo img {
    width: 100%;
    /* height: 100%; */
    object-fit: contain;
    transform: scale(1.5) translateY(15%) translateX(0);
    bottom: 0px;
    position: absolute;
  }

  .person-name {
    font-size: 32px;
  }

  .person-title {
    font-size: 20px;
  }

  .company-name {
    font-size: 30px;
  }

  .profile-circle {
    width: 120px;
    height: 120px;
  }

  /* Mobile adjustments for new elements */
  .front-flip-btn,
  .back-flip-btn {
    width: 50px;
    height: 50px;
    top: 20px;
    right: 20px;
    bottom: auto;
  }

  .button-group {
    bottom: 20px;
    gap: 10px;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 16px;
    width: 65%;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .person-info {
    bottom: 20px;
  }
  .contact-item {
    margin-bottom: 24px;
  }
  .contact-details {
    width: 100%;
    padding: 20px;
  }
}
