:root {
  --warning-yellow: #ffc107;
}

/* Custom Styles & Animations */

body {
  font-family: "Inter", sans-serif;

  background-color: #ffffff;

  color: #1f2937; /* gray-800 */
}

title {
  display: block;
}

.light-glass-nav {
  background-color: rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(10px);

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

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#hostingResponse, #aiBotResponse {
  display: none;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#hero-section {
  background: linear-gradient(-45deg, #f0f9ff, #ffffff, #cffafe, #e0f2fe);

  background-size: 400% 400%;

  animation: gradient-animation 15s ease infinite;

  position: relative;

  overflow: hidden;
}

.section-title {
  font-weight: 800;

  font-size: 2.5rem;

  text-align: center;

  margin-bottom: 1rem;

  color: #083344; /* cyan-950 */
}

.service-feature-card {
  background: #ffffff;

  border: 1px solid #e5e7eb; /* gray-200 */

  border-radius: 1rem;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-feature-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.team-card,
.blog-card {
  background-color: #f9fafb; /* gray-50 */

  border: 1px solid #e5e7eb; /* gray-200 */
}

/* Scroll Animations */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover {
  opacity: 1;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

/* expand icon 1.5x on hover */
.whatsapp-float:hover img {
  transform: scale(1.5);
}

.btn-primary-custom.gemini-btn {
  background-color: var(--warning-yellow);
  border-color: var(--warning-yellow);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.btn-primary-custom.gemini-btn:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-body .loading-spinner {
  display: none;
  margin: 20px auto;
}

.modal-body .gemini-response {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  white-space: pre-wrap;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  min-height: 60px;
  font-size: 0.95rem;
}

.modal-title .bi-stars {
  color: var(--warning-yellow);
}

.gemini-response {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  white-space: normal; /* Changed from pre-wrap */
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  min-height: 60px;
  font-size: 0.95rem;
  line-height: 1.3; /* Adjust as desired */
}

/* Reset margins for standard text elements inside response */
.gemini-response p,
.gemini-response ul,
.gemini-response ol,
.gemini-response li,
.gemini-response div {
  margin-top: 0;
  margin-bottom: 0.4em; /* Adjust or remove to your preference */
  padding: 0;
}

@media screen and (max-width: 768px) {
  #demo-bot {
    margin-left: 0px;
  }

  .gemini-response {
    font-size: 0.9rem;            /* Slightly smaller font on mobile */
    padding: 12px 10px;           /* Adjust padding for narrow screens */
    line-height: 1.25;            /* Slightly tighter line height */
    min-height: 50px;             /* Adapt min height if needed */
  }

  /* Further reduce margin on nested elements for compactness */
  .gemini-response p,
  .gemini-response ul,
  .gemini-response ol,
  .gemini-response li,
  .gemini-response div {
    margin-top: 0;
    margin-bottom: 0.3em;         /* Less vertical space on mobile */
  }
}

/* =====================================================
   SCORECARD QUIZ STYLES
   ===================================================== */

/* Custom range slider styling */
.slider-cyan {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
}

.slider-cyan::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0891b2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-cyan::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.5);
}

.slider-cyan::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0891b2;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4);
}

/* Scorecard modal dialog styling */
dialog#scorecardModal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

dialog#slsSuggesterModal::backdrop,
dialog#hostingSuggesterModal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Scorecard step transitions */
.scorecard-step {
  animation: fadeIn 0.3s ease-out;
}

.scorecard-question {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Email validation error styling */
.invalid-email {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* =====================================================
   TESTIMONIAL CARD STYLES
   ===================================================== */

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   FOUNDER SECTION STYLES
   ===================================================== */

#founder img {
  transition: transform 0.3s ease;
}

#founder img:hover {
  transform: scale(1.02);
}

/* =====================================================
   CLIENT LOGO STRIP
   ===================================================== */

.client-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* =====================================================
   CASE STUDY PAGES
   ===================================================== */

.cs-hero {
  background:
    radial-gradient(55% 75% at 82% -5%, rgba(8, 145, 178, 0.14), transparent 60%),
    radial-gradient(45% 60% at 5% 110%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 70%);
  position: relative;
  overflow: hidden;
}

.cs-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 64px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
}

.cs-cap {
  position: relative;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.cs-cap:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -22px rgba(8, 145, 178, 0.45);
  border-color: #a5f3fc;
}

.cs-cap .cs-cap-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #0891b2;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 1px solid #a5f3fc;
}

.cs-step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  flex: none;
}

details.faq {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

details.faq[open] {
  border-color: #a5f3fc;
  box-shadow: 0 12px 30px -20px rgba(8, 145, 178, 0.5);
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: #111827;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary .chev {
  transition: transform 0.3s ease;
  color: #0891b2;
  flex: none;
}

details.faq[open] summary .chev {
  transform: rotate(180deg);
}

details.faq .faq-body {
  padding: 0 1.25rem 1.2rem;
  color: #4b5563;
  line-height: 1.7;
}

/* =====================================================
   SERVICES SECTION (Variant B — enhanced)
   ===================================================== */

#services {
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(8, 145, 178, 0.08), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  /* NOTE: no overflow:hidden here — it would disable the sticky service index.
     The decorative accent is clipped by .svc-accent-wrap instead. */
}

