/* Disrupt Studios - Official Design System */
/* Clean Typography (Advertising360 style) + Royal Blue Brand Palette (#4A5FF4) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Official Disrupt Studios Royal Blue */
  --brand-blue: #4A5FF4;
  --brand-blue-hover: #384CFF;
  --brand-blue-dark: #2A3CE0;
  --brand-blue-light: #6E80FF;

  /* Canvas & Cards */
  --bg-canvas: #07090e;
  --bg-surface: #0c101a;
  --bg-card: rgba(14, 19, 32, 0.82);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(74, 95, 244, 0.45);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  font-family: var(--font-primary);
  background-color: var(--bg-canvas);
  color: #f1f5f9;
  /* Use clip instead of hidden so position: sticky works for stackable cards */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

::selection {
  background: var(--brand-blue);
  color: #ffffff;
}

/* Subtle Tech Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Ambient Blue Glows */
.ambient-glow-hero {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100vw);
  height: 500px;
  background: radial-gradient(circle, rgba(74, 95, 244, 0.24) 0%, rgba(30, 58, 138, 0.12) 45%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-section {
  position: absolute;
  width: min(500px, 90vw);
  height: 500px;
  background: radial-gradient(circle, rgba(74, 95, 244, 0.14) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Bento Card */
.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 16px 36px -12px rgba(74, 95, 244, 0.22);
  transform: translateY(-2px);
}

/* Stackable Service Cards (Sticky Scroll Stack) */
.stack-cards-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack-card {
  position: sticky;
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.55), 0 18px 40px -15px rgba(74, 95, 244, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.stack-card:hover {
  border-color: rgba(74, 95, 244, 0.5);
}

.stack-card--1 { top: 76px; z-index: 10; }
.stack-card--2 { top: 92px; z-index: 20; }
.stack-card--3 { top: 108px; z-index: 30; }
.stack-card--4 { top: 124px; z-index: 40; }

@media (min-width: 768px) {
  .stack-cards-container {
    gap: 2.25rem;
  }
  .stack-card--1 { top: 92px; }
  .stack-card--2 { top: 114px; }
  .stack-card--3 { top: 136px; }
  .stack-card--4 { top: 158px; }
}

/* Looping Client Logos Strip */
@keyframes marquee-loop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.logo-loop-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-loop-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee-loop 32s linear infinite;
}

.logo-loop-wrapper:hover .logo-loop-track {
  animation-play-state: paused;
}

.logo-pill {
  flex: 0 0 auto;
  width: 155px;
  height: 78px;
  border-radius: 1rem;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .logo-loop-track {
    gap: 1.75rem;
  }
  .logo-pill {
    width: 185px;
    height: 88px;
  }
}

.logo-pill:hover {
  transform: translateY(-2px);
}

.logo-pill--light {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.logo-pill--dark {
  background: #0f1628;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.logo-pill img {
  max-height: 48px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Gradient Text */
.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 20%, #4A5FF4 70%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Action Buttons */
.btn-brand {
  background: #4A5FF4;
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 20px -2px rgba(74, 95, 244, 0.45);
  transition: all 0.25s ease;
}

.btn-brand:hover {
  background: #384CFF;
  box-shadow: 0 8px 30px rgba(74, 95, 244, 0.65);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Portfolio Locked Overlay Blur */
.portfolio-preview-blur {
  filter: blur(4px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.96) translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
