:root {
  --bg: #03050c;
  --bg-soft: #0a0f1d;
  --card: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f0f4ff;
  --muted: #9ba4ca;
  --blue: #4962ff;
  --cyan: #64c6ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --glow: 0 0 40px rgba(61, 106, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Total Website Viewport Border Frame (Subtle rounded edges) */
html::before {
  content: "";
  position: fixed;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  /* Tiny offset to allow visible rounded corners */
  border: 3.5px solid rgba(73, 98, 255, 0.25);
  /* Glowing brand blue border outline */
  border-radius: 14px;
  /* Curved corners to break the sharp rectangle shape */
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    inset 0 0 20px rgba(73, 98, 255, 0.18),
    0 0 12px rgba(73, 98, 255, 0.1);
  /* Balanced double glow */
  transition: all 0.3s ease;
  animation: borderGlowCycle 8s linear infinite;
  /* Premium multi-color shift glow */
}

@keyframes borderGlowCycle {
  0% {
    border-color: rgba(73, 98, 255, 0.25);
    box-shadow:
      inset 0 0 15px rgba(73, 98, 255, 0.15),
      0 0 8px rgba(73, 98, 255, 0.08);
  }

  25% {
    border-color: rgba(100, 198, 255, 0.38);
    box-shadow:
      inset 0 0 22px rgba(100, 198, 255, 0.26),
      0 0 16px rgba(100, 198, 255, 0.16);
  }

  50% {
    border-color: rgba(178, 36, 239, 0.38);
    box-shadow:
      inset 0 0 22px rgba(178, 36, 239, 0.26),
      0 0 16px rgba(178, 36, 239, 0.16);
  }

  75% {
    border-color: rgba(255, 0, 204, 0.38);
    box-shadow:
      inset 0 0 22px rgba(255, 0, 204, 0.26),
      0 0 16px rgba(255, 0, 204, 0.16);
  }

  100% {
    border-color: rgba(73, 98, 255, 0.25);
    box-shadow:
      inset 0 0 15px rgba(73, 98, 255, 0.15),
      0 0 8px rgba(73, 98, 255, 0.08);
  }
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) var(--bg);
  background-size: 28px 28px;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(61, 106, 255, 0.12) 0%,
      transparent 40%),
    radial-gradient(circle at 70% 70%,
      rgba(178, 36, 239, 0.08) 0%,
      transparent 40%);
  animation: breathLight 30s linear infinite;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 5px;
}

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

