/* ==========================================================
   web-development.css
   Page-specific styles for Web Development service page
   SMEdigital - smedigital.in
   ========================================================== */

/* ── Floating Code Decorations ── */
.wd-code-float {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(235, 96, 31, 0.18);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
  animation: wd-float 8s ease-in-out infinite;
}

/* Ensure cards are visible as fallback */
.wd-tech-card,
.wd-why-card,
.wd-price-card {
  opacity: 1; /* visible by default */
}

.wd-code-float--1 {
  top: 18%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 9s;
}

.wd-code-float--2 {
  top: 35%;
  right: 6%;
  animation-delay: 2s;
  animation-duration: 11s;
}

.wd-code-float--3 {
  bottom: 25%;
  left: 8%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.wd-code-float--4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
  animation-duration: 10s;
}

@keyframes wd-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); opacity: 0.18; }
  50%       { transform: translateY(-20px) rotate(1deg); opacity: 0.35; }
}

@media (max-width: 768px) {
  .wd-code-float { display: none; }
}

/* ── Stats Counter Section ── */
.wd-stats-section {
  border-radius: 2rem;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(235, 96, 31, 0.2);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.wd-stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(to right, transparent, #eb601f, transparent);
}

.wd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .wd-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wd-stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wd-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(235, 96, 31, 0.15);
}

.wd-stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.wd-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #eb601f;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.wd-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .wd-stat-number { font-size: 2rem; }
}

/* ── Tech Stack Section ── */
.wd-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .wd-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .wd-tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.wd-tech-card {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.wd-tech-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tech-color, #eb601f);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.wd-tech-card:hover {
  border-color: var(--tech-color, #eb601f);
  box-shadow: 0 6px 25px rgba(235, 96, 31, 0.15);
  transform: translateY(-4px);
}

.wd-tech-card:hover::before {
  transform: scaleX(1);
}

.wd-tech-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.wd-tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

/* ── Why Choose Us Section ── */
.wd-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .wd-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wd-why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wd-why-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wd-why-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(235, 96, 31, 0.4), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.wd-why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(235, 96, 31, 0.3);
  box-shadow: 0 12px 40px rgba(235, 96, 31, 0.12);
}

.wd-why-card:hover::after {
  transform: scaleX(1);
}

.wd-why-card--highlight {
  border-color: rgba(235, 96, 31, 0.3);
  background: rgba(235, 96, 31, 0.06);
}

.wd-why-card--highlight::after {
  background: linear-gradient(to right, transparent, #eb601f, transparent);
  transform: scaleX(1);
}

.wd-why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.wd-why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.wd-why-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ── Pricing Section ── */
.wd-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .wd-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wd-price-card {
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wd-price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(235, 96, 31, 0.4);
  box-shadow: 0 16px 48px rgba(235, 96, 31, 0.15);
}

.wd-price-card--popular {
  border-color: #eb601f;
  background: rgba(235, 96, 31, 0.06);
  transform: scale(1.03);
  box-shadow: 0 0 0 2px rgba(235, 96, 31, 0.3), 0 20px 60px rgba(235, 96, 31, 0.2);
}

.wd-price-card--popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.wd-price-popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: #eb601f;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.wd-price-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.wd-price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: #eb601f;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.wd-price-period {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wd-price-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.wd-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex: 1;
}

.wd-price-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.wd-price-feature:last-child {
  border-bottom: none;
}

.wd-price-check {
  color: #eb601f;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
  font-size: 1rem;
}

.wd-price-cta {
  display: block;
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #eb601f;
  color: #eb601f;
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  margin-top: auto;
}

.wd-price-cta:hover {
  background: #eb601f;
  color: #000;
  box-shadow: 0 0 30px rgba(235, 96, 31, 0.4);
  transform: scale(1.03);
}

.wd-price-cta--popular {
  background: #eb601f;
  color: #000;
  box-shadow: 0 0 20px rgba(235, 96, 31, 0.3);
}

.wd-price-cta--popular:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
  .wd-stats-section {
    padding: 2rem 1rem;
  }

  .wd-stat-number {
    font-size: 1.75rem;
  }

  .wd-price-card--popular {
    transform: scale(1);
  }

  .wd-price-card--popular:hover {
    transform: translateY(-8px);
  }

  .wd-pricing-grid {
    gap: 1.5rem;
  }
}