@import url(https://fonts.googleapis.com/css?family=Oswald|Roboto);
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

body {
  background-color: #000;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  font-family: "Roboto", sans-serif;
  position: relative;
  margin: 0;
  padding: 0;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card-container {
  position: relative;
  width: 400px;
  height: 300px;
  margin: 0 auto;
  perspective: 1000px;
  cursor: pointer;
  z-index: 1;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #CC99FF;
  box-shadow: 0 0 20px rgba(204, 153, 255, 0.5),
              inset 0 0 20px rgba(204, 153, 255, 0.3);
  overflow: hidden;
}

.card-front {
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  padding: 20px;
}

.front-content h1 {
  font-size: 48px;
  margin: 0 0 10px 0;
  color: #CC99FF;
  text-shadow: 0 0 10px rgba(204, 153, 255, 0.5),
               0 0 20px rgba(204, 153, 255, 0.5);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
}

.back-content {
  padding: 20px;
}

.back-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #CC99FF;
  text-shadow: 0 0 10px rgba(204, 153, 255, 0.5);
  font-family: 'Montserrat', sans-serif;
}

.back-content p {
  font-size: 18px;
  margin: 10px 0;
  color: #fff;
  text-shadow: 0 0 5px rgba(204, 153, 255, 0.5);
}

.skills {
  margin: 20px 0;
}

.skills p {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.social-icon {
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  filter: brightness(1) drop-shadow(0 0 8px rgba(204, 153, 255, 0.7));
  border-radius: 50%;
  padding: 5px;
  background: rgba(204, 153, 255, 0.1);
  border: 1px solid rgba(204, 153, 255, 0.3);
}

.social-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: brightness(1.2) drop-shadow(0 0 15px rgba(204, 153, 255, 0.9));
  background: rgba(204, 153, 255, 0.2);
  border: 1px solid rgba(204, 153, 255, 0.5);
}

.click-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #CC99FF;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 5px rgba(204, 153, 255, 0.5);
}

.card-container:hover .click-hint {
  opacity: 1;
}

.table {
  display: table;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

html, body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  background: #000;
  overflow: hidden;
}

body, pov {
  width:100%;
  height:100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.die {
  width: 4px;
  height: 55px;
  padding-bottom: 9px;
  perspective: 999px;
}

.cube {
  position: absolute;
  width:100%;
  height:100%;
  transform-style: preserve-3d;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.container {
  position: relative;
  width: 400px;
  height: 300px;
  max-width: 100%;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.container:before, .container:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 600px;
  height: 100px;
}

.box-item {
  display: inline-block;
  color: #fff;
  font-size: 30px;
  padding-right: 20px;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.box-item:hover {
  opacity: 0.6;
  transform: scale(1.1);
}

#Triangle-1 {
  animation: float-triangle1 8s ease-in-out infinite;
}

#Triangle-2 {
  animation: float-triangle2 6s ease-in-out infinite;
}

@keyframes float-triangle1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -10px) rotate(3deg); }
}

@keyframes float-triangle2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 10px) rotate(-3deg); }
}

.top-left-image {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: auto;
  z-index: 3;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.top-left-image:hover {
  transform: scale(1.2) rotate(360deg);
  opacity: 0.8;
}

.top-left-box {
  position: absolute;
  top: 10px;
  left: 70px;
  width: 44px;
  height: 44px;
  z-index: 3;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: pulse 2s infinite 0.3s;
}

.top-left-box:hover {
  transform: scale(1.2) rotate(360deg);
  opacity: 0.8;
}

#canvas, .background-svg, .container-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.container-info {
  z-index: 2;
}

h1 {
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: left;
  margin: 75px 37px 47px;
  animation: glow 2s ease-in-out infinite alternate;
}

h1 .info {
  display: block;
  color: #363434;
  font-size: 16px;
  letter-spacing: 0px;
  animation: fadeInUp 1s ease-out;
}

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

.box {
  text-align: right;
  padding: 0px 40px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #CC99FF;
  box-shadow: 0 0 20px rgba(204, 153, 255, 0.5),
              inset 0 0 20px rgba(204, 153, 255, 0.3);
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(204, 153, 255, 0.7),
              inset 0 0 30px rgba(204, 153, 255, 0.5);
  border: 3px solid #CC99FF;
}

.clock {
  position: fixed;
  top: 20px;
  left: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #CC99FF;
  text-shadow: 0 0 10px rgba(204, 153, 255, 0.5),
               0 0 20px rgba(204, 153, 255, 0.3);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid rgba(204, 153, 255, 0.3);
}
