/* Genval.ai Theme System */

/* Theme Variables */
:root {
  /* Light theme colors */
  --primary-light: #002B4D;
  --secondary-light: #0076B3;
  --text-primary-light: #1a1a1a;
  --text-secondary-light: #4a4a4a;
  --background-light: #ffffff;
  --background-alt-light: #f5f5f5;
  --border-light: #e0e0e0;
  
  /* Dark theme colors */
  --primary-dark: #7FB3D5;
  --secondary-dark: #FFFFFF;
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #b3b3b3;
  --background-dark: #1a1a1a;
  --background-alt-dark: #2a2a2a;
  --border-dark: #404040;
  
  /* Spacing system */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-normal: 1.5;
  --line-height-heading: 1.2;
}

/* Theme Class Definitions */
:root,
.light-theme {
  color-scheme: light;
  --primary: var(--primary-light);
  --secondary: var(--secondary-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --background: var(--background-light);
  --background-alt: var(--background-alt-light);
  --border: var(--border-light);
}

.dark-theme {
  color-scheme: dark;
  --primary: var(--primary-dark);
  --secondary: var(--secondary-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --background: var(--background-dark);
  --background-alt: var(--background-alt-dark);
  --border: var(--border-dark);
}

/* System Theme Preference */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --background: var(--background-dark);
    --background-alt: var(--background-alt-dark);
    --border: var(--border-dark);
  }
}

/* Theme Transitions */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo Management */
.logo-container {
  position: relative;
  height: 80px; /* Increased size */
  width: 200px; /* Adjusted width */
  margin-right: auto; /* Align to the left */
}

.logo-light,
.logo-dark {
  position: absolute;
  top: 0;
  left: 0; /* Align to the left */
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Logo Display Rules */
.logo-light {
  opacity: 1;
}

.logo-dark {
  opacity: 0;
}

/* Dark theme logo switching */
.dark-theme .logo-light,
@media (prefers-color-scheme: dark) {
  :root:not(.light-theme) .logo-light {
    opacity: 0;
  }
  
  :root:not(.light-theme) .logo-dark {
    opacity: 1;
  }
}

.dark-theme .logo-dark {
  opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--background);
}

/* Mobile Logo Adjustments */
@media (max-width: 768px) {
  .logo-container {
    height: 60px; /* Smaller logo on mobile, but still larger than original */
    width: 150px; /* Adjusted width for mobile */
  }
}

/* Base styles */
body {
  font-family: var(--font-family);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--background);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

/* Images and Videos */
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Image captions */
figure {
  margin: var(--space-lg) 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-sm);
}

/* Content containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Article content */
article {
  max-width: 720px;
  margin: 0 auto;
}

/* Buttons */
.button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button-primary {
  background-color: var(--primary);
  color: var(--background);
  border: none;
}

.button-primary:hover {
  opacity: 0.9;
}

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

.button-secondary:hover {
  background-color: var(--primary);
  color: var(--background);
}

/* Cards */
.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form elements */
input, textarea, select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--background);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Code blocks */
pre, code {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--background-alt);
  border-radius: 4px;
  padding: var(--space-xs);
}

pre {
  padding: var(--space-md);
  overflow-x: auto;
}

/* Lists */
ul, ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  margin: var(--space-lg) 0;
  padding-left: var(--space-lg);
  font-style: italic;
  color: var(--text-secondary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

th, td {
  padding: var(--space-sm);
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background-color: var(--background-alt);
  font-weight: 600;
}

/* Navigation */
nav {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-lg);
  justify-content: flex-end; /* Move links to the right */
}

/* Header Container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background-color: var(--background-alt);
  text-align: center; /* Center the footer text */
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.p-0 { padding: 0; }
.m-0 { margin: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Responsive design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5, h6 { font-size: 1rem; }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  nav ul {
    flex-direction:column;
    gap: var(--space-sm);
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-container {
    margin-bottom: var(--space-md);
  }
}

/* Hero sections */
#hero, #about-hero, #products-hero, #services-hero, #contact-hero, #dcd-hero, #getting-started-hero, #industry-solutions-hero, #pricing-hero {
  text-align: center;
  padding: 4rem 0;
  background-color: var(--background-alt);
  border-radius: 5px;
  margin-bottom: 2rem;
}

