/* ============================================
   MIDPROMPTS LANDING PAGE STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gugi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ============================================
   CSS VARIABLES FOR BRAND COLORS - GREYTONES ONLY
   ============================================ */

:root {
  /* Light Mode Colors - Pure Greytones */
  --color-light-bg: #ffffff;
  --color-light-bg-secondary: #f8f9fa;
  --color-light-text: #1f2937;
  --color-light-text-secondary: #6b7280;
  --color-light-border: #e5e7eb;
  --color-light-primary: #374151;
  --color-light-primary-hover: #1f2937;
  
  /* Dark Mode Colors - Pure Greytones (no blue tint) */
  --color-dark-bg: #0f0f0f;
  --color-dark-bg-secondary: #1a1a1a;
  --color-dark-text: #f9fafb;
  --color-dark-text-secondary: #d1d5db;
  --color-dark-border: #374151;
  --color-dark-primary: #9ca3af;
  --color-dark-primary-hover: #d1d5db;
  
  /* App Blue Primary Colors for CTAs */
  --color-blue-primary: #3b82f6;
  --color-blue-primary-hover: #2563eb;
  
  /* Topic Colors - Same as app */
  --topic-blue: #2563eb;
  --topic-purple: #9333ea;
  --topic-violet: #7c3aed;
  --topic-teal: #0d9488;
  --topic-rose: #e11d48;
  --topic-orange: #ea580c;
  --topic-indigo: #4f46e5;
  --topic-yellow: #d97706;
  --topic-red: #dc2626;
  --topic-green: #16a34a;
  --topic-fuchsia: #c026d3;
  --topic-amber: #f59e0b;
  --topic-sky: #0284c7;
  --topic-emerald: #047857;
  --topic-cyan: #0891b2;
  --topic-lime: #65a30d;
  --topic-pink: #db2777;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

/* Ensure full width with no horizontal spacing */
body, html {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html {
  scroll-behavior: auto; /* Let JavaScript handle smooth scrolling */
  font-family: 'Roboto', sans-serif;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100vw;
  /* Removed padding-top to let hero start from top */
}

/* Dark mode is initial/default */
body {
  background-color: rgb(40, 40, 40);
  color: var(--color-dark-text);
}

body.light-mode {
  background-color: var(--color-light-bg);
  color: var(--color-light-text);
}

/* Typography - Bold headers like in the app */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(3.2rem, 5.8vw, 5.2rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;

}

/* ============================================
   LAYOUT SYSTEM
   ============================================ */

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 6vw;
}

.full-width {
  width: 100vw;
  position: relative;
}

.section {

    padding-top:2vw
  }


.section-large {
  padding: 0;
}

/* ============================================
   BUTTONS - App Style
   ============================================ */

.btn {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-blue-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-blue-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: var(--color-blue-primary-hover);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-cta {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  margin: 1.5rem 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Navigation Container */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Header - Always Visible */
.header {
  position: relative;
  width: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  background-color: rgba(40, 40, 40, 0.95);
  z-index: 1002; /* Higher than mobile flyout */
}

body.light-mode .header {
  border-bottom-color: var(--color-light-border);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Desktop Navigation Links */
.nav-links-desktop {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mobile Flyout - Separate Div */
.mobile-flyout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  background-color: rgba(40, 40, 40, 0.98);
  backdrop-filter: blur(10px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 1001; /* Lower than header */
}

body.light-mode .mobile-flyout {
  background-color: rgba(255, 255, 255, 0.98);
}

.mobile-flyout.mobile-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Links */
.nav-links-mobile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
  padding-top: 40px; /* Further reduced from 80px */
  padding-bottom: 0px; /* Additional bottom padding for mobile flyout */
  gap: 0.5rem;
  list-style: none;
  margin: 0;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  max-width: 100vw;
  width: 100%;
  position: relative; /* For positioning logo and controls */
}

/* Position logo on the left */
.nav-brand {
  position: absolute;
  left: 2rem;
}

/* Position controls on the right */
.nav-controls {
  position: absolute;
  right: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}

/* Desktop and Mobile Navigation Link Styles */
.nav-links-desktop a,
.nav-links-mobile a:not(.mobile-cta-link) {
  text-decoration: none;
  color: var(--color-dark-text-secondary);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Desktop navigation styles */
.nav-links-desktop a {
  display: inline-block;
}

/* Mobile navigation styles */
.nav-links-mobile a:not(.mobile-cta-link) {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  display: block;
  text-align: center;
  font-weight: 600;
}

body.light-mode .nav-links-desktop a,
body.light-mode .nav-links-mobile a:not(.mobile-cta-link) {
  color: var(--color-light-text-secondary);
}

.nav-links-desktop a:hover,
.nav-links-mobile a:not(.mobile-cta-link):hover {
  background-color: var(--color-blue-primary);
  color: white;
  font-weight: 600;
}

body.light-mode .nav-links-desktop a:hover,
body.light-mode .nav-links-mobile a:not(.mobile-cta-link):hover {
  background-color: var(--color-blue-primary);
  color: white;
  font-weight: 600;
}

/* Active navigation item */
.nav-links-desktop a.active,
.nav-links-mobile a.active {
  background-color: var(--color-blue-primary);
  color: white;
  font-weight: 600;
}

/* Ensure active items stay white in light mode */
body.light-mode .nav-links-desktop a.active,
body.light-mode .nav-links-mobile a.active {
  color: white;
}

.nav-links-desktop a.active:hover,
.nav-links-mobile a.active:hover {
  background-color: var(--color-blue-primary-hover);
  color: white;
}

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-dark-border);
  color: var(--color-dark-text);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-mode .theme-toggle {
  border-color: var(--color-light-border);
  color: var(--color-light-text);
}

.theme-toggle:hover {
  background-color: var(--color-dark-bg-secondary);
}

body.light-mode .theme-toggle:hover {
  background-color: var(--color-light-bg-secondary);
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* Header CTA Button */
.header-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 0.375rem;
}

/* Hide mobile CTA on desktop */
.mobile-cta-item {
  display: none;
}

/* Show header CTA only on desktop, hide mobile CTA */
@media (min-width: 1081px) {
  .header-cta {
    display: inline-block;
  }
  .mobile-cta-item {
    display: none;
  }
}

/* Hide header CTA on mobile and tablets */
@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }
  .mobile-cta-item {
    display: block;
  }
}

.btn-header {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Reset any padding since body now handles header spacing */

  padding-right: 6vw;
}



/* Add background image with 60% opacity for dark mode only */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
}

/* Light mode - hide background image */
body.light-mode .hero::before {
  display: none;
}

body.light-mode .hero::before {
  display: none;
}

.hero-content {
  position: relative;
  max-width:1200px;
  z-index: 2;
}

/* Two-column hero layout */
.hero-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-perspective {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh;

  margin-right: -6vw;
  margin-left: 6vw;
  margin-top: -3vw;

}

.perspective-media {
  width: 100%;

  perspective: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.perspective-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  transform: scale(1.4);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  border-radius: 8px;
}

.hero-title-container {
  margin-bottom: 0.4rem;
}

.hero-pretitle {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: -0.5rem;
  color: #fff;
}

body.light-mode .hero-pretitle {
  color: var(--color-light-text-secondary);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 400;
}

body.light-mode .hero-subtitle {
  color: var(--color-light-text-secondary);
}

/* Topic Animation in Hero */
.topic-animation {
  display: block;
  font-weight: 900;
  position: relative;
  width: 100%;
  text-align: left;
  font-size: 7vw;
  line-height: 1.1;
  margin: 0;
  height: 1em;
  overflow: visible;
}

.topic-text {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100px);
  animation: topicSlideLeftRight 42.5s infinite;
  white-space: nowrap;
  width: auto;
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-text:nth-child(1) { animation-delay: 0s; color: var(--topic-blue); }
.topic-text:nth-child(2) { animation-delay: 2.5s; color: var(--topic-purple); }
.topic-text:nth-child(3) { animation-delay: 5s; color: var(--topic-teal); }
.topic-text:nth-child(4) { animation-delay: 7.5s; color: var(--topic-rose); }
.topic-text:nth-child(5) { animation-delay: 10s; color: var(--topic-orange); }
.topic-text:nth-child(6) { animation-delay: 12.5s; color: var(--topic-green); }
.topic-text:nth-child(7) { animation-delay: 15s; color: var(--topic-violet); }
.topic-text:nth-child(8) { animation-delay: 17.5s; color: var(--topic-indigo); }
.topic-text:nth-child(9) { animation-delay: 20s; color: var(--topic-yellow); }
.topic-text:nth-child(10) { animation-delay: 22.5s; color: var(--topic-red); }
.topic-text:nth-child(11) { animation-delay: 25s; color: var(--topic-fuchsia); }
.topic-text:nth-child(12) { animation-delay: 27.5s; color: var(--topic-cyan); }
.topic-text:nth-child(13) { animation-delay: 30s; color: var(--topic-emerald); }
.topic-text:nth-child(14) { animation-delay: 32.5s; color: var(--topic-blue); }
.topic-text:nth-child(15) { animation-delay: 35s; color: var(--topic-purple); }
.topic-text:nth-child(16) { animation-delay: 37.5s; color: var(--topic-teal); }
.topic-text:nth-child(17) { animation-delay: 40s; color: var(--topic-rose); }

@keyframes topicSlideLeftRight {
  0% { 
    opacity: 0; 
    transform: translateX(-100px); 
    animation-timing-function: ease;
  }
  2% { 
    opacity: 1; 
    transform: translateX(0px); 
    animation-timing-function: ease;
  }
  5.4% { 
    opacity: 1; 
    transform: translateX(0px); 
    animation-timing-function: ease;
  }
  6.7% { 
    opacity: 0; 
    transform: translateX(100px); 
    animation-timing-function: ease;
  }
  8%, 100% { 
    opacity: 0; 
    transform: translateX(-100px); 
    animation-timing-function: ease;
  }
}

@keyframes topicFadeInOutScale {
  0% { 
    opacity: 0; 
    transform: translateX(-50%) scale(1.2); 
    animation-timing-function: ease-out;
  }
  2% { 
    opacity: 1; 
    transform: translateX(-50%) scale(1.0); 
    animation-timing-function: ease-out;
  }
  5.4% { 
    opacity: 1; 
    transform: translateX(-50%) scale(1.0); 
    animation-timing-function: ease-in;
  }
  6.7% { 
    opacity: 0; 
    transform: translateX(-50%) scale(0.8); 
    animation-timing-function: ease-in;
  }
  8%, 100% { 
    opacity: 0; 
    transform: translateX(-50%) scale(1.2); 
    animation-timing-function: ease;
  }
}

/* ============================================
   SECTIONS
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 1.5rem;
  background-color: #2d2d2d;
  border-radius: 1rem;
  border: 1px solid var(--color-dark-border);
  transition: all 0.3s ease;
}

body.light-mode .feature-card {
  background-color: var(--color-light-bg-secondary);
  border-color: var(--color-light-border);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Feature cards section icons - for Material Icons */
.features-grid .feature-icon {
  font-size: 3rem;
  margin-bottom: 0rem;
  display: block;
}

/* Material Symbols styling for feature icons */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
  font-size: 3rem;
}

