/* Reset & base */
/* Reset all default margins and padding, set box-sizing to border-box for consistent sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enable vertical scrolling and prevent horizontal jumps */
html {
  overflow-y: scroll;
}

/* Base body styles - font, colors, and flex layout for footer positioning */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  background: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content area should expand to push footer to bottom */
main {
  flex: 1;
}

/* Container keeps content centered and spaced */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header & Nav */
/* Header background color */
header {
  background: #2196F3;
  color: white;
}

/* Navigation container layout */
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  flex-wrap: wrap;
}

/* Logo styling */
.logo {
  max-width: 120px;
  height: auto;
  display: block;
}

/* Nav links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Individual navigation link styles */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  white-space: nowrap;
  border-radius: 5px;
  transition: opacity 0.3s;
}

/* Navigation link hover effects */
.nav-links a:hover {
  background-color: #575757;
  text-decoration: none;
  color: white;
  opacity: 0.8;
}

/* Hero Section */
.hero {
  background: white;
  color: #2c3e50;
  padding: 4rem 0;
  text-align: center;
}

/* Hero heading styles */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Hero paragraph styles */
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

/* Hero button spacing */
.hero .btn {
  margin-top: 1rem;
}

/* Headings */
/* Main heading styles */
h1 {
  color: #2c3e50; /* darkest, most dominant */
  margin-bottom: 1rem;
}

/* Subheading styles */
h2, h3, h4 {
  color: #34495e; /* slightly lighter to keep h1 dominant */
  margin-bottom: 1rem;
}

/* Section title styling for consistent section headers */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

/* Section padding for consistent spacing */
section {
  padding: 3rem 1rem;
}

/* Divider between sections */
.section-divider {
  border: none;
  border-top: 2px solid #575757;
  width: 60px;
  margin: 2rem auto;
}

/* Services page */
/* Remove default list styling for services list items */
.services-list-item {
  list-style: none;
}

/* Services Section */
/* Grid layout for service cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Individual service card styling */
.service-card {
  flex: 1 1 calc(25% - 2rem);
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Service card hover effects */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Service icon container styling */
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2196F3 0%, #0d8aee 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

/* Features list styling within service cards */
.features {
  flex-grow: 1;
  margin-top: 0.5rem;
}

/* Button positioning within service cards */
.service-card .btn {
  margin-top: auto;
}

/* Responsive adjustments */
/* Tablet view - 2 cards per row */
@media (max-width: 900px) {
  .service-card {
    flex: 1 1 calc(50% - 2rem);
  }
}

/* Mobile view - 1 card per row */
@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
}

/* Why Choose Section */
/* Background color for why choose section */
.why-choose {
  background: #f8f9fa;
  padding: 4rem 0;
}

/* Individual feature item styling */
.feature-item {
  text-align: center;
  padding: 2rem;
}

/* Feature item heading styles */
.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

/* Grid layout for features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive adjustments for features grid */
/* Tablet view - 2 features per row */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view - 1 feature per row */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Process section */
/* Process section padding */
.process {
  padding: 4rem 0;
}

/* Process introduction text styling */
.process-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #575757;
}

/* Individual process step layout */
.process-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

/* Reverse layout for alternating process steps */
.process-step.reverse {
  flex-direction: row-reverse;
}

/* Fade-in animation base state */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Initial position for fade-in elements (left side) */
.process-step.fade-in {
  transform: translateX(-80px);
}

/* Initial position for reverse fade-in elements (right side) */
.process-step.reverse.fade-in {
  transform: translateX(80px);
}

/* Visible state for fade-in elements */
.fade-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation delay classes for staggered animations */
.delay-1 { transition-delay: 0s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.6s; }

/* Content container for process steps */
.step-content {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  width: 48%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Step content heading styles */
.step-content h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Step content paragraph styles */
.step-content p {
  color: #575757;
  font-size: 1rem;
}

/* Step icon styling */
.step-icon {
  font-size: 2.5rem;
  color: #2196F3;
}

/* Mobile adjustments for process steps */
@media (max-width: 768px) {
  .process-step, .process-step.reverse {
    flex-direction: column;
    text-align: center;
  }

  .step-content {
    width: 100%;
    margin-bottom: 1rem;
  }

  .step-icon {
    margin-bottom: 1rem;
  }
}

/* Timeline container */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  border-left: 3px solid #2196F3;
}

/* Timeline heading styles */
.timeline h2 {
  text-align: center;
  color: #2196F3;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 3rem;
}

/* Timeline item marker */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: -0.5rem;
  width: 14px;
  height: 14px;
  background: #2196F3;
  border-radius: 50%;
}

