/* Public fallback CSS (no Vite/build required)
   Tailwind utilities come from CDN; this file provides custom components used by the site.
*/

/* Banner Carousel */
.banner-carousel-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  z-index: 1;
}

/* ============================================
   AGNTIX-STYLE PRELOADER + MAGIC CURSOR
   ============================================ */

#preloader.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader .preloader {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#preloader .preloader-ring {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: rgba(15, 23, 42, 0.95);
  border-right-color: rgba(0, 240, 255, 0.75);
  animation: loaderSpin 0.9s linear infinite;
  flex: 0 0 auto;
}

#preloader .preloader-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#preloader .preloader-name {
  font-family: Orbitron, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.1;
}

#preloader .preloader-sub {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

/* Loader marquee (reuses moving-text styles, but scoped for loader) */
#preloader .preloader-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.95;
}

#preloader .preloader-marquee .moving-text-item {
  animation-duration: 18s;
  will-change: transform;
}

#preloader .preloader-marquee .moving-text-item span {
  font-family: Orbitron, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.85);
}

#preloader .preloader-marquee .moving-text-item .text-separator {
  color: rgba(255, 83, 91, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  #preloader .preloader-marquee .moving-text-item {
    animation: none !important;
    transform: none !important;
  }
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }

#magic-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 99999;
  pointer-events: none;
}

#magic-cursor #ball {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ff535b;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, background-color;
  transition: width 0.18s ease, height 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  opacity: 0.95;
}

body.cursor-hidden * { cursor: none !important; }
body.cursor-hidden a,
body.cursor-hidden button,
body.cursor-hidden [role="button"] { cursor: none !important; }

body.cursor-hidden #magic-cursor #ball.is-hover {
  width: 42px;
  height: 42px;
  opacity: 0.22;
}

@media (pointer: coarse) {
  #magic-cursor { display: none !important; }
  body.cursor-hidden * { cursor: auto !important; }
}

.back-to-top-wrapper {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
}
.back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top-btn.show { opacity: 1; transform: translateY(0); }

/* ============================================
   HEADER BRAND LOGO (Aniket Sharma) – animated
   ============================================ */

.brand-logo-anim {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: Orbitron, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f172a;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

@media (min-width: 640px) {
  .brand-logo-anim { font-size: 1.7rem; }
}

.brand-logo-anim::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #7dd3fc 30%, #ff00d4 65%, #7b00ff 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.65), 0 0 18px rgba(0,240,255,0.35), 0 0 28px rgba(255,0,212,0.25);
  margin-right: 0.35rem;
  transform: translateY(1px);
  flex: 0 0 auto;
}

/* Neon + glitch header logo (requested) */
.brand-logo-glitch::before { display: none; }

.brand-logo-glitch {
  padding: 4px 6px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-neon-title {
  position: relative;
  display: inline-block;
  font-family: Orbitron, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: none;
  color: #0f172a;
  white-space: nowrap;
  isolation: isolate;
  text-shadow: none;
  animation: none;
  z-index: 2;
}

.brand-neon-title::before,
.brand-neon-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.brand-neon-title::before {
  left: 2px;
  text-shadow: -3px 0 #ff00aa;
}

.brand-neon-title::after {
  left: -2px;
  text-shadow: 3px 0 #00f0ff;
}

.brand-logo-glitch:hover .brand-neon-title {
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.28), 0 0 26px rgba(255, 0, 170, 0.22);
  animation: brandFlicker 6s infinite;
}

.brand-logo-glitch:hover .brand-neon-title::before {
  opacity: 0.65;
  animation: brandGlitchLeft 2.5s infinite linear alternate-reverse;
}

.brand-logo-glitch:hover .brand-neon-title::after {
  opacity: 0.65;
  animation: brandGlitchRight 3.2s infinite linear alternate-reverse;
}

