/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #1E1D21;
}

/* Header Styles */
header {
  background-color: #1E1D21;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

header.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

header.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  display: flex;
  justify-content: flex-start;
  gap: 80px;
  align-items: center;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.active {
  text-decoration: underline;
  font-weight: bold;
}

.nav-links li {
  min-width: 60px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  border-radius: 10px;
  background-color: white;
  bottom: -27px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%; /* Expand the underline to full width on hover */
}

.nav-links li a:hover, .nav-links li a.active::after {
  font-weight: bold;
}

.hero {
  width: 100vw;
  aspect-ratio: 8 / 5;
  max-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  overflow: hidden;
  background: url('./assets/web.jpg') no-repeat center center;
  background-size: 100% auto;
}

.hero-content {
  z-index: 1;
  position: absolute;
  left: 42px;
  top: 140px;
}

.hero-content p {
  font-size: 26px;
  width: 420px;
  margin-top: 20px;
}

.main-content {
  position: relative;
  padding: 80px 2rem 20px 2rem;
  text-align: center;
}

.info-box {
  z-index: -2;
  background-color: #1E1D21;
  color: white;
  padding: 80px 32px 32px 32px;
  max-width: 800px;
  margin: -40px auto 0; 
  transform: rotate(-4deg);
  position: relative;
  overflow: hidden;
}

.info-text {
  transform: rotate(4deg);
  text-align: left;
  padding: 15px 10px 0 10px;
}

.info-box h2 {
  font-size: 40px;
  line-height: 45px;
  margin-bottom: 1rem;
  font-weight: bold;
}

.info-box p {
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 22px;
}

.features-block, .partners {
  margin: 40px 40px 60px 40px;
}

.features-block h2, .partners h2 {
  font-size: 40px;
  margin: 20px 0;
  text-align: left;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item:nth-child(n+4) {
  grid-column: span 1;
}

.feature-item:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7) {
  grid-column-start: 1;
}

.feature-item {
  text-align: left;
}

.feature-item .icon {
  display: block;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: -10px;
}

.feature-item p {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.5;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.carousel-container {
  overflow: hidden; /* Hide extra images */
  white-space: nowrap;
}

.carousel:nth-child(2){
  display: none;
}

.carousel {
  display: inline-block;
  transition: transform 0.5s ease-in-out; /* Smooth slide effect */
}

.carousel img {
  height: 174.2px;;
}

footer {
  background-color: #1a1a1a;
  color: white;
  padding: 2rem 4rem;
  text-align: left;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-content h3 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

address a {
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.4;
}

address {
  font-size: 14px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .hero-content {
    top: 80px;
  }

  .hero-content p {
    font-size: 22px;
    width: 375px;
  }

  .info-box {
    width: 80vw;
    margin: -40px auto 0;
  }

  .info-box h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .main-content {
    padding: 40px 28px 0px 28px;
  }

  .features {
    grid-template-columns: repeat(2,  minmax(260px, 1fr));
    column-gap: 30px;
    row-gap: 16px;
  }
  .feature-item {
    justify-self: center;
    text-align: center;
    max-width: 352px;
  }

  .feature-item:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
  }

  .features-block, .partners {
    margin: 40px 0;
  }

  .features-block h2, .partners h2 {
    font-size: 36px;
    text-align: center;
  }
}

.hero-content img {
    width: 45vw;
    max-width: 700px;
    min-width: 300px;
}

@media (max-width: 1400px) {
  .carousel img {
    height: 150px;;
  }
}

@media (max-width: 1230px) {
  .carousel img {
    height: 122px;;
  }
}

@media (max-width: 961px) {
  .carousel:nth-child(2){
    display: inline-block;
  }

  .carousel-container {
    max-width: 80vw;
    margin: auto;
  }

  .carousel {
    animation: 15s slide infinite linear;
  }

  .carousel-container:hover .carousel {
    animation-play-state: paused;
  }
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: 128 / 85;
    background: url('./assets/tablet.jpg') no-repeat center center;
    background-size: 100% auto;
  }

  .hero-content {
    top: 40px;
  }

  .hero-content p {
    font-size: 22px;
    width: 345px;
    margin-top: 10px;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-content h3 {
    margin-bottom: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {

  .hero-content img {
    min-width: 250px;
  }

  .navbar {
    gap: 30px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    aspect-ratio: 375 / 298;
    background: url('./assets/mob.jpg') no-repeat center center;
    background-size: 100% auto;
  }

  .hero-content {
    top: 30px;
    left: 28px;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 24px;
    width: 270px;
    margin-top: 0px;
  }

  .main-content {
    padding: 0px 28px 0px 28px;
  }

  .features {
    row-gap: 16px;
    grid-template-columns: 1fr;
  }

  .features-block {
    margin-bottom: 15px;
  }
  .partners {
    margin-top: 0;
  }

  .feature-item h3 {
    margin-top: -10px;
    margin-bottom: 5px;
  }

  .feature-item:nth-child(3) {
    grid-column: 1;
  }

  .info-box {
    width: 100vw;
    padding: 80px 18px 32px 18px;
    transform: none;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }

  .info-box h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .info-box p {
    font-size: 14px;
    line-height: 20px;
  }

  .info-text {
    transform: none;
    font-size: 14px;
  }

  footer {
    padding: 28px;
  }

  address {
    font-size: 12px;
    line-height: 18px;
  }

  address h4 {
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .hero-content {
    top: 25px;
    left: 28px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 21px;
    width: 235px;
  }
}