/* AI Unveiled - Main Stylesheet */

/* Base Variables */
:root {
  /* Primary Colors */
  --dark-blue: #0A0E1F;
  --blue-gradient-start: #0A0E1F;
  --blue-gradient-end: #1A2A5E;
  --accent-blue: #3B5EDB;
  --accent-purple: #7B5EDB;

  /* Secondary Colors */
  --white: #FFFFFF;
  --light-gray: #F0F2F5;
  --medium-gray: #A0A8B8;
  --dark-gray: #4A5568;

  /* UI Elements */
  --button-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --button-hover-gradient: linear-gradient(135deg, #4B6EEB, #8B6EEB);
  --card-background: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: var(--white);
  --text-secondary: var(--medium-gray);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0A0E1F 0%, #1A2A5E 100%);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  height: auto;
}

/* Enhanced Image Styling */
.card-img,
.feature-img,
.tool-logo,
.screenshot-img {
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img:hover,
.feature-img:hover,
.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Fix for image paths - ensure all images are displayed properly */
img[src^="/images/"] {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Profile/avatar image enhancements */
.team-member-image,
.author-avatar {
  border: 3px solid var(--accent-blue);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem; /* 48px */
  line-height: 3.5rem; /* 56px */
}

h2 {
  font-size: 2.25rem; /* 36px */
  line-height: 2.75rem; /* 44px */
}

h3 {
  font-size: 1.75rem; /* 28px */
  line-height: 2.25rem; /* 36px */
  font-weight: 600;
}

h4 {
  font-size: 1.5rem; /* 24px */
  line-height: 2rem; /* 32px */
  font-weight: 600;
}

h5 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
  font-weight: 600;
}

h6 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.625rem; /* 26px */
  font-weight: 600;
}

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

.body-large {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
}

.body {
  font-size: 1rem; /* 16px */
  line-height: 1.5rem; /* 24px */
}

.body-small {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

.caption {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--button-gradient);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--button-hover-gradient);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: rgba(59, 94, 219, 0.1);
}

.btn-text {
  background: transparent;
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
}

