/* Custom styles for ServerElite landing page */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Parallax background effect */
.parallax-bg {
  background-attachment: fixed;
  transform: translateZ(0);
  will-change: transform;
}

.parallax-hero {
  transform: scale(1.1);
  will-change: transform;
  transition: filter 0.5s ease-out;
}

/* Gradient text */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #3b82f6, #10b981);
}

/* Custom animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
  position: relative;
}

.pulse:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulse 2s infinite;
}

/* Glow effect */
.glow-on-hover:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* Glass morphism effect */
.glass {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* Responsive font sizes */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem !important;
  }
  h2 {
    font-size: 1.8rem !important;
  }
}

/* Blur effect on hover */
.hover-blur:hover {
  filter: blur(0);
  transform: scale(1.05);
}

/* Particles container */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Floating animation for decorative elements */
.float {
  animation: floating 6s ease-in-out infinite;
}

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

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Fallback styling for browsers that don't support backdrop-blur */
@supports not (backdrop-filter: blur(8px)) {
  .backdrop-blur-lg,
  .backdrop-blur-xl,
  .backdrop-blur-sm {
    background-color: rgba(15, 23, 42, 0.95) !important;
  }
}

/* Modal styling */
.modal-content {
  transition: all 0.3s ease-out;
}

/* Tailwind doesn't have default prose styling for dark mode, so we add some here */
.prose-invert {
  color: #e2e8f0;
}

.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4 {
  color: white;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose-invert h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.25rem;
}

.prose-invert p {
  margin-bottom: 1.25em;
  line-height: 1.6;
}

.prose-invert ul {
  margin-top: 0.5em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose-invert li {
  margin-top: 0.375em;
  margin-bottom: 0.375em;
  line-height: 1.6;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .parallax-hero,
  .parallax-bg {
    background-attachment: scroll;
  }

  .pulse:after {
    animation: none;
  }
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Improve form field focus state visibility */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

/* Make the testimonial quotes look better */
@media (min-width: 768px) {
  [id="testimonials"] .grid > div:nth-child(2) {
    transform: translateY(2rem);
  }

  [id="testimonials"] .grid > div:nth-child(3) {
    transform: translateY(1rem);
  }
}

/* Improve accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .bg-gradient-to-br,
  .bg-slate-900,
  .bg-slate-800 {
    background: white !important;
  }

  body,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
  }

  nav,
  footer,
  button,
  [id="contact"] {
    display: none !important;
  }
}