@keyframes brandNeonPulse {
  from { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #00f0ff, 0 0 80px #00f0ff, 0 0 120px #ff00aa; }
  to { text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 28px #ff00aa, 0 0 56px #ff00aa, 0 0 96px #00f0ff; }
}

@keyframes brandFlicker {
  0%, 19.9%, 22%, 62.9%, 64%, 100% { opacity: 1; }
  20%, 22.9%, 63% { opacity: 0.55; }
}

@keyframes brandGlitchLeft {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes brandGlitchRight {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(-2px, -2px); }
  100% { transform: translate(0); }
}

.brand-logo-glitch .brand-logo-underline,
.brand-logo-glitch .brand-logo-text,
.brand-logo-glitch .brand-char {
  display: none !important;
}

.brand-logo-text {
  position: relative;
  display: inline-block;
  color: #111;
}

/* 3D letters */
.brand-logo-3d {
  --brand-tilt-x: 0deg;
  --brand-tilt-y: 0deg;
}

.brand-logo-text-3d {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  perspective: 900px;
  transform-style: preserve-3d;
}

.brand-char {
  display: inline-block;
  transform-style: preserve-3d;
  transform: translateZ(0) rotateX(var(--brand-tilt-x)) rotateY(var(--brand-tilt-y));
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  background: linear-gradient(90deg, #00f0ff 0%, #ff00d4 35%, #7b00ff 70%, #00f0ff 100%);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandNeonFlow 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.08)) drop-shadow(0 0 14px rgba(0,240,255,0.18));
}

.brand-space { width: 0.35em; }

.brand-logo-3d:hover .brand-char { animation: brandWave 900ms ease-in-out both; }
.brand-logo-3d:hover .brand-char:nth-child(2) { animation-delay: 40ms; }
.brand-logo-3d:hover .brand-char:nth-child(3) { animation-delay: 80ms; }
.brand-logo-3d:hover .brand-char:nth-child(4) { animation-delay: 120ms; }
.brand-logo-3d:hover .brand-char:nth-child(5) { animation-delay: 160ms; }
.brand-logo-3d:hover .brand-char:nth-child(6) { animation-delay: 200ms; }
.brand-logo-3d:hover .brand-char:nth-child(7) { animation-delay: 240ms; }
.brand-logo-3d:hover .brand-char:nth-child(8) { animation-delay: 280ms; }
.brand-logo-3d:hover .brand-char:nth-child(9) { animation-delay: 320ms; }
.brand-logo-3d:hover .brand-char:nth-child(10) { animation-delay: 360ms; }
.brand-logo-3d:hover .brand-char:nth-child(11) { animation-delay: 400ms; }
.brand-logo-3d:hover .brand-char:nth-child(12) { animation-delay: 440ms; }
.brand-logo-3d:hover .brand-char:nth-child(13) { animation-delay: 480ms; }

@keyframes brandWave {
  0% { transform: translateY(0) translateZ(0) rotateX(var(--brand-tilt-x)) rotateY(var(--brand-tilt-y)); }
  50% { transform: translateY(-6px) translateZ(14px) rotateX(calc(var(--brand-tilt-x) * 1.1)) rotateY(calc(var(--brand-tilt-y) * 1.1)); }
  100% { transform: translateY(0) translateZ(0) rotateX(var(--brand-tilt-x)) rotateY(var(--brand-tilt-y)); }
}

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

.brand-logo-underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(0,240,255,0), rgba(0,240,255,0.95), rgba(255,0,212,0.95), rgba(0,240,255,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  box-shadow: 0 0 18px rgba(0,240,255,0.25);
}

.brand-logo-anim:hover { transform: translateY(-1px); }
.brand-logo-anim:hover .brand-logo-underline { transform: scaleX(1); }

.brand-logo-anim:focus-visible {
  outline: 2px solid rgba(255, 83, 91, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-anim::before { box-shadow: none; }
  .brand-logo-anim, .brand-logo-underline, .brand-char { transition: none; animation: none; transform: none; }
  .brand-neon-title,
  .brand-neon-title::before,
  .brand-neon-title::after {
    animation: none !important;
  }
  .brand-logo-glitch { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 768px) {
  .banner-carousel-container {
    height: 50vh;
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .banner-carousel-container {
    height: 40vh;
    min-height: 300px;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s 0.8s;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) !important;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
  z-index: 2;
  pointer-events: auto;
}

.banner-slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
}

.banner-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Subtle highlights like premium agency hero (keeps image clear) */
  background:
    radial-gradient(600px 380px at 20% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(520px 340px at 85% 80%, rgba(255, 255, 255, 0.10), transparent 65%);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

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

.banner-overlay {
  position: absolute;
  inset: 0;
  /* Layered overlay:
     - keep image clear (light overall tint)
     - increase readability near the center where text sits */
  /* Lighter overlay for clear banner images (text sits on glass panel) */
  background:
    radial-gradient(70% 70% at 50% 45%,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(0, 0, 0, 0.08) 45%,
      rgba(0, 0, 0, 0.04) 70%,
      rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.10) 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.banner-text-content {
  max-width: 720px;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
}

@media (max-width: 768px) {
  .banner-text-content {
    text-align: center;
    padding: 1.25rem;
  }
}

.banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.banner-kicker-line {
  width: 42px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
}

.banner-kicker-text {
  opacity: 0.95;
}
.banner-title {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.banner-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 1);
}

.banner-nav-prev {
  left: 16px;
}
.banner-nav-next {
  right: 16px;
}

.banner-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
}

.banner-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

/* Modern Nav (for overlap fixes) */
.modern-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999 !important;
  position: sticky;
  top: 0;
}

.modern-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link-modern {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link-modern::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #111;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
  width: calc(100% - 1.5rem);
}

/* Section headers + cards (needed because home.blade uses these classes) */
.section-header-modern { margin-bottom: 3rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title-modern {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 0.75rem;
}
.section-description-modern {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.65);
  max-width: 60ch;
}

/* ============================================
   CASE STUDIES SECTION (Agntix-style)
   ============================================ */

.tp-section-subtitle-clash {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
}

.tp-section-title-clash {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111;
}

.tp_reveal_anim {
  opacity: 0;
  transform: translateY(110%);
  display: inline-block;
}

.animate-on-scroll.animated .tp_reveal_anim {
  animation: tpRevealUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

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

@media (max-width: 640px) {
  .case-studies-grid { grid-template-columns: 1fr; }
}

.case-study-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  min-height: 260px;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Classic scroll-in animation (fallback JS adds .animated to .animate-on-scroll) */
.case-study-card.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 45%);
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.case-study-card:nth-child(1),
.case-study-card:nth-child(6) { grid-column: span 7; }
.case-study-card:nth-child(2),
.case-study-card:nth-child(5) { grid-column: span 5; }
.case-study-card:nth-child(3),
.case-study-card:nth-child(4) { grid-column: span 6; }

@media (max-width: 1024px) {
  .case-study-card:nth-child(n) { grid-column: auto; }
}

.case-study-media { position: absolute; inset: 0; }

.case-study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.5s ease;
}

.case-study-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 30%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.case-study-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-study-caption {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.case-study-cta {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.case-study-card:hover .case-study-img { transform: scale(1.10); }
.case-study-card:hover .case-study-overlay { opacity: 1; }

.case-study-card:hover::before {
  transform: translateX(120%);
}

/* ============================================
   FUTURISTIC HERO (Aniket Sharma) – neon grid + orbs + typing
   Scope: only the .neo-hero section (does not change whole site)
   ============================================ */

.neo-hero {
  position: relative;
  min-height: 720px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05050f;
  color: #e0e0ff;
  padding: 120px 20px 60px;
  isolation: isolate;
}

.neo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(100, 80, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(0, 255, 255, 0.07) 0%, transparent 30%);
  z-index: 0;
}

.neo-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 40, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 40, 120, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  animation: neoGridMove 120s linear infinite;
  z-index: 1;
}

@keyframes neoGridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

.neo-hero-glow-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.neo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
  animation: neoFloatOrb 25s infinite ease-in-out;
}

.neo-orb-1 {
  width: 420px;
  height: 420px;
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, #7b2cff, transparent);
  animation-delay: 0s;
}
.neo-orb-2 {
  width: 520px;
  height: 520px;
  bottom: 5%;
  right: 10%;
  background: radial-gradient(circle, #00eaff, transparent);
  animation-delay: 8s;
  animation-direction: reverse;
}
.neo-orb-3 {
  width: 300px;
  height: 300px;
  top: 55%;
  left: 65%;
  background: radial-gradient(circle, #ff006e, transparent);
  animation-delay: 14s;
}

@keyframes neoFloatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.15); }
  50% { transform: translate(-40px, 90px) scale(0.95); }
  75% { transform: translate(60px, 40px) scale(1.1); }
}

.neo-hero-content {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  text-align: center;
}

.neo-hero-title {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -4px;
  background: linear-gradient(90deg, #00f0ff, #ff00d4, #7b00ff, #00f0ff, #ff00d4);
  background-size: 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(120, 0, 255, 0.5);
  animation: neoGradientFlow 10s ease infinite, neoTextGlow 4s ease-in-out infinite alternate, neoRevealBig 1.8s 0.2s forwards;
  opacity: 0;
}

.neo-hero-subtitle {
  margin-top: 1.8rem;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.1rem, 4.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: #a0a0ff;
  opacity: 0;
  animation: neoFadeInUp 1.4s 1.9s forwards;
}

.neo-hero-typing {
  color: #00f0ff;
  font-weight: 400;
  border-right: 4px solid #00f0ff;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  max-width: 32ch;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
  animation: neoTyping 4.2s steps(32) 2.3s forwards, neoBlink 0.9s infinite;
}

@keyframes neoGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 400% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neoTextGlow {
  from { text-shadow: 0 0 30px rgba(120,0,255,0.4), 0 0 60px rgba(0,240,255,0.3); }
  to { text-shadow: 0 0 80px rgba(120,0,255,0.7), 0 0 140px rgba(0,240,255,0.5); }
}

@keyframes neoRevealBig {
  0% { opacity: 0; transform: translateY(120px) scale(0.85); filter: blur(18px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes neoTyping {
  from { width: 0; }
  to { width: 32ch; }
}

@keyframes neoBlink { 50% { border-color: transparent; } }

@keyframes neoFadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .neo-hero-title { letter-spacing: -3px; }
  .neo-hero-typing { border-right-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .neo-hero-bg-grid,
  .neo-orb,
  .neo-hero-title,
  .neo-hero-subtitle,
  .neo-hero-typing {
    animation: none !important;
  }
  .neo-hero-title { opacity: 1; filter: none; transform: none; }
  .neo-hero-subtitle { opacity: 1; transform: none; }
  .neo-hero-typing { width: auto; border-right: none; }
}

/* ============================================
   OUR RECENT PHOTOS – Dreamscape orbit gallery
   Scope: only .recent-photos-dreamscape section
   ============================================ */

.recent-photos-dreamscape {
  position: relative;
  padding: 96px 0;
  background: #0b0015;
  overflow: hidden;
  color: #fff;
}

.recent-photos-dreamscape::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(120,60,220,0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0,200,255,0.09) 0%, transparent 50%);
  z-index: 0;
}

.recent-photos-dreamscape .dream-space {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(180,100,255,0.08), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(0,255,220,0.06), transparent 70%);
  z-index: 0;
}

.recent-photos-dreamscape .dream-title-orbit {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -6px;
  background: linear-gradient(90deg, #c084fc, #7dd3fc, #f472b6, #c084fc);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dreamTitleDrift 14s ease-in-out infinite, dreamGlowShift 8s ease-in-out infinite alternate;
  text-shadow: 0 0 80px rgba(192,132,252,0.5);
  line-height: 1.0;
  margin-bottom: 10px;
}

/* Mobile clarity tweaks (title was too wide/condensed on small screens) */
@media (max-width: 640px) {
  .recent-photos-dreamscape {
    padding: 64px 0;
  }

  .recent-photos-dreamscape .dream-title-orbit {
    font-size: clamp(1.9rem, 10vw, 3.1rem);
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 6px;
    text-shadow: 0 0 36px rgba(192,132,252,0.35);
  }
}

@keyframes dreamTitleDrift {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes dreamGlowShift {
  from { text-shadow: 0 0 60px rgba(192,132,252,0.6), 0 0 120px rgba(125,211,252,0.3); }
  to { text-shadow: 0 0 120px rgba(244,114,182,0.7), 0 0 200px rgba(192,132,252,0.4); }
}

.recent-photos-dreamscape .dream-gallery-void {
  position: relative;
  margin-top: 40px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
}

.recent-photos-dreamscape .dream-photo-orb {
  position: absolute;
  width: 280px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7), inset 0 0 40px rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  cursor: pointer;
  opacity: 0.92;
  text-decoration: none;
  color: inherit;
  transform: translate(var(--dx), var(--dy)) rotateY(var(--ry)) rotateX(var(--rx)) translateZ(var(--dz));
}

.recent-photos-dreamscape .dream-photo-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}

.recent-photos-dreamscape .dream-photo-orb:hover {
  transform: translateZ(280px) scale(1.18) !important;
  box-shadow: 0 60px 140px rgba(120,60,220,0.6), 0 0 100px rgba(0,200,255,0.4);
  z-index: 100;
  opacity: 1;
}

.recent-photos-dreamscape .dream-photo-orb:hover img { transform: scale(1.12); }

.recent-photos-dreamscape .dream-glare {
  position: absolute;
  inset: -50%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.4s ease;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  pointer-events: none;
}

.recent-photos-dreamscape .dream-photo-orb:hover .dream-glare {
  opacity: 1;
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.recent-photos-dreamscape .dream-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 3px 12px #000;
  opacity: 0;
  transition: all 0.7s ease;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-photos-dreamscape .dream-photo-orb:hover .dream-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.recent-photos-dreamscape .dream-photo-orb:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.85);
  outline-offset: 6px;
}

@media (max-width: 900px) {
  .recent-photos-dreamscape .dream-gallery-void {
    height: auto;
    perspective: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-items: stretch;
    align-items: stretch;
  }
  .recent-photos-dreamscape .dream-photo-orb {
    position: relative;
    width: 100%;
    height: 320px;
    transform: none !important;
  }
  .recent-photos-dreamscape .dream-photo-orb:hover {
    transform: translateY(-4px) scale(1.02) !important;
  }
  .recent-photos-dreamscape .dream-caption {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .recent-photos-dreamscape .dream-gallery-void {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recent-photos-dreamscape .dream-title-orbit,
  .recent-photos-dreamscape .dream-photo-orb,
  .recent-photos-dreamscape .dream-photo-orb img,
  .recent-photos-dreamscape .dream-glare {
    animation: none !important;
    transition: none !important;
  }
}

.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.creative-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .creative-grid-large {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Instagram embed safety on very small screens */
@media (max-width: 640px) {
  blockquote.instagram-media {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.image-overlay-modern {
  position: relative;
  overflow: hidden;
}

.image-overlay-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-overlay-modern:hover img {
  transform: scale(1.06);
}

.image-overlay-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.image-overlay-modern:hover::after {
  opacity: 1;
}

.agency-heading {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.agency-text-large {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.65);
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  background: transparent;
  color: #111;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(17, 17, 17, 0.6);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-modern-outline:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.creative-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.creative-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.12);
}

.number-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Category cards */
.category-card { display: block; }
.category-card .category-card-inner {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card .category-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 20, 147, 0.12), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-card:hover .category-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.14);
}

.category-card:hover .category-card-inner::before { opacity: 1; }

.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 20, 147, 0.08);
  border: 1px solid rgba(255, 20, 147, 0.18);
  color: rgba(17, 17, 17, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover .category-icon {
  transform: rotate(-6deg) scale(1.05);
  background: rgba(255, 20, 147, 0.12);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.category-desc {
  color: rgba(17, 17, 17, 0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
  position: relative;
  z-index: 1;
}

.category-card:hover .category-cta svg {
  transform: translateX(4px);
}

.category-cta svg {
  transition: transform 0.2s ease;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.icon-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(255, 20, 147, 0.35), rgba(0, 0, 0, 0), rgba(255, 20, 147, 0.25));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.icon-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 20, 147, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.icon-btn:hover::before,
.icon-btn:hover::after {
  opacity: 1;
}

.icon-svg {
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.icon-btn:hover .icon-svg {
  transform: rotate(-6deg) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Premium hover shine */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -120%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(18deg);
  transition: left 0.55s ease;
}

.shine-hover:hover::before {
  left: 140%;
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn,
  .icon-btn::before,
  .icon-btn::after,
  .icon-svg,
  .shine-hover::before {
    transition: none !important;
    animation: none !important;
  }
}

/* Moving Text (Agntix-like) */
.moving-text-section {
  position: relative;
  background: #000;
  margin-top: 2.5rem;
  padding: 8rem 0;
  overflow: hidden;
}

.moving-text-top-wrapper,
.moving-text-bottom-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.moving-text-top-wrapper {
  margin-bottom: 1rem;
}

.moving-text-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: moveText 40s linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.moving-text-item.reverse {
  animation: moveTextReverse 40s linear infinite;
}

.moving-text-item span {
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 900;
  color: #f5f5dc;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
  flex-shrink: 0;
}

.moving-text-item .text-separator {
  font-size: clamp(2rem, 6vw, 6rem);
  color: #ff1493;
  font-weight: 900;
  line-height: 1;
  margin: 0 1rem;
}

@keyframes moveText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes moveTextReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .moving-text-section { margin-top: 1.5rem; padding: 4.5rem 0; }
  .moving-text-item { animation-duration: 26s; }
  .moving-text-item.reverse { animation-duration: 26s; }
}

/* Scroll animation base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

