/*
* HiOne Bus - Main Stylesheet
* Author: HiOne Bus
* Version: 1.0
*/

/* Base Styles */
:root {
  /* Color Variables */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary-color: #f97316;
  --secondary-dark: #ea580c;
  --secondary-light: #fb923c;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --background-dark: #0f172a;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Spacing Variables (8px system) */
  --space-xs: 0.5rem;  /* 8px */
  --space-sm: 1rem;    /* 16px */
  --space-md: 1.5rem;  /* 24px */
  --space-lg: 2rem;    /* 32px */
  --space-xl: 3rem;    /* 48px */
  --space-xxl: 4rem;   /* 64px */
  
  /* Typography Variables */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.125rem;  /* 18px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */
  --font-size-4xl: 3rem;     /* 48px */
  
  /* Other Variables */
  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius-md: 0.5rem;   /* 8px */
  --border-radius-lg: 1rem;     /* 16px */
  --transition-speed: 0.3s;
  --container-width: 1200px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-dark);
}

.highlight-text {
  color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo-text {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.logo img {
  max-height: 100%;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: var(--space-md);
}

.nav-list li a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem;
}

.nav-list li a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:last-child {
  bottom: 0;
}

/* Hero Section */
.hero-section {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url('../assets/images/hero-pattern.webp');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.1;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
}

.hero-image {
  position: absolute;
  right: 5%;
  bottom: 0;
  max-width: 50%;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10%;
  height: auto;
}

/* Section Styles */
section {
  padding: var(--space-xxl) 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-medium);
}

/* Services Section */
.services-section {
  background-color: var(--background-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.service-icon {
  margin: 0 auto var(--space-md);
}

.service-icon img {
  width: 100%;
  height: auto;
  border-radius: 10%;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--background-light);
  position: relative;
  overflow: hidden;
}

.benefits-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.benefits-content {
  flex: 1;
}

.benefits-image {
  flex: 1;
  text-align: center;
}

.benefits-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.benefit-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-light);
  opacity: 0.3;
  margin-right: var(--space-sm);
  line-height: 1;
}

.benefit-text {
  flex: 1;
}

.benefit-text h3 {
  margin-bottom: var(--space-xs);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--background-white);
  position: relative;
}

.testimonials-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-carousel {
  overflow: hidden;
}

.testimonial-slide {
  padding: var(--space-md);
}

.testimonial-content {
  background-color: var(--background-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
  margin-bottom: var(--space-sm);
}

.star {
  color: #FFD700;
  font-size: var(--font-size-lg);
  margin-right: 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: var(--space-md);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-sm);
}

.author-info h4 {
  margin-bottom: 0;
}

.author-info p {
  color: var(--text-medium);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.prev-btn, .next-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-dark);
}

.trustpilot-badge {
  text-align: center;
  margin-top: var(--space-lg);
}

.trustpilot-badge img {
  max-width: 200px;
}

/* Affiliate Section */
.affiliate-section {
  background-color: var(--background-light);
}

.affiliate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.affiliate-card {
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed) ease;
}

.affiliate-card:hover {
  transform: translateY(-8px);
}
.affiliate-image {
  text-align: center;
}

.affiliate-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10%;
}

.affiliate-content {
  padding: var(--space-lg);
}

.affiliate-content h3 {
  margin-bottom: var(--space-xs);
}

.affiliate-content p {
  margin-bottom: var(--space-md);
  color: var(--text-medium);
}

/* Contact Section */
.contact-section {
  background-color: var(--background-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
  grid-column: span 2;
  justify-self: start;
}

.info-card {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-md);
}

.info-content h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-md);
}

.info-content p {
  margin-bottom: 0;
  color: var(--text-medium);
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: white;
  padding-top: var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  max-width: 300px;
}

.footer-logo img {
  margin-bottom: var(--space-sm);
}

.footer-logo p {
  opacity: 0.7;
  font-size: var(--font-size-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-links-column h3 {
  color: white;
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column ul li {
  margin-bottom: var(--space-xs);
}

.footer-links-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed) ease;
}

.footer-links-column ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color var(--transition-speed) ease;
  overflow: hidden;
  position: relative;
}

.social-links a:hover {
  background-color: var(--primary-color);
}
.social-links a img {
  width: 205%;
  height: 205%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-speed) ease;
}

.chatbot-toggle:hover {
  background-color: var(--primary-dark);
}

.chatbot-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chatbot-box.active {
  display: flex;
}

.chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin-bottom: 0;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-xl);
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: var(--space-sm);
  overflow-y: auto;
}

.message {
  margin-bottom: var(--space-sm);
  max-width: 80%;
}

.bot-message {
  background-color: var(--background-light);
  border-radius: 15px 15px 15px 0;
  padding: var(--space-sm);
  margin-right: auto;
}

.user-message {
  background-color: var(--primary-light);
  color: white;
  border-radius: 15px 15px 0 15px;
  padding: var(--space-sm);
  margin-left: auto;
}

.chatbot-input {
  display: flex;
  padding: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.chatbot-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  margin-right: var(--space-xs);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chatbot-input button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-speed) ease;
}

.chatbot-input button:hover {
  background-color: var(--primary-dark);
}
/* Chatbot Suggestions */
.chatbot-suggestions {
  margin: var(--space-sm) 0;
  padding: var(--space-sm);
  background-color: var(--background-light);
  border-radius: var(--border-radius-lg);
}

.suggestion-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.suggestion-btn {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

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

#send-message img {
  width: 110%;
  height: 110%;
  border-radius: 20%;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero-image {
    max-width: 45%;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 150px 0 80px;
  }
  
  .hero-image {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: var(--space-xl);
  }
  
  .benefits-wrapper {
    flex-direction: column;
  }
  
  .benefits-image {
    order: -1;
    margin-bottom: var(--space-xl);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
    --font-size-xl: 1.25rem;
  }
  
  .header-content {
    height: 70px;
  }
  
  .mobile-menu-toggle {
    padding-right: 1em;
    display: block;
    z-index: 1001;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-xl);
    transition: right var(--transition-speed) ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    margin-left: 0;
    margin-bottom: var(--space-md);
  }
  
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .chatbot-box {
    width: 300px;
    right: 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: var(--space-xl) 0;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form button {
    grid-column: span 1;
  }
  
  .affiliate-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  #hero-text {
    position: static;
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }

  .image-wrapper {
    width: 100%;
    text-align: center;
  }

  .image-wrapper img {
    max-width: 90%;
    height: auto;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .card {
    width: 90%;
    margin: 10px auto;
  }

  .description-box {
    position: static;
    width: 90%;
    margin: 20px auto;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }
}