/* Animations */
@keyframes breathLight {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 20px rgba(56, 200, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(56, 200, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 20px rgba(56, 200, 255, 0.2);
  }
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
}

.animate-up.visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 5, 12, 0.6);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand img {
  width: 120px;
  height: auto;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 11px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 22px;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: skewX(-25deg);
  transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover::before {
  left: 150%;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), #b224ef, var(--cyan));
  background-size: 200% auto;
  color: white;
  box-shadow: 0 12px 24px rgba(61, 106, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(178, 36, 239, 0.4);
  background-position: right center;
}

.btn-ghost {
  background: var(--glass);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pricing {
  background: var(--glass);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.btn-pricing:hover {
  background: linear-gradient(135deg, var(--blue), #b224ef, var(--cyan));
  background-size: 200% auto;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(178, 36, 239, 0.3);
  color: white;
  background-position: right center;
}

.hero {
  padding: 60px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: #e0e6ff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: glowPulse 2s infinite;
}

h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #b224ef 40%, #7579ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(178, 36, 239, 0.2));
}

.hero p {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  max-width: 650px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 580px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-card {
  position: relative;
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02));
  border: 1px solid transparent;
  border-radius: 40px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: visible;
  backdrop-filter: blur(20px);
  animation: float 4s ease-in-out infinite;
}

/* Glowing animated border */
.hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 42px;
  padding: 2px;
  background: conic-gradient(from var(--border-angle, 0deg),
      transparent 20%,
      var(--cyan) 40%,
      var(--blue) 50%,
      #b224ef 60%,
      transparent 80%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  animation: borderRotate 4s linear infinite;
  opacity: 0.7;
}

@keyframes borderRotate {
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Floating sparkle particles */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(100, 198, 255, 0.9),
      transparent 70%);
  box-shadow:
    0 0 8px rgba(100, 198, 255, 0.6),
    0 0 16px rgba(73, 98, 255, 0.3);
  z-index: 10;
  pointer-events: none;
  animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-1 {
  top: 10%;
  left: -12px;
  width: 5px;
  height: 5px;
  animation-delay: 0s;
  animation-duration: 3.5s;
}

.sparkle-2 {
  top: 30%;
  right: -10px;
  width: 7px;
  height: 7px;
  animation-delay: 0.6s;
  animation-duration: 4s;
}

.sparkle-3 {
  bottom: 20%;
  left: -8px;
  width: 4px;
  height: 4px;
  animation-delay: 1.2s;
  animation-duration: 3s;
}

.sparkle-4 {
  top: 5%;
  right: 20%;
  width: 5px;
  height: 5px;
  animation-delay: 1.8s;
  animation-duration: 3.8s;
}

.sparkle-5 {
  bottom: 10%;
  right: -14px;
  width: 6px;
  height: 6px;
  animation-delay: 0.4s;
  animation-duration: 4.2s;
}

.sparkle-6 {
  top: 50%;
  left: 10%;
  width: 4px;
  height: 4px;
  animation-delay: 2.2s;
  animation-duration: 3.2s;
}

@keyframes sparkleFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.4;
  }

  25% {
    opacity: 1;
    transform: translateY(-12px) scale(1.3);
  }

  50% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    opacity: 1;
    transform: translateY(-8px) scale(1.1);
  }
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  filter: blur(80px);
  opacity: 0.3;
  right: -100px;
  top: -100px;
  z-index: 0;
}

