/* ============================================
   Eximenon Solutions Inc. — Premium Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0F172A;
  --bg-light: #F8FAFC;
  --accent: #2563EB;
  --accent-secondary: #06B6D4;
  --text-dark: #111827;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  --text-muted-dark: #64748B;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-dark: #E2E8F0;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav__container {
    padding: 0 48px;
  }
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background:
      radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
      radial-gradient(ellipse 40% 60% at 80% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 50% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  }
  33% {
    background:
      radial-gradient(ellipse 50% 60% at 30% 40%, rgba(6, 182, 212, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 70% 60%, rgba(37, 99, 235, 0.14) 0%, transparent 70%),
      radial-gradient(ellipse 40% 50% at 50% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  }
  66% {
    background:
      radial-gradient(ellipse 55% 45% at 60% 55%, rgba(37, 99, 235, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 45% 55% at 25% 35%, rgba(6, 182, 212, 0.12) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 75% 75%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  }
  100% {
    background:
      radial-gradient(ellipse 65% 55% at 40% 45%, rgba(37, 99, 235, 0.14) 0%, transparent 70%),
      radial-gradient(ellipse 35% 65% at 75% 25%, rgba(6, 182, 212, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 45% 45% at 30% 70%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section--dark {
  background: var(--bg-primary);
}

.section--light {
  background: var(--bg-light);
}

.section__header {
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__label--dark {
  color: var(--accent);
}

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  letter-spacing: -0.02em;
}

.section__title--dark {
  color: var(--text-dark);
}

/* --- Solutions Grid --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-card {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.solution-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  margin-bottom: 24px;
}

.solution-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.solution-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.solution-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.solution-card__link span {
  transition: transform var(--transition);
}

.solution-card:hover .solution-card__link span {
  transform: translateX(4px);
}

/* --- Platforms Grid --- */
.platforms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform-card {
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.platform-card__tag {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  padding: 4px 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.platform-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.platform-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.platform-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.platform-card__features span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}

.platform-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-secondary);
  transition: color var(--transition);
}

.platform-card__link:hover {
  color: #22D3EE;
}

/* --- Case Study --- */
.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .case-study {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.case-study__title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.case-study__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.case-study__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  padding: 32px 24px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Why Eximenon --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  padding: 40px 32px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.why-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.why-card__desc {
  font-size: 15px;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

/* --- Company --- */
.company {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.company__title {
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  margin-top: 16px;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.company__desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* --- Contact --- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.contact__title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--text-dark);
  margin-top: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact__desc {
  font-size: 16px;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted-dark);
  margin-bottom: 4px;
}

.contact__detail-value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.contact__form-wrapper {
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 40px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  outline: none;
}

.form__input::placeholder {
  color: #94A3B8;
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.form__textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-primary);
  padding: 80px 0 0;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
  }
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* --- Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Navigation --- */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    font-size: 20px;
  }

  .nav__cta {
    margin-top: 16px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

  .contact__form-wrapper {
    padding: 24px;
  }
}

/* --- Tablet adjustments --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .section {
    padding: 100px 0;
  }
}

/* --- Subtle grid overlay for depth (optional visual texture) --- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* --- Selection color --- */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
}

/* --- Focus styles for accessibility --- */
.btn:focus-visible,
.nav__link:focus-visible,
.form__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Section light button variant --- */
.section--light .btn--outline {
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.section--light .btn--outline:hover {
  border-color: var(--text-dark);
}

/* --- Solutions 6-column variant --- */
.solutions-grid--6 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .solutions-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Technology Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-category {
  padding: 32px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--transition);
}

.tech-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tech-category__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.tech-category__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-category__tags span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-dark);
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.tech-category__tags span:hover {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
}

/* --- Platforms 2-column variant --- */
.platforms-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .platforms-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Case Studies Grid --- */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-study-card {
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.case-study-card__tag {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  padding: 4px 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.case-study-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.case-study-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.case-study-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.case-study-card__highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-study-card__highlight-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.case-study-card__highlight-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* --- Why grid 5-column variant --- */
@media (min-width: 768px) {
  .why-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid--5 .why-card:nth-child(4),
  .why-grid--5 .why-card:nth-child(5) {
    grid-column: span 1;
  }

  /* Center the last two cards */
  .why-grid--5 {
    justify-items: center;
  }

  .why-grid--5 .why-card {
    width: 100%;
  }
}

/* --- Service Detail Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  margin: 24px 24px 0 0;
  transition: all 0.3s ease;
}

.modal__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal__body {
  padding: 48px;
  padding-top: 16px;
}

@media (max-width: 767px) {
  .modal__body {
    padding: 24px;
    padding-top: 8px;
  }

  .modal {
    max-height: 90vh;
  }

  .modal__close {
    margin: 16px 16px 0 0;
  }
}

/* --- Service Detail Content --- */
.service-detail h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-intro {
  font-size: 17px;
  color: var(--accent);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

.service-description p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.service-detail ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.service-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.service-value {
  margin-top: 32px;
  padding: 24px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
}

.service-value p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* Scrollbar styling for modal */
.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
