/* Common Styles for Activiews Website */

/* Font Family */
.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;
}

/* Pulse Green Animation */
@keyframes pulse-green {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

.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%;
}

/* Enhanced Pulse Green Animation (for index.html) */
.pulse-green-animation.enhanced {
  animation: pulse-green 3s ease-in-out infinite, gradient-shift 4s ease infinite, glow-pulse 2s ease-in-out infinite;
  padding: 4px;
  background: linear-gradient(45deg, #C1E3A0, #A8D88C, #8FCD78, #76C264, #5DB750, #C1E3A0);
  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-green-animation.enhanced::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #C1E3A0, #A8D88C, #8FCD78, #76C264, #5DB750, #C1E3A0);
  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-green-animation.enhanced: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-green-animation.enhanced:hover::before {
  background: linear-gradient(45deg, #9BC53D, #7CB342, #5D8C46, #4CAF50, #388E3C, #9BC53D);
  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;
}

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

/* Glow Effects */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(193, 227, 160, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(193, 227, 160, 0.7), 0 0 60px rgba(168, 216, 140, 0.5);
  }
}

@keyframes glow-pulse-hover {
  0%, 100% {
    box-shadow: 0 0 25px rgba(155, 197, 61, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(155, 197, 61, 0.8), 0 0 70px rgba(124, 179, 66, 0.6);
  }
}

/* Gradient Animations */
@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%;
  }
}

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

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

/* 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 Effect */
.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: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: white;
  transform: scale(1.1);
}

/* Close Modal Button (for index.html) */
.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);
}

/* Hero Map Background */
.hero-map-background {
  position: relative;
  overflow: hidden;
}

.hero-map-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1), rgba(4, 120, 87, 0.1));
  animation: map-color-shift 15s ease-in-out infinite;
}

@keyframes map-color-shift {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

.hero-map-background > * {
  position: relative;
  z-index: 1;
}

/* Enhanced Hero Map Background Pattern (for index.html) */
.hero-map-background.enhanced {
  background-image: 
    linear-gradient(rgba(193, 227, 160, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 227, 160, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(193, 227, 160, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(193, 227, 160, 0.18) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.hero-map-background.enhanced::before {
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(193, 227, 160, 0.12) 2px,
      rgba(193, 227, 160, 0.12) 4px
    );
  pointer-events: none;
  z-index: 0;
}

.hero-map-background.enhanced.enhanced::before {
  animation: map-color-shift-enhanced 15s ease-in-out infinite;
}

@keyframes map-color-shift-enhanced {
  0%, 100% {
    background-image: 
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(193, 227, 160, 0.12) 2px,
        rgba(193, 227, 160, 0.12) 4px
      );
  }
  33% {
    background-image: 
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(175, 215, 140, 0.15) 2px,
        rgba(175, 215, 140, 0.15) 4px
      );
  }
  66% {
    background-image: 
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(210, 235, 180, 0.14) 2px,
        rgba(210, 235, 180, 0.14) 4px
      );
  }
}