@keyframes spinBorderBeam {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.logo-box {
  position: relative;
  z-index: 1;
  padding: 40px;
  margin-bottom: 24px;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(73, 98, 255, 0.2);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

/* The spinning gradient beam */
.logo-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: conic-gradient(transparent 60%,
      #4962ff,
      #b224ef,
      #64c6ff,
      #ffffff);
  animation: spinBorderBeam 3s linear infinite;
  z-index: -2;
}

/* The premium dark frosted glass inner mask */
.logo-box::after {
  content: "";
  position: absolute;
  inset: 2px;
  /* Thickness of the glowing border */
  background: rgba(15, 18, 35, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 30px;
  z-index: -1;
}

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 220px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
}

/* The logo and ring pop up together when hovering over the wrapper */
.logo-wrapper:hover {
  transform: translateY(-15px) scale(1.1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(100, 198, 255, 0.4));
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 2;
}

/* Glowing circular rotation strictly around the logo image */
.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  /* Tightly wrap the inner logo graphic */
  height: 65%;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from var(--logo-glow-angle, 0deg),
      transparent 0%,
      rgba(100, 198, 255, 0.8) 15%,
      rgba(73, 98, 255, 0.9) 25%,
      rgba(178, 36, 239, 0.8) 35%,
      transparent 50%,
      transparent 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: logoGlowRotate 3s linear infinite;
  z-index: 1;
  filter: blur(1px);
}

@keyframes logoGlowRotate {
  to {
    --logo-glow-angle: 360deg;
  }
}

@property --logo-glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.project-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 28px;
  background: rgba(3, 5, 12, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.project-card h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

section {
  padding: 100px 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-label {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
  font-size: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  padding: 36px;
  min-height: 240px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.08),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

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

.icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  margin-bottom: 24px;
  font-size: 28px;
  box-shadow: 0 8px 16px rgba(56, 200, 255, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =============================================
   EXPERTISE / SERVICES — Sticky Stack Layout
   ============================================= */
.sticky-services {
  padding: 80px 0;
  position: relative;
}

.sticky-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* Left Pinned Content */
.sticky-left {
  position: sticky;
  top: 140px;
  width: 40%;
  flex-shrink: 0;
}

.sticky-left h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.sticky-left p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Scroll indicator animation */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  animation: scrollDrop 1.5s infinite;
}

@keyframes scrollDrop {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* Right Stacking Cards */
.sticky-right {
  width: 60%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stack-card {
  position: sticky;
  /* Top position staggers based on card index so they peek out over each other */
  top: calc(100px + (var(--card-index) * 20px));
  margin-bottom: 80px;
  padding-bottom: 20px;
  /* buffer for stacking */
}

.stack-card:last-child {
  margin-bottom: 0;
}

.stack-card-inner {
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Accent glow on top edge */
.stack-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.stack-card-inner:hover {
  transform: translateY(-8px);
  box-shadow:
    0 -30px 60px rgba(0, 0, 0, 0.5),
    0 20px 40px var(--accent-glow, rgba(0, 0, 0, 0.2));
  border-color: rgba(255, 255, 255, 0.15);
}

.stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.stack-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stack-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card-inner:hover .stack-icon {
  transform: scale(1.1) rotate(5deg);
}

.stack-body h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stack-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .sticky-container {
    flex-direction: column;
    gap: 40px;
  }

  .sticky-left {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  .sticky-right {
    width: 100%;
  }

  .stack-card {
    position: relative;
    top: 0 !important;
    margin-bottom: 24px;
    padding-bottom: 0;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 280px;
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
}

.portfolio-item.item-1 {
  background:
    linear-gradient(rgba(3, 5, 12, 0.4), rgba(3, 5, 12, 0.8)),
    url("assets/Fintech App & Website Architecture.png") no-repeat;
  background-size: cover;
  background-position: top center;
}

.portfolio-item.item-2 {
  background:
    linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)),
    url("assets/Qwiky_20260617_003545_0002.png") no-repeat;
  background-size: cover;
  background-position: center;
  animation: logoSlideshow 12s infinite;
}

@keyframes logoSlideshow {

  0%,
  22% {
    background: linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)), url("assets/Qwiky_20260617_003545_0002.png") no-repeat;
    background-size: cover;
    background-position: center;
  }

  25%,
  47% {
    background: linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)), url("assets/5.png") no-repeat;
    background-size: cover;
    background-position: center;
  }

  50%,
  72% {
    background: linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)), url("assets/6.png") no-repeat;
    background-size: cover;
    background-position: center;
  }

  75%,
  97% {
    background: linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)), url("assets/7.png") no-repeat;
    background-size: cover;
    background-position: center;
  }

  100% {
    background: linear-gradient(rgba(3, 5, 12, 0.25), rgba(3, 5, 12, 0.75)), url("assets/Qwiky_20260617_003545_0002.png") no-repeat;
    background-size: cover;
    background-position: center;
  }
}

.portfolio-item.item-3 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.portfolio-item.item-4 {
  background:
    linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)),
    url("assets/1.webp") no-repeat;
  background-size: cover;
  background-position: center;
  animation: adSlideshow 50s infinite;
}

