/* InkSnap homepage theme */

:root {
  --bz-primary: #2163e8;
  --bz-accent: #2163e8;
  --bs-success: #2163e8;
  --bs-success-rgb: 33, 99, 232;
}

/* Blue brand accents */
.text-success,
.products-grid .price {
  color: var(--bz-primary) !important;
}

.bg-success.bg-opacity-10 {
  background-color: rgba(33, 99, 232, 0.1) !important;
}

.home-features .text-success {
  color: var(--bz-primary) !important;
}

body {
  font-family: "Rubik", "Nunito Sans", sans-serif;
  color: #595d69;
  background: #fff;
}

.main-content {
  overflow-x: hidden;
}

/* Header */
header.navbar-light {
  background: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.navbar-brand-item {
  max-height: 42px !important;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: #29292e;
  text-transform: none;
  letter-spacing: 0;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--bz-primary);
}

.agency-nav-search .form-control {
  background: #f7f8f9;
  border: 0;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  border-radius: 0.5rem;
}

.agency-nav-search .btn {
  color: #595d69;
}

/* Keep navbar search from eating the whole bar */
.agency-nav-search {
  flex: 0 1 220px;
  max-width: 220px;
  min-width: 140px;
}

.agency-nav-search .nav-item.w-100 {
  width: 100% !important;
}

.nav-desktop-extra {
  display: none !important;
}

.nav-desktop-more {
  display: list-item !important;
}

@media (max-width: 1199.98px) {
  .nav-desktop-extra {
    display: list-item !important;
  }
  .nav-desktop-more {
    display: none !important;
  }

  .agency-nav-search {
    display: block !important;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    margin: 0.75rem 0 1rem;
  }

  .ink-glass-nav .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e8eaee;
    border-radius: 0.45rem;
    padding: 0.4rem 0.65rem;
    background: #fff;
  }

  .ink-glass-nav .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825, 26, 31, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .ink-glass-nav .navbar-collapse.show {
    margin-top: 0.75rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid #e8eaee;
  }

  .ink-glass-nav .navbar-nav {
    flex-direction: column !important;
    width: 100%;
  }

  .ink-glass-nav .navbar-nav .nav-link {
    white-space: normal !important;
    padding: 0.85rem 0.25rem !important;
  }

  .ink-glass-nav .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0.85rem !important;
    background: transparent !important;
  }
}

@media (min-width: 1600px) {
  .nav-desktop-extra {
    display: list-item !important;
  }
  .nav-desktop-more {
    display: none !important;
  }
}


/* Hero — shop slider */
.home-hero {
  background: #f7f8f9 !important;
  padding: 3rem 0 5.5rem !important;
  min-height: auto !important;
  overflow: hidden !important;
  overflow-x: clip !important;
}

.home-hero .container {
  overflow: hidden;
  position: relative;
}

.hero-3d-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.hero-3d-slider .carousel-inner {
  overflow: hidden;
  max-width: 100%;
}

.hero-3d-slider .carousel-item {
  max-width: 100%;
}

.hero-3d-slider .hero-slide-row,
.hero-3d-slider .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Bootstrap carousel controls */
.hero-3d-slider .hero-carousel-btn {
  width: 48px;
  opacity: 1;
  z-index: 5;
}

.hero-3d-slider .hero-carousel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #2163e8;
  font-size: 1.15rem;
}

.hero-3d-slider .carousel-control-prev {
  left: -4px;
  justify-content: flex-start;
}

.hero-3d-slider .carousel-control-next {
  right: -4px;
  justify-content: flex-end;
}

.hero-3d-slider .carousel-indicators {
  margin-bottom: 0;
  bottom: -2.25rem;
}

.hero-3d-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2163e8;
  opacity: 0.35;
  border: 0;
  margin: 0 5px;
}

.hero-3d-slider .carousel-indicators .active {
  opacity: 1;
}


.home-hero .hero-content {
  display: block;
}

.home-hero .hero-text h1,
.home-hero .hero-text .display-5 {
  font-family: "Rubik", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #191a1f;
  margin-bottom: 1rem;
}

