/* Custom styles for Vablond Landing Page */

/* Brand Colors */
:root {
  --brand-red: #E63946;
  --brand-red-dark: #C62836;
  --brand-red-light: #F07178;
  --brand-secondary: #1D3557;
}

/* Gradient Overlay for Hero */
.gradient-overlay {
  background: linear-gradient(90deg, rgba(29, 53, 87, 0.95) 0%, rgba(29, 53, 87, 0.7) 100%);
}

/* Gradient Section Background */
.gradient-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease-out forwards;
}

/* Staggered animations for hero */
.hero-logo {
  animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

/* Navbar professional transitions */
header {
  transition: opacity 0.15s ease-out, background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* CTA button glow effect */
.nav-cta {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.nav-cta:hover::before {
  left: 100%;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--brand-secondary);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid var(--brand-red);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-red-light);
}

.toast-message {
  font-size: 14px;
  opacity: 0.9;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles - Red branding */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Button focus styles */
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

/* Process line animation */
@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Selection color */
::selection {
  background-color: var(--brand-red);
  color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red-dark);
}

/* Map marker pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(230, 57, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Custom marker reset */
.custom-marker {
  background: transparent !important;
  border: none !important;
}
