/* PixelCraft Web Studio - Custom CSS */
/* Additional styles to complement Tailwind CSS */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
  }

/* Variables & Utility Classes */
:root {
    --color-primary: #6366f1;
    --color-accent: #8b5cf6;
    --color-dark-bg: #111827; /* A slightly darker, richer black */
    --color-gray-300: #d1d5db;
    --spacing-8: 0.5rem;
    --spacing-12: 0.75rem;
    --spacing-16: 1rem;
    --spacing-24: 1.5rem;
    --spacing-48: 3rem;
    --spacing-64: 4rem;
    --radius-lg: 0.5rem;
    --radius-2xl: 1rem;
}

/* Scrolled Header Style */
header.scrolled {
    background-color: rgba(17, 24, 39, 0.8); /* Dark glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


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

.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-16);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 640px) {
    .grid--responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}


  /* Custom animations and transitions */
  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(30px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  @keyframes slideInLeft {
      from {
          opacity: 0;
          transform: translateX(-30px);
      }
      to {
          opacity: 1;
          transform: translateX(0);
      }
  }
  
  @keyframes slideInRight {
      from {
          opacity: 0;
          transform: translateX(30px);
      }
      to {
          opacity: 1;
          transform: translateX(0);
      }
  }
  
  @keyframes pulse {
      0%, 100% {
          transform: scale(1);
      }
      50% {
          transform: scale(1.05);
      }
  }
  
  @keyframes bounce {
      0%, 20%, 53%, 80%, 100% {
          transform: translateY(0);
      }
      40%, 43% {
          transform: translateY(-10px);
      }
      70% {
          transform: translateY(-5px);
      }
      90% {
          transform: translateY(-2px);
      }
  }
  
  /* Animation classes */
  .animate-fade-in {
      animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .fade-in-up {
      animation: fadeInUp 0.6s ease-out;
  }
  
  .animate-slide-left {
      animation: slideInLeft 0.6s ease-out forwards;
  }
  
  .animate-slide-right {
      animation: slideInRight 0.6s ease-out forwards;
  }
  
  .animate-pulse-slow {
      animation: pulse 3s ease-in-out infinite;
  }
  
  .animate-bounce-slow {
      animation: bounce 2s ease-in-out infinite;
  }
  
/* Button enhancements */
a.button, .button {
    display: inline-block;
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important; /* Remove underline from links */
    font-weight: 600;
    will-change: transform, box-shadow;
}

a.button:hover, .button:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button--primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.button--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease-in-out;
}

.button--primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
}

.button--primary:hover::before {
    left: 120%;
}

.button--primary:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
  
  /* Card hover effects */
  .card-hover {
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .card-hover:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      border-color: rgba(99, 102, 241, 0.5);
  }
  
  /* Gradient text effects */
  .gradient-text {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .gradient-text-purple {
      background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  /* Custom gradient backgrounds */
  .gradient-bg {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  /* Custom scrollbar */
  ::-webkit-scrollbar {
      width: 8px;
  }
  
  ::-webkit-scrollbar-track {
      background: #1f2937; /* gray-800 */
  }
  
  ::-webkit-scrollbar-thumb {
      background: #4f46e5; /* primary-600 */
      border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
      background: #6366f1; /* primary-500 */
  }
  
  /* Focus styles for accessibility */
  .focus-visible:focus {
      outline: 2px solid #6366f1;
      outline-offset: 2px;
  }
  
  /* Loading states */
  .loading {
      position: relative;
      overflow: hidden;
  }
  
  .loading::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
      0% {
          left: -100%;
      }
      100% {
          left: 100%;
      }
  }
  
  /* Accordion animations */
  .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
  }
  
  .accordion-content.open {
      transition: max-height 0.3s ease-in;
  }
  
  .accordion-content.active {
      max-height: 500px;
  }
  
  .accordion-trigger svg {
      transition: transform 0.3s ease;
  }
  
/* Form Controls */
.form__input, .form__select, .form__textarea {
    height: var(--spacing-48);
    border: 1px solid #374151; /* gray-700 */
    background-color: #1f2937; /* gray-800 */
    color: #d1d5db; /* gray-300 */
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.form__input:focus, .form__select:focus, .form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.form__input.error, .form__select.error, .form__textarea.error {
    animation: shake 0.5s ease-in-out;
}
  
  @keyframes shake {
      0%, 100% {
          transform: translateX(0);
      }
      25% {
          transform: translateX(-5px);
      }
      75% {
          transform: translateX(5px);
      }
  }
  
/* New Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 8rem;
    background: #111827; /* var(--color-dark-bg) */
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animated background shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    filter: blur(120px);
    will-change: transform, opacity;
}

.shape-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    bottom: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 40%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.5; }
    50% { transform: translateY(-40px) translateX(20px) scale(1.1); opacity: 0.7; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.5; }
}

