/* ==========================================================
   SOLUTIONS PAGE
   Zenith Solutions Limited
   Version 6.0
========================================================== */

/* ==========================================================
   VARIABLES
========================================================== */

:root {
  --primary: #262871;
  --secondary: #6c385e;
  --primary-light: #eef2ff;
  --secondary-light: #f8f3f7;

  --dark: #0f172a;
  --text: #475569;
  --light: #ffffff;
  --border: #e2e8f0;

  --hero-gradient: linear-gradient(
    135deg,
    #262871 0%,
    #46307b 55%,
    #6c385e 100%
  );
}
/* ==========================================================
   PAGE
========================================================== */

body {
  margin: 0;
  background: #f8fafc;
  color: var(--dark);
  overflow-x: hidden;
}

/* Navbar layout, dimensions and responsive behavior are controlled only by
   assets/css/components/navbar.css. */

/* ==========================================================
   COMMON SECTION
========================================================== */

section {
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

.section-subtitle {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.section-text {
  margin-top: 24px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

/* ==========================================================
   HERO
========================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: calc(120vh - var(--navbar-height-desktop));
  min-height: calc(117dvh - var(--navbar-height-desktop));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-gradient);
  color: #fff;
  margin: 0;
  padding: 34px 0 26px;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -240px;
  right: -220px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  left: -140px;
  bottom: -140px;
}

.hero-subtitle {
  display: inline-block;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  color: #e2e8f0;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-text {
  margin-top: 28px;
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}
/* ==========================================================
   GLASS CARD
========================================================== */
.glass-card,
.glass {
  position: relative;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 24px;

  overflow: hidden;

  transition: 0.35s ease;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}
/* Hero Glass Cards */

.hero .glass,
.hero .glass-card {
  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(22px);

  -webkit-backdrop-filter: blur(22px);

  color: #fff;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.hero .glass h2,
.hero .glass h3,
.hero .glass i {
  color: #fff;
}

.glass-card::before,
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    transparent 60%
  );
  pointer-events: none;
}
.hero .glass {
  padding: 30px;

  border-radius: 24px;
}
.hero .glass,
.hero .glass-card {
  border-radius: 24px !important;
  overflow: hidden;
}

.glass-card:hover,
.glass:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(38, 40, 113, 0.16);
}

/* ==========================================================
   SOLUTION CARD
========================================================== */

.solution-card {
  transition: all 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-12px);
}

/* ==========================================================
   ICON BOX
========================================================== */

.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--hero-gradient);
  color: #fff;

  font-size: 2rem;

  box-shadow: 0 14px 35px rgba(38, 40, 113, 0.25);
}

.icon-box.secondary {
  background: linear-gradient(135deg, var(--secondary), #8b4f77);
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn-primary-custom,
.btn-zs {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 34px;

  border-radius: 999px;

  background: var(--primary);
  color: #fff;

  border: 2px solid var(--primary);

  font-weight: 600;

  transition: all 0.3s ease;
}

.btn-primary-custom:hover,
.btn-zs:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 34px;

  border-radius: 999px;

  background: transparent;
  color: var(--primary);

  border: 2px solid var(--primary);

  font-weight: 600;

  transition: 0.3s;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================
   HERO BUTTONS
========================================================== */

.hero .btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 999px;
  transition: 0.3s;
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
}

.hero .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 999px;
  transition: 0.3s;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
/* ==========================================================
   PRODUCT SECTIONS
========================================================== */

.product-section {
  position: relative;
}

.product-section:nth-child(even) {
  background: #ffffff;
}

.product-section:nth-child(odd) {
  background: #f8fafc;
}

/* ==========================================================
   CONTENT
========================================================== */

.solution-content h2,
.product-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.solution-content p {
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 18px;
}

/* ==========================================================
   FEATURE LIST
========================================================== */

.feature-list {
  margin-top: 35px;
  display: grid;
  gap: 14px;
}

.feature-list li,
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 14px;

  transition: all 0.3s ease;
}

.feature-list li:hover,
.feature-item:hover {
  border-color: var(--primary);
  transform: translateX(8px);
}

.feature-list i,
.feature-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================
   TECHNOLOGY STACK
========================================================== */

.tech-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;

  padding: 24px;

  text-align: center;

  font-weight: 600;

  transition: all 0.35s ease;
}

.tech-card:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-8px);
}

/* ==========================================================
   METRIC CARD
========================================================== */

.metric-card {
  text-align: center;

  padding: 35px 20px;

  border-radius: 22px;

  background: #ffffff;

  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);

  transition: 0.35s;
}

.metric-card:hover {
  transform: translateY(-10px);
}

.metric-number {
  display: block;

  font-size: 3rem;

  font-weight: 800;

  color: var(--primary);

  margin-bottom: 10px;
}

