/* ========= Accessibility ========= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========= Footer Styles ========= */
.main-footer {
  background-color: #1a1a1a;
  color: #fff;
  font-family: "Tajawal", sans-serif;
  line-height: 1.5;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

.footer-about,
.footer-links,
.footer-categories,
.footer-contact {
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.footer-about:hover,
.footer-links:hover,
.footer-categories:hover,
.footer-contact:hover {
  transform: translateY(-5px);
}

.footer-about h3,
.footer-links h3,
.footer-categories h3,
.footer-contact h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-categories h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #9b59b6);
  border-radius: 3px;
}

.footer-about p {
  color: #b3b3b3;
  line-height: 1.6;
  margin: 0 0 15px;
  font-size: 0.9em;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 15px 0 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), #9b59b6);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

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

/* Footer Widgets */
.footer-widget {
  padding: 0 10px;
  margin-bottom: 20px;
  text-align: right;
}

.footer-widget h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px;
  padding-bottom: 10px;
  position: relative;
  font-family: var(--font-heading-en);
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #9b59b6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-widget:hover h4::after {
  width: 70px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.footer-links a {
  color: #b3b3b3;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 0;
  font-size: 0.9rem;
  font-family: var(--font-primary-en);
}

.footer-links a i {
  margin-right: 0;
  margin-left: 10px;
  color: var(--color-primary);
  font-size: 0.7em;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-right: 10px;
}

.footer-links a:hover i {
  transform: translateX(-5px);
}

/* Contact Info */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #b3b3b3;
  line-height: 1.4;
  font-size: 0.9rem;
  text-align: right;
  flex-direction: row-reverse;
  gap: 10px;
}

.contact-info i {
  color: var(--color-primary);
  font-size: 18px;
  margin-top: 5px;
  min-width: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--color-primary);
}

.contact-label {
  display: block;
  font-size: 0.85em;
  color: #94a3b8;
  margin-top: 3px;
}

.contact-info li span {
  display: block;
  font-size: 0.9em;
  color: #94a3b8;
  line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: center;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.payment-methods i {
  font-size: 1.5rem;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.payment-methods i:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Footer Links Bottom */
.footer-links-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
}

.footer-links-bottom a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0 5px;
}

.footer-links-bottom a:hover {
  color: var(--color-primary);
}

.divider {
  color: #475569;
  user-select: none;
}

