/* Custom WebSwift Styles */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom button animations */
.btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

/* Card hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Portfolio image overlay */
.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1e40af, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Navigation shadow on scroll */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero section particles (optional enhancement) */
.hero-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

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

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Article Content Styling */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h4 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.prose strong {
  color: #1f2937;
  font-weight: 600;
}

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

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

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

.prose code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #1f2937;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Logo styling */
.logo-filter {
  filter: brightness(0) invert(1);
}

/* WebSwift logo specific styling */
.webswift-logo {
  /* Handle black background by making it transparent-ish */
  background: transparent;
  /* Use mix-blend-mode to handle the black background */
  mix-blend-mode: multiply;
}

.webswift-logo-footer {
  /* For footer on dark background - invert to make logo white */
  filter: brightness(0) invert(1);
}

/* Alternative logo styling for better visibility */
.webswift-logo-alt {
  /* Create a white background behind the logo */
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Form styling improvements */
input:focus,
select:focus,
textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Contact form specific styling */
.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: all 0.3s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #6b7280;
}

/* Article category badges */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service page specific styling */
.service-hero {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

/* Portfolio hover effects */
.portfolio-card {
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial styling (for future use) */
.testimonial {
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: #1e40af;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: Georgia, serif;
}

/* Newsletter subscription styling */
.newsletter-input {
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  transform: scale(1.02);
}

/* Pricing table styling (for future use) */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: scale(1.05);
}

.pricing-card.featured {
  border: 2px solid #1e40af;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .prose {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .prose h1, .prose h2, .prose h3 {
    page-break-after: avoid;
  }
}

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

/* Responsive improvements */
@media (max-width: 768px) {
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose p {
    font-size: 1rem;
  }
}

/* Animation for scroll reveal (future enhancement) */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideInFromBottom 0.8s ease-out;
}

/* Loading spinner (for future AJAX forms) */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #1e40af;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}