/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================================
   FOOTER WRAPPER & BACKGROUND
   =================================== */

.footer-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  /* margin-top: 80px; */
  direction: rtl; /* RTL support for Persian */
}

/* Background Image - Z-Index 0 (Lowest) */
.footer-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/footer_bg2_renew.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark Overlay - Z-Index 1 */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.92) 100%
  );
  z-index: 1;
}

/* ===================================
   MAIN CONTENT - Z-Index 2 (Top)
   =================================== */

.footer-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ===================================
   BRAND SECTION
   =================================== */

.footer-brand {
  margin-bottom: 40px;
}

.brand-title {
  font-family: "Vazirmatn", "Vazir", "Tahoma", "Arial", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.brand-subtitle {
  font-family: "Emkan";
  font-size: 30px;
  color: #d0d0d0;
  font-weight: 300;
  letter-spacing: 1px;
}

/* ===================================
   DIVIDER LINES
   =================================== */

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%
  );
  margin: 35px 0;
}

/* ===================================
   INFO GRID
   =================================== */

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 40px 0;
}

.info-column {
  text-align: center;
}

.info-title {
  font-family: "Emkan";
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-content p {
  font-family: "Emkan";
  font-size: 25px;
  color: #c4c4c4;
  line-height: 1.8;
  margin: 8px 0;
  font-weight: 300;
}

/* ===================================
   SOCIAL MEDIA SECTION
   =================================== */

.footer-social {
  margin: 40px 0;
}

.social-title {
  font-family: "Emkan";
  font-size: 25px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-10px) scale(1.15);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
}

.social-icon svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icon:hover svg {
  transform: scale(1.1);
}

/* ===================================
   BOTTOM SECTION
   =================================== */

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

.copyright {
  font-family: "Emkan";
  font-size: 18px;
  color: #999999;
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-links a {
  font-family: "Emkan";
  font-size: 16px;
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.link-separator {
  color: #666666;
  font-size: 16px;
  font-weight: 300;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media (max-width: 992px) {
  .footer-wrapper {
    min-height: 550px;
    padding: 50px 30px;
    margin-top: 60px;
  }

  .brand-title {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .brand-subtitle {
    font-size: 16px;
  }

  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .social-icon {
    width: 60px;
    height: 60px;
  }

  .social-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

@media (max-width: 768px) {
  .footer-wrapper {
    min-height: 600px;
    padding: 40px 20px;
    margin-top: 50px;
  }

  .brand-title {
    font-size: 32px;
    letter-spacing: 1.5px;
  }

  .brand-subtitle {
    font-size: 14px;
  }

  .info-title {
    font-size: 18px;
  }

  .info-content p {
    font-size: 15px;
  }

  .social-title {
    font-size: 20px;
  }

  .social-icons-container {
    gap: 20px;
  }

  .social-icon {
    width: 55px;
    height: 55px;
  }

  .social-icon svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .footer-wrapper {
    min-height: 650px;
    padding: 35px 15px;
    margin-top: 40px;
  }

  .brand-title {
    font-size: 26px;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .footer-divider {
    margin: 25px 0;
  }

  .footer-info-grid {
    gap: 30px;
    margin: 30px 0;
  }

  .info-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .info-content p {
    font-size: 14px;
  }

  .social-title {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .social-icons-container {
    gap: 15px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .copyright {
    font-size: 12px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .link-separator {
    font-size: 14px;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.social-icon:focus {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.footer-links a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand,
.info-column,
.footer-social {
  animation: fadeIn 0.8s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .footer-wrapper {
    background: white;
    color: black;
  }

  .footer-bg-image,
  .footer-overlay {
    display: none;
  }

  .brand-title,
  .info-title,
  .social-title {
    color: black;
  }

  .info-content p,
  .copyright,
  .footer-links a {
    color: #333;
  }
}
