* {
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

/* Hide LiteSpeed Web Server popup/overlay */
div[id*="litespeed"],
div[class*="litespeed"],
div[id*="LiteSpeed"],
div[class*="LiteSpeed"],
.litespeed-msg,
#litespeed-overlay,
.litespeed-overlay,
[data-litespeed],
iframe[src*="litespeed"],
iframe[src*="LiteSpeed"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  z-index: -9999 !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #f5f7ff 0, #e6ecff 35%, #f7f8fc 70%, #ffffff 100%);
  color: #102a6b;
  line-height: 1.7;
  direction: rtl;
}

a {
  color: inherit;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 8px;
  }
}

/* HEADER */
.header {
  background: linear-gradient(90deg, #142551, #1f3c88);
  color: white;
  padding: 14px 0;
  box-shadow: 0 8px 25px rgba(9, 18, 40, 0.35);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff6b45);
  color: #111827;
  font-size: 14px;
}

.brand-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd271, #ff9b57);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 35, 80, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.lang-switch .divider {
  opacity: 0.7;
}

.lang-switch span {
  cursor: pointer;
  opacity: 0.8;
}

.lang-switch .is-active {
  font-weight: 700;
  opacity: 1;
}

/* HERO */
.hero {
  background: url("../images/hero-bg.png") center / cover no-repeat;
  padding: 110px 0 130px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
}

/* GLASS EFFECT */
.hero-glass {
  max-width: 880px;
  margin: auto;
  padding: 48px 56px;
  position: relative;
  z-index: 0;

  /* text area halo handled by ::before so background stays clear */
  background: transparent;
  border: none;
}

.hero-glass::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  pointer-events: none;

  /* white halo under text – clearly visible, fades before edges, no rectangle */
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 35%,
    rgba(255, 255, 255, 0.9) 60%,
    rgba(255, 255, 255, 0.0) 100%
  );
  filter: blur(10px);
  z-index: -1;
}

/* TEXT */
.hero-glass h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111827;
}

.hero-glass p {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 34px;
  color: #374151;
}

/* BUTTONS */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.45);
}

