@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(135deg, #000000, #2a2a2a);
  color: #f5f5f5;
  overflow: hidden;
  box-shadow: inset 0px 0px 50px rgb(255, 235, 119);
}

/* نور طلایی */
.gold-light {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 212, 82, 0.2) 0%,
    transparent 70%
  );
  animation: goldFade 3s forwards;
  z-index: 1;
  pointer-events: none;
}
@keyframes goldFade {
  0% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* دکمه برگشت */
.back-home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ffd452, #ffb347);
  color: #222;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 200, 80, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}
.back-home-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 200, 80, 0.6);
}

/* کانتینر اصلی */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 20px;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

.slider {
  width: 70%;
  height: 80%;
  overflow: hidden;
  position: relative;
}

.slide {
  margin-top: 50px;
  display: none;
  padding: 50px;
  border-radius: 40px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  height: 100%;
}

.slide.show {
  display: flex;
  animation: fadeSlide 0.6s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

h2 {
  color: #ffd452;
}

/* اسلایدر داخلی */
.inner-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80%;
  height: 60%;
}

.inner-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.inner-slider-wrapper img {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-slider-wrapper img.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

img {
  border-radius: 10px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* دکمه‌های داخلی */
.inner-prev,
.inner-next {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(160%);
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.3s ease;
}
.inner-prev:hover,
.inner-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* دکمه‌های پروژه‌ها */
.prev-btn,
.next-btn {
  background: rgba(255, 212, 82, 0.8);
  color: #222;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 212, 82, 1);
}

/* نسخه دسکتاپ */
.desktop-only {
  display: inline-block;
}
.mobile-only {
  display: none;
}
*,
button,
a,
input,
textarea,
select {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.2);
  border: 2px solid #ffcc00;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease-out, background 0.3s, box-shadow 0.3s;

  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.2);
}

.cursor.click {
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(255, 204, 0, 0.8);
}
@media (max-width: 768px) {
  body,
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .container {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    gap: 20px;
    padding: 20px 10px;
  }

  .slider {
    width: 100%;
    flex: 1;
    display: block;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    height: auto;
  }

  .slide {
    width: 100%;
    height: auto;
    padding: 20px 10px;
    display: block;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
  }

  .inner-slider-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 200px;
    width: 100%;
  }

  .inner-prev,
  .inner-next {
    position: relative;
    font-size: 1.2rem;
    z-index: 5;
  }

  .inner-slider-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
  }

  .inner-slider-wrapper img {
    height: 100%;
    width: 100%;
  }

  .mobile-controls {
    position: static;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .prev-btn,
  .next-btn {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }
}
#content {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 1.2s ease, filter 1.2s ease;
  padding: 20px;
}

/* وقتی لودینگ تموم شد */
#content.show {
  opacity: 1;
  filter: blur(0);
}

/* کل صفحه لودینگ */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.85); /* مشکی مات و نیمه شفاف */
  backdrop-filter: blur(12px); /* بلور */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  user-select: none;
  transition: opacity 0.8s ease;
}

/* پنهان کردن با fadeout */
#loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* حلقه‌ها */
.rings {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring {
  position: absolute;
  border: 6px solid transparent;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation-timing-function: cubic-bezier(0.68, 0.55, 0.265, 1.55);
  box-shadow: 0 0 8px #d4af37, 0 0 15px #d4af37;
}

.ring1 {
  width: 120px;
  height: 120px;
  top: 0;
  left: 0;
  animation: spinClockwise 1.8s linear infinite;
}

.ring2 {
  width: 90px;
  height: 90px;
  top: 15px;
  left: 15px;
  border-top-color: #bbb;
  box-shadow: 0 0 6px #bbb, 0 0 12px #bbb;
  animation: spinCounter 1.2s linear infinite;
}

.ring3 {
  width: 60px;
  height: 60px;
  top: 30px;
  left: 30px;
  animation: spinClockwise 1s linear infinite;
}

@keyframes spinClockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinCounter {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* متن بارگذاری */
#loader-text {
  margin-top: 30px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px #d4af37, 0 0 20px #d4af37;
  animation: glowText 2.5s ease-in-out infinite;
}

@keyframes glowText {
  0%,
  100% {
    text-shadow: 0 0 8px #d4af37, 0 0 20px #d4af37, 0 0 30px #d4af37;
    color: #d4af37;
  }
  50% {
    text-shadow: 0 0 4px #fff, 0 0 15px #fff, 0 0 25px #d4af37;
    color: #fff;
  }
}
