/* ================= CSS VARIABLES & RESET ================= */
:root {
  --bg-color: #030712;
  --navy: #0B1D51;
  --purple: #6A0DAD;
  --light-purple: #b884f7;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= AMBIENT MAGICAL BACKGROUND ================= */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  background: var(--bg-color);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: float 15s infinite alternate ease-in-out;
}

.orb-purple {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: -20%; left: -10%;
}

.orb-blue {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--navy), transparent 70%);
  bottom: -20%; right: -10%;
  animation-delay: -5s;
}

.orb-light {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, var(--light-purple), transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.3;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ================= CINEMATIC NOISE TEXTURE ================= */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ================= HEADER & NAV ================= */
.glass-header {
  position: fixed;
  top: 0; width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(3, 7, 18, 0.4);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
}
.logo span { color: var(--light-purple); }

.navbar { display: flex; gap: 30px; align-items: center; }
.navbar a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}
.navbar a:hover, .navbar a.active {
  color: var(--white);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-nav {
  padding: 10px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--white) !important;
}
.btn-nav:hover {
  background: var(--light-purple);
  border-color: var(--light-purple);
  box-shadow: 0 0 20px rgba(184, 132, 247, 0.4);
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}

.hero-content { max-width: 900px; z-index: 2; }

.badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 30px;
  background: rgba(184, 132, 247, 0.1);
  border: 1px solid rgba(184, 132, 247, 0.3);
  color: var(--light-purple);
  margin-bottom: 30px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.text-gradient {
  background: linear-gradient(to right, #b884f7, #ff8af3, #b884f7);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.hero p {
  font-size: 1.2rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Animated Primary Button */
.btn-primary {
  position: relative;
  display: inline-flex;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: 40px;
  overflow: hidden;
  transition: 0.3s;
}

.btn-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--purple), var(--navy), #E1306C);
  background-size: 300%;
  z-index: 1;
  animation: btnGlow 5s ease infinite;
}
.btn-text { position: relative; z-index: 2; }

@keyframes btnGlow { 
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.5);
}

/* ================= MAGIC CARDS (SERVICES) ================= */
.services-showcase { padding: 100px 5%; }
.section-title {
  text-align: center; font-family: 'Playfair Display', serif;
  font-size: 3rem; margin-bottom: 60px;
}
.section-title span { color: var(--light-purple); font-style: italic; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Magic Card Hover Effect */
.magic-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.magic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(184, 132, 247, 0.15),
    transparent 40%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}

.magic-card:hover::before { opacity: 1; }

.card-border {
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  background: rgba(10, 15, 30, 0.8);
  border-radius: inherit;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 40px;
}

.card-content .icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--light-purple), #ff8af3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: #9ca3af; font-size: 0.95rem; }

/* ================= INFINITE MARQUEE ================= */
.philosophy-banner {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--light-purple);
  opacity: 0.8;
}