/* Icon circle for timeline */
.timeline-icon {
  position: absolute;
  top: 0;
  left: -2.4rem;
  background: #2196F3;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-size: 1rem;
  box-shadow: 0 0 0 4px #fff;
}

/* Timeline content styling */
.timeline-content {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Timeline date styling */
.timeline-date {
  font-size: 0.85rem;
  color: #2196F3;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

/* Timeline content heading styles */
.timeline-content h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  color: #333;
}

/* Timeline content paragraph styles */
.timeline-content p {
  margin: 0;
  color: #575757;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive timeline adjustments */
@media (max-width: 600px) {
  .timeline {
    border-left: none;
  }
  .timeline-item {
    padding-left: 2.5rem;
  }
  .timeline-icon {
    left: -2rem;
  }
}

/* CTA section */
.cta {
  background: white;
  color: #2c3e50;
  padding: 4rem 0;
  text-align: center;
}

/* CTA heading styles */
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

/* CTA paragraph styles */
.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #575757;
}

/* CTA button styling */
.cta .btn {
  background: linear-gradient(135deg, #2196F3 0%, #0d8aee 100%);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CTA button hover effects */
.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

/* Contact page */
/* Contact details section styling */
#contact-details {
  text-align: center;
  align-content: center;
}

/* Contact form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Contact form input and textarea styling */
.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus states for form elements */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2196F3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
  outline: none;
}

/* Textarea specific styling */
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Submit button alignment */
.contact-form button[type="submit"] {
  align-self: center;
  width: auto;
}

/* Placeholder text styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* Error state for form fields */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Success message styling */
.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Mobile adjustments for contact form */
@media (max-width: 600px) {
  .contact-form {
    gap: 0.8rem;
  }
}

/* Footer */
/* Footer background and text color */
footer {
  background: #2196F3;
  color: white;
  padding: 15px;
}

/* Footer link styles */
footer a {
  color: white;
  text-decoration: none;
}

/* Footer link hover effects */
footer a:hover {
  text-decoration: underline;
  background-color: #575757;
}

/* Contact link hover effect */
.contact-link:hover {
  opacity: 0.8;
}

/* Button styling */
/* Base button styles */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #2196F3 0%, #0d8aee 100%);
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Scroll to Top Button */
/* Scroll to top button positioning and styling */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Positioned to the right as requested */
  z-index: 1000;
  background: #2196F3;
  color: white;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

/* Show state for scroll to top button */
#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Scroll to top button hover effect */
#scrollToTopBtn:hover {
  transform: translateY(-3px);
  background: #0d8aee;
}

/* Chatbase AI widget positioning */
/* Target the actual widget container that gets created by the script */
#chatbase-chat-widget {
  position: fixed !important;
  bottom: 30px !important;
  right: 85px !important; /* Positioned to the left of the scroll button */
  z-index: 999 !important; /* Slightly lower than scroll button */
}

/* Alternative selectors if the above doesn't work */
.chatbase-chat-widget, 
[class*="chatbase"],
[class*="chatbot"] {
  position: fixed !important;
  bottom: 30px !important;
  right: 85px !important;
  z-index: 999 !important;
}

/* Mobile adjustments */
/* Tablet and mobile adjustments for scroll button and chat widget */
@media (max-width: 768px) {
  #scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  #chatbase-chat-widget,
  .chatbase-chat-widget, 
  [class*="chatbase"],
  [class*="chatbot"] {
    right: 70px !important;
    bottom: 20px !important;
  }
}

/* Extra small device adjustments */
@media (max-width: 480px) {
  #scrollToTopBtn {
    bottom: 15px;
    right: 15px;
  }
  
  #chatbase-chat-widget,
  .chatbase-chat-widget, 
  [class*="chatbase"],
  [class*="chatbot"] {
    right: 65px !important;
    bottom: 15px !important;
  }
}

/* Wrapper for each Order Form */
.order-form {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Order form layout */
.order-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Order form heading styles */
.order-form h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

/* Order form input styling */
.order-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Order form input focus state */
.order-form input:focus {
  border-color: #2196F3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
  outline: none;
}

/* Order form button alignment */
.order-form .btn {
  align-self: flex-start;
}

/* Narrow container for focused content */
.narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* Values list styling (removes default list styling) */
.values-list {
  list-style: none;
  padding: 0;
}

/* Values list item spacing */
.values-list li {
  margin-bottom: 1rem;
}

/* Container paragraph spacing */
.container p {
  margin-bottom: 1rem;
}

/* Container heading spacing */
.container h2 {
  margin-top: 2rem;
}