.metric-title {
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================
   CTA
========================================================== */

.cta-section {
  background: var(--hero-gradient);
  color: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  top: -180px;
  right: -120px;
}

.cta-section::after {
  content: "";
  position: absolute;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  bottom: -100px;
  left: -80px;
}

.cta-section h2,
.cta-section p {
  position: relative;
  z-index: 2;
}

.cta-section .btn {
  position: relative;
  z-index: 2;
}
/* ==========================================================
   FOOTER
========================================================== */

footer {
  position: relative;
  overflow: hidden;
}

footer h2,
footer h3,
footer h4 {
  color: #ffffff;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

footer .social-icon {
  width: 48px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  transition: all 0.3s ease;
}

footer .social-icon:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

/* ==========================================================
   IMAGE
========================================================== */

img {
  max-width: 100%;
  height: auto;
}

.object-cover {
  object-fit: cover;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

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

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

.floating {
  animation: floatY 5s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

/* ==========================================================
   UTILITIES
========================================================== */

.shadow-soft {
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.shadow-medium {
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.round-xl {
  border-radius: 24px;
}

.round-2xl {
  border-radius: 32px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero {
    text-align: center;
    min-height: calc(100vh - var(--navbar-height-tablet));
    min-height: calc(100dvh - var(--navbar-height-tablet));
    padding: 54px 0;
  }

  .hero-title {
    font-size: 2.9rem;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero {
    min-height: calc(100vh - var(--navbar-height-mobile));
    min-height: calc(100dvh - var(--navbar-height-mobile));
    padding: 48px 0;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .glass-card,
  .glass {
    border-radius: 18px;
  }

  .icon-box {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle,
  .hero-subtitle {
    letter-spacing: 3px;
    font-size: 0.75rem;
  }

  .btn,
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
  }
}

/* ==========================================================
   SOLUTIONS PAGE RESPONSIVE SAFETY
========================================================== */

.solutions-page main {
  overflow: clip;
}

.solutions-page section {
  scroll-margin-top: var(--navbar-height-desktop, 160px);
}

.solutions-page .hero > div {
  width: 100%;
}

.solutions-page .hero .solution-card {
  min-width: 0;
}

.solutions-page h1,
.solutions-page h2,
.solutions-page h3,
.solutions-page p,
.solutions-page a {
  overflow-wrap: anywhere;
}

.solutions-page #topBtn {
  z-index: 9000;
  display: inline-flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.solutions-page #topBtn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .solutions-page section {
    scroll-margin-top: var(--navbar-height-tablet);
  }

  .solutions-page section.py-32,
  .solutions-page section.py-28 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 992px) {
  .solutions-page .hero .grid.lg\:grid-cols-2 {
    gap: 3.5rem;
  }

  .solutions-page .hero .flex {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .solutions-page section {
    scroll-margin-top: var(--navbar-height-mobile);
  }

  .solutions-page section.py-32,
  .solutions-page section.py-28 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .solutions-page section .mb-20 {
    margin-bottom: 3rem;
  }

  .solutions-page section h2.text-5xl,
  .solutions-page section h2.text-6xl {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.18;
  }

  .solutions-page .hero .grid.grid-cols-2 {
    gap: 1rem;
  }

  .solutions-page .hero .solution-card {
    padding: 1.25rem;
  }

  .solutions-page .hero .solution-card.mt-12 {
    margin-top: 1.5rem;
  }

  .solutions-page .glass-card.p-10 {
    padding: 2rem;
  }

  .solutions-page footer .grid {
    gap: 2.5rem;
  }
}

@media (max-width: 479px) {
  .solutions-page .hero {
    min-height: calc(100vh - var(--navbar-height-mobile));
    min-height: calc(100dvh - var(--navbar-height-mobile));
    padding: 60px 0;
  }

  .solutions-page .hero .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .solutions-page .hero .solution-card.mt-12 {
    margin-top: 0;
  }

  .solutions-page .hero-title {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .solutions-page .hero-subtitle,
  .solutions-page section [class*="tracking-"] {
    letter-spacing: 0.18em;
  }

  .solutions-page .glass-card.p-10,
  .solutions-page .glass-card.p-8 {
    padding: 1.5rem;
  }

  .solutions-page #topBtn {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ==========================================================
   HERO VIEWPORT LAYOUT
   The shared spacer already removes the fixed Navbar height.
   The Hero fills only the viewport space that remains.
========================================================== */

@media (min-width: 1200px) {
  .solutions-page .hero .grid.lg\:grid-cols-2 {
    gap: 3rem;
  }

  .solutions-page .hero-title {
    margin-top: 14px;
    font-size: clamp(3rem, 4vw, 4rem);
    line-height: 1.08;
  }

  .solutions-page .hero-text {
    margin-top: 20px;
    line-height: 1.7;
  }

  .solutions-page .hero .flex.mt-10 {
    margin-top: 26px;
  }

  .solutions-page .hero .grid.grid-cols-2 {
    gap: 18px;
  }

  .solutions-page .hero .glass {
    padding: 24px;
  }

  .solutions-page .hero .solution-card.mt-12 {
    margin-top: 24px;
  }
}

@media (max-height: 760px) and (min-width: 1200px) {
  .solutions-page .hero {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .solutions-page .hero-title {
    font-size: clamp(2.65rem, 3.5vw, 3.45rem);
  }

  .solutions-page .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .solutions-page .hero .glass {
    padding: 20px;
  }

  .solutions-page .hero .solution-card.mt-12 {
    margin-top: 18px;
  }
}
/* Back to Top Button — Mobile Fix */
.solutions-page #topBtn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    right: 16px !important;
    bottom: 16px !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
}