/* 
* Main Style CSS
* This file contains styles for the main content of the website
*/

/* Hero Section */
.heroSection {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: #000;
  overflow: hidden;

  .heroContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .heroContent {
    position: relative;
    z-index: 2;
    width: 50%;
    color: #fff;

    h2 {
      font-size: 5rem;
      font-weight: 700;
      margin-bottom: 16px;
      line-height: 1.2;

      span {
        color: #00a0e9;
      }
    }

    p {
      font-size: 1.8rem;
      margin-bottom: 32px;
      max-width: 80%;
    }

    .ctaButton {
      display: inline-block;
      padding: 16px 32px;
      background-color: #00a0e9;
      color: #000;
      font-size: 1.6rem;
      font-weight: 700;
      border-radius: 4px;
      transition: all 0.3s ease;

      &:hover {
        background-color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }
    }
  }

  .heroImage {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      opacity: 0.8;
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    }
  }
}

/* About Section */
.aboutSection {
  background-color: #f9f9f9;

  .aboutContainer {
    display: flex;
    align-items: center;
    gap: 64px;
  }

  .aboutContent {
    flex: 1;

    h3 {
      font-size: 3.6rem;
      margin-bottom: 24px;
      line-height: 1.2;

      span {
        color: #00a0e9;
      }
    }

    p {
      margin-bottom: 16px;
      font-size: 1.6rem;
      line-height: 1.6;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .aboutImage {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

    &:hover {
      transform: translateY(-8px);
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

/* Features Section */
.featuresSection {
  background-color: #111;
  color: #fff;

  .sectionTitle {
    color: #fff;

    &::after {
      background-color: #00a0e9;
    }
  }

  .featuresGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
  }

  .featureCard {
    text-align: center;
    padding: 32px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-8px);
      background-color: rgba(255, 255, 255, 0.1);
    }

    .featureIcon {
      width: 180px;
      height: 180px;
      margin: 0 auto 24px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(160, 160, 233, 0.2);
      transition: all 0.3s ease;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: rotate(-45deg) scale(1.42);
        transition: transform 0.3s ease;
      }
    }

    &:hover .featureIcon {
      box-shadow: 0 12px 32px rgba(0, 160, 233, 0.3);
        transform: scale(1.1);
    }

    h3 {
      font-size: 2rem;
      margin-bottom: 16px;
      color: #00a0e9;
    }

    p {
      font-size: 1.5rem;
      color: #ccc;
    }
  }
}

/* Products Section */
.productsSection {
  background-color: #fff;

    .sectionTitle {
    color: #111;

    &::after {
      background-color: #111;
    }
  }

  .productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
  }

  .productCard {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);

      .productImage img {
        transform: scale(1.05);
      }
    }

    .productImage {
      width: 100%;
      height: 320px;
      overflow: hidden;
      display: block;
      text-decoration: none;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }
    }

    .productNumber {
      font-size: 2rem;
      font-weight: 900;
      color: #0068b7;
      margin-bottom: 8px;
      line-height: 1;
    }

    .productInfo {
      padding: 24px;

      h3 {
        font-size: 2rem;
        margin-bottom: 8px;
        color: #00a0e9;
        font-weight: 700;
      }

      p {
        font-size: 1.5rem;
        color: #666;
        margin-bottom: 16px;
        min-height: 72px;
        font-weight: 700;
      }

      .productPrice {
        display: block;
        font-size: 1.8rem;
        font-weight: 700;
        color: #000;
      }
    }
  }
}



/* Testimonials Section */
.testimonialsSection {
   background: linear-gradient(#0068b7, #00a0e9);

  .sectionTitle {
    color: #fff;

    &::after {
      background-color: #fff;
    }
  }

  .testimonialsContainer {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .testimonialCard {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

    &:hover {
      transform: translateX(8px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .testimonialImage {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .testimonialContent {
      p {
        font-size: 1.6rem;
        margin-bottom: 8px;
        font-style: italic;
        color: #333;
        line-height: 1.6;
      }

      .testimonialName {
        display: block;
        font-size: 1.4rem;
        font-weight: 700;
        color: #000;
      }
    }
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .heroSection {
    .heroContainer {
      flex-direction: column;
      justify-content: center;
      padding: 80px 24px;
    }

    .heroContent {
      width: 100%;
      text-align: center;
      margin-bottom: 48px;

      p {
        max-width: 100%;
      }
    }

    .heroImage {
      position: absolute;
      width: 100%;
      height: 100%;

      &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
      }
    }
  }

  .aboutSection {
    .aboutContainer {
      flex-direction: column-reverse;
      gap: 32px;
    }
  }
}

@media (max-width: 768px) {
  .heroSection {
    .heroContent {
      h2 {
        font-size: 3.6rem;
      }
    }
  }

  .productsGrid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .featuresGrid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .featureCard .featureIcon {
    width: 100px;
    height: 100px;
  }

  .testimonialCard {
    flex-direction: column;
    text-align: center;

    .testimonialImage {
      margin-bottom: 16px;
    }
  }
}

@media (max-width: 480px) {
  .heroSection {
    .heroContent {
      h2 {
        font-size: 3rem;
      }

      p {
        font-size: 1.6rem;
      }

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

  .productsGrid,
  .featuresGrid {
    grid-template-columns: 1fr;
  }
}