.title {
  font-size: 40px;
  color: #fff;
  text-align: center;
  margin-top: 150px;
  margin-bottom: 25px;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  animation: rgbAnimation 5s linear infinite, fadeInTitle 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}
@media (max-width: 768px) {
  .logo {
    width: 35px;
  }
  nav ul li a {
    font-size: 14px;
  }
}
.ia {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  animation: rgbAnimation 5s linear infinite;
}
nav ul li a.deluxe-opt {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  animation: rgbAnimation 5s linear infinite;
}
@keyframes rgbAnimation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
.wallpapers-container {
  margin-top: 100px;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px;
  justify-items: center;
}
.gallery-item {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover::before {
  opacity: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.gallery-item:hover {
  transform: none;
}
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.modal.hide {
  animation: fadeOut 0.8s ease forwards, scaleDown 0.8s ease forwards;
}
.modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease forwards, scaleUp 0.5s ease forwards;
}
.modal-content img {
  max-width: 90%;
  max-height: 80vh;
  transition: transform 0.8s ease;
  border-radius: 0;
}
.modal-content img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}
.download-btn {
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
  width: auto;
  position: relative;
  box-shadow: 0 0 15px rgb(255 255 255 / 0.7);
  animation: glowEffect 0.8s ease-in-out infinite alternate;
}
.download-btn:hover {
  background-color: #fff;
  color: #000;
  border-color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgb(255 255 255);
}
.download-btn:active {
  transform: scale(0.98);
}
@keyframes glowEffect {
  from {
    box-shadow: 0 0 10px rgb(255 255 255 / 0.5);
  }
  to {
    box-shadow: 0 0 20px rgb(255 255 255);
  }
}
.close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 700;
  padding: 5px;
  transition: transform 0.3s ease;
  z-index: 1001;
}
.close-modal i {
  font-size: 20px;
  color: #fff;
}
.close-modal:hover {
  transform: rotate(360deg);
}
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleDown {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}
.modal.hide {
  animation: fadeOut 0.5s ease forwards, scaleDown 0.5s ease forwards;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.dc-icons-container {
  opacity: 0;
  animation: fadeInOpacity 1.5s forwards ease-in-out;
}
.gallery-item {
  opacity: 0;
  animation: fadeInOpacity 1.5s forwards ease-in-out;
}
.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.rgb-line,
.top-bar {
  position: fixed;
  left: 0;
  width: 100%;
}
.animated-rocket,
.top-bar span {
  color: #000;
  margin-right: 10px;
}
.main,
header {
  margin-top: 40px;
}
.top-bar {
  top: -50px;
  height: 40px;
  background: linear-gradient(90deg, #000, #fff, #000);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.2);
  animation: 1s ease-out forwards slideDown;
}
@keyframes slideDown {
  0% {
    top: -50px;
  }
  100% {
    top: 0;
  }
}
.rgb-line {
  top: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    red,
    orange,
    #ff0,
    green,
    #00f,
    violet,
    red
  );
  background-size: 200%;
  animation: 1.5s linear infinite rgbWave;
  z-index: 9999;
}
@keyframes rgbWave {
  0% {
    background-position: 0 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
.animated-rocket {
  font-size: 18px;
  animation: 0.4s ease-in-out infinite swayRocket;
}
@keyframes swayRocket {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(5deg);
  }
}
.top-bar-button {
  background: #000;
  color: #fff;
  border: 2px solid #fff0;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
  transition: 0.3s;
  animation: 3s infinite rgbGlow;
}
.top-bar-button:hover {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  box-shadow: none;
}
.animated-arrow {
  margin-left: -4px;
  margin-right: 10px;
  color: #000;
  font-size: 18px;
  animation: 1.5s ease-in-out infinite bounceArrow;
}
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12px);
  }
}
@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