/* Footer Credits */
.footer-credits {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credits p {
  margin: 0;
  color: #64748b;
}

.footer-credits a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-credits a:hover {
  color: #8e44ad;
  text-decoration: underline;
}

.footer-credits i {
  color: #e74c3c;
  margin: 0 5px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-widget h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }

  .contact-info li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .payment-methods {
    justify-content: center;
  }

  .footer-links-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .divider {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-widget {
    padding: 0 5px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .contact-info li {
    font-size: 0.9rem;
  }

  .footer-bottom p,
  .footer-links-bottom a {
    font-size: 0.85rem;
  }
}

.footer-links ul,
.footer-categories ul,
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-categories li {
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.footer-links li:hover,
.footer-categories li:hover {
  transform: translateX(-5px);
}

.footer-links a,
.footer-categories a {
  color: #b3b3b3;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 6px 0;
  position: relative;
  font-size: 0.95em;
}

.footer-links a::before,
.footer-categories a::before {
  content: "→";
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #8e44ad;
}

.footer-links a:hover,
.footer-categories a:hover {
  color: #fff;
  padding-right: 25px;
}

.footer-links a:hover::before,
.footer-categories a:hover::before {
  right: -15px;
  opacity: 1;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  color: #b3b3b3;
  line-height: 1.7;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.contact-info li:hover {
  color: #fff;
  transform: translateX(-5px);
}

.contact-info i {
  margin-left: 12px;
  color: #8e44ad;
  width: 22px;
  text-align: center;
  margin-top: 4px;
  font-size: 16px;
}

.footer-bottom {
  background-color: #111;
  padding: 25px 0;
  margin-top: 70px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8e44ad, transparent);
}

.footer-bottom p {
  color: #b3b3b3;
  margin: 0 0 15px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.payment-methods i {
  font-size: 28px;
  color: #b3b3b3;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-methods i:hover {
  color: #8e44ad;
  transform: translateY(-3px);
  background: rgba(142, 68, 173, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-about,
  .footer-links,
  .footer-categories,
  .footer-contact {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  .footer-about h3::after,
  .footer-links h3::after,
  .footer-categories h3::after,
  .footer-contact h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-links ul,
  .footer-categories ul {
    display: inline-block;
    text-align: center;
  }

  .footer-links a,
  .footer-categories a {
    padding: 8px 0;
  }

  .contact-info {
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-bottom {
    padding: 20px 15px;
    margin-top: 50px;
  }

  .payment-methods i {
    font-size: 24px;
  }
}

/* ========= Newsletter Section ========= */
.newsletter {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a78b4a 100%);
  padding: 60px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary-en);
}

.newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.newsletter .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-content h2 {
  font-size: 2.5rem;
  font-family: var(--font-heading-en);
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 15px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-primary);
  font-size: 1rem;
  font-family: var(--font-primary-en);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form input[type="email"]::placeholder {
  color: #9aa0a6;
  opacity: 0.8;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(193, 164, 95, 0.3);
}

.subscribe-btn {
  height: 56px;
  padding: 0 30px;
  border: none;
  border-radius: 50px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.subscribe-btn:hover {
  background: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.subscribe-btn:active {
  transform: translateY(0);
}

/* ========= Main Footer ========= */
.main-footer {
  color: var(--color-footer-text);
  padding: 80px 0 0;
  position: relative;
  font-family: var(--font-primary-en);
  background: linear-gradient(
    135deg,
    var(--color-footer-bg) 0%,
    var(--color-footer-bg-mid) 50%,
    var(--color-footer-bg-end) 100%
  );
  overflow: hidden;
}

/* Wave decoration at the top of footer */
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.footer-wave path {
  fill: var(--color-background);
  transition: fill 0.3s ease;
}
/* Improve main container performance */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  columns: 4;
  gap: 40px;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .footer-container {
    columns: 2;
  }
}
@media (max-width: 480px) {
  .footer-container {
    columns: 1;
  }
}
/* Footer heading styles */
.footer-widget h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--color-primary);
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-footer-text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-right: 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  right: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-right: 10px;
}

.footer-links a:hover::after {
  width: 8px;
}

/* Contact information */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--color-footer-text-light);
  line-height: 1.6;
}

.contact-info i {
  margin-left: 12px;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer bottom section */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 60px;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  color: var(--color-footer-text-light);
  font-size: 0.9rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--color-footer-text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-widget h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    margin-top: 15px;
  }

  .footer-links a:hover {
    padding-right: 0;
  }
}

/* Newsletter section improvements */
.footer-top {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 30px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--color-newsletter-bg) 0%,
    var(--color-newsletter-bg-end) 100%
  );
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer-newsletter::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 100%;
  background: var(--color-newsletter-bg);
  z-index: -1;
  pointer-events: none;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-3deg);
  top: -3px;
  left: -5px;
  opacity: 0.7;
}

.footer-newsletter::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 100%;
  background: var(--color-newsletter-bg-end);
  z-index: -1;
  pointer-events: none;
  border-radius: 20px;
  transform: rotate(3deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  top: -3px;
  right: -5px;
  opacity: 0.7;
}

.footer-newsletter:hover::before {
  transform: rotate(-4deg) scale(1.02);
  opacity: 0.8;
}

.footer-newsletter:hover::after {
  transform: rotate(4deg) scale(1.02);
  opacity: 0.8;
}

.footer-newsletter h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
}
.footer-newsletter p {
  font-family: var(--font-primary-en);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.footer-newsletter input[type="email"] {
  width: 100%;
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  border: none;
  margin: 0 !important;
}
.btn-subscribe {
  width: 100%;
  padding: 11px;
  border-radius: 50px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-subscribe:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a78b4a 100%);
}
.footer-middle {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}
.footer-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 30px;
}
.footer-logo {
  width: 100px;
  height: 100px;
}
.footer-widget img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.footer-about {
  font-family: var(--font-primary-en);
  font-weight: 500;
  font-size: 1rem;
}

.creator-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
