:root {
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
}

/* ============================================================
   Softece Agency Home Redesign — Pixel-Perfect To Mockup
   Harmonized with #020b1e (Navy), #041c45 (Purple), #0080ff (Violet)
   ============================================================ */

/* ---------- Navbar Styling Refinements ---------- */

.nav-cta-btn {
  background: var(--accent-grad);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 128, 255, 0.45);
  border: 1px solid rgba(0, 128, 255, 0.3);
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 128, 255, 0.65);
  filter: brightness(1.08);
}

/* ---------- Hero Section ---------- */

.pill--agency {
  background: rgba(88, 28, 135, 0.35) !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  color: #38bdf8 !important;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  border-radius: 99px;
  padding: 6px 16px;
  display: inline-block;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.btn--explore {
  background: rgba(1, 9, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  border-radius: 99px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.btn--explore:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

/* Hero Visual Artwork (Seamless, Borderless, No Box) */

/* ---------- Services 3-Grid ---------- */

/* ---------- Featured Work (Portfolio) ---------- */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: 36px 0 46px;
}
.portfolio-filter {
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(4, 28, 69, 0.4);
  border: 1px solid rgba(0, 128, 255, 0.24);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.portfolio-filter:hover {
  background: rgba(0, 128, 255, 0.2);
  border-color: rgba(0, 128, 255, 0.5);
  color: #ffffff;
}
.portfolio-filter.is-active {
  background: #0080ff;
  border-color: #0080ff;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 128, 255, 0.45);
}

.portfolio-card-new {
  background: linear-gradient(175deg, rgba(4, 28, 69, 0.35) 0%, rgba(2, 11, 30, 0.85) 100%);
  border: 1px solid rgba(0, 128, 255, 0.2);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.portfolio-card-new:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 128, 255, 0.5);
  box-shadow: 0 22px 50px -15px rgba(0, 128, 255, 0.25);
}

/* ---------- Why Businesses Choose Softece ---------- */

/* ---------- Our Process Stepper ---------- */

/* ---------- About Section (Building Better Digital Experiences) ---------- */

/* ---------- Client Feedback (Testimonials) ---------- */

/* ---------- Call to Action Banner ---------- */
.cta-section-new {
  padding: 60px 0 100px;
  position: relative;
}
.cta-banner-new {
  background: linear-gradient(135deg, rgba(2, 11, 30, 0.95) 0%, rgba(4, 28, 69, 0.85) 100%);
  border: 1px solid rgba(0, 128, 255, 0.35);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 128, 255, 0.25);
  position: relative;
}
.cta-banner-new__grid {
  display: grid;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-banner-new__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.cta-banner-new__content {
  padding: 44px 36px;
}
@media (min-width: 768px) {
  .cta-banner-new__content {
    padding: 56px 48px;
  }
}
.cta-banner-new__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 14px 0 12px;
}
.cta-banner-new__lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.cta-banner-new__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.cta-banner-new__media {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-banner-new__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .cta-banner-new__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 11, 30, 1) 0%, rgba(2, 11, 30, 0) 40%);
    z-index: 1;
  }
}

/* ---------- Footer (Ultra-Smart & Compact) ---------- */

.footer-new__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 5px 18px;
  justify-content: start;
}
.footer-new__links li {
  display: inline-flex;
  align-items: center;
}
.footer-new__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.footer-new__links a:hover {
  color: #38bdf8;
  padding-left: 2px;
  text-decoration: none;
}

/* Dynamic CSS fallback for active route hiding in footer */
body[data-current-route="home"] .footer-new__links li[data-footer-route="home"],
body[data-current-route="services"] .footer-new__links li[data-footer-route="services"],
body[data-current-route="work"] .footer-new__links li[data-footer-route="work"],
body[data-current-route="portfolio"] .footer-new__links li[data-footer-route="work"],
body[data-current-route="about"] .footer-new__links li[data-footer-route="about"],
body[data-current-route="contact"] .footer-new__links li[data-footer-route="contact"] {
  display: none !important;
}

/* ---------- About Page Exclusive Footer & Contact ---------- */

/* Light Theme Overrides (Only active when system prefers light or data-theme="light") */

/* ============================================================
   Mobile & Cross-Device Responsiveness (Pixel-Perfect to Mockup)
   ============================================================ */
@media (max-width: 768px) {

  .services-section,
  .portfolio-section,
  .why-section,
  .process-section,
  .about-section-new,
  .feedback-section,
  .cta-section-new {
    padding: 60px 0;
  }

  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    margin: 24px 0 32px;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .portfolio-filter {
    flex: none;
    white-space: nowrap;
    padding: 7px 16px;
    font-size: 0.82rem;
  }

  .cta-banner-new {
    border-radius: 20px;
  }
  .cta-banner-new__grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-new__content {
    padding: 32px 20px 24px;
  }
  .cta-banner-new__title {
    font-size: 1.85rem;
  }
  .cta-banner-new__btns {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }
  .cta-banner-new__btns .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-banner-new__media {
    min-height: 220px;
    max-height: 260px;
  }

}