@keyframes adSlideshow {
  0%, 5% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/8.webp") no-repeat; background-size: cover; background-position: center; }
  6.6%, 11.6% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/ACNE%20FIX%20SALICYLIC%20%26%20GLYCOLIC%20ACID%20GEL%20FACE%20WASH%20copy.webp") no-repeat; background-size: cover; background-position: center; }
  13.3%, 18.3% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/3.webp") no-repeat; background-size: cover; background-position: center; }
  20%, 25% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/WhatsApp%20Image%202025-10-30%20at%205.32.53%20PM%20copy.webp") no-repeat; background-size: cover; background-position: center; }
  26.6%, 31.6% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/5.webp") no-repeat; background-size: cover; background-position: center; }
  33.3%, 38.3% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/hht%20copy.webp") no-repeat; background-size: cover; background-position: center; }
  40%, 45% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/1.webp") no-repeat; background-size: cover; background-position: center; }
  46.6%, 51.6% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/23-7-25%20copy.webp") no-repeat; background-size: cover; background-position: center; }
  53.3%, 58.3% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/9.webp") no-repeat; background-size: cover; background-position: center; }
  60%, 65% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/4.webp") no-repeat; background-size: cover; background-position: center; }
  66.6%, 71.6% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/la%20face%20wash%2013%20copy.webp") no-repeat; background-size: cover; background-position: center; }
  73.3%, 78.3% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/2.webp") no-repeat; background-size: cover; background-position: center; }
  80%, 85% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/6.webp") no-repeat; background-size: cover; background-position: center; }
  86.6%, 91.6% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/10.webp") no-repeat; background-size: cover; background-position: center; }
  93.3%, 98.3% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/7.webp") no-repeat; background-size: cover; background-position: center; }
  100% { background: linear-gradient(rgba(3, 5, 12, 0.15), rgba(3, 5, 12, 0.65)), url("assets/8.webp") no-repeat; background-size: cover; background-position: center; }
}

.portfolio-item.item-5 {
  background:
    linear-gradient(rgba(3, 5, 12, 0.4), rgba(3, 5, 12, 0.8)),
    url("assets/Dynamic Product Promo Reel.png") no-repeat;
  background-size: cover;
  background-position: center;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  z-index: 0;
}

.portfolio-content {
  position: relative;
  z-index: 2;
  background: rgba(3, 5, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  margin: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(0);
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.portfolio-item:hover .portfolio-content {
  background: rgba(3, 5, 12, 0.8);
  transform: translateY(-8px);
}

.portfolio-item.large {
  grid-row: span 2;
}

.portfolio-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translate(-10px, 10px) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-arrow {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
  background: #fff;
  color: #000;
}

.portfolio-content h3 {
  font-size: 22px;
  margin-bottom: 0;
  font-weight: 800;
}

.portfolio-content p {
  font-size: 15px;
  color: #dbe2ff;
  margin: 0;
}

.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}

.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.why-box {
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #f0f4ff;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 17px;
}

.check:last-child {
  border-bottom: 0;
}

.check span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(56, 200, 255, 0.3);
}

.contact {
  padding-bottom: 80px;
}

.contact-card {
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  background:
    radial-gradient(circle at top right,
      rgba(56, 200, 255, 0.15),
      transparent 40%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--muted);
  font-size: 20px;
  max-width: 600px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Brand-colored contact buttons — styled default, brand color on hover */
.btn-whatsapp,
.btn-gmail,
.btn-instagram,
.btn-facebook,
.btn-linkedin {
  background: linear-gradient(135deg,
      rgba(73, 98, 255, 0.15),
      rgba(100, 198, 255, 0.1));
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 198, 255, 0.2);
  box-shadow: 0 4px 16px rgba(73, 98, 255, 0.15);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
}

.btn-gmail:hover {
  background: linear-gradient(135deg, #ea4335, #d93025);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(234, 67, 53, 0.4);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(225, 48, 108, 0.4);
}

.btn-facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0c5dc7);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(24, 119, 242, 0.4);
}

