/* 3D Effects and Modern Styling for Global Tuning Solutions
-------------------------------------------------- */

:root {
  --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  --card-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --btn-transition: all 0.3s ease;
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --transform-amount: 5deg;
}

/* Base styles for 3D and modern elements */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* 3D Card Effect */
.card-3d {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  border: none;
}

.card-3d:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
}

/* 3D Button Effect */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: var(--btn-transition);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: none;
}

.btn-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn-3d:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism Effect */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 20px;
}

/* Floating Elements */
.float-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Tilt effect on hover */
.tilt-effect {
  transition: var(--card-transition);
  transform-style: preserve-3d;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(var(--transform-amount)) rotateY(var(--transform-amount));
}

/* Custom section backgrounds with 3D depth */
.depth-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.depth-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  transform: translateZ(-10px);
  pointer-events: none;
}

/* Modern nav styling */
.modern-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Text with gradient */
.gradient-text {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Animated gradient backgrounds */
.gradient-bg {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated icons */
.icon-3d {
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.icon-3d:hover {
  transform: translateY(-5px) rotate(10deg);
  filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.4));
}

/* 3D WhatsApp Button Enhancement */
.whatsapp-wrap {
  transform-style: preserve-3d;
  perspective: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-wrap:hover {
  transform: translateY(-5px) scale(1.05) rotate(5deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-wrap i {
  transition: transform 0.3s ease;
}

.whatsapp-wrap:hover i {
  transform: rotate(-10deg) translateZ(10px);
}

/* Responsive adaptations */
@media (max-width: 768px) {
  :root {
    --transform-amount: 3deg;
  }
  
  .glass-effect {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

@media (max-width: 480px) {
  .card-3d:hover {
    transform: translateY(-3px);
  }
  
  .btn-3d:hover {
    transform: translateY(-2px);
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-8px);
    }
    100% {
      transform: translateY(0px);
    }
  }
} 