/* ===================================================
   DISSIDE CREATIVE BRANDING & DESIGN STUDIO
   Light Theme & Modern Agency Design System
   Inspired by Social Panga & International Creative Studios
   =================================================== */

:root {
  --bg-white: #ffffff;
  --bg-surface: #f8fafc;
  --bg-elevated: #f1f5f9;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --brand-orange: #ff4d00;
  --brand-orange-light: #fff3eb;
  --brand-pink: #ff2a5f;
  --brand-purple: #6366f1;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  
  --border-light: #e2e8f0;
  --border-focus: #ff4d00;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

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

html {
  background-color: var(--bg-white);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-white);
  color: var(--text-body);
  min-height: 100vh;
}

/* Headings: Bold, Clear, High-Contrast */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Helpers */
.font-display {
  font-family: 'Plus Jakarta Sans', 'Syne', sans-serif;
}

.font-accent {
  font-family: 'Syne', sans-serif;
}

.font-mono {
  font-family: 'Space Grotesk', monospace;
}

/* ===================================================
   CLIENT LOGOS MARQUEE ANIMATION (CLEAN LIGHT)
   =================================================== */
.marquee-wrapper {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  gap: 3rem;
}

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

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

/* ===================================================
   SCROLLYTELLING STAGE & PINNED ENGINE (LIGHT THEME)
   =================================================== */
.scrolly-sticky-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

.scrolly-step-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-light);
}

.scrolly-step-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.scrolly-step-card.active-step {
  border-color: var(--brand-orange);
  background: #ffffff;
  transform: translateX(8px);
  box-shadow: 0 12px 30px -10px rgba(255, 77, 0, 0.15);
}

.scrolly-step-card.active-step::before {
  background: var(--brand-orange);
}

/* Stage Selector Pills */
.stage-btn.active {
  border-color: var(--brand-orange) !important;
  background-color: var(--brand-orange-light) !important;
  color: var(--brand-orange) !important;
  font-weight: 700 !important;
}

/* ===================================================
   HORIZONTAL PROJECT GALLERY SLIDER (CLEAN LIGHT)
   =================================================== */
#modal-gallery-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#modal-gallery-track::-webkit-scrollbar {
  height: 6px;
}

#modal-gallery-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#modal-gallery-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#modal-gallery-track::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

.gallery-slide-card {
  scroll-snap-align: start;
  flex: 0 0 85%;
  max-width: 680px;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #0f172a;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .gallery-slide-card {
    flex: 0 0 70%;
  }
}

@media (min-width: 1024px) {
  .gallery-slide-card {
    flex: 0 0 60%;
  }
}

.gallery-slide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-dot.active {
  width: 24px;
  background-color: var(--brand-orange);
}

/* ===================================================
   PORTFOLIO FILTER & CARDS
   =================================================== */
.portfolio-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #ffffff;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-filter-btn.active {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 77, 0, 0.3);
}

/* ===================================================
   INTERACTIVE BRIEF BUILDER WIZARD (LIGHT FORM)
   =================================================== */
.wizard-option-label:has(input:checked) {
  border-color: var(--brand-orange) !important;
  background-color: var(--brand-orange-light) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.2);
}

.wizard-checkbox-label:has(input:checked) {
  border-color: var(--brand-orange) !important;
  background-color: var(--brand-orange-light) !important;
}

/* ===================================================
   FAQ ACCORDION ANIMATIONS
   =================================================== */
.faq-item.active {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 20px -4px rgba(255, 77, 0, 0.1);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

.faq-content {
  transition: all 0.3s ease-in-out;
}

/* ===================================================
   MODAL DRAWER SCROLLBAR & TRANSITIONS
   =================================================== */
#case-study-modal {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#case-study-modal::-webkit-scrollbar {
  width: 6px;
}

#case-study-modal::-webkit-scrollbar-track {
  background: #f1f5f9;
}

#case-study-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* ===================================================
   TOAST NOTIFICATIONS (CLEAN LIGHT)
   =================================================== */
.toast-msg {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================================================
   RESPONSIVE OVERRIDES
   =================================================== */
@media (max-width: 1024px) {
  .scrolly-sticky-box {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 24px;
  }
}
