/* Custom Styles for FASTECH Website */

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

/* Utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation for hover effects */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Custom styling for testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  color: rgba(3, 176, 240, 0.1);
  z-index: 1;
}

/* Custom hero section background */
.hero-pattern {
  background-color: #f7f9fc;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f4c81' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom image hover effect */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

/* Work In Progress Overlay */
.wip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 95, 134, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem;
  text-align: center;
}

.wip-overlay h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.wip-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.wip-overlay .btn {
  background-color: #03B0F0;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.wip-overlay .btn:hover {
  background-color: #0070A0;
}

.wip-overlay .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #00D6A3;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

.whatsapp-float i {
  margin-top: 0;
}

/* Pulse animation for WhatsApp button */
.whatsapp-pulse {
  animation: whatsapp-pulse 1.5s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Custom button styles */
.btn-gradient {
  background: linear-gradient(45deg, #0f4c81, #4a90e2);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(45deg, #4a90e2, #0f4c81);
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.2);
}

/* Navbar adjustments */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-nav.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Make responsive images */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom hover underline animation for navigation links */
.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0f4c81;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Custom box shadow for cards */
.custom-shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.custom-shadow:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Hover up animation */
.hover-up {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Mobile menu animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-slide-down {
  animation: slideDown 0.3s ease forwards;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease forwards;
}

/* Floating animation for elements */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

/* Slow floating animation variant */
.floating-slow {
  animation: float 5s ease-in-out infinite;
}

/* Fast floating animation variant */
.floating-fast {
  animation: float 2s ease-in-out infinite;
}

/* Subtle pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Fade in animation for page elements */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced navbar transition */
header {
  transition: all 0.3s ease;
}

.navbar-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Image parallax effect */
.img-parallax {
  transition: transform 0.5s ease;
}

.img-parallax:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fade in from bottom */
.fade-in {
  transform: translateY(30px);
}
.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left */
.fade-in-left {
  transform: translateX(-50px);
}
.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
  transform: translateX(50px);
}
.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.scale-in {
  transform: scale(0.8);
}
.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Typing animation */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Stagger animation container */
.stagger-container {
  overflow: hidden;
}

/* Stagger animation items */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Background parallax effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

/* Smooth page transitions */
.page-wrapper {
  position: relative;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #03B0F0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-transition-active .page-wrapper::after {
  opacity: 1;
  visibility: visible;
}