.btn.secondary {
  background: white;
  color: #1f3c88;
  border: 1px solid rgba(31, 60, 136, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

/* TRUST ICONS */
.trust-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.trust-item {
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9fafb, #edf4ff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 40px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f4f7ff 40%, #dde9ff 100%);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.trust-icon--spray {
  /* match larger emoji size like other icons */
  font-size: 40px;
}

.trust-item img {
  width: 52px;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    padding: 90px 0 110px;
  }

  .hero-glass {
    padding: 42px 36px;
  }

  .hero-glass h1 {
    font-size: 34px;
  }
}

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

  .header-inner {
    gap: 8px; /* Slightly reduce gap */
    flex-wrap: nowrap; /* Ensure elements stay in one line */
    justify-content: center; /* Center elements horizontally */
  }

  .nav {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, #142551, #1f3c88);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 8px 25px rgba(9, 18, 40, 0.35);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 19;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 21;
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-mark {
    font-size: 12px;
    padding: 3px 7px;
  }

  .lang-switch {
    font-size: 11px;
    padding: 5px 8px;
  }

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

  .hero-glass {
    padding: 32px 22px;
  }

  .hero-glass h1 {
    font-size: 28px;
  }

  .hero-glass p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .trust-grid {
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-item {
    width: auto;
    min-width: auto;
    padding: 10px 12px;
    flex: 0 1 auto;
  }

  .trust-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
    margin-bottom: 6px;
  }

  .trust-item p {
    font-size: 11px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 70px;
  }

  .hero-glass {
    padding: 24px 16px;
  }

  .hero-glass h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .hero-glass p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .trust-grid {
    gap: 6px;
    flex-wrap: nowrap; /* Keep all trust items on one line */
    justify-content: space-between;
  }

  .trust-item {
    padding: 6px 8px;
    min-width: 0;          /* Allow shrinking */
    flex: 1 1 0;           /* Distribute space evenly */
  }

  .trust-icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
    margin-bottom: 4px;
  }

  .trust-item p {
    font-size: 9px;        /* Slightly smaller to fit in one line */
    line-height: 1.2;
    text-align: center;
  }
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 480px) {
  .header {
    padding: 10px 0;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-mark {
    font-size: 11px;
    padding: 3px 6px;
  }

  .lang-switch {
    font-size: 10px;
    padding: 4px 6px;
  }

  .nav {
    top: 50px;
  }
}

/* BEFORE & AFTER SECTION */
.before-after {
  background: radial-gradient(circle at top left, #f5f7ff 0, #e6ecff 35%, #f7f8fc 70%, #ffffff 100%);
  position: relative;
  padding: 80px 0;
}

.before-after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.before-after-inner {
  position: relative;
  z-index: 1;
}

.before-after-header {
  text-align: center;
  margin-bottom: 48px;
}

.before-after-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.before-after-subtitle {
  margin: 0;
  font-size: 18px;
  color: #4b5563;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Projects Gallery */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .projects-gallery {
    grid-template-columns: 1fr;
  }
}

.project-item {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-image-wrapper:hover {
  transform: scale(1.02);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-image-wrapper:hover .project-image {
  transform: scale(1.05);
}

.project-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(31, 60, 136, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.project-label--before {
  background: rgba(31, 60, 136, 0.9);
}

.project-label--after {
  background: rgba(22, 163, 74, 0.9);
}

.before-after-note {
  text-align: center;
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
  padding-top: 24px;
}

/* CONTACT SECTION */
.contact {
  background: radial-gradient(circle at top left, #f5f7ff 0, #e6ecff 35%, #f7f8fc 70%, #ffffff 100%);
  position: relative;
  padding: 80px 0;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.contact-subtitle {
  margin: 0;
  font-size: 18px;
  color: #4b5563;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form-wrapper {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: none;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.form-input,
.form-textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: white;
  font-size: 15px;
  color: #1f2937;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1f3c88;
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 8px;
}

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  display: block;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border: none;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.contact-info-content {
  flex: 1;
}

.contact-info-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
}

.contact-info-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px;
}

  .contact-info-link,
  .footer-contact-list a {
  font-size: 16px;
  color: #1f3c88;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  direction: ltr; /* Ensure phone number displays LTR */
  unicode-bidi: isolate; /* Isolate bidirectional text */
  }

.contact-info-link:hover {
  color: #142551;
  text-decoration: underline;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #111827;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: 'Cairo', sans-serif;
  z-index: 10000;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(31, 60, 136, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  pointer-events: none;
}

.lightbox-label--before {
  background: rgba(31, 60, 136, 0.9);
}

.lightbox-label--after {
  background: rgba(22, 163, 74, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .before-after {
    padding: 60px 0;
  }

  .before-after-header {
    margin-bottom: 36px;
  }

  .before-after-title {
    font-size: 26px;
  }

  .before-after-subtitle {
    font-size: 16px;
  }

  .projects-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .project-item {
    padding: 16px;
  }

  .project-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .project-image-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 120px;
  }

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

  .project-label {
    font-size: 11px;
    padding: 5px 10px;
    bottom: 8px;
    right: 8px;
  }

  .before-after-note {
    font-size: 13px;
    padding-top: 20px;
  }

  .contact {
    padding: 60px 0;
  }

  .contact-header {
    margin-bottom: 36px;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px 20px;
  }

  .contact-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .before-after {
    padding: 50px 0;
  }

  .before-after-title {
    font-size: 22px;
  }

  .before-after-subtitle {
    font-size: 14px;
  }

  .projects-gallery {
    gap: 20px;
  }

  .project-item {
    padding: 12px;
  }

  .project-images {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .project-image-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 100px;
  }

  .project-label {
    font-size: 10px;
    padding: 4px 8px;
    bottom: 6px;
    right: 6px;
  }

  .contact {
    padding: 50px 0;
  }

  .contact-title {
    font-size: 22px;
  }

  .contact-subtitle {
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 20px 16px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-textarea {
    min-height: 100px;
  }

  .contact-submit {
    padding: 14px;
    font-size: 15px;
  }

  .contact-info {
    display: none;
  }
}

/* PRICING SECTION */
.pricing {
  background: radial-gradient(circle at top left, #f5f7ff 0, #e6ecff 35%, #f7f8fc 70%, #ffffff 100%);
  position: relative;
  padding: 80px 0;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pricing-inner {
  position: relative;
  z-index: 1;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.pricing-subtitle {
  margin: 0;
  font-size: 18px;
  color: #4b5563;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.pricing-card {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f3c88, #142551);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card--featured {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(237, 242, 255, 0.96));
  border: 2px solid rgba(31, 60, 136, 0.15);
}

.pricing-card--featured::before {
  opacity: 1;
}

.pricing-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.pricing-card-subtitle {
  margin: 0 0 12px;
  font-size: 15px;
  color: #6b7280;
}

.pricing-card-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}

.pricing-card-price {
  margin-bottom: 16px;
}

.price-range {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
}

.price-range strong {
  color: #1f3c88;
  font-weight: 800;
  font-size: 20px;
}

.pricing-card-extra {
  margin: 16px 0 0;
  font-size: 14px;
  color: #1f3c88;
  font-weight: 600;
}

/* Before/After Comparison */
.pricing-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.comparison-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: white;
}

.comparison-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.comparison-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(31, 60, 136, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Features List */
.pricing-features {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 16px;
  color: #1f2937;
}

.pricing-features-list li {
  padding: 0;
  margin: 0;
}

/* CTA Button */
.pricing-cta {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-cta-btn {
  font-size: 16px;
  padding: 16px 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }

  .pricing-title {
    font-size: 26px;
  }

  .pricing-subtitle {
    font-size: 16px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-features-list {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* COLOR SIMULATION SECTION */
.color-simulation {
  /* full-width background image for the simulation section */
  background-image: url("../images/simulation.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  position: relative;
  padding: 80px 0;
}

.color-simulation::before {
  /* soft white gradient overlay ONLY to improve text readability – no box, no borders */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.78) 25%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(255, 255, 255, 0.15) 85%,
    rgba(255, 255, 255, 0.0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.color-simulation-inner {
  position: relative;
  z-index: 1;
}

.color-simulation-header {
  text-align: center;
  margin-bottom: 48px;
}

.color-simulation-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.color-simulation-subtitle {
  margin: 0;
  font-size: 18px;
  color: #4b5563;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Simulation Steps */
.simulation-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.simulation-step {
  text-align: center;
  min-width: 160px;
  flex-shrink: 1;
}

  .simulation-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf2ff 50%, #dde5ff 100%);
  border: 2px solid rgba(0, 0, 0, 0.25); /* Added prominent border */
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.5), inset 0 0 0 4px rgba(255, 255, 255, 1), inset 0 0 0 8px rgba(148, 163, 184, 0.6); /* Increased shadow */
}

  .simulation-step-text {
  margin: 0;
  font-size: 15px;
  color: #1f2937;
  font-weight: bold;
}

.simulation-step-arrow {
  align-self: center;
  font-size: 20px;
  opacity: 0.7;
}

/* Simulation Tool */
.simulation-tool {
  max-width: 1000px;
  margin: 0 auto;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: none;
}

.simulation-form {
  display: grid;
  gap: 24px;
}

/* Upload Group */
.upload-group {
  grid-column: 1 / -1;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.8));
  border: 2px dashed rgba(31, 60, 136, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.upload-label:hover {
  border-color: rgba(31, 60, 136, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 242, 255, 0.9));
}

.upload-icon {
  font-size: 32px;
}

.upload-text {
  font-size: 15px;
  color: #4b5563;
  font-weight: 600;
}

.upload-input {
  display: none;
}

.image-preview-wrapper {
  margin-top: 16px;
}

.image-preview {
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.image-preview img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}

.placeholder-text {
  color: #9ca3af;
  font-size: 15px;
}

/* Form Controls */
.form-controls {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.select-input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: white;
  font-size: 15px;
  color: #1f2937;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-input:focus {
  outline: none;
  border-color: #1f3c88;
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
}

/* Color Palette */
.color-group {
  grid-column: 1 / -1;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
  border-color: #1f3c88;
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.15);
}

.selected-color-info {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selected-color-label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: #6b7280;
}

.selected-color-label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: #6b7280;
}

.selected-color-label.has-color {
  color: #111827;
}

.selected-color-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.selected-color-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selected-color-name {
  font-weight: 700;
  color: #111827;
  font-size: 18px;
}

.selected-color-code {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Color Variations */
.color-variations {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.variations-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.color-variation-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.color-variation-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-variation-swatch.selected {
  border-color: #1f3c88;
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

.variation-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Submit Button */
.simulation-submit-btn {
  padding: 16px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f3c88, #142551);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  font-family: 'Cairo', sans-serif;
  position: relative;
}

.simulation-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 60, 136, 0.4);
}

  .simulation-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  }

  .simulation-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  }

  .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  }

  .spinner.active {
  display: block;
  }

  @keyframes spin {
  to { transform: rotate(360deg); }
  }

  .progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a); /* Green gradient */
    border-radius: 12px;
    width: 0%;
    display: flex; /* Changed from none to flex for centering */
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: width 1s ease-out;
    text-align: center;
  }
  
  .progress-text {
    z-index: 1;
    color: black !important; /* Make text black */
    font-weight: bold !important; /* Make text bold */
  }

  .simulation-submit-btn .btn-text {
    position: relative;
    z-index: 2; /* Ensure text is above progress bar */
  }

/* Mobile Header WhatsApp Button */
.mobile-header-whatsapp-btn {
  display: none; /* Hidden by default */
}

@media (max-width: 768px) {
  .mobile-header-whatsapp-btn {
    display: block;
    margin-inline-start: 10px; /* Adjust margin for centering */
    margin-inline-end: 10px;
  }

  .mobile-header-whatsapp-btn .btn {
    padding: 8px 14px; /* Make button smaller */
    font-size: 13px;
    gap: 6px;
  }
}

/* FOOTER */
.footer {
  background: linear-gradient(90deg, #142551, #1f3c88);
  color: white;
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.footer-brand-logo .brand-mark {
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff6b45);
  color: #111827;
  font-size: 14px;
}

.footer-brand-logo .brand-text {
  font-size: 18px;
  color: white;
}

.footer-brand-description {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin: 0 0 16px;
}

.footer-links-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a,
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a:hover,
.footer-contact-list a:hover {
  color: white;
  text-decoration: underline;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-contact-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    display: none;
  }

  .footer-contact {
    display: none;
  }
}

.helper-text {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.error-message {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 14px;
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

/* Result Section */
.result-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: none;
}

.result-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 20px;
  text-align: center;
}

.result-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 16px;
}

.result-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  margin: 0 auto;
  display: block;
  text-align: center;
  max-width: 200px;
}

.download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .color-simulation {
    padding: 60px 0;
  }

  .color-simulation-header {
    margin-bottom: 32px;
  }

  .color-simulation-title {
    font-size: 26px;
  }

  .color-simulation-subtitle {
    font-size: 16px;
  }

  .simulation-steps {
    gap: 2px;
    margin-bottom: 32px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    overflow: visible; /* Ensure content is not cut off */
  }

  .simulation-step-arrow {
    display: none;
  }

  .simulation-step {
    min-width: 0; /* Allow shrinking */
    flex: 1 1 auto; /* Allow growing and shrinking, distribute space */
    max-width: 33.333%; /* Max width for each of the three items */
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .simulation-step-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
    margin: 0 auto 6px;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.2); /* Added prominent border */
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.9), inset 0 0 0 4px rgba(148, 163, 184, 0.35); /* Increased shadow */
  }

  .simulation-step-text {
    font-size: 12px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .simulation-step-arrow {
    display: none;
  }

  .simulation-tool {
    padding: 24px 18px;
  }

  .simulation-form {
    gap: 20px;
  }

  .upload-label {
    padding: 20px 16px;
  }

  .upload-icon {
    font-size: 28px;
  }

  .upload-text {
    font-size: 14px;
  }

  .form-controls {
    gap: 16px;
  }

  .color-palette {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .color-swatch {
    width: 36px;
    height: 36px;
  }

  .selected-color-info {
    padding: 16px 18px;
    margin-top: 12px;
  }

  .selected-color-label {
    gap: 16px;
    font-size: 14px;
  }

  .selected-color-preview {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.15);
  }

  .selected-color-name {
    font-size: 16px;
  }

  .selected-color-code {
    font-size: 12px;
  }

  .simulation-submit-btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .result-section {
    margin-top: 24px;
    padding-top: 24px;
  }

  .result-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .color-simulation {
    padding: 50px 0;
  }

  .color-simulation-title {
    font-size: 22px;
  }

  .color-simulation-subtitle {
    font-size: 14px;
  }

  .simulation-steps {
    flex-direction: row;
    gap: 2px;
    margin-bottom: 28px;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: flex-start;
    overflow: visible; /* Ensure content is not cut off */
  }

  .simulation-step-arrow {
    display: none;
  }

  .simulation-step {
    min-width: 0; /* Allow shrinking */
    flex: 1 1 auto; /* Allow growing and shrinking, distribute space */
    max-width: 33.333%; /* Max width for each of the three items */
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .simulation-step-icon {
    width: 34px; /* Slightly larger icons */
    height: 34px;
    font-size: 16px; /* Larger font for icons */
    margin: 0 auto 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.15); /* Added prominent border */
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25), inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), inset 0 0 0 3px rgba(148, 163, 184, 0.3); /* Increased shadow */
  }

  .simulation-step-text {
    font-size: 8px; /* Slightly larger font for text */
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .simulation-tool {
    padding: 20px 14px;
  }

  .upload-label {
    padding: 16px 12px;
  }

  .upload-text {
    font-size: 13px;
    text-align: center;
  }

  .image-preview {
    min-height: 150px;
  }

  .color-palette {
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 6px;
  }

  .color-swatch {
    width: 32px;
    height: 32px;
  }

  .selected-color-info {
    padding: 10px 12px;
  }

  .simulation-submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}


