/* Custom utilities */
.section-shell {
  margin-inline: auto;
  width: 100%;
  max-width: 1200px;
  padding-inline: 1.25rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-surface {
  background:
    radial-gradient(
      120% 90% at 78% 8%,
      rgba(45, 30, 133, 0.55),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 8% 92%,
      rgba(169, 155, 255, 0.3),
      transparent 62%
    ),
    linear-gradient(160deg, #0b0920 0%, #1a1245 55%, #221a5a 100%);
}
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(85% 70% at 40% 30%, black, transparent 78%);
}
.glass-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.text-gradient-brand {
  background: linear-gradient(100deg, #a99bff, #c9bfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Smooth scroll with offset for fixed navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  font-family: "Huninn", sans-serif;

  background-color: white;
  color: #0b0920;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: "Huninn", sans-serif;

  letter-spacing: -0.02em;
}
::selection {
  background: #2d1e85;
  color: white;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Custom cursor styles */
#custom-cursor {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(109, 92, 231, 0.1);
  will-change: transform;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

/* ------------------------- Portfolio CSS --------------------- */

.case-section {
  position: relative;
  /* width: 100vw; */
  /* min-height: 100vh; */
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  margin-top: 20px;
  overflow: hidden;
  overflow-x: hidden !important;
}

.case-section .case-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 20px auto 0;
  padding: 0 20px;
}

/* ─── Tabs ─── */
.case-section .tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 38px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-section .tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.case-section .tabs-inner {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-wrap: nowrap;
}

.case-section .tab-btn {
  padding: 9px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
}

.case-section .tab-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

.case-section .tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.case-section .tab-btn .indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.case-section .tab-btn.active .indicator {
  opacity: 1;
}

/* ─── Slider Stage ─── */
.case-section .slider-stage {
  position: relative;
  width: 100%;
  height: 580px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
  touch-action: none;
  user-select: none;
}

.case-section .slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* ─── Slide Card ─── */
.case-section .slide-card {
  position: absolute;
  width: 92%;
  max-width: 1100px;
  height: 530px;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: grab;
  transition: none;
  left: 50%;
  top: 50%;
  margin-left: -46%;
  margin-top: -265px;
}

.case-section .slide-card:active {
  cursor: grabbing;
}

.case-section .slide-card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

/* ─── Left: Image ─── */
.case-section .card-image {
  flex: 0 0 58%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 28px 0 0 28px;
}

.case-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  /* top: -10%;
                left: -10%; */
  will-change: transform;
  transform: translateX(0px) translateY(0px) scale(1.05);
  transition: none;
}

.case-section .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.01) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  border-radius: 28px 0 0 28px;
}

/* ─── Right: Content ─── */
.case-section .card-content {
  flex: 0 0 42%;
  height: 100%;
  padding: 44px 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border-radius: 0 28px 28px 0;
}

.case-section .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #800080;
  background: rgba(124, 92, 252, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  align-self: flex-start;
  border: 1px solid rgba(124, 92, 252, 0.1);
}

.case-section .card-badge .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #800080;
  margin-right: 4px;
}

.case-section .card-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0b0b10;
  margin-bottom: 12px;
}

.case-section .card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #4a4a5a;
  max-width: 92%;
  margin-bottom: 22px;
}

/* ─── Stats ─── */
.case-section .card-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
}

.case-section .stat-item {
  display: flex;
  flex-direction: column;
}

.case-section .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #0b0b10;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-section .stat-number .accent {
  color: #800080;
}

.case-section .stat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  margin-top: 2px;
}

/* ─── CTA ─── */
.case-section .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #0b0b10;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  align-self: flex-start;
  text-decoration: none;
}

.case-section .card-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  background: #1a1a24;
}

.case-section .card-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s ease;
}

.case-section .card-cta:hover svg {
  transform: translateX(4px);
}

/* ─── Navigation Buttons ─── */
.case-section .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  /* background: rgba(255, 255, 255, 0.06); */
  background: black;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.case-section .nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.case-section .nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.case-section .nav-btn.prev {
  left: 10px;
}

.case-section .nav-btn.next {
  right: 10px;
}

.case-section .nav-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Dots ─── */
.case-section .dots-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 6px 16px;
}

.case-section .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.case-section .dot.active {
  background: #ffffff;
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(124, 92, 252, 0.25);
}

.case-section .dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.case-section .dot.active:hover {
  background: #800080;
}

/* ─── Progress Bar ─── */
.case-section .progress-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  z-index: 20;
}

.case-section .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #800080, #a78bfa);
  border-radius: 0 0 28px 28px;
  transition: width 0.05s linear;
  will-change: width;
}

.case-section .progress-fill.paused {
  animation-play-state: paused;
}

/* ─── Glow Ring ─── */
.case-section .glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 252, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .case-section .slide-card {
    height: 450px !important;
    max-width: 960px;
    margin-left: -44%;
    margin-top: -240px;
  }

  .case-section .card-title {
    font-size: 32px;
  }

  .case-section .card-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .case-section .card-content {
    padding: 36px 28px 28px 24px;
  }

  .case-section .stat-number {
    font-size: 21px;
  }

  .case-section .card-stats {
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .case-section .slide-card {
    height: 375px !important;
    max-width: 840px;
    margin-left: -42%;
    margin-top: -220px;
  }

  .case-section .card-image {
    flex: 0 0 55%;
  }

  .case-section .card-content {
    flex: 0 0 45%;
    padding: 30px 22px 24px 20px;
  }

  .case-section .card-title {
    font-size: 28px;
  }

  .case-section .card-desc {
    font-size: 13px;
  }

  .case-section .stat-number {
    font-size: 19px;
  }

  .case-section .card-stats {
    gap: 18px;
  }

  .case-section .card-cta {
    padding: 11px 24px;
    font-size: 12px;
  }

  .case-section .nav-btn {
    width: 38px;
    height: 38px;
  }

  .case-section .nav-btn svg {
    width: 15px;
    height: 15px;
  }

  .case-section .slider-stage {
    height: 480px;
  }
}

