/* Axencia.co — Services Page: World-Class UI */

/* ===== Services Page — Container ===== */
.services-page .container {
  padding: 0 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Header ===== */
.services-page .page-header {
  padding: calc(var(--nav-height) + 96px) 24px 72px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.services-page .page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.services-page .page-header > p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Quick links — header */
.services-quick-links-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.services-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.services-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-quick-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.45);
  color: #e8e8ed;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.services-quick-link:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}

/* ===== Dev Section ===== */
.dev-section {
  padding: 80px 24px 100px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.dev-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.dev-hero {
  text-align: center;
  margin-bottom: 56px;
}

.dev-hero .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.dev-hero .section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: devPulse 2s ease-in-out infinite;
}

@keyframes devPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.dev-hero h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.dev-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Dev grid — equal height cards, alignment */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.dev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 20px;
  padding: 40px 36px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.dev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dev-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 80px rgba(59, 130, 246, 0.08);
}

.dev-card:hover::before {
  transform: scaleX(1);
}

.dev-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.4s ease;
}

.dev-card:hover .dev-card-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.2));
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.dev-card-icon svg {
  width: 28px;
  height: 28px;
  color: #93c5fd;
  transition: all 0.4s ease;
}

.dev-card:hover .dev-card-icon svg {
  color: #60a5fa;
}

.dev-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e8e8ed;
  line-height: 1.3;
}

.dev-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 0;
}

.dev-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.dev-card-features li {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(59, 130, 246, 0.06);
  transition: color 0.3s ease;
}

.dev-card-features li:last-child {
  border-bottom: none;
}

.dev-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 50%;
  opacity: 0.8;
}

.dev-card:hover .dev-card-features li {
  color: rgba(148, 163, 184, 1);
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 20px;
}

.dev-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #22c55e;
  border-radius: 50%;
  animation: devPulse 1.5s ease-in-out infinite;
}

/* Icon animations */
.dev-icon-android svg { animation: devFloat 2.5s ease-in-out infinite; }
.dev-icon-ios svg { animation: devPulseIcon 2.2s ease-in-out infinite; }
.dev-icon-desktop svg { animation: devFloat 2.8s ease-in-out infinite 0.3s; }
.dev-icon-web svg { animation: devGlow 2.5s ease-in-out infinite; }
.dev-icon-blockchain svg { animation: devFloat 3s ease-in-out infinite 0.5s; }
.dev-icon-ml svg { animation: devPulseIcon 2.4s ease-in-out infinite 0.2s; }

@keyframes devFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes devPulseIcon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes devGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.6)); }
}

/* ===== Marketing Section ===== */
#marketing {
  padding: 80px 24px 100px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

#marketing .container {
  max-width: 1200px;
  margin: 0 auto;
}

#marketing .section-header {
  text-align: center;
  margin-bottom: 48px;
}

#marketing .section-header .section-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

#marketing .section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

/* Services list — grid */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 0;
}

.service-item {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 60px rgba(59, 130, 246, 0.06);
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e8e8ed;
  line-height: 1.3;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 0;
}

.service-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.7;
  flex-grow: 1;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  transition: color 0.3s ease;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.85rem;
}

.service-item:hover .service-features li {
  color: rgba(148, 163, 184, 1);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: all 0.3s ease;
}

.service-cta:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Featured service — CyberShield */
.service-item-featured {
  border-color: rgba(59, 130, 246, 0.35) !important;
  background: rgba(59, 130, 246, 0.06) !important;
  background-image: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%) !important;
}

.service-item-featured:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 80px rgba(59, 130, 246, 0.12) !important;
}

/* ===== CTA Section ===== */
.services-page .cta-section {
  padding: 80px 24px 100px;
}

.services-page .cta-box {
  padding: 56px 48px;
  text-align: center;
  border-radius: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .dev-section,
  #marketing {
    padding: 64px 20px 80px;
  }
  .dev-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  .services-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-page .page-header {
    padding: calc(var(--nav-height) + 64px) 20px 56px;
  }
  .services-quick-links-header {
    margin-top: 24px;
  }
  .services-quick-link {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .dev-section,
  #marketing {
    padding: 56px 16px 72px;
  }
  .dev-hero {
    margin-bottom: 40px;
  }
  .dev-hero h2 {
    font-size: 1.75rem;
  }
  .dev-section .container,
  #marketing .container {
    padding: 0 16px;
  }
  .dev-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dev-card {
    padding: 32px 24px;
  }
  .services-quick-links {
    margin-bottom: 32px;
  }
  #marketing .section-header {
    margin-bottom: 36px;
  }
  .services-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-item {
    padding: 28px 24px;
  }
  .services-page .cta-section {
    padding: 64px 16px 80px;
  }
  .services-page .cta-box {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .services-page .page-header h1 {
    font-size: 1.75rem;
  }
  .dev-card {
    padding: 28px 20px;
  }
  .service-item {
    padding: 24px 20px;
  }
}
