/* 
  Thunder Motion UI System — Premium Dark Theme
  Refined v4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Brand Colors */
  --bg-primary: #0a0a0c;
  --bg-darker: #111114;
  --bg-card: rgba(20, 20, 24, 0.5);
  --bg-card-hover: rgba(28, 28, 34, 0.7);

  --accent-primary: #ffcb05;
  --accent-secondary: #ffffff;
  --accent-glow: rgba(255, 203, 5, 0.35);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);

  /* UI */
  --border-light: rgba(255, 255, 255, 0.07);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 48px;

  /* Type */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Motion */
  --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --site-width: 1400px;
  --bg-nav: rgba(10, 10, 12, 0.85);

  /* Plyr Customization */
  --plyr-color-main: var(--accent-primary);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(at 0% 0%, rgba(255, 203, 5, 0.025) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.015) 0px, transparent 50%);
}

/* Mesh BG */
.mesh-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; opacity: 0.4; filter: blur(120px);
}
.mesh-bg span {
  position: absolute; width: 40vw; height: 40vw; border-radius: 50%;
  animation: mesh-move 25s infinite alternate;
}
@keyframes mesh-move {
  0% { transform: translate(-10%, -10%); }
  100% { transform: translate(10%, 10%); }
}

/* Links */
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }

/* Images */
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.product-image { aspect-ratio: 16/9; width: 100%; }

ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, #ffcb05 0%, #ffed4a 40%, #fff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(255, 203, 5, 0.4)); /* Stronger glow for vibrancy */
}

/* ===== LAYOUT ===== */
.container { max-width: var(--site-width); margin: 0 auto; padding: 0 5%; }
.section { padding: 7rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.8rem; border-radius: 100px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  font-family: var(--font-sans); transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary); color: #111;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--accent-glow);
  color: #111;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04); color: var(--text-primary);
  border: 1px solid var(--border-light); backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: rgba(255, 203, 5, 0.4);
  background: rgba(255, 203, 5, 0.08);
  transform: translateY(-3px) scale(1.02); color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-pill { border-radius: 100px; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  padding: 1.2rem 0;
}
.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  background: rgba(10, 10, 12, 0.95);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { height: 36px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.9rem; position: relative; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent-primary); transition: width var(--transition-fast);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }

.menu-toggle {
  display: none; background: none; border: none;
  color: white; font-size: 1.5rem; cursor: pointer;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,203,5,0.4); }

/* ===== REVEAL ANIMATIONS (Advanced) ===== */
.reveal {
  opacity: 0; transform: translateY(30px) scale(0.98);
  filter: blur(5px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.reveal-sequence > * {
  opacity: 0; transform: translateY(20px); filter: blur(3px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-sequence.active > * {
  opacity: 1; transform: translateY(0); filter: blur(0);
}

.reveal-left {
  opacity: 0; transform: translateX(-40px);
  filter: blur(4px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); filter: blur(0); }

.reveal-right {
  opacity: 0; transform: translateX(40px);
  filter: blur(4px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); filter: blur(0); }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255, 203, 5, 0.08); color: var(--accent-primary);
  border: 1px solid rgba(255, 203, 5, 0.15);
}

/* ===== SOFTWARE BADGES ===== */
.software-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  font-weight: 800; font-size: 11px; color: #fff; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: absolute; top: 12px; right: 12px; z-index: 10; pointer-events: none;
}
.badge-ae { background: #2e0052; border: 1px solid #cf96fd; color: #cf96fd; }
.badge-pr { background: #00005b; border: 1px solid #9999ff; color: #9999ff; }
.badge-ps { background: #001e36; border: 1px solid #31a8ff; color: #31a8ff; }
.badge-dr { background: #3d0000; border: 1px solid #ff4444; color: #ff4444; }
.badge-sv { background: #003d3d; border: 1px solid #00ffff; color: #00ffff; }
.badge-vi { background: #1a1a3a; border: 1px solid #7f7fff; color: #7f7fff; }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 203, 5, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ===== PRODUCT CARDS (Sleek) ===== */
.product-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 0 !important; overflow: hidden;
  background: rgba(14, 14, 18, 0.7) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: var(--radius-md) !important;
}
.product-card:hover {
  border-color: rgba(255, 203, 5, 0.2) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,203,5,0.08) !important;
  transform: translateY(-6px) !important;
}

.product-preview-container {
  position: relative; overflow: hidden; cursor: pointer;
}
.product-preview-container::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(14,14,18,0.95), transparent);
  pointer-events: none; z-index: 2;
}

.product-card .product-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image {
  transform: scale(1.04);
}

/* Video Hover Overlay */
.hover-video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  pointer-events: none; /* Prevent clicking YouTube UI */
}

/* Crop YouTube's forced top/bottom UI by scaling up the iframe and centering */
.hover-video-overlay iframe {
  position: absolute;
  top: -25%; 
  left: 0; 
  width: 100%; 
  height: 150%; 
  pointer-events: none;
  border: 0;
  object-fit: cover;
  transform: scale(1.15); /* Slightly scale up to hide edges */
}

.product-info {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; flex: 1;
}
.product-info h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem;
  letter-spacing: -0.02em; line-height: 1.3;
}
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 1rem;
}
.product-details { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

/* ===== MARQUEE ===== */
.marquee {
  width: 100%; background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.2rem 0; overflow: hidden; white-space: nowrap; display: flex;
}
.marquee-content {
  display: inline-flex; animation: marquee-scroll 45s linear infinite;
  gap: 3.5rem; padding-right: 3.5rem;
}
.marquee span {
  font-size: 2.2rem; font-weight: 800; font-family: var(--font-display);
  text-transform: uppercase; color: rgba(255,255,255,0.15);
}
.marquee span.active { color: var(--accent-primary); -webkit-text-stroke: 0; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CAROUSEL ===== */
.carousel-container {
  width: 100%; overflow-x: auto; overflow-y: hidden;
  padding: 1rem 0 2rem; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 1.5rem; padding: 0 5%; }
.carousel-card { min-width: 300px; max-width: 340px; width: 100%; flex: 0 0 auto; }

/* ===== PREMIUM HERO REDESIGN (Default State) ===== */
.page-header {
  position: relative;
  overflow: hidden;
  background: #0a0a0c !important; /* Solid dark base */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header .container {
  position: relative;
  z-index: 5;
  text-align: left !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 550px !important;
}

.page-header .hero-visual {
    display: none !important; /* Hide static visuals by default for pure layout */
}

.page-header h1, .page-header p, .page-header .badge, .page-header .search-inputs {
    margin-left: 0 !important;
    max-width: 500px !important;
}

.page-header h1 {
    font-size: clamp(3rem, 7vw, 6.5rem) !important;
    line-height: 0.9 !important;
}

/* Video Positioning */
.hero-video-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%; /* Video occupies the right side */
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: heroVideoFadeIn 1.5s forwards 0.2s;
}

@keyframes heroVideoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-active .hero-video-container iframe {
  width: 150%; /* Over-scale to avoid borders */
  height: 100%;
  object-fit: cover;
}

/* The Premium Side-Fade Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Balanced fade for non-extreme left alignment */
  background: linear-gradient(to right, 
    rgba(10, 10, 12, 1) 0%, 
    rgba(10, 10, 12, 1) 20%, 
    rgba(10, 10, 12, 0.8) 45%, 
    rgba(10, 10, 12, 0) 100%
  );
  z-index: 2;
}