@media (max-width: 820px) {
  .case-section {
    min-height: 900px;
    justify-content: start;
  }

  .case-section .slide-card {
    height: 600px !important;
    max-width: 720px;
    border-radius: 24px;
    margin-left: -40%;
    margin-top: -200px;
  }

  .case-section .slide-card-inner {
    flex-direction: column;
    border-radius: 24px;
    height: auto;
  }

  .case-section .card-image {
    border-radius: 24px 0 0 24px;
  }

  .case-section .card-image::after {
    border-radius: 24px 0 0 24px;
  }

  .case-section .card-content {
    border-radius: 0 24px 24px 0;
    padding: 24px 18px 20px 16px;
  }

  .case-section .card-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .case-section .card-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .case-section .stat-number {
    font-size: 17px;
  }

  .case-section .card-stats {
    gap: 14px;
    margin-bottom: 18px;
  }

  .case-section .stat-label {
    font-size: 8px;
  }

  .case-section .card-cta {
    padding: 9px 20px;
    font-size: 11px;
  }

  .case-section .card-badge {
    font-size: 9px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .case-section .nav-btn {
    width: 32px;
    height: 32px;
  }

  .case-section .nav-btn.prev {
    left: 4px;
  }

  .case-section .nav-btn.next {
    right: 4px;
  }

  .case-section .slider-stage {
    height: 440px;
  }

  .case-section .tabs-inner {
    gap: 3px;
    padding: 4px;
  }

  .case-section .tab-btn {
    padding: 7px 14px;
    font-size: 11px;
  }

  .case-section .glow-ring {
    width: 400px;
    height: 400px;
    filter: blur(40px);
  }
}

@media (max-width: 640px) {
  .case-section {
    padding: 50px 20px;
    min-height: 100vh;
  }

  .case-section .case-container {
    padding: 0 10px;
  }

  .case-section .slider-stage {
    height: auto;
    min-height: 480px;
    perspective: none;
    overflow: visible;
  }

  .case-section .slider-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    transform-style: flat;
    height: auto;
    min-height: 480px;
  }

  .case-section .slide-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 440px;
    border-radius: 20px;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 auto !important;
    left: auto !important;
    top: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: none;
  }

  .case-section .slide-card.mobile-active {
    display: flex !important;
  }

  .case-section .card-image {
    flex: 0 0 300px;
    width: 100%;
    height: 300px;
    border-radius: 20px 20px 0 0;
  }

  .case-section .card-image img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none !important;
  }

  .case-section .card-image::after {
    border-radius: 20px 20px 0 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.04) 100%
    );
  }

  .case-section .card-content {
    /* flex: 0 0 auto; */
    padding: 22px 18px 24px;
    border-radius: 0 0 20px 20px;
  }

  .case-section .tabs-wrapper {
    display: none;
  }

  .case-section .card-title {
    font-size: 22px;
  }

  .case-section .card-desc {
    font-size: 13px;
    max-width: 100%;
  }

  .case-section .card-stats {
    gap: 18px;
  }

  .case-section .stat-number {
    font-size: 19px;
  }

  .case-section .nav-btn {
    /* display: none; */
    top: 100%;
    color: black;
    background: #fff;
  }

  .case-section .nav-btn.prev {
    left: 30%;
  }

  .case-section .nav-btn.next {
    right: 30%;
  }

  .case-section .dots-wrap {
    margin-top: 22px;
    gap: 8px;
  }

  .case-section .dot {
    width: 8px;
    height: 8px;
  }

  .case-section .dot.active {
    width: 26px;
  }

  .case-section .tabs-wrapper {
    margin-bottom: 24px;
  }

  .case-section .tab-btn {
    padding: 6px 12px;
    font-size: 10px;
  }

  .case-section .tabs-inner {
    padding: 3px;
    gap: 2px;
    border-radius: 40px;
  }

  .case-section .progress-rail {
    display: none;
  }

  .case-section .card-cta {
    padding: 10px 18px;
    font-size: 11px;
  }

  .case-section .glow-ring {
    width: 250px;
    height: 250px;
    filter: blur(30px);
  }
}

@media (max-width: 420px) {
  .case-section .card-title {
    font-size: 19px;
  }

  .case-section .card-desc {
    font-size: 12px;
  }

  .case-section .stat-number {
    font-size: 16px;
  }

  .case-section .card-stats {
    gap: 12px;
  }

  .case-section .card-content {
    padding: 18px 14px 20px;
  }

  .case-section .card-image {
    height: 150px;
    flex: 0 0 150px;
  }

  .case-section .slide-card {
    min-height: 400px;
  }

  .case-section .card-badge {
    font-size: 8px;
    padding: 3px 10px;
  }
}

/* ─── Utilities ─── */
.case-section .bg-grid-subtle {
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(124, 92, 252, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(124, 92, 252, 0.02) 0%,
      transparent 50%
    );
}

/* ::-webkit-scrollbar {
              display: none;
            } */

.animate-marquee {
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
