/*
Theme Name: FableForge Animation
Theme URI: https://fableforge.ai
Author: FableForge Animation
Author URI: https://fableforge.ai
Description: Cinematic AI studio theme - trailers, short films and original worlds.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fableforge
*/

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --accent: #7a1f16;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #222222;
  --border-light: #2a2a2a;
  --gradient-1: linear-gradient(135deg, #c8ff00, #00ffa3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(200, 255, 0, 0.2); } 50% { box-shadow: 0 0 40px rgba(200, 255, 0, 0.4); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.navbar-logo {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 3px;
  color: var(--text-primary); text-decoration: none;
}
.navbar-logo span { color: var(--accent); }
.navbar-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.06); border-radius: 50px; padding: 4px;
}
.navbar-nav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 50px; transition: all 0.3s;
}
.navbar-nav a:hover { color: #fff; }
.navbar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
/* ========== HAMBURGER ========== */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--text-primary); text-decoration: none;
  font-family: var(--font-display); font-size: 36px; letter-spacing: 3px;
  padding: 20px 0; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ========== HERO WITH VIDEO BACKGROUND ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 80px 20px 60px;
  overflow: hidden; background: #050505;
}

.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.loaded { opacity: 1; }

/* Overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,0,0,0.78), rgba(0,0,0,0.35)),
    linear-gradient(to bottom, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0.1) 20%, rgba(5,5,5,0.1) 80%, rgba(5,5,5,0.95) 100%),
    linear-gradient(to right, rgba(5,5,5,0.6) 0%, transparent 15%, transparent 85%, rgba(5,5,5,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95; letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0;
  text-shadow: 0 4px 60px rgba(0,0,0,0.7);
}
.hero-title .dot { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 20px);
  color: rgba(255,255,255,0.7); max-width: 550px;
  margin-bottom: 40px; line-height: 1.6; font-weight: 300;
  animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero-buttons {
  display: flex; gap: 16px; align-items: center;
  animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0;
  flex-wrap: wrap; justify-content: center;
}
.btn-hero-primary {
  background: #fff; color: #000;
  padding: 16px 36px; border: none; border-radius: 50px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 40px rgba(255,255,255,0.2); }
.btn-hero-secondary {
  background: transparent; color: #fff;
  padding: 16px 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ========== LOGOS MARQUEE ========== */
.logos-section {
  position: relative; z-index: 3;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--bg-primary);
}
.logos-track {
  display: flex; gap: 60px; align-items: center;
  animation: marquee 30s linear infinite; width: max-content;
}
.logos-track .logo-item {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 4px;
  color: var(--text-muted); white-space: nowrap;
  opacity: 0.4; transition: opacity 0.3s;
}
.logos-track .logo-item:hover { opacity: 1; }

/* ========== SECTIONS COMMON ========== */
[id] { scroll-margin-top: 80px; }
.section { padding: 100px 40px; max-width: 1400px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1; letter-spacing: 1px; margin-bottom: 24px;
}
.section-subtitle {
  font-size: 18px; color: var(--text-secondary);
  max-width: 700px; line-height: 1.7; font-weight: 300;
}

/* ========== METRICS ========== */
.metrics-section {
  padding: 80px 40px; background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.metrics-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: left;
}
.metric-item {
  padding: 40px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.metric-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.metric-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--accent); margin-bottom: 6px; }
.metric-desc { font-size: 14px; color: var(--text-muted); font-weight: 400; }

