/*
 * Professional Footer CSS
 * Modern Design with Contact Information
 */

.professional-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--neutral-white);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

/* Footer Column */
.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
  color: var(--neutral-white);
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-links a:hover {
  color: var(--neutral-white);
  transform: translateX(5px);
}

.footer-links a i {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

/* Contact Info */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-info li i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

.contact-info li div {
  flex: 1;
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--neutral-white);
}

.contact-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-circle);
  color: var(--neutral-white);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--neutral-white);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #c08c24;
  transform: translateY(-5px);
}

/* Decorative Elements */
.footer-decorative {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(214, 158, 46, 0.05);
  border-radius: var(--radius-circle);
  z-index: 1;
}

.footer-decorative:nth-child(1) {
  top: 5%;
  right: 5%;
}

.footer-decorative:nth-child(2) {
  bottom: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .professional-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .social-links {
    justify-content: center;
  }

  .footer-column.text-center {
    text-align: center;
  }

  .footer-column.text-center h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Fixed Contact Buttons - Enhanced Design */
.fixed-contact-buttons {
  position: fixed;
  left: 25px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fixed-whatsapp,
.fixed-call {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

/* WhatsApp Button */
.fixed-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: floatWhatsapp 3s ease-in-out infinite;
}

.fixed-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.fixed-whatsapp:hover::before {
  width: 100%;
  height: 100%;
}

.fixed-whatsapp:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.fixed-whatsapp i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Call Button */
.fixed-call {
  background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
  animation: floatCall 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.fixed-call::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.fixed-call:hover::before {
  width: 100%;
  height: 100%;
}

.fixed-call:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(0, 136, 204, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.fixed-call i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: ring 2s ease-in-out infinite;
}

/* Tooltip on Hover */
.fixed-whatsapp::after {
  content: 'واتساب';
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fixed-whatsapp:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.fixed-call::after {
  content: 'اتصل بنا';
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fixed-call:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Float Animations */
@keyframes floatWhatsapp {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatCall {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Ring Animation for Phone Icon */
@keyframes ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-15deg);
  }

  20%,
  40% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

/* Responsive adjustments for fixed buttons */
@media (max-width: 768px) {
  .fixed-contact-buttons {
    left: 15px;
    bottom: 80px;
    gap: 15px;
  }

  .fixed-whatsapp,
  .fixed-call {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .fixed-whatsapp::after,
  .fixed-call::after {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  .fixed-contact-buttons {
    left: 12px;
    bottom: 70px;
    gap: 12px;
  }

  .fixed-whatsapp,
  .fixed-call {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    border-width: 2px;
  }

  /* Hide tooltips on mobile */
  .fixed-whatsapp::after,
  .fixed-call::after {
    display: none;
  }
}