/* Custom styles for Hapag Bayanihan */

/* Section spacing and scrolling */
section {
  scroll-margin-top: 100px; /* Ensures proper scroll positioning with fixed navbar */
}

section[id] {
  position: relative;
}

/* Navigation animations and active states */
.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: navIndicatorSlide 0.3s ease-out;
}

@keyframes navIndicatorSlide {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 20px;
    opacity: 1;
  }
}

/* Navbar brand animation */
.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Smooth transitions for all navbar elements */
.navbar-nav .nav-item {
  transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover {
  transform: translateY(-1px);
}

/* Active state pulse animation */
.navbar-nav .nav-link.active {
  animation: activePulse 2s infinite;
}

@keyframes activePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
}

/* Smooth scroll behavior for the entire page */
html {
  scroll-behavior: smooth;
}

/* What's Here section specific styling */
#whats-here {
  position: relative;
  z-index: 1;
}

/* Driver section specific styling */
#driver {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

/* About section specific styling */
#about {
  position: relative;
  z-index: 1;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.pt-7 {
  padding-top: 6rem !important;
}

/* Modal styling */
.hb-modal .modal-content {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

.hb-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.5rem;
}

.hb-modal .modal-header .btn-close {
  filter: invert(1);
}

.hb-modal .illustration {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Input icons */
.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 10;
}

.input-icon .form-control {
  padding-left: 3rem;
}

/* Hero food grid */
.hero-food-grid {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Uniform image sizing for all food images */
.hero-food-grid img,
.food-clickable,
.hero-food-grid .col-6 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.food-clickable {
  cursor: pointer;
}

.food-clickable:hover,
.hero-food-grid img:hover {
  transform: scale(1.05);
}

/* Ensure consistent image container sizing */
.hero-food-grid .col-6 {
  margin-bottom: 1rem;
}

/* Additional image consistency */
.hero-food-grid .img-fluid {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Hover effects for all food images */
.hero-food-grid .img-fluid:hover,
.food-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Ensure grid alignment */
.hero-food-grid .row {
  align-items: stretch;
}

.hero-food-grid .col-6 {
  display: flex;
  flex-direction: column;
}

/* Scooter animation */
.scooter-track {
  position: relative;
  display: inline-block;
}

.scooter-inline {
  animation: scooter-inline-move 3s infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

@keyframes scooter-inline-move {
  0% { transform: translateX(-20px) rotate(0deg); }
  25% { transform: translateX(0px) rotate(5deg); }
  50% { transform: translateX(20px) rotate(0deg); }
  75% { transform: translateX(0px) rotate(-5deg); }
  100% { transform: translateX(-20px) rotate(0deg); }
}

/* Chatbot */
.hb-chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hb-chatbot {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 350px;
  max-height: 500px;
  z-index: 1000;
}

.hb-chatbot .card {
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hb-chatbot .messages {
  max-height: 300px;
  overflow-y: auto;
}

.hb-msg {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  word-wrap: break-word;
}

.hb-msg.user {
  background: #007bff;
  color: white;
}

.hb-msg.bot {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

.hb-msg a {
  color: inherit;
  text-decoration: underline;
}

/* Fix modal whitespace issue */
body.modal-open {
  overflow-x: hidden;
  --bs-body-padding-right: 0;
}

/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.dashboard-container .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.dashboard-container .list-group-item {
  border-radius: 0;
  transition: all 0.2s ease;
}

.dashboard-container .list-group-item:hover {
  background-color: #e9ecef;
}

.dashboard-container .list-group-item.active {
  border-left: 4px solid #fff;
}

.dashboard-container .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-container .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-container .progress {
  border-radius: 10px;
}

.dashboard-container .badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .pt-7 {
    padding-top: 4rem !important;
  }
  
  .hb-chatbot {
    width: calc(100vw - 4rem);
    right: 2rem;
    left: 2rem;
  }
  
  .dashboard-container .col-md-3 {
    margin-bottom: 1rem;
  }
  
  .dashboard-container .list-group-item {
    text-align: center;
  }
}


