/* =====================================================
   PREMIUM WEB DEVELOPMENT PAGE STYLES
   ===================================================== */

/* Pulse Animation for Badge */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Service Card Wrapper */
.service-card-wrapper {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.service-card-wrapper:nth-child(1) { --card-index: 0; }
.service-card-wrapper:nth-child(2) { --card-index: 1; }
.service-card-wrapper:nth-child(3) { --card-index: 2; }
.service-card-wrapper:nth-child(4) { --card-index: 3; }
.service-card-wrapper:nth-child(5) { --card-index: 4; }
.service-card-wrapper:nth-child(6) { --card-index: 5; }

/* Premium Service Card */
.premium-service-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.premium-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, #f97316, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.premium-service-card:hover::before {
  opacity: 1;
}

.premium-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(249, 115, 22, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.premium-service-card:hover .card-glow {
  opacity: 1;
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 1;
}

/* Icon Wrapper */
.icon-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-service-card:hover .icon-bg {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.3);
}

.icon-main {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: #f97316;
  transition: all 0.4s ease;
}

.premium-service-card:hover .icon-main {
  color: #ffffff;
  transform: scale(1.1);
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.premium-service-card:hover .tech-badge {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
  transform: translateY(-2px);
}

/* Stats Section */
.stat-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.1);
  border-color: #fed7aa;
}

.stat-number {
  font-size: 3rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .premium-service-card {
    padding: 1.5rem;
  }

  .icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .icon-main {
    width: 28px;
    height: 28px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Smooth Scroll */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* =====================================================
   ULTRA-PREMIUM CTA SECTION
   ===================================================== */

/* Main CTA Card */
.premium-cta-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Gradient Background */
.cta-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    #1e293b 0%, 
    #0f172a 25%, 
    #1e1b4b 50%, 
    #1e293b 75%, 
    #0f172a 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

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

/* Floating Particles */
.cta-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(249, 115, 22, 0.6);
  border-radius: 50%;
  filter: blur(1px);
  animation: float 20s infinite ease-in-out;
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.particle-2 {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.particle-3 {
  top: 40%;
  left: 50%;
  animation-delay: 10s;
  animation-duration: 28s;
}

.particle-4 {
  top: 80%;
  left: 20%;
  animation-delay: 15s;
  animation-duration: 22s;
}

.particle-5 {
  top: 30%;
  left: 70%;
  animation-delay: 8s;
  animation-duration: 26s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 40px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(40px, 20px) scale(1.1);
    opacity: 0.7;
  }
}

/* Glow Effects */
.cta-glow-left,
.cta-glow-right {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  animation: pulse 8s ease-in-out infinite;
}

.cta-glow-left {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.cta-glow-right {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: 4s;
}

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

/* Badge */
.cta-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 0.6s ease-out;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #f97316;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Heading */
.cta-heading {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Description */
.cta-description {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Premium Glassmorphism Button */
.premium-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out 0.6s both;
  box-shadow: 0 10px 30px -5px rgba(249, 115, 22, 0.4);
}

.button-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.4s ease;
  z-index: 0;
}

.premium-cta-button:hover .button-bg {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.button-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  transition: all 0.4s ease;
}

.premium-cta-button:hover .button-content {
  color: #ffffff;
}

.button-arrow {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-cta-button:hover .button-arrow {
  transform: translateX(5px);
}

.premium-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.6);
}

.premium-cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Trust Indicators */
.cta-trust {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-trust > div {
  transition: all 0.3s ease;
}

.cta-trust > div:hover {
  transform: translateY(-2px);
}

.cta-trust svg {
  transition: all 0.3s ease;
}

.cta-trust > div:hover svg {
  stroke: rgba(249, 115, 22, 1);
}

/* Fade Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .premium-cta-card {
    min-height: 400px;
    border-radius: 24px;
  }

  .cta-heading {
    font-size: 2.5rem !important;
  }

  .cta-description {
    font-size: 1.1rem !important;
  }

  .premium-cta-button {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .cta-trust {
    flex-direction: column;
    gap: 1rem !important;
  }

  .particle {
    width: 3px;
    height: 3px;
  }
}