/* SERVICES SECTION */
.services {
  background-image: url("../images/spray.png");
  background-position: center top;
  background-repeat: no-repeat;
  /* restored to cover so the section feels full and balanced */
  background-size: cover;
  position: relative;
  padding: 40px 0 80px;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 35%, transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 0;
}

.services-inner {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 32px;
}

.services-title {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
}

.services-subtitle {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f3c88;
  font-weight: 700;
}

.services-intro {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

.services-cards {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  margin-bottom: 120px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-card {
  flex: 1 1 260px;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.service-card--negative {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.96));
}

.service-card--handles {
  /* softer, borderless highlight card for extra service */
  border: none;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

  .service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf2ff 50%, #dbeafe 100%);
    border: 2px solid rgba(0, 0, 0, 0.2); /* Added border */
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7), inset 0 0 0 5px rgba(255, 255, 255, 1), inset 0 0 0 10px rgba(148, 163, 184, 0.8);
  }

.service-card-text {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.service-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.service-list li {
  margin-bottom: 4px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.service-list--positive li {
  color: #15803d;
}

.service-list--negative li {
  color: #b91c1c;
}

  .services-steps {
    display: flex;
    flex-wrap: nowrap; /* Ensure steps are in one line on PC */
    justify-content: space-around; /* Distribute items evenly */
    gap: 20px; /* Original gap */
  }

.service-step-arrow {
  display: none; /* Hide arrows globally */
  align-self: center;
  font-size: 20px;
  opacity: 0.7;
}

  .service-step {
    min-width: auto; /* Revert to auto min-width */
    max-width: 24%; /* Approximately 1/4 width for 4 items */
    flex: 1 1 24%;
    text-align: center;
    position: relative; /* Keep relative for potential mobile pseudo-elements */
  }

  .service-step-icon {
  width: 100%;
  max-width: 220px; /* Enlarged for desktop (~2x+) */
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf2ff 50%, #dde5ff 100%);
  border: 2px solid rgba(0, 0, 0, 0.2); /* Added border */
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7), inset 0 0 0 6px rgba(255, 255, 255, 1), inset 0 0 0 12px rgba(148, 163, 184, 0.8);
  font-size: 24px;
}

.service-step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

  .service-step-text {
    margin: 0;
    font-size: 15px;
    color: #1f2937;
    font-weight: bold;
  }

@media (max-width: 768px) {
  .services {
    padding-top: 30px;
  }

  .services-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .service-card {
    padding: 14px 12px;
    max-width: calc(50% - 6px);
    flex: 0 1 calc(50% - 6px);
  }

  .service-card-title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .service-list {
    font-size: 12px;
  }

  .service-list li {
    margin-bottom: 3px;
    padding: 3px 0;
  }

  .service-card-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
    margin-bottom: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.15); /* Added border */
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.5), inset 0 0 0 4px rgba(255, 255, 255, 1), inset 0 0 0 8px rgba(148, 163, 184, 0.6);
  }

  .service-card-text {
    font-size: 12px;
  }

  .services-steps {
    gap: 20px; /* Adjusted gap for mobile arrows */
    flex-direction: row;
    flex-wrap: wrap; /* Allow steps to wrap to multiple lines */
    justify-content: center;
  }

  .service-step {
    min-width: auto;
    max-width: calc(50% - 10px); /* Two items per line with a gap */
    flex: 0 1 calc(50% - 10px);
    position: relative;
  }

  .service-step:not(:nth-child(2n))::after {
    content: none; /* Hide horizontal arrow */
  }

  .service-step:nth-child(-n+2)::before {
    content: none; /* Hide vertical arrow */
  }

  .service-step:nth-child(2)::after { /* Hide horizontal arrow after the second item (end of first row) */
    content: none;
  }

  .service-step:nth-child(3)::before,
  .service-step:nth-child(4)::before { /* Hide vertical arrows for the last two items (second row) */
    content: none;
  }
  

  .service-step-icon {
  max-width: 150px; /* Larger icons on tablets/mobile */
  margin-bottom: 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.15); /* Added border */
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25), inset 0 0 0 2.5px rgba(255, 255, 255, 0.9), inset 0 0 0 5px rgba(148, 163, 184, 0.35);
  }

  .service-step-text {
    font-size: 11px;
    font-weight: bold;
  }

  .service-step-arrow {
    display: none; /* Hide arrows by default in mobile for this layout */
  }
}