/* Make hero text pop on dark background */
.hero__headline {
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero__subheadline {
    color: #d1d5db; /* color-gray-300 */
}

.hero__eyebrow {
    color: #a5b4fc; /* Lighter indigo for dark bg */
}
  
/* Services Component */
.service-card {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800 with opacity */
}

/* Testimonial Component */
.testimonial-card {
    position: relative;
    transition: all 0.3s ease;
    background-color: rgba(31, 41, 55, 0.5);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #6366f1;
    opacity: 0.1;
    font-family: serif;
}
  
  /* Avatar enhancements */
  .avatar {
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 0 2px #111827;
  }
  
  .avatar::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
      transform: translateX(-100%);
      transition: transform 0.6s;
  }
  
  .avatar:hover::after {
      transform: translateX(100%);
  }
  
/* Pricing Table Component */
.pricing-card.featured {
    border: 2px solid #6366f1;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}
  
  /* Stats counter animation */
  .stat-number {
      font-variant-numeric: tabular-nums;
  }
  
/* Social Proof Popup Component */
.social-proof-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #1f2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 300px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-proof-popup.show {
    transform: translateX(0);
    opacity: 1;
}
  
  /* Mobile optimizations */
  @media (max-width: 768px) {
      /* Make large CTA buttons more responsive on mobile */
      #hero .button--primary,
      #comparison .button--primary,
      #tldr-cta .button--primary {
          padding: 0.875rem 1.75rem; /* 14px 28px */
          font-size: 1rem;
      }
      
      .pricing-card.featured {
          transform: none;
          margin-top: 1rem;
      }
      
      .pricing-card.featured:hover {
          transform: translateY(-3px);
      }
  
      /* Comparison table responsiveness */
      .comparison-table-container {
          overflow-x: auto;
      }
  
      .comparison-table table {
          display: block;
          width: 100%;
      }
  
      .comparison-table thead {
          display: none;
      }
  
      .comparison-table tbody, .comparison-table tr {
          display: block;
          width: 100%;
      }
  
      .comparison-table tr {
          margin-bottom: 1rem;
          border: 1px solid #374151; /* gray-700 */
          border-radius: 0.5rem;
          overflow: hidden;
      }
  
      .comparison-table td {
          display: flex;
          justify-content: space-between;
          padding: 0.75rem 1.5rem;
          border-bottom: 1px solid #1f2937; /* gray-800 */
          text-align: right;
      }
  
      .comparison-table td::before {
          content: attr(data-label);
          font-weight: 600;
          text-align: left;
          flex-basis: 50%;
          color: #9ca3af; /* gray-400 */
      }
  }
  
  /* Print styles */
  @media print {
      .no-print {
          display: none !important;
      }
      
      .button--primary {
          background: #6366f1 !important;
          color: white !important;
          -webkit-print-color-adjust: exact;
      }
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
      .button--primary {
          border: 2px solid currentColor;
      }
      
      .card-hover {
          border: 1px solid currentColor;
      }
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
      * {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
      }
      
      html {
          scroll-behavior: auto;
      }
  }
  
  /* Custom utilities */
  .text-shadow {
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .backdrop-blur-custom {
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
  }
  
  .border-gradient {
      border: 1px solid transparent;
      background: linear-gradient(#111827, #111827) padding-box,
                  linear-gradient(135deg, #6366f1, #8b5cf6) border-box;
  }
  
  /* Performance optimizations */
  .will-change-transform {
      will-change: transform;
  }
  
  .will-change-opacity {
      will-change: opacity;
  }

/* Link Styling */
a {
    color: var(--color-accent);
}

a:hover {
    text-decoration: underline;
}

/* Navigation Bar */
.nav__link {
    position: relative;
    padding: var(--spacing-12) 0;
    color: #d1d5db; /* gray-300 */
    text-decoration: none;
}

.nav__link:hover {
    text-decoration: none;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: left;
}

.nav__link:hover::after, .nav__link--active::after {
    transform: scaleX(1);
}



/* Logo Slider */
.logo-slider {
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    /* Add a subtle gradient overlay to fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slider-track {
    display: inline-block;
    animation: slide-left-to-right 45s linear infinite; /* Adjusted duration for smoother feel */
    /* Ensure enough width for seamless loop */
    width: max-content;
}

.logo-item {
    height: 50px; /* Adjust logo height as needed */
    margin: 0 40px; /* Increased space between logos */
    display: inline-block;
    vertical-align: middle;
    filter: grayscale(100%) opacity(40%); /* More muted for "underated" */
    transition: filter 0.4s ease, transform 0.4s ease; /* Added transform to transition */
    cursor: pointer; /* Indicate interactivity */
}

.logo-item:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1); /* Subtle zoom on hover */
}

@keyframes slide-left-to-right {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Moves half the track length to loop seamlessly */
    }
}

/* Responsive adjustments for logo slider */
@media (max-width: 768px) {
    .logo-item {
        height: 40px; /* Slightly smaller logos on mobile */
        margin: 0 20px; /* Reduced space between logos on mobile */
    }
    .logo-slider-track {
        animation-duration: 30s; /* Faster animation on smaller screens */
    }
}