/* ============================================
   SK AGENCY — WORK PAGE CSS — DARK THEME
   ============================================ */
@import url('global.css');

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ============================================
   WORK HERO
   ============================================ */
.work-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.work-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124,58,237,0.14), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(212,0,255,0.08), transparent 50%);
}

.work-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}

.work-hero .orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(#c800ff, transparent);
  top: -120px; right: -80px;
}

.work-hero .orb2 {
  width: 380px; height: 380px;
  background: radial-gradient(#7c3aed, transparent);
  bottom: -80px; left: -60px;
}

.work-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.work-hero-content h1 { margin: 18px 0 22px; }
.work-hero-content p  { font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ============================================
   WORK FILTER BAR
   ============================================ */
.work-filter-section {
  background: var(--dark2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.work-filter-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.work-filter-scroll::-webkit-scrollbar { display: none; }

.work-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 20px 24px;
  width: max-content;
  min-width: 100%;
}

.wfilter-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wfilter-btn:hover {
  border-color: var(--border-glow);
  color: var(--magenta);
  background: rgba(124,58,237,0.1);
}

.wfilter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

/* ============================================
   WORK GRID
   ============================================ */
.work-grid-section {
  background: var(--dark);
  padding-top: 64px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.work-item.featured-item {
  grid-column: span 2;
}

.work-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.work-item.hidden { display: none; }

.work-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s ease;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
}

.work-item:hover .work-img { transform: scale(1.02); }

.work-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.6) 60%, transparent 100%);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-item:hover .work-hover {
  opacity: 1;
  transform: translateY(0);
}

.work-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.work-tags span {
  background: rgba(124,58,237,0.3);
  border: 1px solid rgba(155,93,229,0.4);
  color: var(--magenta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.work-hover h3 {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 8px;
}

.work-hover p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  line-height: 1.6;
}

.work-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--magenta);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.3s;
}

.work-item:hover .work-link {
  gap: 12px;
  color: white;
}

.work-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wp-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  letter-spacing: -2px;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.featured-item .wp-logo { font-size: 5rem; }

.load-more-wrap {
  text-align: center;
  padding: 48px 0 0;
}

/* ============================================
   REEL / SHOWREEL SECTION  — IMAGE SLIDER
   NOTE: All classes use "reel-slide-card" so they
   do NOT conflict with the old .reel-slide rules.
   ============================================ */
.reel-section {
  background: var(--dark2);
  border-top: 1px solid var(--border-light);
  padding: 80px 1.5rem;
  overflow: hidden;
}

.reel-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

/* Scoped labels so they don't conflict with global .section-label */
.reel-section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gradient);
  color: white;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.reel-section-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  font-family: var(--font-display);
}

.reel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Track outer — clipping container, no overflow-y so sticky nav is unaffected */
.reel-track-outer {
  overflow: hidden;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
}
.reel-track-outer:active { cursor: grabbing; }

.reel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- THE KEY FIX: use .reel-slide-card, NOT .reel-slide ---- */
.reel-slide-card {
  min-width: calc(33.333% - 12px);
  margin-right: 18px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;   /* relative, NOT absolute — cards sit in flex row */
  height: 420px;
  flex-shrink: 0;
  opacity: 1;           /* always visible — overrides nothing from old CSS */
  transform: none;
}

.reel-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.reel-slide-card:hover img { transform: scale(1.05); }

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.15) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.reel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem 1.75rem;
}

.reel-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: var(--font-display);
}

.reel-info h3 {
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.reel-info p {
  font-size: clamp(12px, 1.5vw, 14px);
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* Controls row */
.reel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

.reel-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.reel-nav-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(124,58,237,0.5);
}
.reel-nav-btn:active { transform: scale(0.95); }

.reel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #7c3aed;
}

.slide-counter {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  min-width: 50px;
  text-align: center;
  font-family: var(--font-display);
}

