/* Custom CSS using the provided color palette */

:root {
  /* CSS HEX */
  --safety-orange: #ef7d24ff;
  --berkeley-blue: #002959ff;
  --eggshell: #f8f2dcff;
  --carolina-blue: #81adc8ff;
  --rose-quartz: #a799b7ff;

  /* CSS HSL */
  --safety-orange-hsl: hsla(26, 86%, 54%, 1);
  --berkeley-blue-hsl: hsla(212, 100%, 17%, 1);
  --eggshell-hsl: hsla(47, 67%, 92%, 1);
  --carolina-blue-hsl: hsla(203, 39%, 65%, 1);
  --rose-quartz-hsl: hsla(268, 17%, 66%, 1);
}

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

/* Custom gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, var(--berkeley-blue), var(--carolina-blue));
}

.gradient-orange {
  background: linear-gradient(135deg, var(--safety-orange), #ff8c42);
}

.gradient-blue {
  background: linear-gradient(135deg, var(--carolina-blue), var(--berkeley-blue));
}

.gradient-purple {
  background: linear-gradient(135deg, var(--rose-quartz), #9575cd);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

/* Custom hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--safety-orange), #ff8c42);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(239, 125, 36, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: white;
  color: var(--berkeley-blue);
}

/* Custom card styles */
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Custom form styles */
.form-input {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  outline: none;
  border-color: var(--safety-orange);
  box-shadow: 0 0 0 3px rgba(239, 125, 36, 0.2);
}

/* Custom section spacing */
.section-padding {
  padding: 80px 0;
}

/* Custom text styles */
.text-gradient {
  background: linear-gradient(135deg, var(--safety-orange), var(--carolina-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .card {
    padding: 20px;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--eggshell);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #d66a1a;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Custom focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--safety-orange);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