.marquee-content span { margin: 0 40px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= PORTFOLIO PREVIEW ================= */
.portfolio-preview {
  padding: 100px 5%;
  position: relative;
  z-index: 2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  height: 400px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.5s ease;
  background-image: linear-gradient(to bottom, transparent, rgba(3, 7, 18, 0.9));
}

.portfolio-item:nth-child(1) { background-color: #1a1025; }
.portfolio-item:nth-child(2) { background-color: #0b1120; }
.portfolio-item:nth-child(3) { background-color: #1c0e15; }

.portfolio-item:hover {
  transform: translateY(-10px);
  border-color: var(--light-purple);
  box-shadow: 0 15px 40px rgba(106, 13, 173, 0.3);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(3, 7, 18, 1), transparent);
  transform: translateY(20px);
  transition: 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; }
.portfolio-overlay p { color: var(--light-purple); font-size: 0.9rem; font-weight: 300; }

.btn-secondary {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--light-purple);
  padding-bottom: 5px;
  transition: 0.3s;
}
.btn-secondary:hover {
  color: var(--light-purple);
  letter-spacing: 1px;
}

/* ================= TESTIMONIALS ================= */
.testimonials-preview {
  padding: 100px 5%;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.5), transparent);
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: var(--purple);
  opacity: 0.3;
  position: absolute;
  top: 30px; right: 30px;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.client-info h4 { font-size: 1.2rem; margin-bottom: 2px; }
.client-info span { color: var(--light-purple); font-size: 0.85rem; }

/* ================= MEGA FOOTER ================= */
.mega-footer {
  margin-top: 100px;
  background: rgba(3, 7, 18, 0.8);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
}

.footer-cta {
  text-align: center;
  padding: 100px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 20px;
}
.footer-cta h2 span { color: var(--light-purple); font-style: italic; }
.footer-cta p {
  color: #9ca3af;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 80px 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand p {
  color: #9ca3af;
  margin-top: 20px;
  max-width: 300px;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.footer-links a, .footer-contact a {
  color: #9ca3af;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--light-purple);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--white);
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--light-purple);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #6b7280;
  font-size: 0.9rem;
}
/* ================= RESPONSIVE & MOBILE MENU ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--white);
  transition: 0.4s all ease;
}

@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .glass-header { padding: 15px 5%; }
  
  /* Footer Stacking */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-brand p { margin: 20px auto; }
  .footer-links a, .footer-contact a { justify-content: center; }
  .social-icons { justify-content: center; }
  .footer-cta h2 { font-size: 2.8rem; }

  /* Mobile Nav Dropdown */
  .hamburger { display: flex; }
  
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    border-bottom: 1px solid transparent;
  }

  .navbar.active {
    max-height: 1000px;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .navbar a {
    margin: 15px 0;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* ================= TYPING CURSOR ================= */
.cursor {
  font-weight: 300;
  color: var(--light-purple);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 
  50% { opacity: 0; } 
}

/* ================= PORTFOLIO VIDEOS ================= */
.portfolio-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4; /* Keeps the video dark enough to read the text */
  transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-video {
  opacity: 0.8; /* Brightens up beautifully when you hover over it */
}

/* Make sure the text overlay stays on top of the video */
.portfolio-overlay {
  z-index: 1; 
  position: relative;
}
/* ================= GLASS LIST (Why Choose TWG) ================= */
.glass-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 20px 30px;
  border-radius: 15px;
  font-size: 1.1rem;
  color: #d1d5db;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
}

.list-item i {
  color: var(--light-purple);
  font-size: 1.2rem;
}

.list-item:hover {
  background: rgba(184, 132, 247, 0.1);
  border-color: rgba(184, 132, 247, 0.3);
  transform: translateX(10px);
  color: var(--white);
}
/* ================= PORTFOLIO PAGE SPECIFICS ================= */

/* Niche Selection Buttons */
.niche-btn {
  opacity: 0.6;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.niche-btn.active-niche {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(184, 132, 247, 0.2);
}
.niche-btn.active-niche .card-border {
  background: rgba(184, 132, 247, 0.3); /* Highlights the active button border */
}

/* Hide inactive portfolio sections */
.niche-section {
  display: none;
  animation: fadeIn 0.6s ease forwards;
}
.niche-section.active-section {
  display: block;
}

/* Glass Pill Toggle Buttons (Video / Graphics) */
.type-select {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.glass-pill {
  padding: 12px 30px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: #a1a1aa;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.glass-pill.active-type {
  background: linear-gradient(45deg, var(--purple), var(--navy));
  color: var(--white);
  border-color: var(--light-purple);
  box-shadow: 0 5px 20px rgba(106, 13, 173, 0.4);
}

/* Content Hiding/Showing logic */
.content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}
.content.active-content {
  display: block;
  animation: slideUpFade 0.6s ease forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Grid Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start; /* This stops images from stretching to match taller videos in the same row */
}

.gallery-item {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  border-color: var(--light-purple);
  box-shadow: 0 15px 40px rgba(106, 13, 173, 0.3);
}

/* ONLY force the tall vertical shape on Videos */
.video-item {
  aspect-ratio: 9/16; 
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background-color: #000;
  outline: none;
}

/* Allow Graphics to keep their natural size and original shape */
.gallery-item img {
  width: 100%;
  height: auto; /* Changes automatically based on your graphic's real size */
  display: block;
  border-radius: 20px;
  object-fit: contain; 
}

/* Specific styling if video controls are needed to not look messy */
.video-item video {
  outline: none;
}
/* ================= PRICING PAGE SPECIFICS ================= */

/* Clean Custom Bullets */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.pricing-list li {
  margin: 12px 0;
  font-size: 0.95rem;
  color: #d1d5db;
  position: relative;
  padding-left: 20px;
}

/* Creating the custom purple dot */
.pricing-list li::before {
  content: "•";
  color: var(--light-purple);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

/* ================= NEW PREMIUM HIGHLIGHT CARD ================= */

.premium-highlight-card {
  position: relative;
  transform: translateY(-10px); /* Keeps it permanently elevated above the rest */
  z-index: 5;
  border: none !important; /* Remove normal borders */
}

/* The Animated Glowing Border Background */
.animated-gradient-border {
  position: absolute;
  top: -2px; 
  left: -2px; 
  right: -2px; 
  bottom: -2px;
  background: linear-gradient(45deg, #ff8af3, var(--purple), #E1306C, var(--navy), #ff8af3);
  background-size: 400%;
  z-index: 0;
  border-radius: 22px;
  animation: animatedGlow 5s linear infinite;
  box-shadow: 0 10px 30px rgba(184, 132, 247, 0.3);
}

@keyframes animatedGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Ensure content sits inside the glowing border cleanly */
.premium-highlight-card .card-content {
  position: relative;
  z-index: 2;
}

/* Floating "Most Popular" Ribbon */
.premium-badge {
  position: absolute;
  top: 0;
  right: 30px;
  background: linear-gradient(45deg, #E1306C, var(--purple));
  color: white;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.5);
}

.premium-highlight-card:hover {
  transform: translateY(-15px) scale(1.02);
}
/* =========================================
   PREMIERE PRO TIMELINE PRELOADER
   ========================================= */
#pr-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #111111; /* Deep studio background */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* The Editor Window */
.pr-workspace {
  width: 90%;
  max-width: 500px;
  background: #252525; /* Premiere Pro Panel Gray */
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.pr-sequence-tab {
  color: #ccc;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  background: #1e1e1e;
  display: inline-block;
  border-radius: 4px 4px 0 0;
  border-top: 2px solid #2d8ceb; /* Premiere Blue Active Tab */
  margin-bottom: 4px;
}

.pr-timeline {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #111;
  padding: 10px 0;
  overflow: hidden;
  border-radius: 2px;
}

.pr-track {
  display: flex;
  height: 28px;
  margin-bottom: 4px;
  align-items: center;
}

.pr-track-label {
  width: 40px;
  color: #888;
  font-size: 11px;
  text-align: center;
  border-right: 1px solid #111;
}

.pr-track-content {
  position: relative;
  flex-grow: 1;
  height: 100%;
  background: #151515;
  margin-left: 4px;
}

/* The Video Clips */
.pr-clip {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  line-height: 28px;
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* Authentic Premiere Pro Label Colors */
.clip-pink { background: #e573ba; } /* Magenta/FX layer */
.clip-blue { background: #5a9ade; } /* Cerulean/B-roll */
.clip-green { background: #4ca171; } /* Caribbean/Main clip */

/* The Blue Playhead */
.pr-playhead {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 10;
  /* Adjust the 1.8s below to make the loading faster or slower */
  animation: renderTimeline 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; 
}

.pr-playhead-top {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #2d8ceb; /* Premiere Blue */
  transform: translateX(-50%);
}

.pr-playhead-line {
  width: 1px;
  height: 100%;
  background: #2d8ceb;
  box-shadow: 0 0 5px #2d8ceb;
}

.pr-status {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 12px;
  margin-top: 12px;
  padding: 0 4px;
}

.pr-percentage {
  color: #2d8ceb;
  font-weight: bold;
}

@keyframes renderTimeline {
  0% { left: 0%; }
  100% { left: 100%; }
}

/* Fades the entire loader away when rendering is done */
#pr-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
/* =========================================
   CINEMATIC FOCUS PULL PRELOADER
   ========================================= */
#focus-loader {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh;
  background: #030407; /* Ultra deep cinematic black */
  z-index: 99999;
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
  color: white;
}

/* The Rotating Lens Ring */
.focus-ring {
  position: absolute;
  width: 220px; 
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: smoothSpin 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* The Tick Marks on the Lens */
.focus-mark {
  position: absolute;
  width: 2px; 
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  left: 50%; 
  transform: translateX(-50%);
}
.mark-1 { top: -6px; background: #00f0ff; box-shadow: 0 0 10px #00f0ff; } /* Cyan top tick */
.mark-2 { bottom: -6px; }
.mark-3 { top: 50%; left: -6px; transform: translateY(-50%) rotate(90deg); }
.mark-4 { top: 50%; right: -6px; left: auto; transform: translateY(-50%) rotate(90deg); }

/* The TWG Text that pulls into focus */
/* The TWG Text that pulls into focus */
.focus-brand {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  letter-spacing: 12px;
  margin: 0;
  /* UPDATED: Purple to White Gradient */
  background: linear-gradient(90deg, #b854fa, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* The Magic Focus Animation properties */
  filter: blur(15px);
  opacity: 0;
  transform: scale(1.1);
  animation: pullFocus 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.3s;
}
  
  /* The Magic Focus Animation properties */
  filter: blur(15px);
  opacity: 0;
  transform: scale(1.1);
  animation: pullFocus 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

/* The changing text below */
.focus-status {
  position: absolute;
  bottom: 20%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Keyframes */
@keyframes smoothSpin {
  0% { transform: rotate(-120deg); }
  100% { transform: rotate(180deg); }
}

@keyframes pullFocus {
  0% { filter: blur(15px); opacity: 0; transform: scale(1.1); }
  40% { opacity: 1; }
  100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}

/* The elegant fade out */
#focus-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05); /* Pushes slightly toward the user as it fades */
}
/* The changing text below */
.focus-status {
  position: absolute;
  bottom: 20%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* =========================================
   PREMIUM AGENCY PRELOADER
   ========================================= */
#premium-loader {
  position: fixed;
  inset: 0;
  background: #030407; /* Deep cinematic black */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-words {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The flashes of marketing text */
.word {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: white;
  opacity: 0;
  transform: translateY(10px);
}

/* The final TWG focus pull */
.loader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  letter-spacing: 12px;
  margin: 0;
  background: linear-gradient(90deg, #b854fa, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  filter: blur(15px);
  transform: scale(1.1);
}

/* Animation classes controlled by JavaScript */
.word-in { animation: textIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.word-out { animation: textOut 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.brand-in { animation: pullFocus 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes textIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes textOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes pullFocus {
  0% { filter: blur(15px); opacity: 0; transform: scale(1.1); }
  100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}