/* utilities.css */
/* Utility classes for responsive design and modern effects */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-pattern {
  background-image: url('pattern-svg.svg');
  background-size: 180px;
  background-repeat: repeat;
  opacity: 0.08;
}

.overflow-visible {
  overflow: visible !important;
}

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }

.hover-scale {
  transition: transform 0.4s ease;
}

.hover-scale:hover {
  transform: scale(1.08);
}

.hover-rotate {
  transition: transform 0.6s ease;
}

.hover-rotate:hover {
  transform: rotate(4deg);
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Depth effects with refined shadows */
.depth-1 {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 2px 3px rgba(0,0,0,0.2);
}

.depth-2 {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.2);
}

.depth-3 {
  box-shadow: 0 12px 24px rgba(0,0,0,0.2), 0 8px 8px rgba(0,0,0,0.25);
}

.depth-4 {
  box-shadow: 0 16px 32px rgba(0,0,0,0.25), 0 12px 12px rgba(0,0,0,0.22);
}

.depth-5 {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 16px 16px rgba(0,0,0,0.25);
}

/* Smoother transitions */
.transition-slow {
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.transition-medium {
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.transition-fast {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Enhanced glass effect */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text shadows for readability */
.text-shadow {
  text-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

.text-shadow-light {
  text-shadow: 0 2px 4px rgba(255,255,255,0.35);
}

/* Decorative borders */
.border-gold {
  border: 1px solid var(--gold);
}

.border-gradient {
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: content-box, border-box;
  background-image: linear-gradient(white, white), var(--gradient-gold);
}

/* Form validation */
input.valid, textarea.valid {
  border-color: #28a745 !important;
}

input.invalid, textarea.invalid {
  border-color: #dc3545 !important;
}

.field-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 6px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Notifications with modern styling */
.form-notification {
  padding: 18px 24px;
  border-radius: 12px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.form-notification.success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: #28a745;
}

.form-notification.success::before {
  background: #28a745;
}

.form-notification.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #dc3545;
}

.form-notification.error::before {
  background: #dc3545;
}

.form-notification i {
  font-size: 1.3rem;
}

.form-notification p {
  margin: 0;
  font-size: 1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}