.btn-text:hover {
  background: rgba(59, 94, 219, 0.1);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* More authentic button style with improved visibility */
.btn-indie {
  background: rgba(59, 94, 219, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  color: white;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-indie:hover {
  background: rgba(123, 94, 219, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 94, 219, 0.4);
  color: white;
}

/* Indie Builder Aesthetic Enhancements */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 42, 94, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(59, 94, 219, 0.15);
  border-color: rgba(59, 94, 219, 0.2);
}

.card-img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
  max-height: 220px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  filter: saturate(1.05) contrast(1.05);
}

/* Featured tools section - uniform image heights */
#featured-tools .card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Handwritten note styles for highlighted elements */
.highlight-note {
  font-family: 'Caveat', cursive;
  color: #FFD166;
  font-size: 1.1rem;
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 0.5rem;
}

/* Custom border that looks like washi tape for images */
.washi-tape-top::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  width: 140px;
  height: 25px;
  background: rgba(123, 94, 219, 0.5);
  transform: rotate(-2deg);
  z-index: 1;
  backdrop-filter: blur(4px);
  border-radius: 2px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 14, 31, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  background-color: rgba(10, 14, 31, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.lead-magnet-image {
  box-shadow: #0026ffa1 0px 0px 200px 1px;
  border-radius: 12px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 25px 3px rgba(59, 94, 219, 0.7) !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown Menu Styles */
.nav-item {
  margin-left: var(--spacing-lg);
  position: relative;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(26, 32, 53, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem !important;
  min-width: 200px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  z-index: 1001 !important;
  transform: translateX(-50%) translateY(-10px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  list-style: none !important;
  display: block !important;
}

.dropdown-menu:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .dropdown-menu {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateX(-50%) translateY(5px) !important;
}

.dropdown-menu li {
  margin-bottom: 0.5rem;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-purple);
}

/* Mobile dropdown toggle styling */
.dropdown-toggle {
  display: none;
  margin-left: 6px;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .dropdown-toggle {
    display: inline-block;
    position: relative;
    top: -1px;
  }
  
  .nav-item.dropdown-active .dropdown-toggle i {
    transform: rotate(180deg);
  }
  
  .nav-item.dropdown-active .dropdown-menu {
    max-height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .review-cta {
      padding: 1.5rem;
      margin: 2rem 0;
      text-align: center;
  }
  
  .review-cta h3 {
      font-size: 1.25rem;
  }
  
  .review-cta .btn {
      display: block;
      width: 100%;
      margin: 0.75rem 0 0 0 !important; /* Override any inline styles */
      box-sizing: border-box;
  }
  
  .review-cta .btn:first-of-type {
      margin-top: 1.5rem !important;
  }
}

@media screen and (max-width:768px) {
  .feature-item,
  .use-case-card,
  .faq-item,
  .pros,
  .cons {
      padding: 1.25rem;
  }
  
  .review-section {
      margin-bottom: 2rem;
  }
  
  .container {
      padding-left: 15px;
      padding-right: 15px;
  }
  
  .review-content {
      padding: 0 5px;
  }
  
  /* Fix for the handwritten note in the CTA */
  .review-cta div {
      margin-top: 1.5rem !important;
  }
  
  .review-cta div span {
      transform: none !important;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-xl);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 1.5s ease forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeIn 1.5s ease 0.5s forwards;
}

.dive-in-btn {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 1s forwards;
}

/* Stars Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Ensure stars stay behind all content */
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
}

/* Page Header - Better padding to prevent content being hidden */
.page-header {
  padding-top: 120px; /* Increased padding to ensure content is visible */
  margin-bottom: 2rem;
}

/* Main Content Layout - Improved spacing for all content areas */
.main-content {
  padding-top: 100px; /* Increased padding for pages without specific page header */
  position: relative;
  z-index: 1; /* Ensure content stays above stars background */
}

/* Review Header - Better spacing for review pages */
.review-header {
  margin-top: 80px;
  padding-top: 40px;
}

/* Comparison section spacing */
.comparison-section h2 {
  padding-top: 30px; /* Add space before each comparison section heading */
}

/* Content section spacing */
.section {
  padding-top: calc(var(--spacing-xxl) + 60px); /* Add extra padding to all sections */
  padding-bottom: var(--spacing-xxl);
  position: relative;
  z-index: 2;
}

/* Remove section background */
.section::before {
  display: none;
}

/* Background enhancements - clean gradient background */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0A0E1F 0%, #1A2A5E 100%);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Cards Grid - Fix width issues */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(26, 42, 94, 0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.notion-card-img {
  max-height: 200px;
}

/* For card content to take remaining space */
.card-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card footer alignment */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.card-excerpt {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tags {
  display: flex;
  gap: var(--spacing-xs);
}

.tag {
  background: rgba(59, 94, 219, 0.1);
  color: var(--accent-blue);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.card-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.action-btn:hover {
  color: var(--accent-blue);
}

/* Guide preview image hover effect */
.lead-magnet-image img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.lead-magnet-image img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
  background-color: rgba(10, 14, 31, 0.9);
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
}

.footer-link a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: var(--accent-blue);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.verification {
  padding-top: 20px;
}

/* Animations */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Section Title & Subtitle Enhancement */
.section-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Standard fallback instead of text-fill-color */
  display: inline-block;
  padding-bottom: 0.5rem;
}

.page-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Standard fallback instead of text-fill-color */
  display: inline-block;
  padding-bottom: 0.5rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: var(--radius-full);
  text-align: center;
}

.page-description {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--medium-gray);
  font-weight: 400;
  line-height: 1.6;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: var(--radius-full);
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--medium-gray);
  font-weight: 400;
  line-height: 1.6;
}

/* Review section titles */
.review-section-title {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Standard fallback instead of text-fill-color */
  display: inline-block;
}

.review-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--button-gradient);
  border-radius: var(--radius-full);
}


/* Text center utility */
.text-center {
  text-align: center;
}

/* Safe performance optimizations */

/* Preload hint for better performance */
.link-prefetch {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Optimize scrolling performance */
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Low-end device optimizations */
@media (max-width: 480px) {
  /* Disable complex animations on very small screens */
  .stars-container {
    display: none;
  }
}

/* Dark mode support */

.text-center .section-title::after,
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Text Alignment Utilities */
.text-center, 
.section-title, 
.section-subtitle, 
.page-title, 
.page-description,
.hero-title,
.hero-subtitle,
.lead-magnet-title,
.lead-magnet-subtitle,
.review-cta,
.form-title,
.form-description,
.benefit-card,
.testimonial-card,
.cta-title,
.cta-section,
.faq-section h2,
.peek-content h3 {
  text-align: center;
}

/* Ensure centered elements with after pseudo-elements have proper alignment */
.text-center::after,
.section-title::after,
.page-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .review-section-title {
    font-size: 1.75rem;
  }
}