/* wrapper clips the decorative accent without affecting position:sticky children */
.svc-accent-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* decorative animated clip-path accent */
#services .svc-accent {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -120px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(14, 116, 144, 0.05));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: blur(2px);
  animation: svcFloat 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes svcFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(28px) rotate(8deg); }
}

/* sticky desktop index */
.svc-index a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b7280;
  font-weight: 600;
  padding: 0.6rem 0 0.6rem 16px;
  border-left: 2px solid #e5e7eb;
  transition: color 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.svc-index a .svc-i-num {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 700;
}

.svc-index a:hover { color: #0891b2; }

.svc-index a.active {
  color: #0e7490;
  border-left-color: #06b6d4;
  padding-left: 22px;
}

.svc-index a.active .svc-i-num { color: #06b6d4; }

/* panels */
.svc-panel {
  position: relative;
  scroll-margin-top: 132px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 24px 55px -34px rgba(2, 8, 23, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 42px));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.svc-panel:hover { transform: translateY(-4px); box-shadow: 0 34px 65px -34px rgba(8, 145, 178, 0.4); }

.svc-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #06b6d4, #0e7490);
}

.svc-panel::after {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.12), transparent 70%);
  pointer-events: none;
}

.svc-num {
  font-weight: 900;
  font-size: 3.25rem;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(8, 145, 178, 0.38);
  color: transparent;
}

.svc-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: #0891b2;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 1px solid #a5f3fc;
}

.svc-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.svc-word.in { opacity: 1; transform: none; }

.svc-pulse {
  box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.5);
  animation: svcPulse 2.2s infinite;
}

@keyframes svcPulse {
  70% { box-shadow: 0 0 0 14px rgba(8, 145, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0); }
}

.svc-cta i { transition: transform 0.3s ease; }
.svc-panel:hover .svc-cta i { transform: translateX(5px); }

/* ---- mobile pill navigator (the "extra" for mobile) ---- */
.svc-pillbar {
  position: sticky;
  top: 60px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.55rem 0.55rem 0.65rem;
  box-shadow: 0 12px 30px -22px rgba(2, 8, 23, 0.4);
}

.svc-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.svc-pills::-webkit-scrollbar { display: none; }

.svc-pill {
  scroll-snap-align: center;
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  transition: all 0.25s ease;
}

.svc-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  border-color: transparent;
  transform: scale(1.05);
}

.svc-progress {
  height: 3px;
  margin-top: 0.55rem;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.svc-progress > span {
  display: block;
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #06b6d4, #0e7490);
  transition: width 0.35s ease;
}

/* =====================================================
   SCARCITY BANNER PULSE
   ===================================================== */

.scarcity-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* =====================================================
   LINE CLAMP UTILITIES (if not using Tailwind plugin)
   ===================================================== */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* =====================================================
   QUOTE / CONTACT MODAL (shared popup)
   ===================================================== */

dialog.cw-modal {
  width: min(640px, 92vw);
  border: none;
  border-radius: 1.25rem;
  padding: 0;
  box-shadow: 0 30px 80px -20px rgba(2, 8, 23, 0.55);
  overflow: visible;
}

dialog.cw-modal::backdrop {
  background: rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(3px);
}

dialog.cw-modal[open] {
  animation: cwPop 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes cwPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.cw-modal .cw-head {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-modal .cw-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.cw-modal .cw-close:hover { background: rgba(255, 255, 255, 0.32); }

.cw-modal .cw-body { padding: 1.5rem; max-height: 78vh; overflow-y: auto; }

.cw-field {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: box-shadow 0.2s ease;
}

.cw-field:focus { outline: none; box-shadow: 0 0 0 2px #06b6d4; }

/* honeypot — visually hidden, off-screen, not display:none (some bots skip hidden) */
.cw-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =====================================================
   CASE STUDIES LISTING PAGE
   ===================================================== */

.cs-search {
  position: relative;
}

.cs-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.cs-filter {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cs-filter:hover { background: #cffafe; }

.cs-filter.active {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  border-color: transparent;
}

.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.1rem;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}

.cs-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #06b6d4, #0e7490);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px -26px rgba(8, 145, 178, 0.5);
  border-color: #a5f3fc;
}

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

.cs-card .cs-card-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  color: #0891b2;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 1px solid #a5f3fc;
}

.cs-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.cs-loc {
  font-size: 0.78rem;
  color: #6b7280;
}

.cs-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-page-btn:hover:not(:disabled) { border-color: #06b6d4; color: #0e7490; }

.cs-page-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  color: #fff;
  border-color: transparent;
}

.cs-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* case study share bar */
.cs-share {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-size: 1.05rem;
}

.cs-share:hover {
  background: #cffafe;
  transform: translateY(-2px);
}

.cs-share.copied {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}
