/* ==========================================================================
   Mr. Fascinate — Productions
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2585E8;
  --cyan: #38bdf8;
  --dark: #11111B;
  --dark-card: #181824;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 0;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.navbar-pill {
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #181824;
}

.navbar-logo img {
  height: 28px;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-links .btn-outline {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(37, 133, 232, 0.4);
  border-radius: 9999px;
  padding: 8px 20px;
}

.navbar-links .btn-outline:hover {
  background: rgba(37, 133, 232, 0.1);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle svg {
  width: 22px;
  height: 22px;
}

.navbar-mobile {
  display: none;
  border-radius: 16px;
  margin-top: 8px;
  padding: 20px;
  flex-direction: column;
  gap: 12px;
  background: #181824;
}

.navbar-mobile.is-open {
  display: flex;
}

.navbar-mobile a {
  font-size: 0.85rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.navbar-mobile a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 10, 0.9),
    rgba(10, 10, 10, 0.7) 50%,
    var(--dark));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 128px 16px 80px;
  max-width: 896px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 24px;
}

.hero-logo img {
  height: 320px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: #d1d5db;
  max-width: 672px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-desc .highlight {
  font-weight: 600;
  color: #fff;
  margin: 0 4px;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 10px 25px rgba(37, 133, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(37, 133, 232, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  padding: 16px 32px;
  background: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: rgba(37, 133, 232, 0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #9ca3af;
  transition: color 0.3s;
  animation: bounce 2s infinite;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 640px) {
  .hero-logo img {
    height: 240px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Productions Section
   ========================================================================== */
.productions-section {
  position: relative;
  padding: 96px 0;
  background: var(--dark);
  overflow: hidden;
}

.productions-section .bg-glow {
  position: absolute;
  top: 0;
  left: 25%;
  width: 384px;
  height: 384px;
  background: rgba(37, 133, 232, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.productions-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.category-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  color: #9ca3af;
}

.category-btn:not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-btn:not(.is-active):hover {
  color: #fff;
}

.category-btn.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 133, 232, 0.3);
}

/* Productions Grid */
.productions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Production Card */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 133, 232, 0.2);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-media .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.2);
  transition: background 0.3s;
}

.card:hover .card-overlay {
  background: transparent;
}

.card-media .card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-card), var(--dark), rgba(37, 133, 232, 0.1));
  padding: 24px;
}

.card-media .card-placeholder span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Play button overlay */
.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-play {
  opacity: 1;
}

.card-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 133, 232, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

/* Category badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(30, 30, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Card Info */
.card-info {
  padding: 20px;
}

.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.card-partner {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s;
  padding: 4px;
}

.video-modal-close:hover {
  color: #fff;
}

.video-modal-close svg {
  width: 28px;
  height: 28px;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 16px;
}

.video-modal-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.video-modal-partner {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.video-modal-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-card);
}

.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 96px 0;
  background: var(--dark);
}

.contact-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.contact-badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.contact-heading {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.contact-desc {
  color: #9ca3af;
  margin-bottom: 40px;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-box {
  position: relative;
  width: 100%;
  max-width: 512px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(37, 133, 232, 0.3);
  background: var(--dark-card);
  padding: 32px;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s;
}

.contact-modal-close:hover {
  color: #fff;
}

.contact-modal-close svg {
  width: 24px;
  height: 24px;
}

.contact-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.contact-modal-sub {
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.contact-form label .req {
  color: #f87171;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dark);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea {
  resize: none;
}

.contact-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  color: #d1d5db;
  margin-bottom: 0;
}

.contact-form .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.contact-form .btn-submit {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 24px;
  object-fit: contain;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-nav a {
  display: block;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-links a svg {
  width: 12px;
  height: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.card.animate-in:nth-child(1) { transition-delay: 0s; }
.card.animate-in:nth-child(2) { transition-delay: 0.08s; }
.card.animate-in:nth-child(3) { transition-delay: 0.16s; }
.card.animate-in:nth-child(4) { transition-delay: 0.24s; }
.card.animate-in:nth-child(5) { transition-delay: 0.32s; }
.card.animate-in:nth-child(6) { transition-delay: 0.40s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .productions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .productions-grid {
    grid-template-columns: 1fr;
  }

  .card-play {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .productions-section {
    padding: 64px 0;
  }

  .contact-section {
    padding: 64px 0;
  }
}