/* Responsive Styles */
@media (max-width: 1023px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 400px;
    height: 100vh;
    background: rgba(26, 32, 53, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: var(--spacing-md) 0;
    margin-left: 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item .dropdown-menu {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 1rem 0 !important;
    opacity: 1 !important;
    pointer-events: all !important;
    display: none !important;
    width: 100% !important;
    min-width: auto !important;
  }
  
  .dropdown-menu:before {
    display: none;
  }
  
  .nav-item:hover .dropdown-menu {
    transform: none;
  }
  
  .dropdown-menu li {
    margin-bottom: 0.8rem;
  }
  
  .dropdown-menu a {
    padding: 0.5rem 0;
    border-radius: 0;
    margin-left: 100px
  }
  
  .nav-item.show-mobile-dropdown .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }
  
  .nav-link.has-dropdown:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .nav-item.show-mobile-dropdown .nav-link.has-dropdown:after {
    transform: rotate(180deg);
  }
  
  .dropdown-menu a {
    padding: 0.5rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1002;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
  }
  
  /* Form improvements */
  .form-container {
    padding: 1.5rem;
  }
  
  .form-input, 
  .form-textarea,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Adjust lead magnet container for mobile */
  .lead-magnet-container {
    display: flex;
    flex-direction: column;
  }
  
  .lead-magnet-content {
    order: 1;
  }
  
  .guide-preview {
    max-width: 70%;
    margin: 0 auto 1.5rem;
  }
  
  /* Adjust grid layouts */
  .methodology-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .criteria-grid,
  .peek-grid,
  .mission-vision,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Optimize section spacing */
  .section-title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 1rem;
    text-align: center;
  }
  
  /* Footer adjustments */
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Mobile optimizations for Google's mobile-first indexing */

/* Improving touch targets for mobile */
@media (max-width: 767px) {
  /* Make interactive elements easier to tap */
  .btn, 
  button,
  .social-link,
  .card-actions a,
  .footer-link a,
  .nav-link {
    min-height: 44px; /* Minimum recommended touch target size */
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ensure adequate spacing between tap targets */
  .footer-link,
  .nav-item {
    margin-bottom: 12px;
  }
  
  /* Prevent overlapping tap targets */
  .card-actions {
    gap: 12px;
  }
  
  /* More space for mobile inputs - prevent zoom on iOS */
  input, select, textarea {
    font-size: 16px !important; /* iOS will zoom in on inputs with font size < 16px */
  }
  
  /* Adjust form spacing for touch */
  .form-group {
    margin-bottom: 16px;
  }
  
  /* Improve checkbox and radio visibility */
  input[type="checkbox"], input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  
  /* Ensure all form elements are properly aligned for touch */
  .checkbox-group {
    align-items: center;
    padding: 8px 0;
  }
  
  /* Mobile menu button bigger touch area */
  .mobile-menu-btn {
    padding: 8px;
  }
  
  /* Ensure form inputs on free guide page are taller for easier tapping */
  .form-input {
    min-height: 44px;
  }
  
  /* Improve navigation for touch */
  .dropdown-menu a {
    padding: 12px 16px;
  }
}

/* Prevent content from being hidden behind fixed elements */
.main-content {
  padding-top: 80px;
}

/* Specific tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lead-magnet-container {
    gap: 2rem;
  }
}

/* Fix specific issues on smallest screens */
@media (max-width: 479px) {
  /* More spacing on edges for better readability */
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Full-width inputs and buttons for smaller screens */
  .form-input,
  .form-textarea,
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Adjust grid layouts for extra-small screens */
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  /* Make footer more compact on mobile */
  .footer-heading {
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

/* Custom Scrollbar Styling - Modern & Theme-Matched */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, rgba(10, 14, 31, 0.9), rgba(26, 42, 94, 0.9));
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3B5EDB, #7B5EDB);
  border-radius: 10px;
  border: 2px solid rgba(10, 14, 31, 0.9);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4B6EEB, #8B6EEB);
  box-shadow: 0 0 10px rgba(59, 94, 219, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #5B7EFB, #9B7EFB);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #3B5EDB rgba(10, 14, 31, 0.9);
}

/* Add these rules to fix scrollbar issues */
pre, code {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Clean styling for comparison tables and content sections */
.comparison-table {
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.comparison-table th {
  background-color: var(--accent-primary);
  color: white;
  padding: 1rem;
  text-align: center;
}

.comparison-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(10, 14, 31, 0.4);
}

/* Clean up review content */
.review-content, 
.comparison-section, 
.comparison-intro,
.review-section {
  padding: var(--spacing-lg) 0;
  margin-bottom: var(--spacing-lg);
  background: transparent;
}

/* Feature item styling */
.feature-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(10, 14, 31, 0.4);
}

/* Pros and cons styling */
.pros, .cons {
  background: rgba(10, 14, 31, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--card-border);
}

/* Review CTA section */
.review-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-primary));
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ styling */
.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Review header enhancement */
.review-header {
  background: linear-gradient(135deg, rgba(26, 42, 94, 0.9), rgba(45, 62, 116, 0.9));
}

