/* Sage Studios - Custom Dark Theme & Design System (Exact Figma Match) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Playfair+Display:ital,wght@0,600;1,400;1,600;1,700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-dark: #070708;
  --bg-card: #121214;
  --bg-card-hover: #19191d;
  --accent-sage: #e63926;
  --accent-orange: #ff3b1f;
  --accent-glow: rgba(230, 57, 38, 0.35);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(230, 57, 38, 0.4);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Expressive Typography for Serif Highlights */
.font-serif-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-sage);
}

/* Navigation & Glassmorphism */
.glass-nav {
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(7, 7, 8, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(230, 57, 38, 0.25);
}

/* Nav Item Link */
.nav-link {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-sage);
  display: inline-block;
}

/* Search Trigger Button */
.search-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.search-nav-btn:hover {
  background: rgba(230, 57, 38, 0.15);
  border-color: var(--accent-sage);
  color: #ffffff;
}

/* Buttons & CTAs */
.btn-sage {
  background: linear-gradient(135deg, #e63926 0%, #ff3b1f 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(230, 57, 38, 0.3);
}

.btn-sage:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 38, 0.55);
}

.btn-sage-outline {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-sage-outline:hover {
  border-color: var(--accent-sage);
  background: rgba(230, 57, 38, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Pill Filter Buttons */
.filter-pill {
  background: #e63926;
  color: white;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 38, 0.3);
}
.filter-pill:hover {
  background: #ff3b1f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 57, 38, 0.5);
}

/* Studio Cards & Glow Effects */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.studio-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* Reel Card Specifics */
.reel-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #e63926;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* High Resolution Award Laurel Styling */
.laurel-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e0e11;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laurel-card:hover {
  border-color: rgba(230, 57, 38, 0.5);
  box-shadow: 0 0 25px rgba(230, 57, 38, 0.2);
}

/* Pulse Animation for Map Pins */
@keyframes pin-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(230, 57, 38, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 14px rgba(230, 57, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(230, 57, 38, 0);
  }
}

.map-pin-pulse {
  animation: pin-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Swiper Slider Customization */
.swiper-pagination-bullet {
  background: #4b5563 !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--accent-sage) !important;
  width: 28px !important;
  border-radius: 6px !important;
}

/* Modals & Backdrop Blur */
.modal-overlay {
  background: rgba(4, 4, 5, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal-content-box {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

/* Creative S-Curve Serpentine Process Storyline (Exact S-A-G-E Match) */
.storyline-section {
  position: relative;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.storyline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.storyline-circle {
  width: 96px;
  height: 96px;
  min-width: 96px;
  background: #d83921;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.85rem;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(216, 57, 33, 0.55);
  border: 4px solid #070708;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: circlePulse 4s ease-in-out infinite;
}

.storyline-circle:hover {
  transform: scale(1.12);
  box-shadow: 0 0 65px rgba(216, 57, 33, 0.9);
}

@keyframes circlePulse {
  0%, 100% {
    box-shadow: 0 0 35px rgba(216, 57, 33, 0.5);
  }
  50% {
    box-shadow: 0 0 55px rgba(216, 57, 33, 0.8);
  }
}

.storyline-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.storyline-letter {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.storyline-text {
  color: #d83921;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.storyline-desc {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 440px;
}

.storyline-svg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.storyline-svg-track path {
  animation: dashFlow 25s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -120;
  }
}

@media (max-width: 768px) {
  .storyline-circle {
    width: 68px;
    height: 68px;
    min-width: 68px;
    font-size: 2rem;
  }
  .storyline-title {
    font-size: 1.4rem;
  }
  .storyline-desc {
    font-size: 0.8125rem;
  }
}

/* Doodle Team Portrait Card */
.team-doodle-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.team-doodle-card:hover {
  border-color: rgba(230, 57, 38, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(230, 57, 38, 0.18);
}

.team-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.team-doodle-card:hover .team-portrait-img {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.03);
}

/* Red Banner Bar */
.red-banner-bar {
  background-color: #ff3b1f;
  color: #ffffff;
  padding: 12px 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  width: 100%;
}

/* Global Sage Footer */
.footer-sage {
  background: #ff3b1f;
  color: #ffffff;
}

/* Search Dropdown / Overlay */
.search-modal-container {
  max-height: 80vh;
  overflow-y: auto;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 10px;
  background: #18181b;
  color: #fff;
  border-left: 4px solid var(--accent-sage);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Helper Rules */
@media (max-width: 768px) {
  .timeline-connector-curve {
    left: 38px;
  }
  .timeline-step-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.75rem;
  }
}

