:root {
  --primary: #0d1925; /* Base dark color */
  --primary-dark: #0d1925; /* A darker shade for primary-dark */
  --white: #ffffff;
  --accent: #2ecc71;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --radius: 10px;
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Base Navigation */
.modern-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
  padding: 0 15px;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  animation: navEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navEnter {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 20px;
}

/* Phone Link */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  height: 46px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.contact-btn:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover .phone-icon {
  fill: var(--primary-dark);
  animation: phoneRing 0.8s ease;
}

.phone-icon {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: var(--transition);
}

.pulse-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.8;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Discount Banner */
.discount-banner {
  flex: 1;
  max-width: 500px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.discount-messages {
  position: relative;
  height: 40px;
  width: 100%;
  text-align: center;
}

.discount-message {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--white);
  text-shadow: var(--text-shadow);
  opacity: 0;
  transform: translateY(20px) rotateX(90deg);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 1.15rem;
  padding: 5px 0;
  will-change: transform, opacity;
}

.discount-message.active {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.discount-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: ribbonFlow 3s infinite;
}

@keyframes ribbonFlow {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Social Buttons */
.social-container {
  display: flex;
  gap: 15px;
  position: relative;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
  width: 25px;
  height: 25px;
  transition: var(--transition);
}

.social-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Instagram specific hover */
.social-btn:first-child:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.facebook:hover {
  background-color: #285aeb;
}

/* Facebook specific hover */
.social-btn:last-child:hover {
  background-color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .discount-banner {
    display: none;
  }

  .nav-content {
    justify-content: space-between;
    gap: 10px;
    height: 60px;
  }

  .contact-btn {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }
}
.phone-icon {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: all 0.3s ease;
  transform-origin: center bottom;
}

.contact-btn:hover .phone-icon {
  animation: phoneRing 0.8s ease;
}

@keyframes phoneRing {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  15% {
    transform: rotate(15deg) scale(1.1);
  }
  30% {
    transform: rotate(-15deg) scale(1.1);
  }
  45% {
    transform: rotate(10deg) scale(1.05);
  }
  60% {
    transform: rotate(-10deg) scale(1.05);
  }
  75% {
    transform: rotate(5deg) scale(1.02);
  }
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
}

.spinner {
  width: 200px;
  height: 200px;
  border: 8px solid #d1d5db; /* Gray border */
  border-top-color: #3b82f6; /* Blue top border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 2s linear infinite;
}

.spinner-icon {
  animation: ping 1s infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  } /* Grows 20% bigger */
  100% {
    transform: scale(1);
  }
}

.pulsing-img {
  width: 130px;
  height: 130px;
  position: absolute;
  border-radius: 100px;
  animation: pulse 2s infinite ease-in-out;
}

.phone-text {
  color: white !important;
}
.contact-btn:hover .phone-text {
  color: var(--primary-dark) !important;
}

@media only screen and (max-width: 999px) {
  .modern-nav {
    margin-bottom: 10px;
  }
}
