/* General Styles */
body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f0f8f8;
  color: #333;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: transparent;
  border-bottom: 1px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-icon {
  margin-right: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
}

.nav-links .faq-button {
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
}

/* Hero Section */
.hero {
  text-align: left;
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
}

.learn-more {
  background-color: #000;
  color: #fff;
}

.get-started {
  background-color: #fff;
  color: #000;
  border: 1px solid #ddd;
}

/* Features Section */
.features {
  padding: 4rem 2rem;  /* Maintain padding for spacing */
  background-color: #f0f8f8;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Maintain the two-column layout */
  align-items: center;
  gap: 2rem;
  background-color: white;
  margin: 0 4rem;  /* Add margin between window and white box */
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.image-block img {
  width: 100%;
  max-width: 390px;
  align-items:center;
  height: auto;
  border-radius: 1.5rem;
  object-fit: cover;
}

.text-block {
  text-align: left;
  max-width: 550px;
}

.right-column .text-block {
  text-align: left;
  margin-bottom: 2rem;
  max-width: 550px;
}
.right-column .text-block .riding-details {
  margin-top: 10rem;
}

/* Pain Points Section */
.pain-points {
  background-color: #f8f9fa;
  padding: 4rem 2rem;
}

.pain-points-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #111;
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pain-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pain-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Solutions Section */
.solutions {
  padding: 4rem 2rem;
  background-color: white;
}

.solutions-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  text-align: center;
  padding: 2rem;
}

/* Riding Reimagined Section */
.riding-reimagined {
  background-color: #111;
  color: #fff;
  padding: 2rem 0;
  overflow: hidden;
}

.riding-container {
  max-width: 1200px;
  margin: 0 auto;
}

.riding-section {
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.riding-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.riding-image {
  flex: 1;
  padding: 1rem;
}

.riding-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}

.riding-image img:hover {
  transform: scale(1.03);
}

.riding-text {
  flex: 1;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.riding-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.riding-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.right-image-section {
  flex-direction: row-reverse;
}

.left-image-section {
  flex-direction: row;
}

.riding-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.left-content, .right-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.riding-layout img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.riding-details, .text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.riding-details h2, .text-block h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.riding-details p, .text-block p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}
/* Sustainable Commute Section */
.sustainable-commute {
  position: relative;
  background-color: #f0f8f8;
  padding: 4rem 0 0 0; /* Remove bottom padding to allow image to overlap */
  margin-bottom: 0;
}

.rider-container {
  position: relative;
  height: 400px; /* Adjust based on your image size */
}

.rider-container::after {
  content: '';
  position: absolute;
  background-image: url('img/rider-cutout.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  width: 100%;
  height: 100%;
  bottom: -50px; /* Adjust this value to control how much overlaps with the black section */
  right: 0;
  z-index: 10; /* Ensure it's above other elements */
}

.sustainable-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 100%; /* Change from fixed width to full width */
  margin: 0;
  position: relative;
  box-sizing: border-box;
}
.sustainable-layout .left-content {
  padding-left: 2rem; /* Add padding instead of margin */
  box-sizing: border-box; /* This ensures padding is included in the width calculation */
}
.sustainable-layout .right-content {
  padding-right: 0;
  margin-right: 0;
  overflow: hidden;
}
/* Footer Styles */
.footer {
  position: relative;
  background-color: #111;
  margin-top: 0;
  z-index: 5;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* Video Section Styles */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 3;
  width: 80%;
  max-width: 800px;
}

.video-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.5s;
}

.video-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.7s;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  width: 90%;
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: #666;
  font-size: 1rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #000;
}

.input-group label {
  position: absolute;
  left: 150px; /* Ajustado para el dropdown */
  top: 12px;
  color: #777;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: white;
  padding: 0 5px;
}

.phone-input:focus + label,
.phone-input:not(:placeholder-shown) + label {
  top: -10px;
  left: 90px;
  font-size: 12px;
  color: #000;
}

.country-search {
  padding: 10px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background-color: white;
}

