.cv-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 140px;
  margin-inline: auto;
  border-radius: 40px;
}

.cv-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 1540px;
  min-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-item img {
  width: 100%;
  height: 1540px;
  display: block;
  border-radius: 12px;
  transform: rotate(-90deg);
  object-fit: contain;
}
.cv-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cv-buttons a,
.cv-buttons button {
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  padding: 10px 22px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-download {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-flip {
  background: linear-gradient(135deg, #ff6a88, #ff99ac);
  box-shadow: 0 4px 15px rgba(255, 106, 136, 0.4);
}

.cv-buttons a:hover,
.cv-buttons button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cv-buttons a:active,
.cv-buttons button:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cv-buttons a::before,
.cv-buttons button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: -1;
}

.cv-buttons a:hover::before,
.cv-buttons button:hover::before {
  left: 100%;
}

.cv-item {
  position: relative;
}

.cv-overlay {
  position: absolute;
  flex-direction: column;
  top: 93.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 110px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv-item:hover .cv-overlay {
  opacity: 1;
}

.cv-link {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cv-link:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.cv-link:active {
  transform: scale(0.95);
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-text {
  font-size: 42px;
  font-weight: bold;
  color: white;
  letter-spacing: 0.7px;
}

.loading-text span {
  display: inline-block;
  animation: bounce 1.2s infinite;
}

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

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.cv2 {
  height: 1500px !important;
}
.cv2 img {
  width: 1475px !important;
}
@media (min-width: 769px) and (max-width: 2000px) {
  .cv-buttons a,
  .cv-buttons button {
    margin-top: -20px;
    padding: 14px 32px;
    font-size: 20px;
  }
  .cv-item {
    width: 1150px;
    height: 1170px !important;
  }
  .cv-item img {
    height: 1200px !important;
  }
  .cv2 {
    height: 1100px !important;
  }
  .cv2 img {
    width: 1100px !important;
  }
  .cv-overlay {
    top: 93%;
    left: 50%;
    gap: 82px;
  }
  .cv-overlay a {
    padding: 5px 10px;
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .cv-buttons a,
  .cv-buttons button {
    margin-top: -40px;
    padding: 2px 40px !important;
    font-size: 12px;
  }
  .cv-item {
    width: 360px;
    height: 500px;
  }

  .cv-item img {
    width: 500px;
    height: 500px;
  }
  .cv2 {
    height: 500px !important;
  }
  .cv2 img {
    width: 483px !important;
  }
  .cv-overlay {
    top: 93.8%;
    left: 55%;
    gap: 35px;
  }
  .cv-overlay a {
    padding: 3px 10px;
    font-size: 5px;
  }
  .loading-text {
    font-size: 28px;
  }
}

.cv-container {
  max-width: 800px;
  margin-inline: auto;
}