/* ========== VIDEO PRODUCTIONS ========== */
.video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 60px;
}
.video-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover { border-color: rgba(122, 31, 22, 0.6); box-shadow: 0 20px 60px rgba(0,0,0,0.5); transform: translateY(-4px); }
.video-thumb {
  display: block; position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--radius);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  font-size: 0; color: transparent; overflow: hidden;
}
.video-play-btn::before {
  content: '';
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #7a1f16; background: rgba(0,0,0,0.5);
  position: absolute;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.video-play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #7a1f16;
  position: absolute;
  margin-left: 4px;
  transition: all 0.3s ease;
}
.video-card:hover .video-play-btn { background: rgba(122, 31, 22, 0.35); }
.video-card:hover .video-play-btn::before { border-color: #fff; background: rgba(0,0,0,0.6); transform: scale(1.1); }
.video-card:hover .video-play-btn::after { border-left-color: #fff; transform: scale(1.1); }

/* ========== ASSISTANT / CERT / BONUS / TESTIMONIALS / COMMUNITY / INSTRUCTORS / PRICING / FAQ ========== */
.assistant-section { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assistant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.assistant-visual {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; text-align: center; position: relative; overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(122,31,22,0.15);
}
.assistant-visual::before { display: none; }
.about-image {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: var(--radius-lg);
}
/* ========== WORKFLOW CARDS ========== */
.workflow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.workflow-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.workflow-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); opacity: 0; transition: opacity 0.3s;
}
.workflow-card:hover::before { opacity: 1; }
.workflow-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.workflow-icon { color: var(--text-secondary); margin-bottom: 16px; }
.workflow-title {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: 1px; margin-bottom: 8px;
  color: var(--accent);
}
.workflow-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
/* ========== CONTACT FORM ========== */
.contact-form {
  max-width: 600px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
  box-sizing: border-box;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color 0.3s ease; outline: none; resize: vertical;
  box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn-primary {
  width: 100%; background: transparent; color: var(--accent);
  animation: none; border: 1px solid var(--accent);
  padding: 14px 40px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
  transition: all 0.3s ease;
}
.contact-form .btn-primary:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(122,31,22,0.3);
}
.testimonials-section { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s ease; }
.testimonial-card:hover { border-color: rgba(200,255,0,0.2); }
.testimonial-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #000; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-handle { font-size: 13px; color: var(--text-muted); }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; font-style: italic; }
.testimonial-stars { color: var(--accent); margin-top: 12px; letter-spacing: 2px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 48px; }
.community-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: all 0.3s ease; }
.community-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.community-icon { font-size: 40px; margin-bottom: 16px; }
.community-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; margin-bottom: 8px; }
.community-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.instructors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 48px; }
.instructor-card { text-align: center; transition: all 0.3s ease; cursor: pointer; }
.instructor-card:hover { transform: translateY(-6px); }
.instructor-photo { width: 160px; height: 200px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); margin: 0 auto 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.instructor-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.instructor-role { font-size: 13px; color: var(--accent); font-weight: 500; }
.pricing-section { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-card { max-width: 700px; margin: 48px auto 0; background: var(--bg-card); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 48px; text-align: center; position: relative; overflow: hidden; }
.pricing-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(200,255,0,0.05), transparent 60%); }
.pricing-tag { display: inline-block; background: var(--accent); color: #000; padding: 6px 20px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; position: relative; z-index: 1; }
.pricing-tenure { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; position: relative; z-index: 1; }
.pricing-amount { font-family: var(--font-display); font-size: 72px; color: var(--accent); line-height: 1; margin-bottom: 8px; position: relative; z-index: 1; }
.pricing-amount .currency { font-size: 28px; vertical-align: top; }
.pricing-amount .period { font-size: 20px; color: var(--text-muted); }
.pricing-alt { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; position: relative; z-index: 1; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; position: relative; z-index: 1; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-secondary); display: flex; align-items: center; gap: 12px; }
.pricing-features li .check { color: var(--accent); font-weight: 700; font-size: 18px; }
.btn-primary { background: var(--accent); color: #000; padding: 18px 48px; border: none; border-radius: 50px; font-family: var(--font-body); font-weight: 800; font-size: 16px; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s ease; text-decoration: none; display: inline-block; animation: glow 3s infinite; }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 40px rgba(200,255,0,0.3); }
.pricing-card .btn-primary { position: relative; z-index: 1; width: 100%; text-align: center; }
.faq-list { max-width: 800px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s; }
.faq-item.active { border-color: rgba(200,255,0,0.3); }
.faq-question { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 16px; transition: color 0.3s; user-select: none; }
.faq-question:hover { color: var(--accent); }
.faq-toggle { font-size: 24px; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.footer { padding: 60px 40px 30px; border-top: 1px solid var(--border); text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 36px; letter-spacing: 4px; margin-bottom: 24px; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; font-size: 18px; transition: all 0.3s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,255,0,0.05); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.whatsapp-fab { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: all 0.3s; opacity: 0; pointer-events: none; }
.whatsapp-fab.visible { opacity: 1; pointer-events: auto; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }

@media (max-width: 1024px) {
  .navbar { justify-content: space-between; }
  .navbar-nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .section { padding: 60px 20px; }
  .hero { padding: 80px 16px 60px; }
  .metrics-grid { grid-template-columns: 1fr; gap: 16px; }
  .metric-item { padding: 24px 16px; }
  .metric-title { font-size: 22px; }
  .metric-desc { font-size: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .assistant-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; gap: 16px; }
  .workflow-card { padding: 24px 16px; }
  .workflow-icon { width: 24px; height: 24px; }
  .workflow-title { font-size: 18px; }
  .workflow-desc { font-size: 12px; }
  .pricing-card { padding: 32px 20px; }
  .pricing-amount { font-size: 56px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; justify-content: center; }
  .contact-form { gap: 10px; max-width: 100%; }
  .contact-form input,
  .contact-form textarea { padding: 12px 14px; font-size: 13px; }
  .contact-form .btn-primary { padding: 12px 24px; font-size: 12px; letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; gap: 12px; }
  .metric-item { padding: 20px 16px; border-radius: var(--radius-sm); }
  .workflow-grid { grid-template-columns: 1fr; gap: 12px; }
  .workflow-card { padding: 20px 16px; border-radius: var(--radius-sm); }
}