.btn-linkedin:hover {
  background: linear-gradient(135deg, #0a66c2, #004182);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(10, 102, 194, 0.4);
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-mail-icon {
  color: var(--cyan);
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(3, 5, 12, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    display: flex;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px;
  }

  .d-none-mobile {
    display: none;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-grid,
  .why,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 40px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-container {
    flex-direction: column;
    gap: 40px;
  }

  .sticky-left {
    position: relative;
    top: auto;
    width: 100%;
  }

  .sticky-right {
    width: 100%;
  }

  .stack-card {
    position: relative;
    top: auto !important;
    margin-bottom: 24px;
    padding-bottom: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .portfolio-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .partners-industries {
    padding: 50px 0 60px;
  }

  .marquee-wrapper {
    margin-bottom: 40px;
  }

  .marquee-fade {
    width: 60px;
  }

  .partner-logo-card {
    width: 200px;
    padding: 28px 20px 22px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .brand img {
    width: 100px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .stats,
  .cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .sticky-services {
    padding: 60px 0;
  }

  .stack-card-inner {
    padding: 24px;
  }

  .stack-header {
    margin-bottom: 20px;
  }

  .stack-num {
    font-size: 40px;
  }

  .stack-icon {
    width: 48px;
    height: 48px;
  }

  .portfolio-item.large {
    grid-column: span 1;
  }

  .hero-card {
    padding: 24px;
    border-radius: 32px;
  }

  .logo-box {
    padding: 24px;
  }

  section {
    padding: 60px 0;
  }

  .partners-industries {
    padding: 40px 0 50px;
  }

  .partners-header {
    margin-bottom: 32px;
  }

  .marquee-pill {
    padding: 10px 20px;
    font-size: 13px;
  }

  .marquee-fade {
    width: 40px;
  }

  .partner-logos-row {
    gap: 20px;
  }

  .partner-logo-card {
    width: 100%;
    max-width: 280px;
  }
}

/* =============================================
   PARTNERS & INDUSTRIES — Premium Redesign
   ============================================= */
.partners-industries {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 100%,
      rgba(73, 98, 255, 0.06) 0%,
      transparent 70%);
}

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

.partners-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0;
}

/* ---------- Infinite Marquee ---------- */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  padding: 20px 0;
}

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

.marquee-content {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  /* gap between duplicate sets */
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  cursor: default;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.marquee-pill:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(73, 98, 255, 0.12);
  border-color: rgba(73, 98, 255, 0.4);
  box-shadow:
    0 12px 28px rgba(73, 98, 255, 0.18),
    0 0 18px rgba(73, 98, 255, 0.12);
  color: #fff;
}

.marquee-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.marquee-pill:hover .marquee-icon {
  transform: scale(1.25) rotate(8deg);
}


@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Partner Logo Cards ---------- */
.partner-logos-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 160px;
  height: 160px;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
}

.partner-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%,
      rgba(100, 198, 255, 0.08),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.partner-logo-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(73, 98, 255, 0.12);
}

.partner-logo-card:hover::before {
  opacity: 1;
}

.partner-logo-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 98, 255, 0.25), transparent 70%);
  filter: blur(40px);
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.partner-logo-card:hover .partner-logo-glow {
  opacity: 1;
}

.partner-logo-card img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 28px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-card:hover img {
  transform: scale(1.08);
}

.partner-logo-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.partner-logo-card:hover .partner-logo-label {
  color: var(--text);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--blue);
  border-top: 1px solid rgba(73, 98, 255, 0.4);
  border-left: 1px solid rgba(73, 98, 255, 0.3);
  border-radius: 32px;
  padding: 40px;
  background: linear-gradient(180deg,
      rgba(73, 98, 255, 0.1),
      rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(73, 98, 255, 0.12);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(73, 98, 255, 0.25),
    0 0 20px rgba(73, 98, 255, 0.15);
  border-color: rgba(73, 98, 255, 0.4);
}

