@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --color-brand-primary: #f59e0b; /* Amber */
  --color-brand-secondary: #0f172a; /* Slate 900 */
  --color-brand-accent: #3b82f6; /* Blue */
}

body {
  font-family: var(--font-primary);
  background-color: #0b0f19; /* Ultra dark blue/black background */
  color: #f8fafc;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary);
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px -15px rgba(245, 158, 11, 0.15);
  transform: translateY(-4px);
}

/* Animated Border Glow */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, #f59e0b, #3b82f6, #f59e0b);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-border:hover::after {
  opacity: 0.8;
}

/* Before / After Slider Styles */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.slider-image {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  pointer-events: none;
}
.image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.image-after {
  width: 100%;
  height: 100%;
}
.slider-resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* initial split */
  height: 100%;
  overflow: hidden;
}
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--color-brand-primary);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transform: translateX(-50%);
}
.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  background: var(--color-brand-primary);
  color: #0b0f19;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
}

/* Lightbox overlay for Gallery */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--color-brand-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.active {
  transform: translateX(0);
}
.toast.success {
  border-left-color: #10b981;
}
.toast.error {
  border-left-color: #ef4444;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Micro-animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Form floating labels focus styling */
.floating-input:focus ~ label,
.floating-input:not(:placeholder-shown) ~ label {
  transform: translateY(-1.25rem) scale(0.85);
  color: var(--color-brand-primary);
}