/* AI Tools Marquee Section */
.ai-tools-marquee {
    padding: 2rem 0;
    background: var(--color-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Hero marquee - fixed at bottom */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 1.5rem 0;
    background: rgba(73, 73, 73, 0.1);
    border-bottom: none;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Light mode hero marquee */
body.light-mode .hero-marquee {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light mode AI tools marquee */
body.light-mode .ai-tools-marquee {
    background: var(--color-light-bg-secondary);
    border-top: 1px solid var(--color-light-border);
    border-bottom: 1px solid var(--color-light-border);
}

.marquee-track {
    display: flex;
    align-items: center;
    animation: marqueeScroll 60s linear infinite;
    will-change: transform;
    white-space: nowrap;
}

/* Remove the complex ::after approach */

.ai-tool-logo {
    flex-shrink: 0;
    margin-right: 2rem;
    opacity: 1;
    margin-top: 0px;
    transition: opacity 0.3s ease;
}

/* Image logos */
.ai-tool-logo img,
.ai-tool-logo[src] {
    height: 80px;
    width: auto;

}

.ai-tool-logo img:hover,
.ai-tool-logo[src]:hover {
    filter: brightness(1);
}

/* Text logos */
.ai-tool-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 60px;
}

/* "and more" specific styling */
.ai-tool-text.and-more {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Small label similar to savings badge in price table */
.marquee-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-dark-text-secondary);
    opacity: 1;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 1px;
    opacity: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Light mode adjustments for marquee content */
body.light-mode .ai-tool-text {
    color: var(--color-light-text-secondary);
}

body.light-mode .ai-tool-text.and-more {
    color: var(--color-light-text-secondary);
    opacity: 0.6;
}

body.light-mode .marquee-label {
    color: var(--color-light-text-secondary);


}

body.light-mode .ai-tool-logo img,
body.light-mode .ai-tool-logo[src] {
    filter: brightness(1);
}

body.light-mode .ai-tool-logo img:hover,
body.light-mode .ai-tool-logo[src]:hover {
    filter: brightness(1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   PRICING SECTION
   ============================================ */

/* Billing Period Toggle */
.pricing-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  
}


.pricing-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-dark-border);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 4px;
  max-width: 500px;
  width: 100%;
}

body.light-mode .pricing-toggle {
  background-color: rgb(255, 255, 255);
  border-color: var(--color-light-border);
}

.pricing-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--color-dark-text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.pricing-toggle-btn.active {
  background-color: var(--color-blue-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure active tab labels are white in light mode */
body.light-mode .pricing-toggle-btn.active {
  color: white;
}

.pricing-toggle-btn:hover:not(.active) {
  color: var(--color-dark-text);
  background-color: rgba(255, 255, 255, 0.05);
}

body.light-mode .pricing-toggle-btn {
  color: var(--color-light-text-secondary);
}

body.light-mode .pricing-toggle-btn:hover:not(.active) {
  color: var(--color-light-text);
  background-color: rgba(0, 0, 0, 0.05);
}

.toggle-main {
  font-weight: 600;
  margin-bottom: 2px;
}

.toggle-price {
  font-size: 0.75rem;
  opacity: 0.8;
}

.toggle-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background-color: #10b981;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Savings badge with same green as toggle badge */
.savings-badge {
  background-color: #10b981 !important;
}

/* Pricing Plans */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-plan {
  padding: 2.5rem 2rem;
  background-color: #2d2d2d;
  border: 2px solid var(--color-dark-border);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

body.light-mode .pricing-plan {
  background-color: #ffffff;
  border-color: var(--color-light-border);
}

.pricing-plan-featured {
  border-color: var(--color-dark-text-secondary);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-plan:hover {
  transform: translateY(-8px);
}

.pricing-plan-featured:hover {
  transform: translateY(-8px) scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-blue-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-header h3 {
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--color-dark-text);
}

body.light-mode .plan-header h3 {
  color: var(--color-light-text);
}

.plan-price {
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-blue-primary);
}

.price-period {
  font-size: 1rem;
  color: var(--color-dark-text-secondary);
  font-weight: 400;
}

body.light-mode .price-period {
  color: var(--color-light-text-secondary);
}

.plan-description {
  color: var(--color-dark-text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

body.light-mode .plan-description {
  color: var(--color-light-text-secondary);
}

.plan-total {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--color-dark-text-secondary);
}

body.light-mode .feature-item {
  color: var(--color-light-text-secondary);
}

.feature-item.feature-limited {
  opacity: 0.6;
}

/* SVG Icons in pricing tables - smaller and properly aligned */
.feature-item .feature-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  flex-shrink: 0;

}

.feature-item.feature-limited .feature-icon {
  color: #ef4444;
}

/* Content cards - "For Pros & Beginners" section - use topic colors */
.pricing-plans .pricing-plan:nth-child(1) .feature-item:nth-child(1) .feature-icon { color: var(--topic-blue) !important; }
.pricing-plans .pricing-plan:nth-child(1) .feature-item:nth-child(2) .feature-icon { color: var(--topic-purple) !important; }
.pricing-plans .pricing-plan:nth-child(1) .feature-item:nth-child(3) .feature-icon { color: var(--topic-teal) !important; }
.pricing-plans .pricing-plan:nth-child(1) .feature-item:nth-child(4) .feature-icon { color: var(--topic-rose) !important; }
.pricing-plans .pricing-plan:nth-child(1) .feature-item:nth-child(5) .feature-icon { color: var(--topic-orange) !important; }

.pricing-plans .pricing-plan:nth-child(2) .feature-item:nth-child(1) .feature-icon { color: var(--topic-green) !important; }
.pricing-plans .pricing-plan:nth-child(2) .feature-item:nth-child(2) .feature-icon { color: var(--topic-violet) !important; }
.pricing-plans .pricing-plan:nth-child(2) .feature-item:nth-child(3) .feature-icon { color: var(--topic-indigo) !important; }
.pricing-plans .pricing-plan:nth-child(2) .feature-item:nth-child(4) .feature-icon { color: var(--topic-cyan) !important; }
.pricing-plans .pricing-plan:nth-child(2) .feature-item:nth-child(5) .feature-icon { color: var(--topic-amber) !important; }

/* Pricing table icons should be white in dark mode, darker in light mode */
#pricing .pricing-plan .feature-item .feature-icon {
  color: white !important;
}

#pricing .pricing-plan .feature-item.feature-limited .feature-icon {
  color: #ef4444 !important;
}

/* Light mode pricing table icons */
body.light-mode #pricing .pricing-plan .feature-item .feature-icon {
  color: var(--color-light-text) !important;
}

body.light-mode #pricing .pricing-plan .feature-item.feature-limited .feature-icon {
  color: #ef4444 !important;
}

