/* Kella Hospitality Solutions - Custom Styles */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6d28d9; }

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

#hero-section h1,
#hero-section p,
#hero-section .flex,
#hero-section > .relative.z-10 > div:last-child {
  animation: fadeInUp 0.9s ease-out forwards;
  opacity: 0;
}
#hero-section h1 { animation-delay: 0.2s; }
#hero-section p { animation-delay: 0.4s; }
#hero-section .flex { animation-delay: 0.6s; }
#hero-section > .relative.z-10 > div:last-child { animation-delay: 0.8s; }

/* Service Cards */
.service-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover { transform: translateY(-6px); }

/* Mobile Menu */
#mobile-menu { transition: all 0.3s ease; }

/* Form inputs */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 22px;
  background: #1e1b4b;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  font-size: 14px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }

/* Spinner */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid #db2777;
  width: 20px; height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Portfolio hover overlay */
.portfolio-item { overflow: hidden; }
.portfolio-item img { transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.08); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}

/* Admin sidebar active indicator */
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #7c3aed;
  border-radius: 0 3px 3px 0;
}
.sidebar-link { position: relative; }

/* Tab transitions */
.tab-content { animation: fadeIn 0.3s ease; }

/* Print */
@media print {
  nav, footer { display: none; }
  section { page-break-inside: avoid; }
}
