/* Base styles */
:root {
  --primary-color: #263238;
  --secondary-color: #FF6B35;
  --accent-color: #D84315;
}

/* Professional scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) transparent;
}

/* Global Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-top {
  animation: slideInFromTop 0.8s ease-out forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.8s ease-out forwards;
}

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

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

/* Hover Animations - Conservative */
.hover-lift {
  transition: all 0.3s ease;
  position: relative;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  z-index: 5;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

/* Scroll Animations - Fixed for no overlap */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scroll-animate.in-view {
  opacity: 1;
}

/* Staggered Animations */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Ripple Effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Enhanced Button States */
button, .btn, a[href="#contact"] {
  position: relative;
  overflow: hidden;
}

/* Loading Animation */
.loading-animation {
  opacity: 0;
  animation: loadingFade 0.8s ease-in-out forwards;
}

@keyframes loadingFade {
  to {
    opacity: 1;
  }
}

/* Enhanced Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
}

/* Prevent Content Overlap */
section {
  position: relative;
  z-index: 1;
  clear: both;
}

.container, .max-w-7xl, .max-w-5xl, .max-w-4xl {
  position: relative;
  z-index: 2;
}

/* Ensure proper spacing */
.py-20 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Gradient Text Animation */
.gradient-text-animate {
  background: linear-gradient(-45deg, #FF6B35, #F7931E, #FFD23F, #FF6B35);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Barlow, Inter, system-ui, sans-serif;
}

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

/* Interactive elements */
.interactive-element {
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Professional scrollbar design */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

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

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

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

/* Professional form styles */
.error-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

input.border-red-500:focus,
select.border-red-500:focus,
textarea.border-red-500:focus {
  --tw-ring-color: rgb(239 68 68);
  border-color: rgb(239 68 68);
}

/* Loading states */
.submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Professional Slider Styles */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-slide {
  transition: opacity 1s ease-in-out;
}

.slider-slide.active {
  opacity: 1 !important;
}

.slider-slide img {
  transition: transform 8s ease-out;
}

.slider-slide.active img {
  transform: scale(1.05);
}

.slider-arrow {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-arrow:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.slider-dot {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slider-dot.active {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.slider-dot:hover {
  transform: scale(1.1);
}

.slider-dot:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Smooth transitions for mobile */
@media (max-width: 768px) {
  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .slider-slide,
  .slider-slide img,
  .slider-arrow,
  .slider-dot {
    transition: none !important;
    animation: none !important;
  }
}

/* Gradient text for branding */
.gradient-text {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section badge styling */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero section styling */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #fff5f0 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,107,53,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}