/* Hide video temporarily */
iframe[src*="youtube"] {
  display: none !important;
}

/* Hide the video container */
div[style*="padding-bottom: 56.25%"] {
  display: none !important;
}

/* Main feature cards icons - larger, colored circles for Material Icons */
.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;

    transition: all 0.3s ease;
}

.feature-card .feature-icon i {
    font-size: 3.8rem !important;
}

/* Remove shadows in light mode for all icons */
body.light-mode .feature-card .feature-icon {
    box-shadow: none;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-top: auto;
}

.plan-button-primary {
  background-color: var(--color-blue-primary);
  color: white;
}

.plan-button-primary:hover {
  background-color: var(--color-blue-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.plan-button-secondary {
  background-color: transparent;
  color: var(--color-dark-text);
  border: 2px solid var(--color-dark-border);
}

.plan-button-secondary:hover {
  background-color: var(--color-dark-border);
  transform: translateY(-2px);
}

body.light-mode .plan-button-secondary {
  color: var(--color-light-text);
  border-color: var(--color-light-border);
}

body.light-mode .plan-button-secondary:hover {
  background-color: var(--color-light-border);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: currentColor;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.5s ease;
}

.mobile-menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .mobile-menu:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu .material-icons {
  font-size: 1.5rem;
  vertical-align: middle;
  transition: all 0.5s ease;
}

/* Mobile Navigation Menu */
@media (max-width: 1080px) {
  /* Hide desktop navigation on mobile */
  .nav-links-desktop {
    display: none;
  }
  
  /* Mobile menu button visible */
  .mobile-menu {
    display: block;
  }
  
  /* Mobile CTA at bottom of flyout */
  .mobile-cta-item {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    margin: 0;
    padding: 0;
    border: none;
  }
  
  .mobile-cta-link {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 700 !important;
    background-color: var(--color-blue-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 1.25rem 2rem !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .mobile-cta-link:hover {
    background-color: var(--color-blue-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Hero content centered on tablet */
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4vw;
  }
  
  /* Hero stats horizontal on tablet */
  .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* Show desktop navigation on larger screens, hide mobile flyout */
@media (min-width: 1081px) {
  .nav-links-desktop {
    display: flex;
  }
  
  .mobile-flyout {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */

/* FAQ container width matches pricing section */
.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-dark-border);
  padding: 1.5rem 0;
}

body.light-mode .faq-item {
  border-bottom-color: var(--color-light-border);
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
}

.faq-question:hover {
  color: var(--topic-blue);
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-top: 1rem;
  color: var(--color-dark-text-secondary);
}

body.light-mode .faq-answer p {
  color: var(--color-light-text-secondary);
}

/* Mobile text sizing for FAQ answers */
@media (max-width: 768px) {
  /* Make h2 and h3 bigger on mobile */
  h2 {
    font-size: clamp(4.2rem, 7.5vw, 6.5rem);
  }
  
  h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  }
  
  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Further optimize hero perspective for smaller screens */
  .hero-perspective {
    height: 25vh;
    margin: 0;
    width: 90%;

  }
  
  .perspective-image {
    max-width: none;
    width: 100%;
  }
  
  .hero-two-column {
    gap: 1.5rem;
  }
  
  /* Apply fade animation for tablet devices */
  .topic-text {
    animation: topicFadeInOutScale 42.5s infinite;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
  }
}

@media (max-width: 480px) {
  /* Make h2 and h3 even bigger on smaller mobile */
  h2 {
    font-size: clamp(4.6rem, 8.5vw, 7rem);
  }
  
  h3 {
    font-size: clamp(1.3rem, 2.7vw, 1.8rem);
  }
  
  .faq-answer p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ============================================
   VIDEO MODAL (for YouTube trailer)
   ============================================ */

.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
}

.video-modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.video-modal-close {
  color: white;
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-modal-close:hover {
  opacity: 0.7;
}

/* ============================================
   ENHANCED MOBILE STYLES
   ============================================ */

/* Light mode styles for better contrast */
body.light-mode .section {
  background-color: var(--color-light-bg);
}

body.light-mode .section[style*="background-color"] {
  background-color: var(--color-light-bg-secondary) !important;
}

body.light-mode .pricing-card {
  background-color: var(--color-light-bg);
}

body.light-mode .feature-card {
  background-color: var(--color-light-bg);
}

/* Hero Stats Styling */
.hero-stats {
  display: flex;
  align-items: center;
  max-width:500px;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-stats .material-icons {
  font-size: 1.2rem !important;
  vertical-align: middle;
}

.hero-stats span:nth-child(1) .material-icons {
  color: var(--topic-blue);
}

.hero-stats span:nth-child(3) .material-icons {
  color: var(--topic-purple);
}

.hero-stats span:nth-child(5) .material-icons {
  color: var(--topic-teal);
}

@media (max-width: 1080px) {


  .custom-cursor {
  display: none;

}
  /* Less padding for header on mobile */
  .nav {
    padding: 2.5rem 1rem;
  }
  
  /* Align logo with buttons vertically */
  .nav-brand, .nav-controls {
    display: flex;
    align-items: center;
  }
  
  /* Logo smaller on mobile */
  .logo {
    height: 28px;
  }
  
  /* Hero section not 100vh on mobile */
  .hero {
    padding: 0 0rem 10rem;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
  
  /* Single column layout on mobile/tablet */
  .hero-two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    order: 2;
    padding:6vw;
  }
  
  .hero-perspective {
    order: 1;
    height: 30vh;
    text-align: center;
    margin: 0;
      margin-bottom: -5vw;
    width: 100%;
    padding: 0vw 10vw;
  }
  
  .perspective-image {
    max-width: none;
    width: 100%;
  }
  
  /* Make marquee faster on mobile for better engagement */
  .marquee-track {
    animation: marquee 12s linear infinite;
  }
  
  /* Hero subtitle smaller on mobile */
  .hero-subtitle {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  /* Feature card paragraphs match hero subtitle */
  .feature-card p,
  .plan-description {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    line-height: 1.5;
  }
  
  /* CTA button smaller on mobile */
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  /* Text center smaller on mobile */
  .text-center {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .text-center h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  .text-center p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.6;
  }
  
  /* Content card descriptions same font size as hero subtitle */
  .feature-card p,
  .plan-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
  }
  
  /* Less padding left and right for the whole app on mobile */
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top:15vw
  }
  
  .section {
    padding: 0 6vw 3rem 6vw;
  }

  .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
    flex-wrap: wrap;
  }
  
  .hero-stats .mx-2 {
    display: none;
  }
  
  /* Table (pricing and comparison) widths on mobile */
  .pricing-cards {
    padding: 0 2rem;
    max-width: 100%;
    gap: 1rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .ai-tools-marquee {
    padding: 1rem 0;
  }
  
  .ai-tool-logo {
    height: 40px;
    font-size: 0.875rem;
  }
  
  /* Mobile navigation is handled in main mobile media query above */
  
  .mobile-menu {
    display: block;
  }
  
  /* Active mobile menu button with blue background */
  .mobile-menu.active {
    background-color: var(--color-blue-primary) !important;
    color: white !important;
    border-radius: 0.5rem;
  }
  
  .mobile-menu.active:hover {
    background-color: var(--color-blue-primary-hover) !important;
    color: white !important;
  }
  
  /* Ensure X icon is white when active */
  .mobile-menu.active .material-icons {
    color: white !important;
  }
  
  .nav-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  
  .btn-header {
    display: none; /* Hide CTA button on mobile in favor of mobile menu */
  }
  
  /* Make grid single column on mobile */
  .features-grid,
  .pricing-cards {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix pricing plans width on mobile */
  .pricing-plans {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 0;
  }
  
  .pricing-plan {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  .section {
    padding: 0 0 3rem 0;
  }
  
  .hero-pretitle {
    font-size: clamp(0.9rem, 3.2vw, 1.3rem);
  }
  
  .topic-animation {
    width: 100%;
    font-size: 8.5vw;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: .6rem;
  }
  
  .topic-text {
    animation: topicFadeInOutScale 42.5s infinite;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Even smaller logo on very small screens */
  .logo {
    height: 32px;
  }
  
  /* Adjust navigation padding - same as tablet */
  .nav {
    padding: 2.5rem 1rem;
  }
  
  .nav-brand {
    left: 1rem;
  }
  
  .nav-controls {
    right: 1rem;
  }
  
  /* Same padding as tablet for sections */
  .section {
    padding: 0 1rem 3rem 1rem;
  }
  
  .container {
    padding-left:1rem;
    padding-right: 1rem;
        padding-top:20vw
  }

  /* Hero adjustments for small screens */
  .hero {
    padding: 0 0 8rem;
    margin-top: 0;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  /* Feature card paragraphs match hero subtitle */
  .feature-card p,
  .plan-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* CTA button even smaller */
  .btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
  
  /* Text adjustments */
  .text-center {
    padding: 0 1rem;
  }
  
  .text-center h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  
  .text-center p {
    font-size: 0.9rem;
  }
  
  /* Pricing cards on very small screens */
  .pricing-cards {
    padding: 0 1rem;
  }
  
  .pricing-card {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    width: 100%;
  }
  
  /* Topic animation smaller */
  .topic-animation {
    font-size: 10vw;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .topic-text {
    animation: topicFadeInOutScale 42.5s infinite;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  text-align: center;
  flex-direction: column; 
  max-width: 1200px; 
  margin: 0 auto;
}
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mx-2 { margin-left: 1rem; margin-right: 1rem; }

.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }

/* Topic colors for accent elements */
.topic-blue { color: var(--topic-blue); }
.topic-purple { color: var(--topic-purple); }
.topic-violet { color: var(--topic-violet); }
.topic-teal { color: var(--topic-teal); }
.topic-rose { color: var(--topic-rose); }
.topic-orange { color: var(--topic-orange); }
.topic-indigo { color: var(--topic-indigo); }
.topic-green { color: var(--topic-green); }
.topic-emerald { color: var(--topic-emerald); }

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce animations on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .topic-text {
    animation: none;
    transition: none;
  }
  
  .marquee-track {
    animation: none;
  }
}

/* Optimize for high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .ai-tool-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================
   DESKTOP HERO POSITIONING
   ============================================ */

/* ============================================
   DOWNLOADS SECTION STYLES
   ============================================ */

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.download-card .btn:hover {
  background-color: var(--color-blue-primary-hover);
  transform: scale(1.02);
  color: white;
}

.downloads-grid {
  animation: fadeIn 1s ease-in-out;
}

/* Light mode download cards */
body.light-mode .download-card {
  background: #ffffff !important;
  border-color: var(--color-light-border) !important;
}

body.light-mode .download-card h3 {
  color: var(--color-light-text) !important;
}

body.light-mode .download-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
  
.hero-cta {
  margin: 0.5rem 0;
}

  .download-card {
    padding: 1.5rem;
  }
  
  .download-image {
    aspect-ratio: 11/7 !important;
  }
}

@media (max-width: 480px) {
  .downloads-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .download-card {
    padding: 1rem;
  }
  
  .download-image {
    aspect-ratio: 11/7 !important;
    margin-bottom: 1rem !important;
  }
  
  .download-card p {
    font-size: 0.9rem;
  }
}

/* ============================================
   CUSTOM CURSOR STYLES
   ============================================ */

/* Custom cursor only on desktop devices */
@media (min-width: 1024px) {
  /* Hide default cursor globally on desktop */
  * {
    cursor: none !important;
  }

  /* Custom cursor element */
  .custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    mix-blend-mode: difference;
    transition: none;
  }

  /* Ensure cursor is visible on all backgrounds */
  .custom-cursor::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: white;
    border-radius: 50%;
    z-index: -1;
  }
}

/* Use default cursor on mobile and tablet */
@media (max-width: 1023px) {
  * {
    cursor: auto !important;
  }
  
  /* Hide custom cursor on smaller devices */
  .custom-cursor {
    display: none;
  }
}

/* ============================================
   PROMPT GALLERY STYLES
   ============================================ */

.prompt-gallery-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  line-height: 0;
  font-size: 0;
}

/* Mobile-specific gallery styles */
@media (max-width: 480px) {
  #prompt-gallery .container {
    padding: 0 0.75rem !important;
  }
  
  .prompt-gallery-grid {
    gap: 0.75rem;
  }
  
  .prompt-gallery-item {
    aspect-ratio: 9/16;
    border-radius: 8px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #prompt-gallery .container {
    padding: 0 1rem !important;
  }
  
  .prompt-gallery-grid {
    gap: 1rem;
  }
  
  .prompt-gallery-item {
    aspect-ratio: 9/16;
    border-radius: 10px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1023px) {
  .prompt-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .prompt-gallery-item {
    aspect-ratio: 9/16;
    border-radius: 12px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .prompt-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .prompt-gallery-item {
    aspect-ratio: 16/9;
    border-radius: 12px;
  }
}

.prompt-gallery-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  display: block;
  line-height: 0;
  font-size: 0;
  opacity: 1;
  /* Hardware acceleration for smooth performance */
  transform: translateZ(0);
  will-change: transform;
  /* Smooth transitions */
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Fade-in animation for newly loaded videos */
.prompt-gallery-item.fade-in {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.prompt-gallery-item:hover {
  transform: scale(1.02) translateZ(0);
}

/* Webflow-style background video optimization */
.prompt-gallery-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  /* Critical for smooth playback */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
  /* Remove any filters/effects that cause jitter */
  filter: none;
  /* Optimize rendering */
  image-rendering: optimizeQuality;
  /* Ensure smooth loop */
  -webkit-mask: none;
  mask: none;
}

/* Video loading indicator - optimized */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-loading-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade-in animation for newly loaded videos */
.prompt-gallery-item.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light mode gallery styles */
.light-mode .video-loading-overlay {
  background: #f5f5f5;
  color: #333333;
}

.light-mode .video-loading-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #333333;
}

.light-mode .prompt-gallery-item {
  background: #f5f5f5;
}

/* Show more button styling */
.btn-secondary,
#show-more-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 1;
}

.btn-secondary:hover,
#show-more-btn:hover {
  background: var(--color-blue-primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary:disabled,
#show-more-btn:disabled {
  background: #666 !important;
  color: #ccc !important;
  border-color: #666 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Light mode button styling */
.light-mode .btn-secondary,
.light-mode #show-more-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
}

.light-mode .btn-secondary:hover,
.light-mode #show-more-btn:hover {
  background: var(--color-blue-primary) !important;
  color: white !important;
  border: 1px solid var(--color-blue-primary) !important;
}

.light-mode .btn-secondary:disabled,
.light-mode #show-more-btn:disabled {
  background: #999 !important;
  color: #666 !important;
  border-color: #999 !important;
}

.video-corner-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: transparent;
  color: white;
  padding: 6px 10px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: none;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}

.video-corner-label:hover {
  background: var(--color-blue-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.prompt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
  border-radius: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-gallery-item:hover .prompt-overlay {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(15px);
}

.prompt-overlay h3 {
  color: var(--color-blue-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: left;
}

.prompt-overlay .prompt-content {
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 100%;
  overflow-y: auto;
}

.prompt-overlay .prompt-content p:first-child {
  margin-bottom: 16px;
}

.prompt-overlay .prompt-content p {
  margin-bottom: 0rem;
}

.click-to-copy-info {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(128, 128, 128, 0.9);
  color: white;
  padding: 6px 10px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}

.prompt-gallery-item:hover .click-to-copy-info {
  opacity: 1;
  visibility: visible;
}

.prompt-overlay .prompt-content strong {
  color: white;
  font-weight: 700;
}

/* Light mode styles for prompt gallery */
body.light-mode .prompt-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--color-light-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .prompt-overlay h3 {
  color: var(--color-blue-primary);
}

body.light-mode .prompt-overlay .prompt-content strong {
  color: var(--color-light-text);
  font-weight: 700;
}

body.light-mode .click-to-copy-info {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-light-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .video-corner-label {
  box-shadow: none;
}

body.light-mode .video-corner-label:hover {
  box-shadow: none;
}

/* Mobile responsiveness for prompt gallery */
@media (max-width: 768px) {
  .prompt-gallery-item {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  
  .prompt-gallery-item:hover {
    transform: scale(1.01);
  }
  
  .prompt-overlay {
    padding: 1.5rem;
    border-radius: 0;
  }
  
  .prompt-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .prompt-overlay .prompt-content {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  
  .video-corner-label {
    font-size: 0.7rem;
    bottom: 6px;
    right: 6px;
    padding: 4px 8px;
    margin: 0;
    border: 0;
    box-sizing: border-box;
    line-height: 1;
  }
  
  .click-to-copy-info {
    font-size: 0.7rem;
    padding: 4px 8px;
    top: 6px;
    right: 6px;
    margin: 0;
    border: 0;
    box-sizing: border-box;
    line-height: 1;
  }
}
