/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Minimalist Design Styles */
body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Minimal hover effects */
a[href^="https://calendly.com"],
a[href^="mailto:"] {
  transition: all 0.2s ease;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #374151;
  outline-offset: 2px;
}

/* Scroll Reveal Animations */
[data-scroll-reveal-target="item"] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

[data-scroll-reveal-target="item"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Background Styles */
.parallax-layer {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Background container styling */
[data-controller="parallax-background"] {
  background: rgba(248, 250, 252, 0.2);
  z-index: 0 !important;
  min-height: 100vh;
}

[data-controller="parallax-background"] svg {
  opacity: 1;
  visibility: visible;
}

/* Enhance section backgrounds for better contrast */
section {
  position: relative;
}

section.bg-gray-50\/40,
section.bg-blue-50\/30,
section.bg-blue-50\/20 {
  background-color: rgba(248, 250, 252, 0.4) !important;
}

/* Optimize SVG animations for performance */
svg {
  shape-rendering: optimizeSpeed;
}

/* Ensure content stays above background */
main {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.6);
}

/* Allow background to show through body */
body {
  background: transparent !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Keep background visible on mobile */
  main {
    background: rgba(255, 255, 255, 0.7);
  }

  /* Ensure background shows through on mobile */
  [data-controller="parallax-background"] {
    background: rgba(248, 250, 252, 0.3) !important;
  }

  [data-controller="parallax-background"] svg {
    opacity: 0.8;
  }

  /* Reduce parallax intensity on mobile for performance */
  .parallax-layer {
    animation-duration: 0.8s !important;
  }
}
