/* ============================================
   SMART WAY AFRICA - ENHANCED GLOBAL STYLES
   Bootstrap 5 Compatible - Custom Styles Only
   ============================================ */

/* ==========================================
   1. GLOBAL SETTINGS
   ========================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ==========================================
   2. CUSTOM BUTTONS
   ========================================== */
.btn-primary-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}


/* ==========================================
   3. ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

/* ==========================================
   4. HERO SECTIONS
   ========================================== */
.services-hero,
.contact-hero,
.teledec-hero,
.why-hero,
.about-hero {
  background: linear-gradient(90deg, #22196e 0%, #11074e 100%);
  padding: 100px 0 80px;
  color: white;
  text-align: center;
}

.services-hero h1,
.contact-hero h1,
.teledec-hero h1,
.why-hero h1,
.teledec-hero h1,
.about-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.services-hero p,
.contact-hero p,
.why-hero p,
.teledec-hero p,
.about-hero p {
  font-size: 1.3rem;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Hero Stats Mini */
.stats-mini {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-mini {
  text-align: center;
}

.stat-mini .number {
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
}

.stat-mini .label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==========================================
   5. CARDS & CONTAINERS
   ========================================== */
   .service-card {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 25px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
      margin-bottom: 40px;
      height: 100%;
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(135, 90, 123, 0.2);
    }

    .service-content {
      padding: 30px;
    }

    .service-icon {
      font-size: 3rem;
      color: #875A7B;
      margin-bottom: 20px;
      display: inline-block;
    }

    .service-title {
      font-size: 1.8rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .service-description {
      color: #555;
      font-size: 1.05rem;
      line-height: 1.7;
      margin-bottom: 20px;
    }

    .service-features {
      list-style: none;
      padding: 0;
      margin: 20px 0;
    }

    .service-features li {
      padding: 10px 0;
      color: #555;
      font-size: 1rem;
      border-bottom: 1px solid #f0f0f0;
    }

    .service-features li:last-child {
      border-bottom: none;
    }

    .service-features i {
      color: #28a745;
      margin-right: 12px;
      font-size: 1.1rem;
    }


/* Value Cards */
.value-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Feature Box */
.feature-box {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   6. TESTIMONIALS
   ========================================== */
.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(135, 90, 123, 0.2);
  font-family: Georgia, serif;
}

/* ==========================================
   7. ICONS
   ========================================== */


.icon-large {
  font-size: 3.5rem;
  color: #875A7B;
  margin-bottom: 20px;
}

/* ==========================================
   8. LISTS
   ========================================== */

/* ==========================================
   9. SECTIONS & HEADINGS
   ========================================== */
.section-padding {
  padding: 80px 0;
}

.section-padding-small {
  padding: 60px 0;
}


/* ==========================================
   10. STATS
   ========================================== */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #875A7B;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* ==========================================
   11. FORMS
   ========================================== */
.form-control:focus {
  border-color: #875A7B;
  box-shadow: 0 0 0 0.2rem rgba(135, 90, 123, 0.25);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #875A7B;
  box-shadow: 0 0 0 3px rgba(135, 90, 123, 0.1);
}


/* ==========================================
   14. WHATSAPP BUTTON
   ========================================== */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
  color: white;
  text-decoration: none;
}

/* ==========================================
   15. CTA SECTIONS
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: #764ba2;
  padding: 18px 40px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin: 10px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: #764ba2;
  text-decoration: none;
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 18px 40px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  backdrop-filter: blur(10px);
  margin: 10px;
}

.cta-button-secondary:hover {
  background: white;
  color: #764ba2;
  text-decoration: none;
}

/* ==========================================
   16. Advantages Section
   ========================================== */
.advantages-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.advantage-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(135, 90, 123, 0.2);
}

.advantage-icon {
  font-size: 3rem;
  color: #875A7B;
  margin-bottom: 20px;
  display: block;
}

.advantage-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a2e;
  font-size: 1.3rem;
}

.advantage-text {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .advantages-section {
    padding: 60px 0;
  }

  .advantage-card {
    padding: 25px;
  }

  .advantage-icon {
    font-size: 2.5rem;
  }

  .advantage-title {
    font-size: 1.1rem;
  }
}

/* ==========================================
   17. TIMELINE
   ========================================== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #875A7B;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 20px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #875A7B;
  border-radius: 50%;
  top: 20px;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* ==========================================
   18. ACCESSIBILITY
   ========================================== */
*:focus {
  outline: 2px solid #875A7B;
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid #875A7B;
  outline-offset: 2px;
}

.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;
}