@media (max-width: 480px) {
  
  .head h2 {
    font-size: 1.65rem;
  }
}

/* Smooth background animation for hero section */


/* ============================================================
   SOFTECE FULL SERVICES PAGE (SAME TO SAME PIXEL-PERFECT MOCKUP)
   ============================================================ */

/* Page Background & Galaxy Theme */
[data-route="services"] {
  background: transparent !important;
  color: #ffffff;
  overflow-x: hidden;
}

/* Gradient Text Accent */
.grad {
  background: linear-gradient(135deg, #e9d5ff 0%, #38bdf8 45%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline;
}

/* Section Common Headers */

/* Rounded Pill Badges */
.pill--agency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(147, 51, 234, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
}

/* Glow Pill Buttons */

/* ============================================================
   1. SERVICE PAGE HERO SECTION
   ============================================================ */
.service-hero-section {
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative;
}

/* ============================================================
   3 SERVICE SHOWCASE CARDS (MOCKUP ROW 1)
   ============================================================ */

/* ============================================================
   4 VALUE PROPOSITION CARDS ROW (MOCKUP ROW 2)
   ============================================================ */

/* ============================================================
   2. OUR PROCESS SECTION (MOCKUP ROW 3)
   ============================================================ */

/* ============================================================
   3. OUR PORTFOLIO SECTION (MOCKUP ROW 4)
   ============================================================ */

.portfolio-card-new {
  background: linear-gradient(180deg, rgba(26, 14, 48, 0.75) 0%, rgba(12, 7, 24, 0.9) 100%);
  border: 1px solid rgba(0, 128, 255, 0.25);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}
.portfolio-card-new:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 14px 34px -8px rgba(147, 51, 234, 0.32);
}

/* ============================================================
   4. CLIENT FEEDBACK SECTION (MOCKUP ROW 5)
   ============================================================ */

/* ============================================================
   5. CTA BANNER SECTION (MOCKUP ROW 6)
   ============================================================ */
.cta-section-new {
  padding: 40px 0 90px;
}

.cta-banner-new {
  background: linear-gradient(135deg, rgba(28, 12, 54, 0.95) 0%, rgba(12, 6, 26, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 50px rgba(0, 128, 255, 0.25);
  border-radius: 28px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

.cta-banner-new__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 992px) {
  .cta-banner-new__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.cta-banner-new__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}

.cta-banner-new__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 480px;
  margin: 16px 0 28px;
}

.cta-banner-new__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.cta-trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-avatar-stack {
  display: flex;
}

.avatar-stack-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #581c87;
  margin-right: -10px;
  object-fit: cover;
}

.cta-trust-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 500;
}

.cta-banner-new__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(147, 51, 234, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.cta-banner-new__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Enhanced Glowing Button effect */
.btn--primary {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(192, 132, 252, 0.4) !important;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4) !important;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn--primary:hover::before {
  left: 100%;
}

/* ============================================================
   AUTOMATIC DAY / LIGHT MODE (BASED ON SYSTEM PREFERENCE)
   ============================================================ */
@media (prefers-color-scheme: light) {
  [data-route="services"] {
    background: transparent !important;
    color: #0f0826;
  }

  .hero-agency__lead,
  .section-lead-muted,
  .service-card-new__desc,
  .why-card-new__desc,
  .process-step__desc,
  .testimonial-card-new__quote,
  .cta-banner-new__lead,
  .cta-trust-text {
    color: #475569 !important;
  }

  .pill--agency {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(168, 85, 247, 0.35);
    color: #7e22ce;
  }

  .portfolio-card-new {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 128, 255, 0.18);
    box-shadow: 0 8px 25px rgba(4, 28, 69, 0.06);
  }
  .portfolio-card-new:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 14px 34px -8px rgba(147, 51, 234, 0.18);
  }

  .cta-banner-new {
    background: linear-gradient(135deg, #1e0b3d 0%, #100524 100%);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 12px 40px rgba(4, 28, 69, 0.2);
  }
  .cta-banner-new__title {
    color: #ffffff !important;
  }
  .cta-banner-new__lead,
  .cta-trust-text {
    color: #cbd5e1 !important;
  }

}

/* ============================================================
   RESPONSIVE ENHANCEMENTS ACROSS ALL DEVICES
   ============================================================ */
@media (max-width: 991px) {
  .service-hero-section {
    padding: calc(var(--nav-h) + 20px) 0 50px;
  }
  
}

@media (max-width: 767px) {

  .cta-banner-new {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .cta-banner-new__btns {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-banner-new__btns .btn {
    text-align: center;
    justify-content: center;
  }
}