@media (max-width: 480px) {
  .services-cards {
    gap: 10px;
  }

  .service-card {
    padding: 12px 10px;
    max-width: calc(50% - 5px);
    flex: 0 1 calc(50% - 5px);
  }

  .service-card-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
    margin-bottom: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Added border */
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.3), inset 0 0 0 2.5px rgba(255, 255, 255, 0.95), inset 0 0 0 5px rgba(148, 163, 184, 0.4);
  }

  .service-card-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .service-card-text {
    font-size: 11px;
  }

  .service-list {
    font-size: 11px;
  }

  .services-steps {
    gap: 16px; /* Adjusted gap for smaller mobile arrows */
  }

  .service-step {
    min-width: auto;
    max-width: calc(50% - 8px); /* Two items per line with a gap */
    flex: 0 1 calc(50% - 8px);
    position: relative;
  }

  .service-step:not(:nth-child(2n))::after {
    content: none; /* Hide horizontal arrow */
  }

  .service-step:nth-child(-n+2)::before {
    content: none; /* Hide vertical arrow */
  }

  .service-step:nth-child(2)::after { /* Hide horizontal arrow after the second item (end of first row) */
    content: none;
  }

  .service-step:nth-child(3)::before,
  .service-step:nth-child(4)::before { /* Hide vertical arrows for the last two items (second row) */
    content: none;
  }
  

  .service-step-icon {
  max-width: 120px; /* Larger icons on small mobiles */
  margin-bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1); /* Added border */
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.3), inset 0 0 0 2.5px rgba(255, 255, 255, 0.95), inset 0 0 0 5px rgba(148, 163, 184, 0.4);
  }

  .service-step-text {
    font-size: 10px;
    font-weight: bold;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  /* Smooth scrolling for anchor links */
  html {
    scroll-behavior: smooth;
  }

  /* Better touch targets */
  .btn,
  .contact-submit,
  .simulation-submit-btn,
  .pricing-cta-btn,
  .download-link {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Prevent text size adjustment on iOS */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Better spacing for sections */
  section {
    scroll-margin-top: 60px;
  }

  /* Improve container padding on mobile */
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

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

  /* Better container padding */
  .container {
    padding: 0 12px;
  }

  /* Ensure all buttons are full width on very small screens */
  .btn {
    width: 100%;
  }
}
