/* 
 * Enhanced Premium Design System 2.0
 * Ultra-Premium Grade Styles for Yolopment
 */

:root {
  /* Dynamic Mesh Gradients */
  --mesh-gradient-primary: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);

  --mesh-gradient-light: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(14, 165, 233, 0.1) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(244, 114, 182, 0.1) 0, transparent 50%);

  /* Glassmorphism 2.0 Tokens */
  --glass-2-bg: rgba(255, 255, 255, 0.7);
  --glass-2-border: 1px solid rgba(255, 255, 255, 0.6);
  --glass-2-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  --glass-2-backdrop: blur(12px) saturate(180%);

  /* Text Gradients */
  --text-gradient-primary: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  --text-gradient-premium: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* =========================================
   Global Premium Enhancements
   ========================================= */
body {
  background-color: #F8FAFC !important;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.03), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.03), transparent 25%);
}

/* =========================================
   Hero Section Ultra-Premium
   ========================================= */
.hero-section-enhanced {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background: transparent;
}

/* Mesh Background Animation */
.hero-background-overlay {
  background: var(--mesh-gradient-light);
  filter: blur(80px);
  opacity: 0.8;
  animation: pulse-mesh 10s ease-in-out infinite alternate;
}

@keyframes pulse-mesh {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Hero Badge - Floating Glass */
.hero-badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform-origin: center;
  animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.badge-text {
  font-weight: 700;
  background: linear-gradient(90deg, #4F46E5, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Ultra Typography */
.hero-title-enhanced {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.5rem;
}

.text-gradient-animated {
  background: linear-gradient(300deg, #4F46E5, #DB2777, #4F46E5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 5s linear infinite;
}

@keyframes shine-text {
  to {
    background-position: 200% center;
  }
}

.hero-description-enhanced {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #475569;
  font-weight: 450;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

/* Magnetic Buttons */
.btn-primary-hero-enhanced {
  background: #0F172A;
  color: white;
  padding: 1.1rem 2.5rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary-hero-enhanced:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.4);
  color: white;
}

/* Stats Glass Cards */
.hero-stats-enhanced {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item-enhanced {
  position: relative;
}

.stat-number-enhanced {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.stat-label-enhanced {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 0.25rem;
}


/* =========================================
   Service Cards 3D
   ========================================= */
.services-section-enhanced {
  padding: 100px 0;
  position: relative;
  background: #FFFFFF;
}

.service-card-enhanced {
  perspective: 1500px;
  height: 100%;
}

.service-card-inner-enhanced {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 3rem 2rem;
  height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-enhanced:hover .service-card-inner-enhanced {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Icon Glow */
.service-icon-wrapper-enhanced {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
}

.service-icon-wrapper-enhanced::after {
  content: '';
  position: absolute;
  inset: -5px;
  background: inherit;
  filter: blur(15px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.service-card-enhanced:hover .service-icon-wrapper-enhanced::after {
  opacity: 0.7;
}

.service-title-enhanced {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1E293B;
}

.service-content-enhanced {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-description-enhanced {
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link-enhanced {
  margin-top: auto;
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.service-link-enhanced:hover {
  gap: 0.75rem;
}

/* =========================================
   Tech Stack Marquee (Infinite Scroll)
   ========================================= */
.tech-marquee-container {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  position: relative;
  background: #F8FAFC;
}

.tech-marquee-wrapper {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}

.tech-item-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: white;
  border-radius: 100px;
  margin: 0 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.tech-item-enhanced:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tech-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tech-name-text {
  font-weight: 600;
  color: #334155;
  font-size: 1rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* =========================================
   Ultra-Premium Additions
   ========================================= */
.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
}

.premium-glow-text {
  text-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.glass-card-premium {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* =========================================
   Responsive & Utilities
   ========================================= */
@media (max-width: 991px) {
  .hero-section-enhanced {
    text-align: center;
    padding-top: 140px;
  }

  .hero-stats-enhanced {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-title-enhanced {
    font-size: 3rem;
  }
}

/* New: Floating Shapes Background */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.4;
  animation: float-shape 20s infinite alternate;
}

@keyframes float-shape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(50px, 50px) rotate(45deg);
  }
}

/* Helper classes */
.btn-outline-hero-enhanced {
  padding: 1.1rem 2.5rem;
  background: white;
  color: #1E293B;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline-hero-enhanced:hover {
  border-color: #4F46E5;
  color: #4F46E5;
  background: #F8FAFC;
  transform: translateY(-4px);
}

.btn-prospectus-hero {
  padding: 1.1rem 2.5rem;
  background: #DC2626;
  color: white;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-prospectus-hero:hover {
  background: #B91C1C;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
}

.hero-visual-card {
  position: relative;
  z-index: 5;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.hero-visual-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.4), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

/* =========================================
   Mobile Optimization (Expert Level)
   ========================================= */
@media (max-width: 767px) {

  /* Hero Adjustments */
  .hero-section-enhanced {
    padding-top: 120px;
    padding-bottom: 80px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
  }

  .hero-title-enhanced {
    font-size: 2.5rem;
    /* Better fit for mobile */
    margin-bottom: 1rem;
  }

  .hero-description-enhanced {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  /* Full width buttons for better touch targets */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .btn-primary-hero-enhanced,
  .btn-outline-hero-enhanced,
  .btn-prospectus-hero {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* Scale down background shapes */
  .bg-shape {
    transform: scale(0.6);
    opacity: 0.3;
  }

  /* Stats Layout */
  .hero-stats-enhanced {
    margin-top: 2rem;
    gap: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    /* Stack vertically for clear reading */
  }

  .stat-item-enhanced {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 480px) {
  .hero-title-enhanced {
    font-size: 2.1rem;
  }
}