.home-hero .hero-text .subtitle {
  font-size: 1.125rem;
  color: #595d69;
  margin-bottom: 1.25rem;
}

.home-hero .search-section h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #29292e;
  margin-bottom: 0.75rem;
}

.home-hero .search-container {
  position: relative;
  max-width: 100%;
}

.home-hero .search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}

.home-hero .search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #595d69;
  padding: 0.5rem;
}

.home-hero .rating-section {
  margin: 1.25rem 0;
}

.home-hero .stars {
  color: #f7c32e;
  margin-bottom: 0.35rem;
}

.home-hero .rating-text {
  color: #595d69;
  font-size: 0.95rem;
}

.home-hero .hero-ctas {
  gap: 0.75rem;
  display: flex;
  flex-wrap: wrap;
}

.home-hero .btn-cta.primary {
  background: var(--bz-primary);
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  box-shadow: none;
}

.home-hero .btn-cta.primary:hover {
  background: #1a52c4;
  color: #fff;
}

.home-hero .btn-cta.ghost {
  background: rgba(33, 99, 232, 0.1);
  color: var(--bz-primary);
  border: 0;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
}

.home-hero .btn-cta.ghost:hover {
  background: rgba(33, 99, 232, 0.18);
  color: var(--bz-primary);
}

/* ===== Advanced 3D hero stage ===== */
.hero-3d-stage {
  position: relative;
  height: min(420px, 55vw);
  min-height: 280px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 99, 232, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-3d-glow.glow-orange {
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35) 0%, transparent 70%);
}

