/*
Theme Name: Cargo
Theme URI: http://example.com
Author: Your Name
Description: Custom Cargo theme.
Version: 1.0
Text Domain: cargo
*/

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #2f2626;
  --text-main: #ffffff;
  --accent-orange: #ff5a09;
  --accent-blue: #8aaae5;
  --btn-hover: #e53935;
}

html,
body {
  font-family: "Plus Jakarta Sans";
  background-color: var(--text-main);
  overflow-x: visible;
  width: 100%;
}
@media screen and (max-width: 767px) {
  html,
  body {
    overflow-x: hidden; 
    position: relative; 
  }
}

a{
	color:unset;
}
/* for btns */
.btn {
  background: var(--accent-orange);
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition-duration: 500ms;
  padding: 14px 24px;
  letter-spacing: 0.5px;
}
.btn:hover {
  background: var(--btn-hover);
}

.nav {
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition:
   color 300ms ease,
   font-weight 300ms ease;
}

.nav:hover {
  color: #ff5a09;
  font-weight: 600;
}

/* testimonial */
.testi-slider {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
}

/* each slide overlaps, but only one shows at a time */
.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(60px);
  will-change: opacity, transform, visibility;

  animation: testiCycle 18s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-slide:nth-child(1) {
  animation-delay: 0s;
}
.testi-slide:nth-child(2) {
  animation-delay: 6s;
}
.testi-slide:nth-child(3) {
  animation-delay: 12s;
}

/* Avatar style */
.testi-avatar {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  overflow: hidden;
  background: #e5e7eb;
  border: 10px solid #f1f5f9;
}

/* Quote typography */
.testi-quote {
  font-size: 18px;
  line-height: 1.75; /* your 1.3 was too tight */
  color: #5b5f7a;
  max-width: 620px;
}

@keyframes testiCycle {
  /* hidden */
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
  }

  /* fade in */
  6% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* stay visible */
  30% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* fade out */
  36% {
    opacity: 0;
    visibility: visible;
    transform: translateY(-12px);
  }

  /* fully hidden to avoid mixing */
  37% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
  }

  /* remain hidden */
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .testi-slider {
    min-height: 360px;
  }

  .testi-avatar {
    width: 140px;
    height: 140px;
    border-width: 8px;
  }

  .testi-quote {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testi-slide {
    animation: none;
    opacity: 1;
    visibility: visible;
    position: static;
    transform: none;
    pointer-events: auto;
  }
  .testi-slider {
    min-height: auto;
  }
}


/* selection  */
@keyframes select-fade {
  from {
    background-color: transparent;
    color: inherit;
  }
  to {
    background-color: rgba(255, 90, 9, 0.9);
    color: #ffffff;
  }
}
::selection {
  animation: select-fade 0.5s ease-out forwards;
  background-color: rgba(255, 90, 9, 0.9);
  color: #ffffff;            
}

/* For Firefox support */
::-moz-selection {
  animation: select-fade 0.5s ease-out forwards;
  background-color: rgba(255, 90, 9, 0.9);
  color: #ffffff;        
}
