/* Starry background */
.stars-small, .stars-medium, .stars-large {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars-small {
  background: radial-gradient(1px 1px at 20px 30px, white, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 40px 70px, white, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 50px 160px, white, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 90px 40px, white, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 130px 80px, white, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 160px 120px, white, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.stars-medium {
  background: radial-gradient(1.5px 1.5px at 50px 160px, white, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 90px 40px, white, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 130px 80px, white, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 160px 120px, white, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars-large {
  background: radial-gradient(2px 2px at 100px 50px, white, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 200px 150px, white, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 300px 250px, white, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 400px 350px, white, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 500px 500px;
  animation: twinkle 9s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Enhanced animations for cosmic effects */
.animate-twinkle-slow {
  animation: twinkle 5s ease-in-out infinite alternate;
}

.animate-twinkle-medium {
  animation: twinkle 7s ease-in-out infinite alternate;
}

.animate-twinkle-fast {
  animation: twinkle 9s ease-in-out infinite alternate;
}

.animate-float-slow {
  animation: float 15s ease-in-out infinite alternate;
}

.animate-float-medium {
  animation: float 10s ease-in-out infinite alternate;
}

.animate-float-fast {
  animation: float 7s ease-in-out infinite alternate;
}

.animate-pulse-slow {
  animation: pulse 5s ease-in-out infinite;
}

.animate-pulse-medium {
  animation: pulse 3s ease-in-out infinite;
}

.animate-pulse-fast {
  animation: pulse 1.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin 20s linear infinite;
}

.animate-bounce-small {
  animation: bounce-small 1s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(5px);
  }
  100% {
    transform: translateY(5px) translateX(-5px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce-small {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Shooting star animation */
.shooting-star {
  position: absolute;
  width: 150px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shooting-star 5s linear infinite;
  opacity: 0;
  top: 20%;
  left: -10%;
  transform: rotate(15deg);
}

.delay-3s {
  animation-delay: 3s;
  top: 40%;
  left: 30%;
  transform: rotate(-20deg);
}

.delay-6s {
  animation-delay: 6s;
  top: 60%;
  left: 50%;
  transform: rotate(30deg);
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(15deg);
  }
  10%, 15% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    transform: translateX(300px) translateY(100px) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateX(300px) translateY(100px) rotate(15deg);
  }
}

/* Character cards */
.character-card {
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-10px);
}

.character-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

/* Add fade effect to all character images */
.character-image-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px; /* Increased height of the fade effect for taller images */
  background: linear-gradient(to bottom, rgba(30, 27, 75, 0), rgba(30, 27, 75, 1));
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 5;
}

/* Neon effects - reduced shadow for better readability */
.neon-text {
  color: white;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.neon-text-pink {
  color: #ff80ff;
  text-shadow: 0 0 1px rgba(255, 0, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 0, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 0, 255, 0.5));
}

.neon-text-purple {
  color: #bb80ff;
  text-shadow: 0 0 1px rgba(153, 0, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(153, 0, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(153, 0, 255, 0.5));
}

.neon-text-blue {
  color: #80ffff;
  text-shadow: 0 0 1px rgba(0, 255, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(0, 255, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(0, 255, 255, 0.5));
}

.neon-text-orange {
  color: #ffb380;
  text-shadow: 0 0 1px rgba(255, 128, 0, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 128, 0, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 128, 0, 0.5));
}

/* Character placeholders */
.character-placeholder {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.grandmother-placeholder {
  position: relative;
}

.grandmother-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(106, 61, 93, 0.2), rgba(138, 90, 131, 0.2));
  opacity: 0.5;
}

/* Style for the actual image in the character cards */
.character-placeholder img {
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}

.philosopher-placeholder {
  background: linear-gradient(45deg, #3d5d6a, #5a83a8);
  position: relative;
}

.philosopher-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23c0d8d8'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23c0d8d8'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.clever-placeholder {
  background: linear-gradient(45deg, #3d6a5d, #5aa883);
  position: relative;
}

.clever-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23c0d8d0'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23c0d8d0'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.oracle-placeholder {
  background: linear-gradient(45deg, #6a3d3d, #a85a5a);
  position: relative;
}

.oracle-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23d8c0c0'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23d8c0c0'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

/* Reduced neon border effects for better readability */
.neon-border-pink {
  box-shadow: 0 0 3px #ff80ff,
              0 0 5px rgba(255, 0, 255, 0.3);
  border: 1px solid #ff80ff;
}

.neon-border-purple {
  box-shadow: 0 0 3px #bb80ff,
              0 0 5px rgba(153, 0, 255, 0.3);
  border: 1px solid #bb80ff;
}

.neon-border-blue {
  box-shadow: 0 0 3px #80ffff,
              0 0 5px rgba(0, 255, 255, 0.3);
  border: 1px solid #80ffff;
}

.neon-border-orange {
  box-shadow: 0 0 3px #ffb380,
              0 0 5px rgba(255, 128, 0, 0.3);
  border: 1px solid #ffb380;
}

/* Palmistry form styles */
.palmistry-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(153, 0, 255, 0.5);
}

/* Make date inputs more user-friendly */
input[type="date"] {
  position: relative;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Also apply to time inputs */
input[type="time"] {
  position: relative;
  cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.submit-button {
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Hand outline placeholder */
.hand-placeholder-container {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 8px;
  overflow: hidden;
  border: 2px dashed rgba(153, 0, 255, 0.5);
}

.hand-outline-placeholder {
  width: 150px;
  height: 150px;
  background-image: url("palm.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Palm image preview */
.palm-preview {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.hidden {
  display: none;
}

/* Palmistry link button */
.palmistry-link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.palmistry-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(153, 0, 255, 0.7);
}

.palmistry-link:active {
  transform: translateY(-1px);
}

/* Guide info styles */
.guide-info {
  background-color: rgba(30, 27, 75, 0.7);
  display: inline-block;
  transition: all 0.3s ease;
}

/* Hand placeholder border colors */
.hand-placeholder-container.border-pink-500 {
  border: 2px dashed rgba(236, 72, 153, 0.5);
}

.hand-placeholder-container.border-purple-500 {
  border: 2px dashed rgba(153, 0, 255, 0.5);
}

.hand-placeholder-container.border-blue-500 {
  border: 2px dashed rgba(0, 255, 255, 0.5);
}

/* Guide-specific hand outlines - using the same image for all guides as requested */
.hand-placeholder-container.border-pink-500 .hand-outline-placeholder,
.hand-placeholder-container.border-purple-500 .hand-outline-placeholder,
.hand-placeholder-container.border-blue-500 .hand-outline-placeholder {
  background-image: url("palm.png");
}

/* Services page styles */
.service-card {
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: block;
  text-decoration: none;
  min-height: 200px;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  text-decoration: none;
}

.service-icon-container {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Astrology icon placeholder */
.astrology-icon-placeholder {
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Guide-specific astrology icons */
.hand-placeholder-container.border-pink-500 + div .astrology-icon-placeholder,
.service-card.neon-border-pink .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(236, 72, 153, 0.7)'/%3E%3C/svg%3E");
}

.hand-placeholder-container.border-purple-500 + div .astrology-icon-placeholder,
.service-card.neon-border-purple .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3C/svg%3E");
}

.hand-placeholder-container.border-blue-500 + div .astrology-icon-placeholder,
.service-card.neon-border-blue .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(0, 255, 255, 0.7)'/%3E%3C/svg%3E");
}

/* Astrology page styles */
.astrology-container {
  max-width: 800px;
  margin: 0 auto;
}

.astrology-placeholder {
  background-color: rgba(30, 27, 75, 0.5);
  border-radius: 8px;
}

/* Astrology form styles */
.astrology-form-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Zodiac sign selection styles */
.zodiac-option {
  position: relative;
}

.zodiac-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(30, 27, 75, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.zodiac-label:hover {
  transform: translateY(-3px);
}

.zodiac-icon {
  font-size: 24px;
  margin-bottom: 5px;
  color: white;
}

.zodiac-name {
  font-size: 12px;
  color: white;
}

/* Guide-specific zodiac styles */
.zodiac-pink {
  border-color: rgba(236, 72, 153, 0.3);
}

.zodiac-pink:hover {
  background-color: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.5);
}

input[type="radio"]:checked + .zodiac-pink {
  background-color: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 3px rgba(236, 72, 153, 0.5);
}

.zodiac-purple {
  border-color: rgba(153, 0, 255, 0.3);
}

.zodiac-purple:hover {
  background-color: rgba(153, 0, 255, 0.1);
  border-color: rgba(153, 0, 255, 0.5);
}

input[type="radio"]:checked + .zodiac-purple {
  background-color: rgba(153, 0, 255, 0.2);
  border-color: rgba(153, 0, 255, 0.7);
  box-shadow: 0 0 3px rgba(153, 0, 255, 0.5);
}

.zodiac-blue {
  border-color: rgba(0, 255, 255, 0.3);
}

.zodiac-blue:hover {
  background-color: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
}

input[type="radio"]:checked + .zodiac-blue {
  background-color: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.7);
  box-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

.zodiac-orange {
  border-color: rgba(255, 128, 0, 0.3);
}

.zodiac-orange:hover {
  background-color: rgba(255, 128, 0, 0.1);
  border-color: rgba(255, 128, 0, 0.5);
}

input[type="radio"]:checked + .zodiac-orange {
  background-color: rgba(255, 128, 0, 0.2);
  border-color: rgba(255, 128, 0, 0.7);
  box-shadow: 0 0 3px rgba(255, 128, 0, 0.5);
}

/* Selected zodiac styles for Stimulus controller */
.zodiac-label.selected {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(153, 0, 255, 0.7);
}

.zodiac-pink.selected {
  background-color: rgba(236, 72, 153, 0.3) !important;
  border-color: rgba(236, 72, 153, 0.8);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
}

.zodiac-purple.selected {
  background-color: rgba(153, 0, 255, 0.3) !important;
  border-color: rgba(153, 0, 255, 0.8);
  box-shadow: 0 0 10px rgba(153, 0, 255, 0.7);
}

.zodiac-blue.selected {
  background-color: rgba(0, 255, 255, 0.3) !important;
  border-color: rgba(0, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.zodiac-orange.selected {
  background-color: rgba(255, 128, 0, 0.3) !important;
  border-color: rgba(255, 128, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 128, 0, 0.7);
}

/* Navbar styles */
.navbar-logo {
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  background-color: rgba(30, 27, 75, 0.95);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Markdown content styles */
.markdown-content {
  color: white;
  line-height: 1.6;
}

.markdown-content h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-bottom: 0.75rem;
}

.markdown-content strong {
  font-weight: bold;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content ul, .markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

.markdown-content blockquote {
  border-left: 4px solid;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid;
  margin: 1rem 0;
}

.markdown-content a {
  text-decoration: underline;
}

/* Guide-specific markdown styles */
.markdown-purple h1 {
  color: #bb80ff;
}

.markdown-purple h2 {
  color: #c99aff;
}

.markdown-purple h3 {
  color: #d7b5ff;
}

.markdown-purple strong {
  color: #c99aff;
}

.markdown-purple em {
  color: #d7b5ff;
}

.markdown-purple blockquote {
  border-color: #bb80ff;
}

.markdown-purple hr {
  border-color: #bb80ff;
}

.markdown-blue h1 {
  color: #80ffff;
}

.markdown-blue h2 {
  color: #9affff;
}

.markdown-blue h3 {
  color: #b5ffff;
}

.markdown-blue strong {
  color: #9affff;
}

.markdown-blue em {
  color: #b5ffff;
}

.markdown-blue blockquote {
  border-color: #80ffff;
}

.markdown-blue hr {
  border-color: #80ffff;
}

.markdown-orange h1 {
  color: #ffb380;
}

.markdown-orange h2 {
  color: #ffc299;
}

.markdown-orange h3 {
  color: #ffd1b3;
}

.markdown-orange strong {
  color: #ffc299;
}

.markdown-orange em {
  color: #ffd1b3;
}

.markdown-orange blockquote {
  border-color: #ffb380;
}

.markdown-orange hr {
  border-color: #ffb380;
}

/* First letter styling for markdown content */
.markdown-purple p:first-of-type::first-letter {
  color: #bb80ff;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}

/* Custom utility class to hide elements only on mobile screens */
@media (max-width: 1024px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* New animations for enhanced select service page */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 3s ease infinite;
}

.stagger-animation > * {
  animation: stagger-in 0.8s ease-out both;
}

.stagger-animation > *:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-animation > *:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-animation > *:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-animation > *:nth-child(4) {
  animation-delay: 0.4s;
}

/* Mobile responsive grid adjustments */
@media (max-width: 768px) {
  .service-card {
    min-height: 160px;
  }
  
  .service-card .service-icon div {
    width: 4rem !important;
    height: 4rem !important;
  }
  
  .service-card .service-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  
  .service-name {
    font-size: 1.125rem !important;
  }
}

/* Enhanced service card animations */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Improved neon effects with smoother transitions */
.neon-border-purple {
  box-shadow: 0 0 5px #bb80ff,
              0 0 10px rgba(153, 0, 255, 0.4),
              0 0 20px rgba(153, 0, 255, 0.2);
  border: 2px solid #bb80ff;
  transition: all 0.3s ease;
}

.neon-border-purple:hover {
  box-shadow: 0 0 10px #bb80ff,
              0 0 20px rgba(153, 0, 255, 0.6),
              0 0 40px rgba(153, 0, 255, 0.3);
}

.neon-border-blue {
  box-shadow: 0 0 5px #80ffff,
              0 0 10px rgba(0, 255, 255, 0.4),
              0 0 20px rgba(0, 255, 255, 0.2);
  border: 2px solid #80ffff;
  transition: all 0.3s ease;
}

.neon-border-blue:hover {
  box-shadow: 0 0 10px #80ffff,
              0 0 20px rgba(0, 255, 255, 0.6),
              0 0 40px rgba(0, 255, 255, 0.3);
}

.neon-border-pink {
  box-shadow: 0 0 5px #ff80ff,
              0 0 10px rgba(255, 0, 255, 0.4),
              0 0 20px rgba(255, 0, 255, 0.2);
  border: 2px solid #ff80ff;
  transition: all 0.3s ease;
}

.neon-border-pink:hover {
  box-shadow: 0 0 10px #ff80ff,
              0 0 20px rgba(255, 0, 255, 0.6),
              0 0 40px rgba(255, 0, 255, 0.3);
}

.neon-border-orange {
  box-shadow: 0 0 5px #ffb380,
              0 0 10px rgba(255, 128, 0, 0.4),
              0 0 20px rgba(255, 128, 0, 0.2);
  border: 2px solid #ffb380;
  transition: all 0.3s ease;
}

.neon-border-orange:hover {
  box-shadow: 0 0 10px #ffb380,
              0 0 20px rgba(255, 128, 0, 0.6),
              0 0 40px rgba(255, 128, 0, 0.3);
}

.markdown-blue p:first-of-type::first-letter {
  color: #80ffff;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}

.markdown-orange p:first-of-type::first-letter {
  color: #ffb380;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}
