/* General Reset and Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  overflow-x: clip;
  /* clip prevents horizontal scroll without breaking position: sticky! */
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.page-exit {
  opacity: 0 !important;
  transition: opacity 0.4s ease-out !important;
}

/* Accessibility: Global Focus State */
*:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 0 40px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1d1d1f, #86868b, #1d1d1f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

.navbar-logo {
  height: 64px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-4px);
  /* Optical adjustment to balance top/bottom padding */
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #1d1d1f;
  font-size: 16px;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #1d1d1f;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown menu styles for Services */
.nav-links li {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 20, 25, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 6px;
  min-width: 250px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links .dropdown-menu {
  list-style: none;
}

.nav-links .dropdown-menu li {
  padding: 0;
  list-style: none;
}

.nav-links .dropdown-menu a {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-links .dropdown > a::after {
  display: none;
}

.nav-links .dropdown-menu {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Chevron indicator on Services */
.nav-links .dropdown > a .chevron {
  display: inline-block;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  margin-left: 4px;
  transition: transform 0.25s ease;
  vertical-align: middle;
  color: #d4af37;
}

.nav-links .dropdown > a.active .chevron {
  transform: rotate(90deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0;
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 90px;
    right: -100%;
    width: 260px;
    height: calc(100% - 90px);
    padding: 12px 0;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links > li:last-child > a {
    border-bottom: none;
  }
  /* Show chevron on mobile */
  .nav-links .dropdown > a .chevron {
    display: inline-block;
  }
  .nav-links .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 0;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    width: 100%;
  }
  .nav-links .dropdown-menu.active {
    display: flex;
  }
  .nav-links .dropdown-menu li {
    width: 100%;
  }
  .nav-links .dropdown-menu a {
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    white-space: normal;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: center;
    text-align: center;
  }
  .nav-links .dropdown-menu li:last-child a {
    border-bottom: none;
  }
  .nav-links .dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37 !important;
  }
}

/* Hide chevron on desktop */
@media (min-width: 769px) {
  .nav-links .dropdown > a .chevron {
    display: none;
  }
}

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  /* Swapped to min-height to prevent vertical text overflow on small devices */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 100px 5% 60px;
  background-color: #fbfbfd;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
  max-width: 800px;
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-logo {
  height: 90px;
  width: 90px;
  object-fit: contain;
}

.hero-content h1 {
  font-size: 100px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  display: block;
  background: linear-gradient(90deg,
      #1d1d1f 0%,
      #1d1d1f 45%,
      #9e9ea3 50%,
      #1d1d1f 55%,
      #1d1d1f 100%);
  background-size: 200% auto;
  color: #1d1d1f;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

.hero-content p {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background-color: #1d1d1f;
  color: #fff;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  background-color: transparent;
  color: #1d1d1f;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  border: 1px solid #1d1d1f;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

/* Hero "Explore Case Studies" — solid golden background by default */
.hero-buttons .btn-secondary {
  background-color: #d4af37;
  color: #000;
  border-color: #d4af37;
  font-weight: 600;
  animation: goldenPulse 2.5s ease-in-out infinite;
}

.hero-buttons .btn-secondary:hover {
  background-color: #b5952f;
  color: #000;
  border-color: #b5952f;
  animation: none;
}

@keyframes goldenPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    border-color: #d4af37;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    border-color: rgba(212, 175, 55, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    border-color: #d4af37;
  }
}

.hero-content p.hero-subtitle {
  margin-top: 24px;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: 600;
  color: #000000 !important;
  /* Black color */
  letter-spacing: -0.01em;
  opacity: 1;
}

.hero-image-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
}

/* Growth Studio Section */
.growth-section {
  position: relative;
  padding: 80px 5%;
  background: linear-gradient(135deg, #090b14 0%, #171124 50%, #291a0c 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.growth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.growth-content-left h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 40%,
      #d4af37 50%,
      #8bb4f9 60%,
      #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

.growth-content-left p {
  font-size: 16px;
  color: #a1a1a6;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 90%;
}

.growth-list {
  list-style: none;
  margin-bottom: 40px;
}

.growth-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.5;
}

.growth-list li::before {
  content: "•";
  color: #d4af37;
  font-size: 24px;
  position: absolute;
  left: 0;
  top: -5px;
}

.btn-growth {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    border-color: rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

.btn-growth:hover {
  background-color: #d4af37;
  border-color: #d4af37;
  color: #fff;
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.growth-content-right {
  background-color: #151822;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.layers-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer {
  padding: 20px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform;
}

.layer:hover {
  transform: translateX(12px) scale(1.02);
}

.layer-inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: #6e7078;
}

.layer-inactive:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.layer-active {
  background-color: #1a233a;
  color: #8bb4f9;
  border: 1px solid #2b4570;
}

.layer-active:hover {
  background-color: #202c4b;
  border-color: #4c73ba;
  box-shadow: 0 0 24px rgba(43, 112, 240, 0.2);
}

/* Cards Section */
.cards-section {
  padding: 80px 0;
  background-color: #fbfbfd;
  overflow: hidden;
}

.cards-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.cards-header h2 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.cards-header p {
  font-size: 26px;
  color: #86868b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  font-weight: 500;
}

/* =============================================
   Modern App-Style Bento Grid
   ============================================= */
.m-bento-wrapper {
  padding: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.m-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 16px;
  border-radius: 40px;
  padding: 16px;
}

.m-bento-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  border: none;
  background-color: #e8e4dc;
  color: #fff;
}

.m-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Backgrounds - kept for fallback only; image will cover these */
.bg-light-blue {
  background: linear-gradient(135deg, #dde4f0 0%, #c8d4e8 100%);
  color: #ffffff;
}

.bg-mint-grad {
  background: linear-gradient(135deg, #d4e8dc 0%, #bcd8c8 100%);
  color: #ffffff;
}

.bg-bright-blue {
  background: linear-gradient(135deg, #d8e0f4 0%, #c4cfee 100%);
  color: #ffffff;
}

.bg-bright-mint {
  background: linear-gradient(135deg, #cce4d8 0%, #b8d8c8 100%);
  color: #ffffff;
}

/* Background Images - Full Coverage */
.m-bento-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
  z-index: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

/* Scrim only at the bottom where text sits */
.m-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.0) 45%,
    rgba(0, 0, 0, 0.70) 75%,
    rgba(0, 0, 0, 0.88) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.m-bento-card:hover .m-bento-img {
  opacity: 1;
  transform: scale(1.05);
}

/* Content layout */
.m-bento-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  color: #fff;
}

/* Typography Utilities */
.m-bento-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.huge-title {
  font-size: 52px;
  font-weight: 500;
  margin: auto 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.giant-number {
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.04em;
}

.m-bento-desc {
  font-size: 12px;
  opacity: 1;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.80);
  margin-top: 8px;
  margin-bottom: 0;
}

.m-bento-title {
  margin-bottom: 0;
}

.m-bento-small-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  opacity: 1;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.align-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.m-bento-bottom-row {
  margin-top: auto;
  align-items: flex-end;
}

/* Badges & Icons (Base styles for light cards) */
.m-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.icon-square {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #3B82F6 !important;
  /* Solid blue for light mint background */
  color: #fff !important;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff !important;
  color: #3B82F6 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.card-icon {
  display: none;
}

/* Hover arrow — top-right corner, hidden by default */
.m-bento-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'/%3E%3Cpolyline points='5 12 12 5 19 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.m-bento-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.m-border-tag {
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #1d1d1f !important;
  letter-spacing: 0.05em;
}

/* Glass icon defaults */
.glass-icon {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

/* Special overrides for the bright text-inverted cards */
.bg-bright-blue .icon-circle,
.bg-bright-blue .glass-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

/* SVG colors - all white on dark image backgrounds, but exclude icon containers with their own bg */
.m-bento-content>svg,
.m-bento-content .flex-between>svg,
.m-bento-content .m-bento-bottom-row>svg {
  stroke: #ffffff !important;
}

/* Icon containers keep their intentional colors */
.icon-circle svg {
  stroke: #3B82F6 !important;
}

.icon-square svg {
  stroke: #ffffff !important;
}

/* glass-icon svgs use their inline stroke attribute - no override */

/* Hover: icon-circle glows gold */
.m-bento-card:hover .icon-circle svg {
  stroke: #d4af37 !important;
}

/* Specific Positions — all equal 1x1 in 3-column grid */
.m-bento-tall-left,
.m-bento-huge-center,
.m-bento-small-top-right,
.m-bento-small-bottom-left,
.m-bento-wide-bottom,
.m-bento-tall-right {
  grid-column: auto;
  grid-row: auto;
}

/* Tablet (2 cols) */
@media (max-width: 1024px) {
  .m-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .m-bento-tall-left,
  .m-bento-huge-center,
  .m-bento-small-top-right,
  .m-bento-small-bottom-left,
  .m-bento-wide-bottom,
  .m-bento-tall-right {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .huge-title {
    font-size: 42px;
  }

  .giant-number {
    font-size: 80px;
  }
}

/* Mobile (1 col) */
@media (max-width: 640px) {
  .m-bento-wrapper {
    padding: 0 16px 60px;
  }

  .m-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-bento-tall-left,
  .m-bento-huge-center,
  .m-bento-small-top-right,
  .m-bento-small-bottom-left,
  .m-bento-wide-bottom,
  .m-bento-tall-right {
    grid-column: 1;
    grid-row: auto;
    min-height: 320px;
  }

  .huge-title {
    font-size: 36px;
  }

  .giant-number {
    font-size: 72px;
  }
}

/* Pinterest / Masonry Bento Grid Section */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

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

@media (min-width: 1025px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Strict scaling, allowing auto max calculation */
    grid-auto-flow: dense;
    grid-auto-rows: minmax(1px, auto);
    gap: 24px;
  }
}

.bento-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 380px;
  /* Forces cards into strong vertical/square rectangles in a 3-column grid */
  justify-content: flex-start;
  /* keep text at the top */
}

/* Removed previous text-protection gradient overlay to let vibrant image colors show */

/* Card Aesthetic Palettes */
.card-blue {
  background-color: #131A32;
  /* Matches SEO Image edge */
}

.card-purple {
  background-color: #1D32A8;
  /* Matches Web Dev edge */
}

.card-orange {
  background-color: #7B5F12;
  /* Matches Mobile App edge */
}

.card-magenta {
  background-color: #230713;
  /* Matches AI Agent edge */
}

.card-green {
  background-color: #0B2519;
  /* Matches QA Testing edge */
}

.card-dark {
  background-color: #141416;
  /* Matches Branding edge */
}

/* Form Highlight Class */
.highlight-form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  border-radius: 40px;
  /* Match form container border radius */
  z-index: 10;
}

@media (max-width: 768px) {
  .bento-card {
    min-height: 200px;
    padding: 24px;
  }

  .bento-card h3 {
    font-size: 24px;
  }

  .bento-grid {
    gap: 20px;
  }
}

.bento-card:hover {
  transform: translateY(-6px);
}

/* Glowing Borders on Hover */
.card-blue:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.card-purple:hover {
  border-color: #8b5cf6;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.card-orange:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.card-magenta:hover {
  border-color: #ec4899;
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
}

.card-green:hover {
  border-color: #10b981;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.card-dark:hover {
  border-color: #6b7280;
  box-shadow: 0 10px 40px rgba(107, 114, 128, 0.3);
}

.bento-card .card-text {
  position: relative;
  z-index: 2;
  /* Sits above the gradient overlay */
  margin-bottom: auto;
  max-width: 90%;
  pointer-events: none;
  /* Let clicks pass through if the user clicks here instead of the whole card action */
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.card-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Base layer */
  pointer-events: none;
}

/* Card Action Arrow */
.card-action {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

/* Unique Card Hover Button */
.card-hover-btn {
  position: absolute;
  bottom: 24px;
  left: 32px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
  backdrop-filter: blur(10px);
  pointer-events: none;
  /* so it doesn't interrupt the anchor click */
}

.bento-card:hover .card-hover-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-action .arrow {
  color: #1d1d1f;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.bento-card:hover .card-action {
  background: #1d1d1f;
}

.bento-card:hover .card-action .arrow {
  color: #ffffff;
  transform: rotate(-45deg);
}

.btn-explore:hover {
  background-color: #b5952f !important;
}

/* Content Grid Layouts (Case Studies & Blogs) */
.grid-section {
  padding: 48px 20px;
  background-color: #f5f5f7;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bento Case Studies Grid */
.bento-case-studies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

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

@media (min-width: 1024px) {
  .bento-case-studies {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 340px;
  }

  .bento-cs-featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.bento-cs-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 300px;
}

.bento-cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-cs-featured,
.bento-cs-gradient {
  background: transparent;
  color: #fff;
  justify-content: space-between;
  border: none;
}

.bento-cs-featured:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Scrim sits only behind the text and metrics, not the full card */
.bento-cs-featured .cs-text-block {
  background: none;
  border-radius: 10px;
  padding: 12px 16px;
}

.bento-cs-gradient .cs-text-block {
  background: none;
  border-radius: 10px;
  padding: 12px 16px;
}

.bento-cs-featured .cs-metrics {
  background: none;
  border-radius: 10px;
  padding: 12px 16px;
  border-top: none;
}

.bento-cs-gradient .cs-metrics {
  background: none;
  border-radius: 10px;
  padding: 12px 16px;
  border-top: none;
  margin-top: 8px;
}

.cs-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* No full-card overlay — scrim lives behind the text block only */
.cs-animated-bg::after {
  display: none;
}

.cs-animated-bg::before {
  display: none;
}

.cs-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.cs-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.bento-cs-featured>div:not(.cs-animated-bg),
.bento-cs-gradient>div:not(.cs-animated-bg) {
  position: relative;
  z-index: 5;
}

.cs-industry {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
  color: #888;
}

.bento-cs-featured .cs-industry,
.bento-cs-gradient .cs-industry {
  color: #d4af37;
  font-size: 11px;
  letter-spacing: 2px;
}

.cs-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-right: 40px;
}

/* Featured (big) card — prominent title */
.bento-cs-featured .cs-title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Smaller gradient cards — compact title */
.bento-cs-gradient .cs-title {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cs-services {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Featured card services */
.bento-cs-featured .cs-services {
  color: rgba(255, 255, 255, 0.80);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Smaller cards services */
.bento-cs-gradient .cs-services {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-metrics {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

.bento-cs-featured .cs-metrics,
.bento-cs-gradient .cs-metrics {
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  border-top: none;
}

.cs-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1;
}

.bento-cs-featured .cs-metric-value,
.bento-cs-gradient .cs-metric-value {
  font-size: 28px;
  background: linear-gradient(90deg, #d4af37, #fdf0a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-metric-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.bento-cs-featured .cs-metric-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.bento-cs-gradient .cs-metric-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.cs-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-arrow svg {
  width: 20px;
  height: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-cs-featured .cs-arrow svg {
  width: 24px;
  height: 24px;
}

.bento-cs-featured .cs-arrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bento-cs-card:hover .cs-arrow {
  background: #1d1d1f;
  color: #fff;
  transform: rotate(-45deg);
}

.bento-cs-featured:hover .cs-arrow {
  background: #fff;
  color: #1d1d1f;
  transform: rotate(-45deg);
}

/* Card Focus Interaction */
.bento-case-studies .bento-cs-card:hover {
  transform: scale(1) translateY(-6px);
  z-index: 10;
}


/* Testimonials Section Dribbble Effect */
.testimonials-dribbble {
  position: relative;
  padding: 100px 20px;
  background: #fbfbfd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  overflow: hidden;
}

.test-bg-shape {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 35vw;
  height: 90vh;
  background-color: #d4af37;
  border-top-right-radius: 500px;
  border-bottom-right-radius: 500px;
  z-index: 1;
}

.test-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  min-height: 500px;
}

.test-left {
  flex: 0 0 45%;
  padding: 60px;
  position: relative;
}

.test-right {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border-left: 1px solid #f0f0f0;
}

.test-heading {
  font-size: 24px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 40px;
  position: relative;
}

.test-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 40px;
  height: 3px;
  background: #0d8a43;
}

.test-slider {
  position: relative;
  height: 400px;
  width: 100%;
}

.test-curve {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.test-avatars {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.avatar-item {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transform-origin: left center;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s;
}

.avatar-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: #333;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.rating-date {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rating-date .stars {
  color: #d4af37;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
}

/* Avatar Positions */
.pos-hidden-top {
  top: -15%;
  transform: translateY(-50%) translateX(0px) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.pos-prev-2 {
  top: 5%;
  transform: translateY(-50%) translateX(5px) scale(0.65);
  opacity: 0.3;
  z-index: 3;
}

.pos-prev-1 {
  top: 25%;
  transform: translateY(-50%) translateX(30px) scale(0.8);
  opacity: 0.5;
  z-index: 4;
}

.pos-active {
  top: 50%;
  transform: translateY(-50%) translateX(55px) scale(1.1);
  opacity: 1;
  z-index: 5;
}

.pos-active .avatar-img {
  border: 2px solid #0d8a43;
  box-shadow: 0 8px 20px rgba(13, 138, 67, 0.2);
}

.pos-active .avatar-info h4 {
  color: #000;
}

.pos-next-1 {
  top: 75%;
  transform: translateY(-50%) translateX(30px) scale(0.8);
  opacity: 0.5;
  z-index: 4;
}

.pos-next-2 {
  top: 95%;
  transform: translateY(-50%) translateX(5px) scale(0.65);
  opacity: 0.3;
  z-index: 3;
}

.pos-hidden-bottom {
  top: 115%;
  transform: translateY(-50%) translateX(0px) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

/* Right Section Quote */
.test-quote-icon {
  font-family: Georgia, serif;
  font-size: 80px;
  color: #e2e8f0;
  line-height: 0.8;
  margin-bottom: -15px;
  margin-left: -15px;
}

/* Stars shown above the desktop quote */
.test-stars-top {
  color: #d4af37;
  font-size: 26px;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 14px;
  margin-top: 4px;
}

.test-quote-text {
  font-size: 22px;
  line-height: 1.75;
  color: #475569;
  font-style: italic;
  font-family: Georgia, serif;
  transition: opacity 0.4s ease;
  min-height: 120px;
}

@media (max-width: 768px) {
  .test-content-wrapper {
    flex-direction: column;
    margin: 0 20px;
  }

  .test-left {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .test-slider {
    width: 280px;
  }

  .test-right {
    padding: 40px 20px;
    border-left: none;
  }

  .test-bg-shape {
    width: 50vw;
  }
}

#blogs {
  background: linear-gradient(135deg, #fdfbf7 0%, #eae4d3 100%);
  max-width: 100%;
}

#blogs .grid-container,
#blogs .grid-header {
  max-width: 1200px;
  margin: 0 auto;
}

#blogs .grid-header {
  margin-bottom: 60px;
}

.grid-header {
  text-align: center;
  margin-bottom: 40px;
}

.grid-header h2 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.grid-header p {
  font-size: 24px;
  color: #86868b;
  max-width: 800px;
  margin: 0 auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
}

.content-card {
  position: relative;
  background-color: #000;
  border-radius: 32px;
  /* Medium radius for pill-like edges */
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  border: none;
  /* Thick white frame removed */
  overflow: hidden;
  /* Ensure image clips to inner border radius */
  min-height: 580px;
  /* Tall card look */
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 0;
  margin-bottom: 0;
}

.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 32px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform-origin: center;
  border-radius: 32px;
}

.content-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.content-card .card-text {
  position: relative;
  z-index: 3;
  padding: 32px 24px 24px;
  /* Adjust padding for bottom spacing */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  flex-grow: 1;
}

.content-card .card-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.content-card .card-subtitle {
  font-size: 12px;
  color: #d4af37;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}

.content-card .card-desc {
  font-size: 15px;
  color: #a1a1a6;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Wider gap like image */
  margin-bottom: 24px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.80);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-meta svg {
  color: rgba(255, 255, 255, 0.8);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center the full-width button */
  width: 100%;
  margin-top: auto;
  padding-bottom: 0;
}

.btn-card-main {
  background: #f8f9fa;
  /* Light grey/white bg like the image */
  color: #1a1a1a;
  padding: 18px 24px;
  border-radius: 60px;
  /* Fully rounded pill shape */
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  width: 100%;
  /* Full width */
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
}

.btn-card-main:hover {
  background-color: #d4af37;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-card-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  /* Translucent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  /* Keep above image */
}

.btn-card-icon svg {
  transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
  stroke: #ffffff !important;
  /* Make it white like reference */
}

.btn-card-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-card-icon:hover svg {
  transform: scale(1.1);
  fill: #ffffff;
}

/* CTA Section */
.cta-section {
  padding: 0;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

.cta-split {
  display: flex;
  min-height: 600px;
}

.cta-video-col {
  flex: 1.5;
  position: relative;
  overflow: hidden;
}

.cta-about-video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.cta-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  background-color: #000;
}

.cta-text-col h2 {
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-text-col p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background-color: #d4af37;
  color: #000;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-buttons .btn-primary:hover {
  background-color: #b5952f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cta-buttons .btn-secondary {
  display: inline-block;
  padding: 16px 36px;
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-buttons .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .growth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-logo {
    height: 72px;
    width: 72px;
  }

  .hero-content h1 {
    font-size: 80px;
  }

  .hero-content p {
    font-size: 24px;
  }

  .parallax-content h2 {
    font-size: 64px;
  }

  .cards-header h2 {
    font-size: 56px;
  }

  .cta-container h2 {
    font-size: 48px;
  }

  .grid-header h2 {
    font-size: 48px;
  }

  .card {
    width: 340px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
    padding: 0 20px;
    justify-content: flex-start;
  }

  .nav-content {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-logo {
    height: 56px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(15, 15, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 0;
    transform: translateY(-150%);
    opacity: 0;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links > li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    padding: 16px 20px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-links .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    list-style: none !important;
  }

  .nav-links .dropdown-menu.active {
    display: flex;
  }

  .nav-links .dropdown-menu li {
    width: 100%;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav-links .dropdown-menu a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 13px 20px !important;
    text-align: center !important;
    justify-content: center;
  }

  .nav-links .dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
  }

  .hero-title-wrapper {
    gap: 16px;
  }

  .hero-logo {
    height: 56px;
    width: 56px;
  }

  .hero-section {
    padding: 90px 20px 40px;
    align-items: flex-start;
    min-height: 100svh;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: clamp(32px, 9vw, 52px) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-content p {
    font-size: 17px;
    max-width: 100%;
  }

  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    opacity: 0.92;
  }

  .parallax-content h2 {
    font-size: 48px;
  }

  .parallax-content p {
    font-size: 22px;
  }

  .cards-header h2 {
    font-size: 40px;
  }

  .cards-header p {
    font-size: 20px;
  }

  .card {
    width: 300px;
  }

  .card-text {
    padding: 32px 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .cta-text-col h2 {
    font-size: 36px;
  }

  .cta-text-col {
    padding: 60px 40px;
  }

  .grid-header h2 {
    font-size: 40px;
  }

  .grid-header p {
    font-size: 20px;
  }

  .cta-container p {
    font-size: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .cta-buttons a {
    width: 100%;
    box-sizing: border-box;
  }

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

  .card {
    width: 300px;
  }
}

/* Modal Overlay Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

.close-modal {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #d4af37;
  color: #000;
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.close-modal:hover {
  background: #b5952f;
  transform: scale(1.1);
}

.modal-content-wrapper .footer-form-container {
  background-color: #171124;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8);
}

/* Footer & Contact Form */
.footer-section {
  background-color: #0b0c10;
  color: #fff;
  padding: 60px 5% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.footer-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.footer-info p {
  display: none;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-column h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  color: #a1a1a6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #fff;
}

.footer-start-project {
  margin-bottom: 32px;
}

.btn-start-project {
  display: inline-block;
  color: #d4af37;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-start-project:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
}

.copyright {
  font-size: 14px !important;
  color: #6e7078 !important;
  margin-bottom: 0 !important;
}

.footer-location-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a1a1a6;
  font-size: 14px;
}

.footer-location-socials .dot {
  color: #4a4a4e;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  transition:
    color 0.3s,
    transform 0.3s;
}

.social-icons a:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

.footer-form-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #fff;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1a6;
  margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #6e7078;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background-color: #d4af37;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #b5952f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Submit Button Loading State */
.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit .btn-loader {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loader {
  display: flex;
}

.btn-submit.loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-submit .spinner {
  animation: spinRotate 1s linear infinite;
}

@keyframes spinRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* reCAPTCHA wrapper */
.recaptcha-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

@media (max-width: 400px) {
  .recaptcha-wrapper {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* Form Success / Error Messages */
.form-message {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-message--visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-message--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-message--success svg {
  flex-shrink: 0;
  color: #10b981;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.form-message--error svg {
  flex-shrink: 0;
  color: #ef4444;
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 0;
  text-align: center;
  font-size: 13vw;
  font-weight: 800;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-info h2 {
    font-size: 36px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-form-container {
    padding: 30px 20px;
  }
}

/* Services Marquee Styling */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  padding: 40px 0 120px 0;
  /* padding prevent box-shadow clipping */
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-card {
  width: 380px;
  flex: 0 0 auto;
  white-space: normal;
  margin-right: 40px;
  /* Instead of gap for perfect 50% translation */
  /* hardware acceleration per card too */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Specific text sizing for marquee cards to prevent overflow */
.marquee-card .card-text h3 {
  font-size: 26px;
  margin-bottom: 4px;
}

.marquee-card .card-subtitle {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Ensure text is visible over the illustration backgrounds */
.marquee-card .card-img-wrap::after {
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0.4) 100%);
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0%, 0, 0);
  }
}

@media (max-width: 768px) {

  /* ================================
     Mobile: Stack service cards
     (disable marquee, show as grid)
     ================================ */
  .marquee-wrapper {
    overflow: visible;
    padding: 16px 20px 40px;
    display: block;
  }

  .marquee-track {
    display: flex;
    flex-direction: column;
    animation: none !important;
    transform: none !important;
    width: 100%;
    gap: 24px;
    white-space: normal;
  }

  /* Hide the duplicate clone cards — only show original 6 */
  .marquee-card--clone {
    display: none !important;
  }

  .marquee-card {
    width: 100%;
    margin-right: 0;
    min-height: 420px;
    flex: 0 0 auto;
  }

  .marquee-card .card-text h3 {
    font-size: 22px;
  }

  .marquee-card .card-subtitle {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .marquee-card .btn-card-main {
    font-size: 14px;
    padding: 12px 20px;
  }

  /* =============================
     Mobile Testimonials Overrides
     ============================= */

  /* Hide the original left/right split layout on mobile */
  .testimonials-dribbble .test-bg-shape {
    display: none;
  }

  /* Hide desktop-only stars + quote elements on mobile (JS hides quote icon
     and text but misses #testStarsTop, causing triple star display) */
  #testStarsTop,
  .test-quote-icon,
  #testQuoteText,
  .mobile-review-stars {
    display: none !important;
  }

  .testimonials-dribbble {
    padding: 60px 20px;
    min-height: auto;
    background: #f8f6f0;
  }

  .test-content-wrapper {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-height: auto;
    margin: 0;
  }

  /* Hide the desktop avatar slider panel completely on mobile */
  .test-left {
    display: none !important;
  }

  /* Restyle the right panel to be the full mobile card */
  .test-right {
    padding: 0;
    border-left: none;
    background: transparent;
  }

  /* Mobile-only single review card */
  .mobile-review-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobile-review-quote-icon {
    font-family: Georgia, serif;
    font-size: 60px;
    color: #d4af37;
    line-height: 0.8;
    margin-bottom: -10px;
  }

  .mobile-review-text {
    font-size: 19px;
    line-height: 1.75;
    color: #333;
    font-style: italic;
    font-family: Georgia, serif;
    margin-bottom: 20px;
    flex: 1;
    transition: opacity 0.35s ease;
  }

  .mobile-review-text.fading {
    opacity: 0;
  }

  .mobile-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }

  .mobile-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    flex-shrink: 0;
  }

  .mobile-review-name {
    font-size: 17px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.01em;
  }

  .mobile-review-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
  }

  .mobile-review-stars {
    color: #d4af37;
    font-size: 16px;
    margin-right: 4px;
    letter-spacing: 2px;
  }

  /* Stars shown above the review text */
  .mobile-review-stars-top {
    color: #d4af37;
    font-size: 22px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
  }

  /* Navigation arrows row */
  .mobile-review-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
  }

  .mobile-review-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .mobile-review-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s, transform 0.3s;
  }

  .mobile-review-dot.active {
    background: #d4af37;
    transform: scale(1.3);
  }

  .mobile-review-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
  }

  .mobile-review-btn:active {
    background: #d4af37;
    color: #fff;
  }

  .mobile-review-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: center;
  }
}

/* =========================================
   DYNAMIC BLOG TABLE OF CONTENTS & LAYOUT
   ========================================= */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
  align-items: start;
}

.blog-layout-grid .blog-post {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.blog-toc {
  position: sticky;
  top: 100px;
  background: rgba(29, 29, 31, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 32px;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .blog-layout-grid {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }

  .blog-toc {
    position: static;
    margin: 0 0 40px 0;
    max-height: none;
  }

  .blog-layout-grid .blog-post {
    max-width: 760px;
    margin: 0 auto;
  }
}

.blog-toc-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1608;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-toc-list {
  list-style: disc;
  padding: 0 0 0 20px;
  margin: 0;
}

.blog-toc-list li {
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.5;
}

.blog-toc-list li::before {
  display: none !important;
}

.blog-toc-list a {
  color: #4a4a4d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.blog-toc-list a:hover {
  color: #d4af37;
  transform: translateX(4px);
}

.blog-toc-h3 {
  padding-left: 24px !important;
  margin-top: -4px;
}

.blog-toc-h3 a {
  font-size: 15px;
  color: #6e6e73;
  font-weight: 400;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

  /* --- Scroll margin so sticky header doesn't cover section titles --- */
  section[id],
  .grid-section,
  .cards-section,
  .cta-section,
  .testimonials-dribbble {
    scroll-margin-top: 70px;
  }

  /* --- Grid section padding reduced on mobile --- */
  .grid-section {
    padding: 36px 16px;
  }

  /* --- CTA section split layout stacks on mobile --- */
  .cta-split {
    flex-direction: column;
  }

  .cta-video-col {
    height: 260px;
  }

  .cta-text-col {
    padding: 48px 24px;
  }

  .cta-text-col h2 {
    font-size: 28px !important;
    line-height: 1.3;
  }

  .cta-text-col p {
    font-size: 15px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  /* --- Case Studies: reset grid-auto-rows (desktop only), single column stack --- */
  .bento-case-studies {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .bento-cs-card {
    min-height: 200px;
    padding: 20px;
  }

  /* Featured card same column span as others on mobile */
  .bento-cs-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-cs-featured .cs-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .bento-cs-featured .cs-metric-value {
    font-size: 36px;
  }

  /* --- Service cards: proper sizing on mobile --- */
  .content-card.marquee-card {
    min-height: 420px;
  }

  /* --- Ensure card images fill their container on mobile --- */
  .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Blog cards: gap between stacked cards on mobile --- */
  #blogs .grid-container {
    gap: 24px;
  }

  /* --- Blog cards: ensure full image coverage --- */
  #blogs .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Grid section header font sizes --- */
  .grid-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .grid-header p {
    font-size: 15px;
  }

  /* --- Growth section heading overlap fix --- */
  .growth-section {
    scroll-margin-top: 70px;
    padding-top: 48px;
  }
}

/* =============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   480px and below — small phones
   ============================================= */

/* --- Navbar: tighter padding on very small phones --- */
@media (max-width: 480px) {
  .navbar {
    padding: 0 12px;
  }

  .navbar-logo {
    height: 46px;
  }
}

/* --- Hero: better spacing & image contrast on small screens --- */
@media (max-width: 480px) {
  .hero-section {
    padding: 80px 16px 32px;
  }

  .hero-content h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-content p.hero-subtitle {
    font-size: 13px;
  }

  .hero-buttons a {
    font-size: 15px;
    padding: 12px 20px;
  }
}

/* --- Cards section header: scale down on small phones --- */
@media (max-width: 640px) {
  .cards-header h2 {
    font-size: 30px;
  }

  .cards-header p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cards-header h2 {
    font-size: 26px;
  }

  .cards-header p {
    font-size: 14px;
  }
}

/* --- Bento cards: reduce padding & title size on small phones --- */
@media (max-width: 640px) {
  .m-bento-card {
    padding: 20px;
  }

  .m-bento-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .m-bento-card {
    padding: 16px;
  }

  .m-bento-title {
    font-size: 18px;
  }

  .m-bento-tall-left,
  .m-bento-huge-center,
  .m-bento-small-top-right,
  .m-bento-small-bottom-left,
  .m-bento-wide-bottom,
  .m-bento-tall-right {
    min-height: 260px;
  }

  .m-bento-grid {
    gap: 12px;
  }
}

/* --- CTA section: fix image min-height overflow on mobile --- */
@media (max-width: 768px) {
  .cta-about-video {
    min-height: unset;
    height: 100%;
    object-fit: cover;
  }

  .cta-video-col {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .cta-text-col {
    padding: 40px 16px;
  }

  .cta-text-col h2 {
    font-size: 22px !important;
  }

  .cta-text-col p {
    font-size: 14px;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* --- Grid/section headers on small phones --- */
@media (max-width: 640px) {
  .grid-header h2 {
    font-size: 26px;
  }

  .grid-header p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .grid-header h2 {
    font-size: 22px;
  }

  .grid-header p {
    font-size: 13px;
  }

  .grid-section {
    padding: 32px 12px;
  }
}

/* --- Blog cards: reduce min-height & text size on mobile --- */
@media (max-width: 768px) {
  .content-card {
    min-height: 420px;
  }

  .content-card .card-text h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .content-card {
    min-height: 360px;
  }

  .content-card .card-text {
    padding: 20px 16px;
  }

  .content-card .card-text h3 {
    font-size: 18px;
  }

  .btn-card-main {
    font-size: 15px;
    padding: 14px 20px;
  }
}

/* --- Case study cards: tighter on small phones --- */
@media (max-width: 480px) {
  .bento-cs-card {
    padding: 16px;
  }

  .bento-cs-featured .cs-title {
    font-size: 20px;
  }

  .cs-metric-value {
    font-size: 20px;
  }

  .bento-cs-featured .cs-metric-value,
  .bento-cs-gradient .cs-metric-value {
    font-size: 22px;
  }
}

/* --- Growth section: font scale on small phones --- */
@media (max-width: 640px) {
  .growth-content-left h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .growth-content-left h2 {
    font-size: 24px;
  }

  .growth-section {
    padding: 40px 16px;
  }

  .growth-content-right {
    padding: 20px 16px;
  }

  .growth-list li {
    font-size: 14px;
    padding-left: 16px;
  }
}

/* --- Testimonials: tighter layout on small phones --- */
@media (max-width: 480px) {
  .mobile-review-card {
    padding: 20px 16px;
  }

  .mobile-review-text {
    font-size: 16px;
  }

  .mobile-review-section-title {
    font-size: 18px;
  }
}

/* --- Modal: prevent overflow on small screens --- */
@media (max-width: 540px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-content-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .close-modal {
    top: -16px;
    right: -8px;
  }
}

/* --- General section padding on very small phones --- */
@media (max-width: 480px) {
  .cards-section {
    padding: 48px 0;
  }

  .m-bento-wrapper {
    padding: 0 12px 40px;
  }
}