/* Parallax Style Enhancements for Existing Design */

/* Override existing home banner styles for parallax */
.home_banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make sure parallax sections maintain proper styling */
.parallax-section.home_banner {
  background: none !important;
}

/* Enhance existing pricing boxes with modern effects */
.pricing_box {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.pricing_box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Make service boxes more interactive */
.s_box {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.s_box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Enhance services boxes flip effect */
.services_boxs {
  transition: all 0.3s ease;
}

.services_boxs:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Make best services section more prominent */
.best_services {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Newsletter section enhancement */
.newsletter {
  position: relative;
  z-index: 10;
}

/* Smooth transitions for all sections */
section {
  position: relative;
  transition: opacity 0.3s ease;
}

/* Add glass morphism to cards in Why Choose section */
.right_icon_box {
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.right_icon_box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Enhance datacenter section */
#dedicatedintro {
  position: relative;
  padding: 80px 0;
}

/* Add subtle animations to location pins */
.location-pin {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Enhance form inputs with modern styling */
.banner_search input[type="text"] {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.banner_search input[type="text"]:focus {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* Button hover enhancements */
.btn_primary,
.btn_secondry {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn_primary:hover,
.btn_secondry:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn_primary::before,
.btn_secondry::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn_primary:hover::before,
.btn_secondry:hover::before {
  width: 300px;
  height: 300px;
}

/* Promo list enhancement */
.promo_list li strong {
  transition: all 0.3s ease;
  display: block;
}

.promo_list li:hover strong {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer animation */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  animation: footerLine 3s linear infinite;
}

@keyframes footerLine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Loading animation for page */
body.parallax-loaded {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .parallax-section {
    min-height: 70vh;
  }
  
  .parallax-bg {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .parallax-title {
    font-size: 2rem !important;
  }
  
  .parallax-section {
    min-height: 60vh;
  }
  
  .parallax-content {
    padding: 40px 15px;
  }
}

/* Prevent horizontal scroll */
body {
  /* `clip`, not `hidden`: an axis set to `hidden` turns the body into a scroll
     container and computes the other axis to `auto`, which makes every
     `position: sticky` descendant resolve against a scrollport that never
     scrolls — the sticky site header stops sticking. `clip` clips exactly the
     same way without creating that scroll container. */
  overflow-x: clip;
  overflow-y: visible;
}

/* Smooth color transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add depth to images */
img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Enhance heading animations */
.heading h2 {
  position: relative;
  display: inline-block;
}

.heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

.heading:hover h2::after {
  width: 100%;
}

/* Icon animations */
.fa {
  transition: all 0.3s ease;
}

.right_icon_box:hover .fa,
.s_box:hover .fa,
.services_boxs:hover .fa {
  transform: scale(1.1) rotate(5deg);
}

/* Link hover effects */
a {
  transition: all 0.3s ease;
}

/* Backdrop blur support check */
@supports not (backdrop-filter: blur(10px)) {
  .glass-effect,
  .parallax-card {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* High-performance rendering */
.parallax-bg,
.parallax-overlay,
.parallax-particles {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Disable parallax on mobile for performance */
@media (max-width: 768px) {
  .parallax-bg {
    transform: none !important;
    background-attachment: scroll !important;
  }
  
  [data-parallax-image] {
    transform: none !important;
  }
}
