/* Custom CSS for Cryo'lutions Landing Page */
/* Optimized for performance and brand consistency */

/* Critical CSS - Inlined for performance */
:root {
  --cryo-green: #62bb98;
  --cryo-blue: #4693d0;
  --cryo-dark-blue: #26587a;
  --cryo-gray: #424242;
  --transition-duration: 250ms;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Font loading optimization */
@font-face {
  font-family: 'Futura PT';
  font-display: swap;
  src: local('Futura PT'), local('FuturaPT-Heavy'), local('FuturaPT-Book');
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Futura PT', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--cryo-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography hierarchy */
.font-futura {
  font-family: 'Futura PT', 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Futura PT', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cryo-dark-blue);
}

/* Performance optimizations */
.carousel-slide {
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Smooth transitions */
.transition-smooth {
  transition: all var(--transition-duration) var(--transition-easing);
}

/* Custom button styles */
.btn-primary {
  background-color: var(--cryo-green);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all var(--transition-duration) var(--transition-easing);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: rgba(98, 187, 152, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98, 187, 152, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cryo-green);
  border: 2px solid var(--cryo-green);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all var(--transition-duration) var(--transition-easing);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--cryo-green);
  color: white;
  transform: translateY(-1px);
}

/* Header scroll effect */
.header-scrolled {
  background-color: rgba(38, 88, 122, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Carousel enhancements */
.carousel-slide {
  transition: opacity 0.4s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide:not(.active) {
  opacity: 0;
  z-index: 1;
}

.carousel-indicator {
  transition: all var(--transition-duration) var(--transition-easing);
  cursor: pointer;
}

.carousel-indicator:hover {
  transform: scale(1.1);
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Card hover effects */
.card-hover {
  transition: all var(--transition-duration) var(--transition-easing);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cryo-green);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive image optimization */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--cryo-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cryo-dark-blue);
}

/* 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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .carousel-indicator {
    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;
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    --cryo-gray: #e5e5e5;
  }
}

/* Performance optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Custom utilities */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Large screen optimizations */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}
