@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles */
body { 
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Custom scrollbar for horizontal scroll */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #475569 #1e293b;
}

.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: #1e293b;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

.scrollbar-thumb-slate-600::-webkit-scrollbar-thumb {
  background: #475569;
}

.scrollbar-track-slate-800::-webkit-scrollbar-track {
  background: #1e293b;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .mobile-menu-open .hidden {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #334155;
    padding: 1rem;
    gap: 1rem;
  }
}

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

@keyframes fadeInDelay {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  50% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInDelay2 {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  66% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.6); }
}

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

.animate-fade-in-delay {
  animation: fadeInDelay 1.5s ease-out forwards;
}

.animate-fade-in-delay-2 {
  animation: fadeInDelay2 2s ease-out forwards;
}

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

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

/* Gradient text utilities */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Media helpers */
.gallery img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.caption { 
  color: rgba(203,213,225,0.9); 
  font-size: 0.9rem; 
}

/* Responsive utilities */
@media (max-width: 640px) {
  .text-responsive-xl {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  
  .text-responsive-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .text-responsive-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 641px) {
  .text-responsive-xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .text-responsive-2xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .text-responsive-3xl {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #fb8302;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Custom button styles */
.btn-primary {
  @apply px-6 py-3 bg-gradient-to-r from-orange-500 to-orange-600 text-white font-semibold rounded-lg hover:from-orange-600 hover:to-orange-700 transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-orange-500/25;
}

.btn-secondary {
  @apply px-6 py-3 border-2 border-orange-500 text-orange-400 font-semibold rounded-lg hover:bg-orange-500 hover:text-white transition-all duration-300;
}

/* Card hover effects */
.card-hover {
  @apply transition-all duration-300 hover:transform hover:scale-105 hover:shadow-xl;
}

/* Text selection */
::selection {
  background: rgba(251, 131, 2, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(251, 131, 2, 0.3);
  color: white;
}

/* Remove focus outlines */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove focus ring for all interactive elements */
*:focus {
  outline: none !important;
}

