/* CarGPT Website Styles */

/* Font Family */
@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&display=swap');

/* Base Typography */
.asap-navbar-logo {
  font-family: "Asap", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
  font-family: "Asap", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Animations */
@keyframes pulse-green {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes pulse-green-hover {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradient-shift-hover {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-gradient-hover {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(147, 197, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 197, 253, 0.7), 0 0 60px rgba(96, 165, 250, 0.5);
  }
}

@keyframes glow-pulse-hover {
  0%, 100% {
    box-shadow: 0 0 25px rgba(30, 64, 175, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(30, 64, 175, 0.8), 0 0 70px rgba(30, 58, 138, 0.6);
  }
}

/* Blue Pulse Animation (Main Page) */
.pulse-blue-animation {
  animation: pulse-green 3s ease-in-out infinite, gradient-shift 4s ease infinite, glow-pulse 2s ease-in-out infinite;
  border-radius: 8px;
  padding: 4px;
  background: linear-gradient(45deg, #93C5FD, #60A5FA, #3B82F6, #2563EB, #1D4ED8, #93C5FD);
  background-size: 300% 300%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease-in-out, box-shadow 0.5s ease-in-out, background 0.6s ease-in-out;
}

.pulse-blue-animation::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #93C5FD, #60A5FA, #3B82F6, #2563EB, #1D4ED8, #93C5FD);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite, rotate-gradient 8s linear infinite;
  border-radius: 10px;
  z-index: -1;
  opacity: 0.8;
  transition: all 0.4s ease-in-out, background 0.6s ease-in-out, opacity 0.4s ease-in-out;
}

.pulse-blue-animation:hover {
  animation: pulse-green-hover 2s ease-in-out infinite, gradient-shift-hover 2s ease infinite, glow-pulse-hover 1.5s ease-in-out infinite;
  transition: all 0.4s ease-in-out, box-shadow 0.5s ease-in-out, background 0.6s ease-in-out;
}

.pulse-blue-animation:hover::before {
  background: linear-gradient(45deg, #1E40AF, #1E3A8A, #1E3A8A, #1E40AF, #1E3A8A, #1E40AF);
  background-size: 300% 300%;
  animation: gradient-shift-hover 2s ease infinite, rotate-gradient-hover 6s linear infinite;
  opacity: 1;
  transition: all 0.4s ease-in-out, background 0.6s ease-in-out, opacity 0.4s ease-in-out;
}

/* Green Pulse Animation (Other Pages) */
.pulse-green-animation {
  animation: pulse-green 2s ease-in-out infinite, gradient-shift 3s ease infinite;
  border-radius: 8px;
  padding: 3px;
  background: linear-gradient(45deg, #10b981, #34d399, #059669, #22d3ee, #047857);
  background-size: 200% 200%;
}

/* Moving Green Gradient */
.moving-green-gradient {
  background: linear-gradient(45deg, #10b981, #059669, #047857, #065f46, #064e3b);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
}

/* Phone Mockup Hover Effects */
.phone-mockup-hover {
  transition: transform 0.3s ease-in-out;
}

.phone-mockup-hover:hover {
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-image {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 12px;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: -20px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: rgb(157, 156, 156);
}