/* ==========================================
   19. RESPONSIVE DESIGN
   ========================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 95%;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 20px !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 10px !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  /* General adjustments */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Minimum touch targets */
  button, a, input, select, textarea {
    min-height: 44px;
  }

  /* Headings */
  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  .section-padding {
    padding: 60px 0;
  }

  /* Hero sections */
  .services-hero,
  .contact-hero,
  .teledec-hero,
  .about-hero {
    padding: 60px 0 40px !important;
  }

  .services-hero h1,
  .contact-hero h1,
  .teledec-hero h1,
  .about-hero h1 {
    font-size: 2rem !important;
  }

  .services-hero p,
  .contact-hero p,
  .teledec-hero p,
  .about-hero p {
    font-size: 1.1rem !important;
  }

  /* Stats */
  .stats-mini {
    gap: 30px;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .stat-mini .number {
    font-size: 2rem !important;
  }

  /* Cards */
  .service-card,
  .value-card,
  .pricing-card,
  .testimonial-card,
  .feature-box {
    margin-bottom: 20px;
    padding: 30px 20px !important;
  }

  .service-card-large .content {
    padding: 30px 20px !important;
  }

  /* Buttons */
  .btn-primary-gradient,
  .cta-button,
  .cta-button-secondary {
    padding: 12px 30px;
    font-size: 0.95rem;
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  /* Forms */
  .form-control {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* WhatsApp button */
  .whatsapp-button {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
  }


  /* Navigation */
  .nav-link {
    padding: 15px 20px !important;
    font-size: 1.1rem;
  }

  .navbar-collapse {
    background: rgba(12, 3, 83, 0.98);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
  }

  /* Testimonials */
  .testimonial-card::before {
    font-size: 3rem !important;
  }

  /* Timeline */
  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 20px !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 10px !important;
  }

  /* CTA sections */
  .cta-section h2 {
    font-size: 1.8rem !important;
  }

  .cta-section p {
    font-size: 1rem !important;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }

  /* Mobile-specific utility classes */
  .mobile-center {
    text-align: center;
  }

  .mobile-full-width {
    width: 100% !important;
  }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .services-hero,
  .contact-hero,
  .teledec-hero,
  .about-hero {
    padding: 40px 0 30px !important;
  }

  .section-padding {
    padding: 40px 0 !important;
  }
}

/* Small phones (< 375px) */
@media (max-width: 374px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  .btn-primary-gradient{
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   20. PRINT STYLES
   ========================================== */
@media print {
  .header_section,
  .footer_section,
  .whatsapp-button,
  .navbar,
  .cta-section {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .service-card,
  .testimonial-card,
  .value-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Additional styles for Why Us page */


    .value-prop-section {
      padding: 80px 0;
    }

    .value-card {
      background: white;
      padding: 40px;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      margin-bottom: 30px;
      transition: all 0.3s ease;
      border-left: 5px solid #875A7B;
      height: 100%;
    }

    .value-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .value-card .number {
      font-size: 3rem;
      font-weight: 900;
      color: #875A7B;
      margin-bottom: 15px;
    }

    .value-card h3 {
      font-size: 1.6rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .value-card p {
      color: #555;
      line-height: 1.7;
      font-size: 1.05rem;
    }

    .testimonials-section {
      padding: 80px 0;
    }


    .testimonial-text {
      font-style: italic;
      color: #555;
      line-height: 1.8;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }

    .process-section {
      background: #f8f9fa;
      padding: 80px 0;
    }

    .process-step {
      text-align: center;
      padding: 30px;
      margin-bottom: 30px;
    }

    .process-step .step-number {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 2rem;
      font-weight: 900;
      color: white;
    }

    .process-step h4 {
      font-size: 1.4rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .process-step p {
      color: #666;
      line-height: 1.6;
    }

    .guarantee-section {
      background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
      color: white;
      padding: 80px 0;
      text-align: center;
    }

    .guarantee-box {
      background: rgba(255,255,255,0.1);
      padding: 40px;
      border-radius: 15px;
      margin-bottom: 30px;
    }

    .guarantee-box .icon {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .guarantee-box h4 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 15px;
    }

    .guarantee-box p {
      opacity: 0.9;
      line-height: 1.6;
    }

    /* Enhanced styles for TÃ©lÃ©dÃ©claration page */
    .teledec-hero .badge-group {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      margin-top: 30px;
    }

    .teledec-hero .badge-item {
      background: rgba(255,255,255,0.2);
      padding: 10px 25px;
      border-radius: 50px;
      font-weight: 600;
      backdrop-filter: blur(10px);
    }

    #progressbar {
      margin-bottom: 60px;
      overflow: hidden;
      color: #455A64;
      padding-left: 0;
      margin-top: 30px;
      display: flex;
      justify-content: center;
      list-style: none;
    }

    #progressbar li {
      list-style-type: none;
      font-size: 0.9rem;
      width: 25%;
      float: left;
      position: relative;
      font-weight: 600;
      text-align: center;
    }

    #progressbar li:before {
      width: 50px;
      height: 50px;
      line-height: 50px;
      display: block;
      font-size: 1.2rem;
      color: #fff;
      background: #667eea;
      border-radius: 50%;
      margin: 0 auto 10px;
      padding: 0;
      content: counter(step);
      counter-increment: step;
    }

    #progressbar li:after {
      content: '';
      width: 100%;
      height: 3px;
      background: #667eea;
      position: absolute;
      left: -50%;
      top: 25px;
      z-index: -1;
    }

    #progressbar li:first-child:after {
      content: none;
    }

    .solution-intro {
      padding: 80px 0;
      background: white;
    }

    .solution-card {
      background: white;
      padding: 60px 40px;
      border-radius: 15px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.1);
      text-align: center;
    }

    .solution-card h2 {
      font-size: 2.5rem;
      font-weight: 900;
      color: #1a1a2e;
      margin-bottom: 20px;
    }

    .solution-card h2 span {
      color: #875A7B;
    }

    .solution-card p {
      font-size: 1.2rem;
      color: #555;
      line-height: 1.8;
      max-width: 900px;
      margin: 0 auto;
    }

    .features-section {
      padding: 80px 0;
      background: #f8f9fa;
    }

    .feature-card {
      background: white;
      padding: 40px 30px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.08);
      margin-bottom: 30px;
      text-align: center;
      transition: all 0.3s ease;
      height: 100%;
    }

    .feature-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    .feature-card i {
      font-size: 3.5rem;
      color: #875A7B;
      margin-bottom: 20px;
    }

    .feature-card h4 {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .feature-card p {
      color: #555;
      line-height: 1.6;
      font-size: 1rem;
    }

    .section-header {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-header h2 {
      font-size: 2.5rem;
      font-weight: 900;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .section-header h2 span {
      color: #875A7B;
    }

    .section-header h4 {
      font-size: 1.2rem;
      color: #555;
      font-weight: 400;
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
    }

    .benefit-item {
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 3px 15px rgba(0,0,0,0.05);
      margin-bottom: 20px;
      border-left: 4px solid #875A7B;
      transition: all 0.3s ease;
    }

    .benefit-item:hover {
      transform: translateX(10px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .benefit-item i {
      font-size: 2rem;
      color: #875A7B;
      margin-bottom: 15px;
      display: block;
    }

    .benefit-item p {
      color: #555;
      margin: 0;
      line-height: 1.6;
    }

    .product-section {
      padding: 80px 0;
      background: white;
    }

    .cta-teledec {
      background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
      padding: 80px 0;
      text-align: center;
      color: white;
    }

    .cta-teledec h2 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .cta-teledec p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      opacity: 0.9;
    }

    .cta-teledec .btn {
      background: white;
      color: #1a1a2e;
      padding: 15px 40px;
      font-size: 1.1rem;
      font-weight: 600;
      border-radius: 50px;
      text-decoration: none;
      display: inline-block;
      transition: all 0.3s ease;
    }

    .cta-teledec .btn:hover {
      transform: scale(1.05);
      box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    }

    @media (max-width: 768px) {
      .teledec-hero h1 {
        font-size: 2rem;
      }

      #progressbar {
        flex-direction: column;
      }

      #progressbar li {
        width: 100%;
        margin-bottom: 30px;
      }

      #progressbar li:after {
        display: none;
      }
    }