#hero h1, #about-hero h1, #products-hero h1, #services-hero h1, #contact-hero h1, #dcd-hero h1, #getting-started-hero h1, #industry-solutions-hero h1, #pricing-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* CTA and secondary buttons */
.cta-button, .secondary-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.cta-button {
  background-color: var(--primary);
  color: var(--background);
}

.secondary-button {
  background-color: var(--background);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.cta-button:hover {
  opacity: 0.9;
}

.secondary-button:hover {
  background-color: var(--background-alt);
}

/* Content sections */
#about, #company-info, #team, #vision, #product-list, #product-features, #service-list, #service-approach, #contact, #getting-started, #faq, #common-use-cases, #dcd-content, #dcd-overview, #industry-solutions, #pricing-overview, #pricing-plans, #pricing-features, #pricing-cta, #pricing-faq {
  background-color: var(--background);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* List styles */
#product-features ul, #service-approach ul {
  list-style-type: disc;
  margin-left: 2rem;
}

/* CTA sections */
#about-cta, #product-cta, #service-cta, #dcd-cta, #getting-started-cta, #industry-solutions-cta, #pricing-cta {
  text-align: center;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 5px;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video container styles */
.video-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.video-container video {
  display: block;
  width: 100%;
  height: auto;
}

/* Section headings */
#getting-started h2, #dcd-content h2, #industry-solutions h2, #pricing-plans h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Ordered lists */
#getting-started ol, #dcd-contentol {
  list-style-type: decimal;
  padding-left: 2rem;
}

#getting-started li, #dcd-content li {
  margin-bottom: 1.5rem;
}

#getting-started h3, #dcd-content h3, #industry-solutions h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* FAQ styles */
#faq, #pricing-faq {
  margin-top: 2rem;
}

#faq h2, #pricing-faq h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 1rem;
}

/* Common Use Cases styles */
#common-use-cases {
  margin-top: 2rem;
}

#common-use-cases h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.use-case {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-alt);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.use-case h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.use-case p {
  margin-bottom: 1rem;
}

.use-case ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.use-case li {
  margin-bottom: 0.5rem;
}

/* DCD page styles */
#dcd-content {
  margin-top: 2rem;
}

#dcd-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#dcd-content p {
  margin-bottom: 1rem;
}

#dcd-content ul, #dcd-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.diagram {
  margin: 2rem 0;
  text-align: center;
}

.diagram img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.diagram p {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Video container and mute/unmute button styles */
.video-container h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.video-container p {
  margin-bottom: 1rem;
}

#toggle-mute {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--background);
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

#toggle-mute:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Video carousel styles */
.video-carousel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.carousel-container {
  overflow: hidden;
}

.carousel-slide {
  display: none;
}

.carousel-slide:first-child {
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--background);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active,
.carousel-indicator:hover {
  background-color: var(--primary);
}

.carousel-indicator:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Loading States */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-primary);
  z-index: 5;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-sm);
}

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

/* Error States */
.video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: var(--space-lg);
  border-radius: 8px;
  z-index: 5;
}

.video-error button {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced Focus Styles */
.carousel-button:focus,
.cta-button:focus,
.secondary-button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  nav ul.show {
    display: flex;
  }
  
  .video-container {
    max-width: 100%;
  }

  .use-case {
    padding: 1rem;
  }

  .carousel-button {
    padding: 5px 10px;
    font-size: 16px;
  }
  
  .carousel-indicators {
    margin-top: var(--space-sm);
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Contact Preview Section */
#contact-preview {
  text-align: center;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 5px;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#contact-preview h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

#contact-preview p {
  margin-bottom: 1.5rem;
}

/* Pricing Page Styles */
#pricing-plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.plan {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.plan .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.plan .credits {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.plan ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

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

.plan .cta-button {
  width: 100%;
}

.enterprise {
  background-color: var(--background-alt);
  border: 2px solid var(--primary);
}

#pricing-features {
  margin-top: 3rem;
}

#pricing-features ul {
  list-style-type: none;
  padding: 0;
}

#pricing-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

#pricing-features li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
}

#pricing-faq {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  #pricing-plans {
    flex-direction: column;
    align-items: center;
  }

  .plan {
    width: 100%;
    max-width: 300px;
  }
}