/* --- Extra Pricing Options --- */
.extra-pricing {
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.extra-pricing-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.extra-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.extra-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(100, 198, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.extra-item-highlight {
  background: linear-gradient(90deg, rgba(73, 98, 255, 0.15), rgba(73, 98, 255, 0.05)) !important;
  border-color: rgba(73, 98, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(73, 98, 255, 0.15);
}

.extra-item-highlight .service-name {
  color: #fff;
}

.extra-item-highlight .service-price {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-name {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.service-price {
  font-weight: 700;
  color: var(--cyan);
  font-size: 16px;
  text-align: right;
}

.per-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .extra-pricing-grid {
    grid-template-columns: 1fr;
  }

  .extra-pricing {
    padding: 32px 20px;
  }
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 8px 16px rgba(73, 98, 255, 0.3);
}

.pricing-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.price-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  min-height: 48px;
}

.price {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 32px;
  color: #fff;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  padding-left: 0;
}

.pricing-features li {
  margin-bottom: 16px;
  color: #dbe2ff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: bold;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordions {
  display: grid;
  gap: 16px;
}

.accordion {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.accordion summary {
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion summary::after {
  content: "+";
  font-size: 24px;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* --- WHY US (BENTO BOX) --- */
.why-section {
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Project Details Pages --- */
.project-header {
  padding: 80px 0 40px;
  text-align: center;
}

.project-hero-image {
  width: 100%;
  aspect-ratio: 1120 / 570;
  height: auto;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.project-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  z-index: 0;
}

.project-hero-image span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.project-hero-web {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
}

.project-hero-brand {
  background: linear-gradient(135deg, #b224ef, #7579ff);
}

.project-hero-ui {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.project-hero-ads {
  background-image: url("assets/1120  570.png");
  background-size: cover;
  background-position: center;
}

.hero-featured-img {
  position: relative;
  z-index: 2;
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s ease;
}

.hero-featured-img:hover {
  transform: scale(1.02);
}

.project-hero-video {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 100px;
}

.project-info h4 {
  color: var(--cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.project-info p {
  color: var(--muted);
  margin-bottom: 32px;
}

.dummy-app-logs {
  background: rgba(3, 5, 12, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  font-family: monospace;
  color: #64c6ff;
  line-height: 1.8;
  overflow-x: auto;
  margin-bottom: 40px;
}

.dummy-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.dummy-image-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.dummy-img {
  height: 300px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.dummy-img.full {
  grid-column: span 2;
  height: 400px;
}

.dummy-img.tall {
  height: 400px;
}

.dummy-img.short {
  height: 200px;
}

.brand-swatches {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.swatch {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.swatch-1 {
  background: #b224ef;
}

.swatch-2 {
  background: #7579ff;
}

.swatch-3 {
  background: #03050c;
}

.swatch-4 {
  background: #f0f4ff;
  color: #000;
}

/* --- Premium Metrics Grid Layout --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.metric-card {
  position: relative;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.03),
      transparent 60%);
  pointer-events: none;
}

.metric-card.card-ctr:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 198, 255, 0.4);
  box-shadow:
    0 20px 40px rgba(100, 198, 255, 0.12),
    inset 0 0 0 1px rgba(100, 198, 255, 0.05);
}

.metric-card.card-cpc:hover {
  transform: translateY(-5px);
  border-color: rgba(86, 239, 125, 0.4);
  box-shadow:
    0 20px 40px rgba(86, 239, 125, 0.12),
    inset 0 0 0 1px rgba(86, 239, 125, 0.05);
}

.metric-card.card-roas:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 204, 0.4);
  box-shadow:
    0 20px 40px rgba(255, 0, 204, 0.12),
    inset 0 0 0 1px rgba(255, 0, 204, 0.05);
}

.metric-card strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.metric-card.card-ctr strong {
  background: linear-gradient(135deg, #64c6ff 0%, #3d6aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-card.card-cpc strong {
  background: linear-gradient(135deg, #56ef7d 0%, #11998e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-card.card-roas strong {
  background: linear-gradient(135deg, #ff00cc 0%, #b224ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-back-link {
  text-decoration: none;
  color: white;
}

.nav-back-text {
  font-size: 20px;
}

.project-subtitle {
  color: var(--muted);
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.project-details-text {
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

  .dummy-image-grid,
  .dummy-image-grid-3 {
    grid-template-columns: 1fr;
  }

  .dummy-img.full {
    grid-column: span 1;
    height: 300px;
  }

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

/* Make viewport frame thinner and responsive on tablet/mobile */
@media (max-width: 768px) {
  html::before {
    top: 4px !important;
    left: 4px !important;
    right: 4px !important;
    bottom: 4px !important;
    border-radius: 8px !important;
    border-width: 2.5px !important;
  }
}

/* Ambient Background Orbs */
.ambient-orb {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -2;
  animation: floatOrb 25s ease-in-out infinite;
}

.orb-1 {
  background: var(--blue);
  top: 15%;
  left: 10%;
}

.orb-2 {
  background: #b224ef;
  bottom: 15%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -60px) scale(1.1);
  }
}

/* FAQ accordion slide animation */
.accordion[open] .accordion-content {
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Specific Hover Glows for Service Cards */
.card.card-brand:hover {
  border-color: rgba(255, 193, 7, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(255, 193, 7, 0.15),
    inset 0 0 0 1px rgba(255, 193, 7, 0.08) !important;
}

.card.card-ui:hover {
  border-color: rgba(178, 36, 239, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(178, 36, 239, 0.15),
    inset 0 0 0 1px rgba(178, 36, 239, 0.08) !important;
}

.card.card-marketing:hover {
  border-color: rgba(255, 0, 204, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(255, 0, 204, 0.15),
    inset 0 0 0 1px rgba(255, 0, 204, 0.08) !important;
}

.card.card-web:hover {
  border-color: rgba(100, 198, 255, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(100, 198, 255, 0.15),
    inset 0 0 0 1px rgba(100, 198, 255, 0.08) !important;
}

.card.card-app:hover {
  border-color: rgba(73, 98, 255, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(73, 98, 255, 0.15),
    inset 0 0 0 1px rgba(73, 98, 255, 0.08) !important;
}

.card.card-video:hover {
  border-color: rgba(56, 239, 125, 0.3) !important;
  box-shadow:
    0 20px 40px rgba(56, 239, 125, 0.15),
    inset 0 0 0 1px rgba(56, 239, 125, 0.08) !important;
}

/* --- Contact Actions Styling for Consistency --- */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 32px;
}

.contact-actions .btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

/* --- Ad Creatives Gallery Grid Styles --- */
.ad-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .ad-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .ad-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.ad-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(73, 98, 255, 0.4);
  box-shadow:
    0 20px 40px rgba(73, 98, 255, 0.2),
    0 0 12px rgba(73, 98, 255, 0.15);
}

.ad-gallery-item:hover img {
  transform: scale(1.05);
}

/* Behance Link Button in Grid (No Container) */
.cta-link-wrapper {
  grid-column: span 2;
  /* Span the remaining 2 columns on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cta-link-wrapper .cta-btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(61, 106, 255, 0.25);
  animation: glowPulse 2s infinite;
}

@media (max-width: 900px) {
  .cta-link-wrapper {
    grid-column: span 2;
    /* Spans full row on 2-column tablet layout */
    padding: 30px 0;
  }
}

@media (max-width: 560px) {
  .cta-link-wrapper {
    grid-column: span 1;
    /* Spans single column on mobile */
    padding: 20px 0;
  }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(73, 98, 255, 0.15);
  border: 1px solid rgba(73, 98, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(73, 98, 255, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* --- Minimalist Why Us List --- */
.why-list {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.why-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: flex-start;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.why-list-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-list-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  padding-left: 24px;
}

.why-num {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.why-list-item:hover .why-num {
  -webkit-text-stroke: 1px var(--cyan);
  color: rgba(100, 198, 255, 0.1);
  transform: translateX(-10px);
}

.why-content h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.why-content p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 768px) {
  .why-list-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .why-list-item:hover {
    padding-left: 0;
  }

  .why-num {
    font-size: 64px;
  }

  .why-content h3 {
    font-size: 26px;
  }
}

/* =============================================
   WHY LAYOUT (SPLIT SCREEN)
   ============================================= */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-text h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =============================================
   3D INTERACTIVE CAROUSEL
   ============================================= */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
  margin-top: 40px;
}

.coverflow-carousel {
  position: relative;
  width: 350px;
  height: 450px;
  transform-style: preserve-3d;
}

.coverflow-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(0.6) translateZ(-300px);
}

.coverflow-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1) translateZ(0);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.coverflow-item.prev {
  opacity: 0.4;
  transform: translateX(-55%) scale(0.85) translateZ(-100px) rotateY(15deg);
  z-index: 5;
}

.coverflow-item.next {
  opacity: 0.4;
  transform: translateX(55%) scale(0.85) translateZ(-100px) rotateY(-15deg);
  z-index: 5;
}

.coverflow-item.hidden {
  opacity: 0;
  transform: translateX(0) scale(0.6) translateZ(-300px);
  z-index: 1;
}

.coverflow-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 0%, var(--clr), transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.carousel-icon {
  font-size: 80px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--clr);
  margin-bottom: 20px;
  line-height: 1;
}

.coverflow-item h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.coverflow-item p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.carousel-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .coverflow-carousel {
    width: 280px;
    height: 400px;
  }

  .coverflow-item {
    padding: 30px;
  }

  .coverflow-item.prev {
    transform: translateX(-45%) scale(0.85) translateZ(-100px) rotateY(15deg);
  }

  .coverflow-item.next {
    transform: translateX(45%) scale(0.85) translateZ(-100px) rotateY(-15deg);
  }
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-marquee-wrapper {
  margin-top: 60px;
  width: 100%;
  overflow: hidden;
  /* Faded edges to make the cards slide out of nothing */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

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

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Translate exactly half the width to seamlessly loop the 6 cards */
    transform: translateX(calc(-50% - 15px));
  }
}

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card.featured {
  border-color: rgba(100, 198, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

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

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.quote {
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
}

.quote::before {
  content: '"';
  font-size: 60px;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: serif;
  line-height: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.client-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.client-meta {
  display: flex;
  flex-direction: column;
}

.client-meta strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.client-meta span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .testimonial-card {
    width: 300px;
  }
}

/* =============================================
   EDITORIAL CASE STUDY LAYOUT
   ============================================= */
.case-study-main {
  padding-top: 0;
}

/* 1. Massive Hero */
.cs-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  margin-bottom: 80px;
}
.cs-hero-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cs-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(to right, rgba(3,5,12,0.95) 0%, rgba(3,5,12,0.6) 40%, transparent 100%),
    linear-gradient(to top, rgba(3,5,12,0.95) 0%, rgba(3,5,12,0.4) 60%, transparent 100%);
}
.cs-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  max-width: 1000px;
}
.cs-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.5);
}
.cs-subtitle {
  font-size: 1.25rem;
  color: #e0e6f5;
  max-width: 600px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
  font-weight: 500;
}

/* 2. Editorial Brief */
.cs-editorial {
  padding: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 0px;
}
.cs-brief h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.cs-brief p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #c9d1e9;
}
.cs-meta-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
}
.meta-item {
  margin-bottom: 30px;
}
.meta-item:last-child {
  margin-bottom: 0;
}
.meta-item h4 {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.meta-item p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* 3. Color Palette */
.cs-palette {
  margin-bottom: 100px;
}
.cs-palette h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
}
.cs-section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 60px;
}
.cs-swatches {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cs-swatch {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
}
.cs-swatch:hover {
  transform: translateY(-10px) scale(1.05);
}
.swatch-label {
  position: absolute;
  bottom: -40px;
  font-weight: 600;
  white-space: nowrap;
}

/* 4. Masonry Gallery */
.cs-gallery {
  padding-top: 20px;
  margin-bottom: 120px;
}
.cs-gallery h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}
.cs-masonry,
.dummy-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 30px;
}
.dummy-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}
.cs-masonry-item {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s ease;
}
.cs-masonry-item:hover img {
  transform: scale(1.05);
}

/* 5. Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .cs-masonry, .dummy-image-grid, .video-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
}

@media (max-width: 900px) {
  .cs-title { font-size: 3.5rem; }
  .cs-editorial { grid-template-columns: 1fr; }
  .cs-masonry, .dummy-image-grid, .video-grid { grid-template-columns: 1fr; }
  .dummy-image-grid img { max-height: 300px; }
}

@media (max-width: 560px) {
  .cs-title { font-size: 2.5rem; }
  .cs-hero-content { padding-bottom: 40px; }
  .cs-editorial { gap: 40px; }
}