/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-black { background-color: #000000; }
.bg-yellow-400 { background-color: #facc15; }

.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }
.text-black { color: #000000; }
.text-white { color: #ffffff; }
.text-yellow-400 { color: #facc15; }

/* Layout */
.flex { display: flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.z-0 { z-index: 0; }

/* Flexbox */
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }

/* Spacing */
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.m-2 { margin: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.leading-relaxed { line-height: 1.625; }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-sm { max-width: 24rem; }

/* Typography */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-sans { font-family: ui-sans-serif, system-ui, sans-serif; }
.font-semibold { font-weight: 600; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Border */
.rounded { border-radius: 0.25rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* Effects */
.overflow-hidden { overflow: hidden; }
.opacity-40 { opacity: 0.4; }

/* Specific utilities */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.object-cover { object-fit: cover; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }

/* Link styles */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* CTA Button styles */
.cta-button {
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* Navigation links */
nav a {
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #f3f4f6;
  color: #111827;
  transform: translateY(-1px);
}

/* Button hover effects */
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-yellow-400.cta-button:hover {
  background-color: #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

.bg-gray-200.cta-button:hover {
  background-color: #d1d5db;
}

.bg-black.cta-button:hover {
  background-color: #374151;
}

/* Footer links */
footer a {
  color: #ffffff;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #facc15;
  text-decoration: underline;
}

/* Footer Styling */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-block;
}

.footer-link:hover {
  color: #facc15;
  transform: translateX(4px);
}

.footer-link::before {
  content: "→";
  opacity: 0;
  margin-right: 4px;
  transition: opacity 0.3s ease;
}

.footer-link:hover::before {
  opacity: 1;
}

/* Social Links */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: #facc15;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  font-size: 18px;
  margin-top: 2px;
}

/* Border utilities */
.border-t {
  border-top: 1px solid;
}

.border-gray-800 {
  border-color: #1f2937;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .footer-contact {
    gap: 12px;
  }
  
  .contact-item {
    gap: 8px;
  }
  
  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* App Store & Google Play Button Styles */
.app-store-btn, .google-play-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 160px;
  border: 2px solid #000;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-store-btn:hover, .google-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #333;
}

.app-store-content, .google-play-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-store-icon, .google-play-icon {
  font-size: 24px;
  line-height: 1;
}

.app-store-text, .google-play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-text {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 2px;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Specific styling for Google Play */
.google-play-btn {
  background: linear-gradient(135deg, #01875f 0%, #4285f4 50%, #ea4335 100%);
  border-color: #01875f;
}

.google-play-btn:hover {
  border-color: #4285f4;
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

/* Responsive adjustments for buttons */
@media (max-width: 640px) {
  .app-store-btn, .google-play-btn {
    width: 100%;
    justify-content: center;
  }
  
  .app-store-content, .google-play-content {
    justify-content: center;
  }
}

/* Hover effects */
.hover\:underline:hover { text-decoration-line: underline; }

/* Custom video circle styles */
.rounded-full { border-radius: 9999px; }

/* Responsive Design */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (max-width: 767px) {
  /* Mobile navigation styles */
  nav {
    display: none;
  }
  
  .text-5xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .w-\[500px\] {
    width: 300px;
  }
  
  .h-\[500px\] {
    height: 300px;
  }
  
  .flex.gap-4 {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Animation for smooth interactions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Custom video sizing */
.w-\[500px\] { width: 500px; }
.h-\[500px\] { height: 500px; }

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  height: 40px; /* Fixed container height */
}

.logo-image {
  height: 28px; /* Fixed size instead of rem for consistency */
  width: auto;
  max-width: 120px; /* Prevent it from being too wide */
  margin-right: 0.75rem;
  object-fit: contain;
  transition: transform 0.2s ease;
  /* Additional properties for cross-browser consistency */
  display: inline-block; /* Changed from block to allow vertical-align */
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast; /* Better rendering on webkit */
  image-rendering: crisp-edges; /* Better rendering on other browsers */
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

/* Responsive logo adjustments */
@media (max-width: 640px) {
  .logo-container {
    height: 36px; /* Smaller container on mobile */
  }
  
  .logo-image {
    height: 24px; /* Smaller on mobile */
    max-width: 100px;
  }
  
  .logo-text {
    font-size: 1.125rem;
}

/* Header responsive improvements */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  header .hidden.md\:flex {
    display: none !important;
  }
}

/* Blog-specific styles */
.cta-button-modern {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-button-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.cta-button-outline {
  border: 2px solid white;
  color: white;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-button-outline:hover {
  background: white;
  color: #1e40af;
}

.section-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

.blog-section {
  padding: 4rem 0;
}

.prose {
  max-width: none;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.chapter-header {
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tip-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.hero-section {
  background: linear-gradient(135deg, #1e40af, #3730a3);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
  background-size: 100% 100%;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Typography utilities */
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Margin utilities */
.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* Max width utilities */
.max-w-4xl {
  max-width: 56rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-none {
  max-width: none;
}

/* Width utilities */
.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

/* Color utilities for blue */
.text-blue-100 {
  color: #dbeafe;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-blue-800 {
  color: #1e40af;
}

.text-blue-900 {
  color: #1e3a8a;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.border-blue-500 {
  border-color: #3b82f6;
}

/* Color utilities for green */
.text-green-700 {
  color: #15803d;
}

.text-green-800 {
  color: #166534;
}

/* Color utilities for yellow */
.text-yellow-700 {
  color: #a16207;
}

.text-yellow-800 {
  color: #92400e;
}

.bg-yellow-50 {
  background-color: #fefce8;
}

.border-yellow-200 {
  border-color: #fde047;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-r-lg {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Shadow utilities */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .text-6xl {
    font-size: 2.5rem;
  }
  
  .text-4xl {
    font-size: 1.875rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
}

/* Additional utilities for complete coverage */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

.leading-relaxed {
  line-height: 1.625;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:text-blue-800:hover {
  color: #1e40af;
}

.block {
  display: block;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Footer styles */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #facc15;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-800 {
  border-color: #1f2937;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.md\:flex-row {
  flex-direction: row;
}

.md\:mb-0 {
  margin-bottom: 0;
}

.md\:col-span-2 {
  grid-column: span 2 / span 2;
}

.md\:grid-cols-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:mb-0 {
    margin-bottom: 0;
  }
  
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

.sm\:flex-row {
  flex-direction: row;
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Background gradients */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-to: rgb(37 99 235 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-purple-600 {
  --tw-gradient-to: #9333ea;
}

.bg-white.bg-opacity-10 {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Typography improvements */
ol {
  list-style: none;
  counter-reset: item;
}

ol li {
  counter-increment: item;
  position: relative;
}

ul {
  list-style: disc;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
}

blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: 3rem 1rem;
  }
  
  .blog-section {
    padding: 2rem 0;
  }
  
  .chapter-header h2 {
    font-size: 1.875rem;
  }
}