/* ============================================
   CASE STUDY SPOTLIGHT
   ============================================ */
.case-study {
  background: var(--dark);
  border-top: 1px solid var(--border-light);
  padding: 80px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.case-visual {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.cv-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cv-logo {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(255,255,255,0.3);
}

.cv-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.case-right > div {
  margin-bottom: 20px;
  padding: 28px;
  background: var(--dark3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.case-right > div:last-child { margin-bottom: 0; }

.case-right > div:hover {
  border-color: var(--border-glow);
  background: var(--dark4);
}

.case-right h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--magenta);
  margin-bottom: 12px;
}

.case-right p { font-size: 0.9rem; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.result-stat span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text, linear-gradient(135deg, #7c3aed, #c800ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}

.result-stat p {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--dark2);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212,0,255,0.1), transparent 60%);
}

.cta-orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(var(--purple), transparent 70%);
  top: -150px; left: -150px;
}

.cta-orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(var(--pink), transparent 70%);
  bottom: -150px; right: -150px;
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: var(--text); margin-bottom: 20px; }
.cta-content p  { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

/* ============================================
   SOCIAL LINKS (footer)
   ============================================ */
.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  background: #7c3aed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }
  .work-item.featured-item { grid-column: span 2; }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .case-visual { height: 300px; }

  .reel-slide-card {
    min-width: calc(50% - 9px);
    height: 360px;
  }
}

@media (max-width: 768px) {
  .work-hero { min-height: auto; padding: 120px 0 64px; }
  .work-hero-content h1 { font-size: clamp(1.8rem, 8vw, 3rem); word-break: break-word; }
  .work-hero-content p  { font-size: 0.95rem; }

  .work-filter-section { top: 64px; }
  .work-filter-bar { justify-content: flex-start; padding: 14px 16px; gap: 8px; }
  .wfilter-btn { padding: 8px 16px; font-size: 0.76rem; }

  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work-item.featured-item { grid-column: span 1; }

  .reel-section { padding: 60px 1rem; }
  .reel-slide-card { min-width: calc(50% - 9px); height: 300px; }

  .case-visual { height: 260px; }
  .cv-logo { font-size: 3rem; }
  .cv-tagline { font-size: 1rem; letter-spacing: 2px; }

  .result-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .result-stat span { font-size: 1.4rem; }
  .result-stat p    { font-size: 0.72rem; }
  .case-right > div { padding: 20px; margin-bottom: 16px; }

  .cta-section { padding: 80px 0; }
  .cta-content h2 { font-size: clamp(1.6rem, 7vw, 2.8rem); }
}

@media (max-width: 560px) {
  .reel-slide-card {
    min-width: 100%;
    margin-right: 18px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .work-hero { padding: 108px 0 56px; }
  .work-hero-content h1 { font-size: clamp(1.6rem, 9vw, 2.4rem); }

  .work-filter-bar { padding: 12px 14px; gap: 6px; }
  .wfilter-btn { padding: 7px 14px; font-size: 0.72rem; }

  .work-grid { grid-auto-rows: 220px; gap: 14px; }
  .work-hover { padding: 20px 18px 18px; }
  .work-hover h3 { font-size: 1.1rem; }
  .work-hover p  { display: none; }

  .case-visual { height: 220px; }
  .cv-logo { font-size: 2.4rem; }
  .cv-tagline { font-size: 0.85rem; letter-spacing: 1.5px; }
  .case-right > div { padding: 16px; margin-bottom: 12px; }

  .result-stats { grid-template-columns: 1fr; gap: 10px; }
  .result-stat { display: flex; align-items: center; gap: 14px; }
  .result-stat span { font-size: 1.6rem; margin-bottom: 0; min-width: 90px; }
  .result-stat p { font-size: 0.8rem; }

  .load-more-wrap { padding: 36px 0 0; }

  .cta-section { padding: 72px 0; }
  .cta-content h2 { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
}