@media (max-width: 900px) {
    .page-header .container { align-items: center !important; text-align: center !important; }
    .hero-video-container { width: 100%; opacity: 0.4; }
    .hero-overlay { background: rgba(10, 10, 12, 0.7); }
}


.page-header p { max-width: 600px; margin: 0 auto; }

@media (max-width: 768px) {
  .page-header { padding: 100px 0 60px; }
  .search-inputs { flex-direction: column; gap: 0.75rem; }
  .search-inputs .search-box, .search-inputs select { width: 100% !important; min-width: 0 !important; }
}

/* ===== FAQ SECTION ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 2.2rem;
  border-radius: 20px;
  transition: all var(--transition-smooth);
}
.faq-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.faq-item h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
.faq-item p { margin-bottom: 0; font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== FOOTER ===== */
footer {
  background: #08080a; padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative; overflow: hidden;
}
footer .container { max-width: 1600px; padding: 0 4%; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 2.5rem; margin-bottom: 5rem;
}
.footer-brand { grid-row: span 2; }
.footer-brand p { 
    margin-top: 1.5rem; max-width: 300px; 
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.6;
}
.footer-links h4 {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.8rem;
  text-transform: uppercase; letter-spacing: 3px; font-weight: 700;
}
.footer-links ul li { margin-bottom: 1rem; }
.footer-links ul li a { 
    font-size: 0.95rem; color: var(--text-secondary); 
    transition: all var(--transition-smooth);
    display: inline-block;
}
.footer-links ul li a:hover { 
    color: var(--accent-primary); 
    transform: translateX(5px);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem;
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04); font-size: 1rem; color: var(--text-muted);
  transition: all var(--transition-smooth);
}
.footer-socials a:hover {
  border-color: var(--accent-primary); color: #000;
  background: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--accent-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .footer-grid { gap: 1.5rem; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2rem; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .carousel-card { min-width: 280px; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--bg-nav); backdrop-filter: blur(20px);
    flex-direction: column; padding: 2rem;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
}

/* ===== SHARED PAGE HERO (Blog Style) ===== */
.page-hero {
  padding: 140px 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,203,5,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,203,5,0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(255,203,5,0.12);
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* AI Blog Suggestion Links */
.tm-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 203, 5, 0.1);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0;
    border: 1px solid rgba(255, 203, 5, 0.2);
    transition: all 0.2s ease;
}

.tm-blog-link:hover {
    background: rgba(255, 203, 5, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 203, 5, 0.1);
}

.tm-blog-link i {
    font-size: 0.8rem;
}
