/* Custom CSS for JAMAII AI Automation Consulting Website */

/* Base styles and utilities */
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #2BB3B1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #249d9b;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #2BB3B1;
  outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease-out;
}

/* Custom gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #2BB3B1 0%, #4B5DFF 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #4B5DFF 0%, #2BB3B1 100%);
}

/* Text gradient effect */
.text-gradient {
  background: linear-gradient(135deg, #2BB3B1 0%, #4B5DFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu styles */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Form improvements */
input:invalid,
textarea:invalid {
  border-color: #ef4444;
}

input:valid,
textarea:valid {
  border-color: #2BB3B1;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed in the future */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  button,
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom styles for blog content */
.prose {
  line-height: 1.7;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.prose blockquote {
  border-left: 4px solid #2BB3B1;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #64748b;
}

.prose code {
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
}

/* Admin panel specific styles */
.admin-tab.active {
  color: #2BB3B1 !important;
  border-color: #2BB3B1 !important;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.shadow-smooth {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* Logo styling - Remove dark backgrounds */
.logo-image {
  /* Remove black/dark backgrounds - make them transparent */
  background: white;
  mix-blend-mode: screen;
  filter: contrast(1.5) brightness(1.3) saturate(1.2);
  /* Add a white background and blend to eliminate dark areas */
}

/* Alternative approach for navigation logo */
.logo-image-clean {
  /* Use CSS to create transparency effect */
  filter: 
    invert(1) 
    sepia(1) 
    hue-rotate(180deg) 
    saturate(2) 
    brightness(0.8) 
    contrast(1.2)
    invert(1);
  /* This sequence should preserve blues while removing blacks */
}

/* For dark backgrounds (like footer), simpler invert */
.logo-image-inverted {
  filter: brightness(0) invert(1);
  /* Keep this simple for footer */
}

/* Backup approach - use CSS mask if supported */
.logo-image-masked {
  mask: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  -webkit-mask: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}