/* ==========================================================================
   Sampath Digital Solutions — shared stylesheet
   Used by index.html and admin.html. Tailwind (via CDN) handles layout and
   most utility styling; this file covers custom animations, glass surfaces,
   and small brand details that Tailwind's core utilities don't express.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
}

/* Subtle brand-orange scrollbar, since the default one clashes with the theme */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b00, #cc5500);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff8a3d;
}

/* Selection color to match the brand */
::selection {
  background: rgba(255, 107, 0, 0.35);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */

.glass-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-bg {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b00, transparent);
}

.logo-container {
  width: 40px;
  height: 40px;
}

/* Gradient text for headline accents */
.text-gradient {
  background: linear-gradient(90deg, #ff6b00, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.12);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.shake {
  animation: shake 0.5s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #1a202c;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border: 1px solid #4a5568;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Toast notification (index.html)
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  z-index: 1001;
  display: none;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Admin panel extras
   -------------------------------------------------------------------------- */

.admin-tab {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-tab.active {
  box-shadow: inset 3px 0 0 #ff6b00;
}
