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

html,
body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #191970;
}

/* Profile name animation */

.animated-name span {
  display: inline-block;
  transform: translateY(-100px);
  opacity: 0;
  text-align: center;
  line-height: 1.1;
  margin: 0 auto;
  animation: dropIn 0.5s forwards;
}

.animated-name span:nth-child(1) {
  animation-delay: 0.1s;
}
.animated-name span:nth-child(2) {
  animation-delay: 0.2s;
}
.animated-name span:nth-child(3) {
  animation-delay: 0.3s;
}
.animated-name span:nth-child(4) {
  animation-delay: 0.4s;
}
.animated-name span:nth-child(5) {
  animation-delay: 0.5s;
}
.animated-name span:nth-child(6) {
  animation-delay: 0.6s;
}
.animated-name span:nth-child(7) {
  animation-delay: 0.7s;
}
.animated-name span:nth-child(8) {
  animation-delay: 0.8s;
}
.animated-name span:nth-child(9) {
  animation-delay: 0.9s;
}
.animated-name span:nth-child(10) {
  animation-delay: 1s;
}
.animated-name span:nth-child(11) {
  animation-delay: 1.1s;
}

@keyframes dropIn {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-view {
  display: inline-block;
}

@media (max-width: 768px) {

  .animated-name {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .mobile-view {
    display: block;
    width: 100%;
    height: 0;
    text-align: center;
  }
}


/* Card wrapper with perspective */
.card-wrapper {
  width: 100vw;
  height: 100%;
  perspective: 1200px;
  height: auto;
  min-height: 100vh;
}

/* Flip card */
.card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1s ease-in-out;
  transform-style: preserve-3d;
  min-height: 100vh;
}

.card-wrapper,
.card {
  height: 100vh;
}

/* Flip class triggers rotation */
.card.flipped {
  transform: rotateY(180deg);
}

/* Front and back face */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  flex: 1 1 auto;
  overflow: hidden;
}

/* Front: Loader */
.card-front {
  background-color: black;
  color: white;
  font-size: 3rem;
}

/* Back: Main Content */
.card-back {
  background-color: #ffffff;
  color: #333;
  transform: rotateY(180deg);
  text-align: center;
  height: 100%;
}

/* Main Content */

.main-content {
  background-color: rgba(39, 38, 38, 0.932);
  color: #f0f0f0;
  position: relative;
  height: 100vh;
}

.hero {
  display: flex;
  width: 90%;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-left: 40px;
}

.info {
  width: 50%;
  padding: 70px 30px;
  text-align: left;
  font-weight: 400;
}

.info h1 {
  font-size: 80px;
  line-height: 0.9;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: -6px;
}

.info span {
  color: rgb(0, 240, 80);
  margin-left: -10px;
}

.info p {
  font-weight: 100;
  opacity: 0.7;
  margin-bottom: 50px;
}

.info > p span {
  font-weight: 100 !important;
  opacity: 1 !important;
  color: white !important;
}

.info h2 {
  padding: 10px;
  background-color: rgb(0, 240, 80);
  color: black;
  width: 320px;
  margin-bottom: 40px;
  font-size: 25px;
  text-align: center;
  border-radius: 5px;
  opacity: 0.8;
  letter-spacing: -2px;
  cursor: pointer;
}

.pic-contain {
  perspective: 1200px;
  width: 30%;
  height: 550px;
}

.tilt {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.pic {
  background-image: url(profile.jpg);
  width: 100%;
  height: 550px;
  background-size: cover;
  background-position: center;
  border: 8px solid white;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.pic:hover {
  transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .main-content {
    padding-top: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    flex-direction: column-reverse;
    width: 100%;
    padding: 20px 15px;
    margin: 0 auto;
    gap: 40px;
    justify-content: center;
    align-items: center;
  }

  .info {
    width: 100%;
    padding: 0 10px;
    text-align: center;
  }

  .info h1 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .info p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .info h2 {
    width: 100%;
    font-size: 18px;
    margin-bottom: 20px;
  }

  .pic-contain {
    width: 90%;
    height: auto;
  }

  .pic {
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
  }
}
