:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --gold: #ffd700;
  --gold-light: #ffea80;
  --gold-dark: #b8860b;
  --white: #ffffff;
  --gray-light: #f1f1f1;
  --gray: #888888;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



body {

  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.b {
  flex: 1;
  background: linear-gradient(135deg, #0c0c0c 0%, #1c1c1c 100%);
  text-align: center;
  padding: 1rem !important;
}

.main-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.main-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* فوتر فوق حرفه‌ای */
.super-footer {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.97) 0%, rgba(15, 15, 15, 0.98) 100%);
  color: var(--white);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.super-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shine 3s infinite linear;
}

.super-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+PHBhdGggZD0iTTAgMGg2MHY2MEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0zMCAxNWM4LjI4NCAwIDE1IDYuNzE2IDE1IDE1IDAgOC4yODQtNi43MTYgMTUtMTUgMTUtOC4yODQgMC0xNS02LjcxNi0xNS0xNSAwLTguMjg0IDYuNzE2LTE1IDE1LTE1em0wIDVjNS41MjMgMCAxMCA0LjQ3NyAxMCAxMHMtNC40NzcgMTAtMTAgMTAtMTAtNC40NzctMTAtMTAgNC40NzctMTAgMTAtMTB6IiBmaWxsPSIjZmZlYzY2IiBmaWxsLW9wYWNpdHk9IjAuMDYiLz48L3N2Zz4=');
  opacity: 0.1;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

.footer-section {
  padding: 20px;
  border-radius: 15px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.footer-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 3px;
}

.footer-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--gray-light);
  font-size: 1rem;
}

.footer-section a {
  color: var(--gray-light);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  /*align-items: center;*/
  margin-bottom: 12px;
}

.footer-section a i {
  margin-left: 10px;
  color: var(--gold);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold-light);
  transform: translateX(5px);
}

.footer-section a:hover i {
  transform: scale(1.2);
  color: var(--gold-light);
}

.contact-info a {
  display: flex;
  align-items: center;
}

.social-media {
  display: flex;
  flex-direction: column;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a1a, #151515);
  box-shadow: 5px 5px 10px #0c0c0c, -5px -5px 10px #1e1e1e;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.social-icons a:hover::before {
  opacity: 1;
}

.social-icons a i {
  font-size: 20px;
  color: var(--gold);
  z-index: 2;
  position: relative;
  margin: 0;
  transition: var(--transition);
}

.social-icons a:hover i {
  color: var(--primary);
  transform: rotate(10deg) scale(1.2);
}

.social-icons a:hover {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.trust-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badges {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  perspective: 1000px;
}

.enamad-badge {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: var(--transition);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}

.enamad-badge:hover {
  transform: translateY(-8px) rotateX(5deg);
  border-color: var(--gold);
  box-shadow: 0 15px 25px rgba(255, 215, 0, 0.25);
}

.enamad-badge img {
  border-radius: 10px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.footer-bottom {
  text-align: center;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 3px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.designer {
  color: var(--gold);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.designer::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* دکمه بازگشت به بالا */
.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
  animation: pulse 1.5s infinite;
}

/* انیمیشن‌ها */
@keyframes shine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.footer-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

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

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .super-footer {
    padding: 60px 0 25px;
  }


  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 20px;
  }

  .back-to-top {
    left: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .super-footer {
    padding: 50px 0 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .social-icons {
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
  }

  .back-to-top {
    left: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .main-title {
    font-size: 2rem;
  }

  .main-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .super-footer {
    padding: 40px 0 15px;
    margin-bottom: 20px;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
  }

  .social-icons i {
    font-size: 18px;
  }

  .back-to-top {
    left: 15px;
    bottom: 80px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ابزار اندازه‌گیری ویوپورت */
#viewport-size {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--gold);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: 'Vazirmatn', monospace;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(5px);
}

/* افکت نورپردازی */
.light-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.light-effect-1 {
  top: -150px;
  right: -150px;
  animation: float 15s infinite ease-in-out;
}

.light-effect-2 {
  bottom: -100px;
  left: -100px;
  animation: float 18s infinite ease-in-out reverse;
}