.hero-3d-glow.glow-blue {
  background: radial-gradient(circle, rgba(79, 158, 248, 0.4) 0%, transparent 70%);
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-3d-card {
  position: relative;
  z-index: 2;
  width: 85%;
  max-width: 480px;
  border-radius: 1.25rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow:
    0 25px 50px -12px rgba(25, 26, 31, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotateY(-12deg) rotateX(8deg) translateZ(20px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: cardFloat 5s ease-in-out infinite;
}

.hero-3d-card.tilt-alt {
  transform: rotateY(10deg) rotateX(6deg) translateZ(20px);
}

.hero-3d-card.tilt-alt-2 {
  transform: rotateY(-8deg) rotateX(10deg) translateZ(24px);
}

.hero-3d-stage:hover .hero-3d-card {
  transform: rotateY(0deg) rotateX(0deg) translateZ(40px) scale(1.03);
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-3d-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

.hero-3d-orbit {
  position: absolute;
  border: 1px dashed rgba(33, 99, 232, 0.25);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-3d-orbit.orbit-1 {
  width: 90%;
  height: 90%;
  animation: orbitSpin 18s linear infinite;
}

.hero-3d-orbit.orbit-2 {
  width: 70%;
  height: 70%;
  border-color: rgba(255, 106, 0, 0.2);
  animation: orbitSpin 12s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-3d-float {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 3px solid #fff;
  z-index: 3;
  animation: floatBob 3.5s ease-in-out infinite;
}

.hero-3d-float.float-a {
  top: 8%;
  right: 4%;
  transform: rotate(8deg);
}

.hero-3d-float.float-b {
  bottom: 12%;
  left: 2%;
  width: 72px;
  height: 72px;
  animation-delay: -1.2s;
  transform: rotate(-10deg);
}

.hero-3d-float.float-c {
  top: 10%;
  left: 4%;
  transform: rotate(-6deg);
}

.hero-3d-float.float-d {
  bottom: 10%;
  right: 6%;
  width: 76px;
  height: 76px;
  animation-delay: -0.8s;
  transform: rotate(12deg);
}

@keyframes floatBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 767px) {
  .home-hero {
    padding: 2rem 0 4rem !important;
  }

  .hero-3d-slider .carousel-control-prev,
  .hero-3d-slider .carousel-control-next {
    display: none;
  }

  .hero-3d-slider .carousel-indicators {
    bottom: -1.5rem;
  }

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

  .home-hero .hero-ctas {
    justify-content: center;
  }

  .hero-3d-stage {
    height: 280px;
    margin-top: 0.5rem;
  }

  .hero-3d-card,
  .hero-3d-card.tilt-alt,
  .hero-3d-card.tilt-alt-2 {
    transform: rotateY(0) rotateX(4deg);
  }

  .hero-3d-float {
    width: 64px;
    height: 64px;
  }
}

/* Features strip */
.home-features {
  padding: 2.5rem 0;
}

.home-features .icon-lg {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-features h6 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #29292e;
}

/* Product sections */
.featured-products,
.best-selling {
  padding: 3rem 0 4rem;
  background: #fff;
}

.best-selling {
  background: #f7f8f9;
}

.featured-products .section-header,
.best-selling .section-title-wrap {
  margin-bottom: 2rem;
}

.featured-products .section-title,
.best-selling .section-title {
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #191a1f;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.featured-products .section-title + div,
.best-selling .section-title-wrap .section-title + div {
  display: none;
}

.featured-products .section-link,
.best-selling .section-link {
  color: #595d69;
  font-size: 0.875rem;
  text-decoration: underline;
  font-weight: 400;
}

.featured-products .section-link:hover,
.best-selling .section-link:hover {
  color: var(--bz-primary);
}

.best-selling .section-sub {
  text-align: left;
  font-style: normal;
  color: #595d69;
  margin: -1rem 0 2rem;
  font-size: 0.95rem;
}

/* Product cards — shop card style */
.products-grid {
  display: grid !important;
  gap: 1.5rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.products-grid .product-card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dfe0e5;
  border-radius: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(25, 26, 31, 0.08);
  color: inherit;
}

.products-grid .product-image {
  height: 180px !important;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  background-size: cover;
  background-position: center;
}

.products-grid .product-info {
  text-align: center;
  padding: 0.5rem 0 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-grid .product-title {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #191a1f !important;
  margin-bottom: 0.5rem;
  line-height: 1.35 !important;
}

.products-grid .price {
  color: var(--bz-primary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.products-grid .price-unit {
  color: #a1a1a8;
  font-weight: 400;
  font-size: 0.8rem;
}

/* Footer */
footer,
footer.site-footer,
footer.agency-footer {
  background: #191a1f;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

footer .footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

footer .footer-brand {
  text-align: left !important;
}

footer .footer-brand .navbar-brand-item {
  max-height: 42px !important;
  width: auto;
  margin-bottom: 1rem;
}

footer .footer-lead {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin: 0 0 1.15rem;
  max-width: 28rem;
}

footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

footer .footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
}

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

footer .footer-contact i {
  color: #2163e8;
  width: 1rem;
  text-align: center;
}

footer .footer-section h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer .footer-section a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .footer-section a:hover {
  color: #fff;
  transform: translateX(2px);
}

footer .footer-section p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

footer .footer-bottom p {
  margin: 0;
}

footer .footer-bottom-note {
  color: rgba(255, 255, 255, 0.4);
}

footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

footer .social-icons a {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

footer .social-icons a:hover {
  background: #2163e8;
  transform: translateY(-2px);
}

/* Reviews widget spacing */
#reviews-widget {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
}

/* WhatsApp floating button (must stay fixed — do not put in relative stacking list below) */
.whatsapp-float {
  position: fixed !important;
  bottom: 30px;
  left: 30px;
  z-index: 100050 !important;
  transition: all 0.3s ease;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  position: relative;
  overflow: visible;
}

.whatsapp-float a:hover {
  transform: scale(1.08);
  color: #fff;
}

.whatsapp-float i {
  font-size: 32px;
}

.whatsapp-float .whatsapp-tooltip {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 13px;
  width: 220px;
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-within .whatsapp-tooltip,
.whatsapp-float.wa-open .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.whatsapp-float.wa-open a {
  animation: waPulseRing 1.6s ease-out 2;
}

@keyframes waPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 20px rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float .tooltip-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #25d366;
}

.whatsapp-float .tooltip-message {
  font-size: 14px;
  margin-bottom: 12px;
  color: #ecf0f1;
}

.whatsapp-float .tooltip-options {
  font-size: 12px;
  margin-bottom: 12px;
  color: #bdc3c7;
  line-height: 1.6;
}

.whatsapp-float .tooltip-cta {
  font-size: 11px;
  font-weight: 500;
  color: #25d366;
  text-align: center;
  padding: 8px;
  background: rgba(37, 211, 102, 0.1);
  border-radius: 6px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
  }

  .whatsapp-float .whatsapp-tooltip {
    left: 72px;
    width: min(200px, calc(100vw - 110px));
    padding: 12px 14px;
  }

  .whatsapp-float:not(.wa-open) .whatsapp-tooltip {
    display: none;
  }

  .whatsapp-float.wa-open .whatsapp-tooltip {
    display: block;
  }
}

@media (max-width: 991px) {
  footer .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .agency-nav-search {
    width: 100%;
    margin: 0.75rem 0;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding: 2rem 0 2.5rem !important;
  }

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

  .home-hero .hero-ctas {
    justify-content: center;
  }

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

  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .category-3d-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .products-grid .product-card:hover {
    transform: translateY(-6px) !important;
  }
}

/* ===== Ambient orbs ===== */
.page-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: orbDrift 22s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: rgba(33, 99, 232, 0.28);
  top: -80px;
  right: -60px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: rgba(255, 106, 0, 0.18);
  bottom: 10%;
  left: -100px;
  animation-delay: -7s;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: rgba(79, 158, 248, 0.2);
  top: 45%;
  right: 15%;
  animation-delay: -12s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.main-content,
.ink-glass-nav,
footer,
.preloader {
  position: relative;
  z-index: 1;
}

.ink-glass-nav {
  z-index: 1030 !important;
}

/* ===== Glass sticky nav ===== */
.ink-glass-nav {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(25, 26, 31, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.ink-glass-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 30px rgba(25, 26, 31, 0.08);
}

.ink-glass-nav.is-scrolled .navbar {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* ===== Scroll reveal ===== */
.reveal-item,
.products-grid .product-card,
.category-3d-card {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible,
.products-grid .product-card.is-visible,
.category-3d-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== 3D product cards ===== */
.products-grid {
  perspective: 1000px;
}

.products-grid .product-card {
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  position: relative;
}

.products-grid .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.products-grid .product-card:hover::after {
  opacity: 1;
}

.products-grid .product-image {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateZ(20px);
}

.products-grid .product-card:hover .product-image {
  transform: translateZ(30px) scale(1.06);
}

.products-grid .product-info {
  transform: translateZ(28px);
}

/* ===== Category 3D strip ===== */
.category-3d-section {
  padding: 2.5rem 0 1rem;
}

.category-3d-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.category-3d-card {
  display: block;
  text-decoration: none;
  color: inherit;
  perspective: 800px;
}

.category-3d-visual {
  height: 140px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 30px rgba(25, 26, 31, 0.12);
  transform: rotateX(6deg) rotateY(-4deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  border: 3px solid #fff;
  margin-bottom: 0.75rem;
}

.category-3d-card:hover .category-3d-visual {
  transform: rotateX(0) rotateY(0) translateY(-8px) scale(1.04);
  box-shadow: 0 22px 40px rgba(33, 99, 232, 0.2);
}

.category-3d-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #191a1f;
  margin: 0;
}

/* ===== Magnetic buttons ===== */
.btn-cta.magnetic {
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.btn-cta.primary.magnetic:hover {
  box-shadow: 0 12px 28px rgba(33, 99, 232, 0.35);
}

@media (max-width: 1199px) {
  .category-3d-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .products-grid .product-card,
  .category-3d-card,
  .page-orbs .orb,
  .hero-3d-card,
  .hero-3d-float {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Agency sections ===== */
.agency-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(33, 99, 232, 0.1);
  color: #2163e8;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.agency-intro {
  padding: 4rem 0 2rem;
}

.agency-lead {
  font-size: 1.05rem;
  color: #595d69;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.agency-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.agency-stats > div {
  display: flex;
  flex-direction: column;
}

.agency-stats strong {
  font-size: 2rem;
  font-weight: 700;
  color: #191a1f;
  line-height: 1;
}

.agency-stats span {
  color: #2163e8;
  font-weight: 700;
  font-size: 1.25rem;
}

.agency-stats small {
  color: #a1a1a8;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.agency-intro-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-intro-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #dfe0e5;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(25, 26, 31, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.agency-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(33, 99, 232, 0.12);
}

.agency-intro-card i {
  font-size: 1.5rem;
  color: #2163e8;
  background: rgba(33, 99, 232, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-intro-card h5 {
  margin: 0 0 0.25rem;
  color: #191a1f;
  font-size: 1rem;
}

.agency-intro-card p {
  margin: 0;
  color: #595d69;
  font-size: 0.9rem;
}

.done-jobs {
  padding: 3.5rem 0;
  background: #f7f8f9;
}

.done-jobs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 1.25rem;
}

.job-card {
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid #e8eaee;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(25, 26, 31, 0.12);
}

.job-card-lg {
  grid-row: span 2;
}

.job-media {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.job-card-lg .job-media {
  height: 280px;
  flex: 1;
}

.job-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35));
}

.job-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.job-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2163e8;
  margin-bottom: 0.4rem;
}

.job-body h3 {
  font-size: 1.1rem;
  color: #191a1f;
  margin: 0 0 0.4rem;
}

.job-body p {
  margin: 0;
  color: #595d69;
  font-size: 0.88rem;
  line-height: 1.55;
}

.industries-agency {
  padding: 4rem 0;
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 900px;
  margin: 0 auto;
}

.industry-pill {
  padding: 0.7rem 1.2rem;
  background: #fff;
  border: 1px solid #dfe0e5;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #29292e;
  transition: all 0.3s ease;
  cursor: default;
}

.industry-pill:hover {
  background: #191a1f;
  color: #fff;
  border-color: #191a1f;
  transform: translateY(-3px);
}

.agency-process {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 20% 0%, rgba(33, 99, 232, 0.08), transparent 60%),
    #fff;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  perspective: 1200px;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 1.65rem 1rem 1.3rem;
  border-radius: 1.05rem;
  background:
    linear-gradient(160deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid #e7ebf3;
  box-shadow:
    0 20px 34px rgba(25, 26, 31, 0.08),
    0 6px 14px rgba(25, 26, 31, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform-style: preserve-3d;
  transform: translateY(0) rotateX(5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(33, 99, 232, 0.04));
  pointer-events: none;
}

.process-step:hover {
  transform: translateY(-7px) rotateX(0deg);
  border-color: rgba(33, 99, 232, 0.36);
  box-shadow:
    0 28px 42px rgba(25, 26, 31, 0.12),
    0 12px 20px rgba(33, 99, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.process-step:nth-child(2n) {
  transform: translateY(8px) rotateX(5deg);
}

.process-step:nth-child(2n):hover {
  transform: translateY(-4px) rotateX(0deg);
}

.process-step span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2163e8;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 20px rgba(33, 99, 232, 0.35);
  position: relative;
  z-index: 1;
  transform: translateZ(26px);
}

.process-step h5 {
  color: #191a1f;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
  transform: translateZ(16px);
}

.process-step p {
  margin: 0;
  font-size: 0.85rem;
  color: #595d69;
  position: relative;
  z-index: 1;
  transform: translateZ(12px);
}

/* How we work: clearer 3D arrangement (3 top, 2 bottom) */
.agency-process .process-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "step1 step1 step2 step2 step3 step3"
    ". step4 step4 step5 step5 .";
  gap: 1.05rem 1.15rem;
  align-items: stretch;
}

.agency-process .process-step {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.agency-process .process-step:nth-child(1) { grid-area: step1; transform: translateY(0) rotateY(-4deg) rotateX(3deg); }
.agency-process .process-step:nth-child(2) { grid-area: step2; transform: translateY(-8px) rotateY(0deg) rotateX(3deg); }
.agency-process .process-step:nth-child(3) { grid-area: step3; transform: translateY(0) rotateY(4deg) rotateX(3deg); }
.agency-process .process-step:nth-child(4) { grid-area: step4; transform: translateY(-2px) rotateY(-3deg) rotateX(3deg); }
.agency-process .process-step:nth-child(5) { grid-area: step5; transform: translateY(-2px) rotateY(3deg) rotateX(3deg); }

.agency-process .process-step:hover {
  transform: translateY(-10px) rotateY(0deg) rotateX(0deg) !important;
}

.agency-cta {
  padding: 2.5rem 0 4.5rem;
}

.agency-cta-panel {
  --cta-bg: #12141a;
  --cta-ink: #fff;
  text-align: center;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(33, 99, 232, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(79, 158, 248, 0.22), transparent 50%),
    linear-gradient(155deg, #161821 0%, #1c2030 48%, #12141a 100%);
  color: var(--cta-ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 60px rgba(15, 23, 42, 0.35);
}

/* Animated gradient frame (replaces plain border) */
.agency-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    125deg,
    rgba(33, 99, 232, 0.95),
    rgba(255, 255, 255, 0.35) 28%,
    rgba(79, 158, 248, 0.9) 55%,
    rgba(33, 99, 232, 0.45) 78%,
    rgba(255, 255, 255, 0.2)
  );
  background-size: 220% 220%;
  animation: ctaBorderFlow 8s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.agency-cta-panel::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: calc(1.75rem - 1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
  pointer-events: none;
  z-index: 0;
}

@keyframes ctaBorderFlow {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

.agency-cta-panel .cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.agency-cta-panel .cta-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.agency-cta-panel .cta-orbs span:first-child {
  width: 220px;
  height: 220px;
  background: #2163e8;
  top: -70px;
  right: 8%;
  animation: ctaOrb 10s ease-in-out infinite;
}

.agency-cta-panel .cta-orbs span:last-child {
  width: 180px;
  height: 180px;
  background: #4f9ef8;
  bottom: -60px;
  left: 6%;
  animation: ctaOrb 12s ease-in-out infinite reverse;
}

@keyframes ctaOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.08); }
}

.agency-cta-panel .cta-eyebrow,
.agency-cta-panel h2,
.agency-cta-panel p,
.agency-cta-panel .hero-ctas {
  position: relative;
  z-index: 1;
}

.agency-cta-panel .cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8d0ff;
  background: rgba(33, 99, 232, 0.22);
  border: 1px solid rgba(147, 186, 255, 0.35);
}

.agency-cta-panel .cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f9ef8;
  box-shadow: 0 0 0 4px rgba(79, 158, 248, 0.25);
}

.agency-cta-panel h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff !important;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.agency-cta-panel p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin: 0 auto 1.85rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.agency-cta-panel .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.agency-cta-panel .btn-cta.primary {
  background: #fff;
  color: #1a2b5c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.agency-cta-panel .btn-cta.primary:hover {
  background: #eef3ff;
  color: #2163e8;
  transform: translateY(-2px);
}

.agency-cta-panel .btn-cta.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.agency-cta-panel .btn-cta.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .agency-cta-panel::before,
  .agency-cta-panel .cta-orbs span {
    animation: none;
  }
}

@media (max-width: 991px) {
  .done-jobs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .job-card-lg {
    grid-column: span 2;
    grid-row: span 1;
  }
  .process-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
  }
  .process-step,
  .process-step:nth-child(2n) {
    transform: none;
  }
  .process-step:hover,
  .process-step:nth-child(2n):hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 575px) {
  .done-jobs-grid {
    grid-template-columns: 1fr;
  }
  .job-card-lg {
    grid-column: span 1;
  }
  .process-row {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
}

/* Clients logos */
.clients-agency {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #fff;
}

.clients-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #a1a1a8;
  margin-bottom: 1.25rem;
}

.clients-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.client-logo-chip {
  min-width: 120px;
  height: 52px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #f7f8f9;
  border: 1px solid #e8eaee;
  color: #595d69;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.client-logo-chip:hover {
  border-color: #2163e8;
  color: #2163e8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(33, 99, 232, 0.12);
}

.clients-note {
  text-align: center;
  font-size: 0.85rem;
  color: #a1a1a8;
  margin: 1.25rem 0 0;
}

/* Agency services */
.agency-services {
  padding: 3.5rem 0 1rem;
}

.services-agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-agency-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.75rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #e8eaee;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-agency-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 99, 232, 0.35);
  box-shadow: 0 20px 40px rgba(33, 99, 232, 0.12);
  color: inherit;
}

.service-agency-card i {
  font-size: 1.6rem;
  color: #2163e8;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.service-agency-card h4 {
  color: #191a1f;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-agency-card p {
  color: #595d69;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.service-agency-card span {
  color: #2163e8;
  font-weight: 600;
  font-size: 0.88rem;
}

.job-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.job-meta span {
  background: rgba(255,255,255,0.92);
  color: #191a1f;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
}

.job-deliverables {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
}

.job-deliverables li {
  font-size: 0.72rem;
  font-weight: 500;
  color: #2163e8;
  background: rgba(33, 99, 232, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
}

.agency-testimonials {
  padding: 2rem 0 1rem;
}

.testimonial-agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-agency-card {
  margin: 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(25, 26, 31, 0.05);
}

.testimonial-agency-card p {
  color: #29292e;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-agency-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2163e8, #4f9ef8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-agency-card strong {
  display: block;
  color: #191a1f;
  font-size: 0.92rem;
}

.testimonial-agency-card footer span {
  color: #a1a1a8;
  font-size: 0.8rem;
}

@media (max-width: 991px) {
  .services-agency-grid,
  .testimonial-agency-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .services-agency-grid,
  .testimonial-agency-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DESKTOP LAYOUT FIXES (1200px+)
   ========================================================= */
@media (min-width: 1200px) {
  .container,
  .main-content .container,
  .ink-glass-nav .container {
    max-width: 1240px !important;
  }

  /* Navbar: prevent overflow / wrapping */
  .ink-glass-nav .navbar > .container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .ink-glass-nav .navbar-collapse {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  /* Hide duplicate search in header on desktop — hero already has search */
  .agency-nav-search {
    display: none !important;
  }

  .navbar-nav.navbar-nav-scroll {
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }

  .navbar-nav .nav-link {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.7rem !important;
    white-space: nowrap;
  }

  .navbar-brand-item {
    max-height: 38px !important;
  }

  /* Hero desktop */
  .home-hero {
    padding: 3.5rem 0 5rem !important;
  }

  .home-hero .row.g-4 {
    min-height: 420px;
    align-items: center !important;
  }

  .hero-3d-stage {
    height: 460px;
    min-height: 420px;
  }

  .hero-3d-card {
    max-width: 520px;
  }

  .hero-3d-slider {
    position: relative;
    padding: 0 2.5rem;
  }

  .hero-3d-slider .carousel-control-prev {
    left: 0;
  }

  .hero-3d-slider .carousel-control-next {
    right: 0;
  }

  .hero-3d-slider .hero-slide-row {
    min-height: 420px;
  }

  .hero-3d-slider .col-lg-6 {
    min-width: 0;
  }

  /* Grids */
  .category-3d-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 1.5rem;
  }

  .category-3d-visual {
    height: 160px;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }

  .products-grid .product-image {
    height: 200px !important;
  }

  .done-jobs-grid {
    grid-template-columns: 1.45fr 1fr 1fr !important;
    gap: 1.5rem;
  }

  .job-card-lg .job-media {
    height: 320px;
  }

  .services-agency-grid,
  .testimonial-agency-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
  }

  .process-row {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .agency-stats {
    gap: 2.5rem;
  }

  .agency-stats strong {
    font-size: 2.35rem;
  }

  footer .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 3rem;
  }

  .agency-cta-panel {
    padding: 4.5rem 3rem;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container,
  .main-content .container,
  .ink-glass-nav .container {
    max-width: 1320px !important;
  }

  .navbar-nav .nav-link {
    font-size: 0.88rem !important;
    padding: 0.5rem 0.85rem !important;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent share bar from colliding with content on desktop */
@media (min-width: 992px) {
  .share-bar {
    left: 16px;
    z-index: 50;
  }
  .main-content {
    padding-left: 0;
  }
}

/* Non-active carousel slides stay out of layout interaction */
.hero-3d-slider .carousel-item:not(.active) .hero-3d-stage {
  pointer-events: none;
}


/* Dropdowns above hero/slider */
.ink-glass-nav .dropdown-menu {
  z-index: 1080;
}

.dropdown-submenu > .dropdown-menu {
  z-index: 1090;
}