.country-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.submit-btn {
  background: #000;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  color: #22c55e;
  margin-top: 1rem;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #000;
  color: white;
  padding: 0.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid #25D366; /* WhatsApp green border */
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background: #222;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}
.whatsapp-button .whatsapp-icon {
  width: 24px;
  height: 24px;
  stroke: #25D366;
}

.whatsapp-tooltip {
  position: absolute;
  background: #222;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}
.whatsapp-button:hover .whatsapp-tooltip {
  visibility: visible;
  opacity: 1;
  top: -35px;
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-button {
  animation: whatsapp-pulse 2s infinite;
}
/* Add this class to all buttons that should trigger the modal */
.modal-trigger {
  cursor: pointer;
}

/* Updated Button Styles */
.join-movement, .explore-now {
  background-color: #fff;
  color: #111;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
  width: auto;
}

.join-movement:hover, .explore-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pain-points-solution {
  margin-bottom: 4rem;
}

.phone-input-container {
  display: flex;
  width: 100%;
  position: relative;
}
.phone-input {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}
.phone-input:focus {
  outline: none;
  border-color: #000;
}
.country-dropdown-btn {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 1rem;
  cursor: pointer;
  min-width: 80px;
  justify-content: space-between;
}

.country-code-dropdown {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  background-color: #f9f9f9;
  font-size: 1rem;
  cursor: pointer;
}

.country-flag {
  width: 24px;
  height: 16px;
  margin-right: 0.5rem;
  background-size: cover;
}

.country-code {
  font-size: 14px;
}

.dropdown-arrow {
  margin-left: 5px;
  transition: transform 0.2s;
}

.phone-number-input {
  flex: 1;
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
}

.country-dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1100;
  border-radius: 0.5rem;
  top: 100%;
  left: 0;
  margin-top: 5px;
}

.country-dropdown-content.show {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.country-option:hover {
  background-color: #f5f5f5;
}
.country-name {
  margin-left: 10px;
  font-size: 14px;
}

/* Processing state */
.processing-indicator {
  display: none;
  text-align: center;
  margin: 1rem auto;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Smooth Scroll Animation */
html {
  scroll-behavior: smooth;
}

/* Adjust hero section to account for video */
.hero {
  margin-top: 0;
}

.footer {
  background-color: #111;
  color: #fff;
  padding: 4rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-footer .logo-icon {
  font-size: 2rem;
}

.logo-footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links ul li {
  margin: 0;
}

.footer-links ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul a:hover {
  color: #fff;
  transform: translateX(5px);
}

img {
  max-width: 100%;
  height: auto;
}
/* Modal Separator */
.modal-separator {
  position: relative;
  text-align: center;
}

.modal-separator::before, 
.modal-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background-color: #ddd;
}

.modal-separator::before {
  left: 0;
}

.modal-separator::after {
  right: 0;
}

.modal-separator span {
  background-color: white;
  padding: 0 10px;
  position: relative;
  color: #777;
  font-size: 0.9rem;
}

/* WhatsApp Button in Modal */
.whatsapp-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.whatsapp-modal-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.whatsapp-modal-btn .whatsapp-icon {
  width: 22px;
  height: 22px;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0;
  }
  
  .riding-section {
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  
  .right-image-section,
  .left-image-section {
    flex-direction: column;
  }
  
  .riding-image {
    width: 100%;
    padding: 0;
  }
  
  .riding-text {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }
  
  .riding-text h2 {
    font-size: 2rem;
  }
  
  .riding-text p {
    font-size: 1rem;
  }

  .riding-layout {
    padding: 0 1rem;
  }

  .riding-layout img {
    height: 250px;
  }

  .riding-details h2, .text-block h2 {
    font-size: 2rem;
  }
  
  .join-movement, .explore-now {
    align-self: center;
    width: 100%;
    max-width: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links ul {
    align-items: center;
  }

  .footer-links ul a:hover {
    transform: translateX(0) scale(1.05);
  }

  .logo-footer {
    text-align: center;
    align-items: center;
  }

  .feature-layout {
    margin: 0;
    padding: 1.5rem;
    grid-template-columns: 1fr;
  }
  .image-block img {
    max-width: 100%;
  }
  .right-column .text-block .riding-details {
    margin-top: 1rem;
  }
  .pain-points-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pain-card {
    margin: 0 auto;
    max-width: 90%;
  }
  
  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
  }
  .sustainable-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    /* padding: 0 1rem; */
  }
  
  .right-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .right-content, 
  .left-content {
    width: 100%;
  }
  .modal {
    width: 95%;
    padding: 1.5rem;
  }
  
  .country-dropdown-content {
    min-width: 100%;
    left: 0;
  }
  .video-content h1 {
    font-size: 2.5rem;
  }
  
  .video-content p {
    font-size: 1rem;
  }
  .rider-container::after {
    background-position: bottom center;
    bottom: -30px; /* Might need adjustment for mobile */
  }
  .modal {
    width: 95%;
    padding: 1.5rem;
  }
  .modal .whatsapp-modal-btn {
    font-size: 0.95rem;
    padding: 0.9rem;
  }
  .modal-form {
    gap: 1.2rem;
  }
  
  .whatsapp-modal-btn {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
  
  .whatsapp-modal-btn .whatsapp-icon {
    width: 20px;
    height: 20px;
  }
  .whatsapp-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}
