:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
  --bg-light: #F0FAFF;
  --bg-alt: #E0F5FF;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Custom backgrounds */
.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }

/* Animations */
[data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,217,255,0.1) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(0,217,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,217,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,217,255,0.05) 10px,
    rgba(0,217,255,0.05) 11px
  );
}

.decor-mesh {
  background: radial-gradient(circle at 20% 80%, rgba(0,217,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(30,58,95,0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(0,217,255,0.05) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,217,255,0.1) 0%, rgba(30,58,95,0.1) 100%);
  filter: blur(60px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-primary), transparent);
  opacity: 0.1;
  border-radius: 0 100% 0 0;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,217,255,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%2300D9FF' fill-opacity='0.05'%3e%3ccircle cx='30' cy='30' r='15'/%3e%3ccircle cx='30' cy='30' r='25'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
  background-size: 60px 60px;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Form styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-accent transition-colors;
}

.form-textarea {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-accent transition-colors resize-vertical;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-1;
}

/* Product card styles */
.product-card {
  @apply bg-white rounded-2xl p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-all duration-300;
}

.testimonial-card {
  @apply bg-white p-6 rounded-2xl shadow-sm border border-gray-100;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--color-accent), #0099CC);
}

/* Mobile menu animation */
.mobile-menu-enter {
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu-enter-active {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease-out;
}

.mobile-menu-exit {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-exit-active {
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease-in;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

/* Order form enhancements */
.order-form {
  @apply bg-white rounded-2xl shadow-xl p-8 border border-gray-100;
}

.price-display {
  @apply text-4xl font-bold text-primary;
}

.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm font-medium;
}

.product-badge.new {
  @apply bg-blue-100 text-blue-800;
}

.product-badge.bestseller {
  @apply bg-orange-100 text-orange-800;
}

.product-badge.popular {
  @apply bg-green-100 text-green-800;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/Error messages */
.alert {
  @apply p-4 rounded-lg border;
}

.alert-success {
  @apply bg-green-50 border-green-200 text-green-800;
}

.alert-error {
  @apply bg-red-50 border-red-200 text-red-800;
}

.alert-warning {
  @apply bg-yellow-50 border-yellow-200 text-yellow-800;
}

.alert-info {
  @apply bg-blue-50 border-blue-200 text-blue-800;
}