/* Affiliate CTA Styling */
.affiliate-cta {
  background: linear-gradient(135deg, 
    rgba(26, 42, 94, 0.7) 0%,
    rgba(59, 94, 219, 0.5) 100%
  );
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow: hidden;
}

.affiliate-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.affiliate-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.affiliate-cta p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
  background: linear-gradient(135deg, #3B5EDB, #7B5EDB);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 8px 20px rgba(59, 94, 219, 0.4);
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(59, 94, 219, 0.5);
}

.btn-cta i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-cta:hover i {
  transform: translateX(5px);
}

.tool-name, .plan-name {
  font-weight: 600;
  color: #FFD166;
}

.affiliate-disclosure {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .affiliate-cta {
    padding: 2rem 1.5rem;
  }

  .affiliate-cta h3 {
    font-size: 1.5rem;
  }

  .btn-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Chat History Page Styles */
.chat-history-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #0A0E1F 0%, #1A2A5E 100%);
}

.chat-history-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.chat-history-page .page-header h1 {
  font-size: 2.5rem;
  color: #FFD166;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-history-page .page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Storage Overview */
.storage-overview {
  margin-bottom: 3rem;
}

.storage-card {
  background: linear-gradient(135deg, #1A2A5E 0%, #0A0E1F 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.storage-header h3 {
  margin: 0;
  color: #FFD166;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.storage-info {
  text-align: right;
}

.storage-info #storage-usage {
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD166;
  display: block;
}

.storage-info .storage-limit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.storage-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.storage-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60 0%, #f39c12 75%, #e74c3c 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.storage-status {
  text-align: center;
}

.status-good {
  color: #27ae60;
}

.status-warning {
  color: #f39c12;
}

.status-critical {
  color: #e74c3c;
}

/* Conversations Section */
.conversations-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  color: #FFD166;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-actions {
  display: flex;
  gap: 1rem;
}

.conversations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.conversation-card {
  background: linear-gradient(135deg, #1A2A5E 0%, #0A0E1F 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.conversation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD166, #FFE066);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.conversation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 209, 102, 0.4);
}

.conversation-card:hover::before {
  opacity: 1;
}

.conversation-header {
  margin-bottom: 1rem;
}

.conversation-title {
  margin: 0 0 0.5rem 0;
  color: #FFD166;
  font-size: 1.1rem;
}

.conversation-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.conversation-preview {
  margin-bottom: 1.5rem;
  max-height: 80px;
  overflow: hidden;
}

.message-preview {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.message-preview.user {
  background: rgba(255, 209, 102, 0.1);
  border-left: 3px solid #FFD166;
}

.message-preview.assistant {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #1A2A5E;
}

.conversation-actions {
  display: flex;
  gap: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
  font-size: 3rem;
  color: rgba(255, 209, 102, 0.3);
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: #FFD166;
}

.empty-state p {
  margin: 0 0 2rem 0;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.loading-state i {
  font-size: 2rem;
  color: #FFD166;
  margin-bottom: 1rem;
}

/* Settings Section */
.settings-section {
  margin-bottom: 3rem;
}

.settings-card {
  background: linear-gradient(135deg, #1A2A5E 0%, #0A0E1F 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-card h3 {
  margin: 0 0 1.5rem 0;
  color: #FFD166;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.setting-item {
  display: flex;
  align-items: center;
}

.setting-item input[type="checkbox"] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
}

.setting-label {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.settings-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: linear-gradient(135deg, #1A2A5E 0%, #0A0E1F 100%);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #FFD166;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #FFD166;
}

.modal-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.modal-message {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
}

.modal-message.user {
  background: rgba(255, 209, 102, 0.1);
  border-left: 4px solid #FFD166;
}

.modal-message.assistant {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #1A2A5E;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.message-header strong {
  color: #FFD166;
}

.message-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.message-content {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.toast-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design for Chat History */
@media (max-width: 768px) {
  .chat-history-page .page-header h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .storage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-actions {
    width: 100%;
    justify-content: center;
  }

  .conversations-list {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions .btn {
    width: 100%;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

