/* Base Styles */
:root {
  --primary: #2c3e50;
  --primary-light: #3d5a80;
  --secondary: #e67e22;
  --secondary-light: #f39c12;
  --light: #f8f9fa;
  --dark: #212529;
  --dark-gray: #495057;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --success: #27ae60;
  --info: #3498db;
  --warning: #f39c12;
  --danger: #e74c3c;
  --body-bg: #ffffff;
  --text-color: #212529;
  --text-light: #6c757d;
}

/* Typography */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: var(--body-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

/* Header & Navigation */
.navbar {
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1020;
}

/* Navbar toggler for mobile */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2822, 22, 22, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
  opacity: 0.8;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar-brand i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  color: var(--dark) !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary) !important;
  text-decoration: none;
}

.nav-link.active {
  color: var(--secondary) !important;
  font-weight: 600;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 25%;
  background-color: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 50%;
  left: 50%;
}

/* Dropdown menu */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  min-width: 200px;
  opacity: 0;
  display: block;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-weight: 400;
  color: var(--dark);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-item i {
  width: 20px;
  margin-right: 8px;
  text-align: center;
  color: var(--secondary);
}

.dropdown-item:hover, 
.dropdown-item:focus {
  background-color: var(--light);
  color: var(--primary);
  padding-left: 1.75rem;
}

.dropdown-item:active {
  background-color: var(--light);
  color: var(--primary);
}

/* Mobile dropdown adjustments */
@media (max-width: 991.98px) {
  .dropdown-menu {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    position: static;
    transform: none;
    display: none;
  }
  
  .dropdown.show .dropdown-menu {
    display: block;
  }
  
  .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .dropdown-item:hover {
    padding-left: 2.25rem;
  }
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.top-bar a:hover {
  color: var(--secondary-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.top-bar i {
  margin-right: 5px;
  font-size: 1rem;
}

/* Responsive adjustments for top bar */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.3rem 0;
    font-size: 0.8rem;
  }
  
  .top-bar .d-flex {
    flex-wrap: wrap;
    justify-content: center !important;
    text-align: center;
  }
  
  .top-bar .btn {
    margin-top: 0.3rem;
  }
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: white;
}

.btn-warning:hover {
  background-color: #e67e22;
  border-color: #e67e22;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: white;
  padding: 8rem 0;
  position: relative;
  margin-top: -1px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--secondary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Card Styling */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
  position: relative;
}

.testimonial-card:before {
  content: '"\201C"';
  font-size: 5rem;
  position: absolute;
  top: -10px;
  left: 10px;
  color: rgba(0, 0, 0, 0.05);
  font-family: Georgia, serif;
}

/* Form Styling */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.1);
}

/* Footer */
footer {
  background: #1a252f;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary) !important;
  text-decoration: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0 !important;
  }
  
  .hero {
    padding: 6rem 0;
    text-align: center;
  }
}

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

.fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1511994298241-608e28f1f0b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 80vh;
  padding: 120px 0;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--secondary);
  bottom: -10px;
  left: 25%;
}

/* Features Section */
.icon-box {
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Scooters Section */
.scooters .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scooters .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.scooters .card-img-top {
  height: 220px;
  object-fit: cover;
}

.scooters .card-body {
  padding: 1.5rem;
}

.scooters .card-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.scooters .list-unstyled li {
  margin-bottom: 0.5rem;
  color: #666;
}

/* How It Works Section */
.step-number {
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Testimonials Section */
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card img {
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-card h6 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-card p {
  font-style: italic;
  color: #666;
  margin-bottom: 0;
}

/* Call to Action */
.bg-primary {
  background-color: var(--primary) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}