/* Reset and base styles */

@font-face {
  font-family: 'DancingScript';
  src: url('../assets/fonts/dancing_script_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC-Light, Microsoft YaHei;
  }
  
  :root {
    --navbar-on: rgba(56, 149, 255, 1);
    --navbar-color: rgba(51, 51, 51, 1);
    --primary: #0fdcb5;
    --primary-light: #e6faf7;
    --primary-dark: #0ab292;
    --secondary: #3b82f6;
    --dark: #1f2937;
    --darker: #111827;
    --light: #D0D0D0;
    --gray: #8e8e8e;
    --border-radius: 8px;
    --feature-blue-bg: rgba(239, 249, 255, 1);
    --feature-green-bg: rgba(233, 255, 252, 1);
  }
  
  body {
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
  }
  
  /* Container with 1920px max-width */
  .container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
  }
  
  /* Header styles */
  header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%  ;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-left: 0.5rem;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    margin-right: 10rem;
  }
  
  .nav-menu li {
    margin-left: 2.5rem;
  }
  
  .nav-menu a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
  }
  
  .nav-menu a:hover {
    color: var(--navbar-on);
  }
  
  .nav-menu a.active {
    color: var(--navbar-color);
    font-weight: bold;
  }
  
  .nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--navbar-on);
    border-radius: 5px;
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
  }

  .scroll-header{
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  /* Hero section */
  .hero {
    position: relative;
    overflow: hidden;
  }
  
  .hero .hero-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url(../assets/images/header_bg.png) right top no-repeat;
    background-size: contain;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 45rem;
  }
  
  .hero-text {
    flex: 1;
    max-width: 50%;
  }
  
  .hero-subtitle {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
  }
  
  .hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
    width: 80%;
  }
  
  .hero-image {
    position: absolute;
    z-index: 2;
    right: 50px;
    width: 40%;
    bottom: 2%;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
  
  /* Why Choose section */
  .why-choose {
    padding: 5rem 0;
    background-color: #fff;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    font-weight: 500;
    text-align: left; /* Changed from center to left as requested */
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .feature-card {
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
  }
  
  /* Specific background colors for feature cards as requested */
  .blue-bg {
    background-color: rgba(239, 249, 255, 1);
  }
  
  .green-bg {
    background-color: rgba(233, 255, 252, 1);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .feature-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .feature-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--navbar-on);
  }
  
  .feature-description {
    color: var(--gray);
    font-size: 0.95rem;
  }
  
  /* Info cards section */
  .info-cards {
    padding: 8rem 0 5rem;
    background-color: var(--primary);
  }
  
  .info-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .info-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .info-card-icon {
    width: 102px;
    height: 102px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    position: absolute;
    left: 45px; /* Positioned 45px from the left as requested */
    top: -51px; /* Positioned to have half of the icon above the card */
  }
  
  .info-card:nth-child(1) .info-card-icon {
    background-color: var(--primary);
  }
  
  .info-card:nth-child(2) .info-card-icon {
    background-color: #f59e0b;
  }
  
  .info-card:nth-child(3) .info-card-icon {
    background-color: var(--secondary);
  }
  
  .info-card-title {
    font-size: 1.5rem;
    margin-top: 3rem; /* Added margin-top to account for the icon positioning */
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
  }
  
  .info-card-text {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .product-item {
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
  }
  
  .product-description {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 0.25rem;
  }
  
  /* Footer */
  footer {
    background-color: var(--darker);
    color: white;
    padding: 4rem 0 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-logo-column {
    display: flex;
    align-items: center;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
  }
  
  .footer-logo svg {
    height: 40px;
    width: 40px;
  }
  
  .footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-left: 0.5rem;
  }
  
  .footer-middle {
    text-align: left;
    color: var(--gray);
  }
  
  .footer-contact {
    text-align: right;
  }
  
  .footer-contact-info {
    display: inline-block;
    text-align: left;
  }
  
  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--gray);
  }
  
  .contact-item i {
    margin-right: 0.5rem;
    color: var(--primary);
  }
  
  .copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
  }

  .round{
    border-radius: 50%;
    color: var(--navbar-on);
    margin-right: 0.5rem;
    font-style: normal;
    line-height: 2rem;
  }
  
  .margin-bottom-sm {
    margin-bottom: 1rem;
  }

/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -100%;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.3rem;
  font-size: 1.3rem;
  color: #fff;
  border-radius: 0.2rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  visibility: hidden;
}

.show-scrolltop {
  bottom: 1.5rem;
  visibility: visible;
}

  
  /* Responsive styles */
  @media (max-width: 1300px) {
    .hero-title {
      font-size: 2.5rem;
    }
  
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .hero-image{
      width: 50%;
    }
    .hero-content{
      height: 45rem;
    }

    .hero .hero-content::before{
      background-size: contain;
    }
  }

  @media (max-width: 1200px) {
    .hero-title {
      font-size: 2.5rem;
    }
  
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .hero-content{
      height: 40rem;
    }

    .hero .hero-content::before{
      background-size: contain;
    }
  }
  
  @media (max-width: 992px) {
    .hero {
      background: #fff;
      padding: 0rem 0 3rem;
    }
  
    .hero::before {
      display: none;
    }
  
    .hero-text {
      margin-top: 8rem;
      max-width: 100%;
      text-align: center;
      margin-bottom: 3rem;
      position: relative;
      z-index: 8;
    }

    .hero .hero-content{
      height: 40rem;
      background-size: cover;
    }

    .hero .hero-content::before{
      background-size: contain;
    }

    .hero-description{
      width: 100%;
    }
  
    .info-cards-container {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .footer-logo-column {
      justify-content: center;
    }
  
    .footer-middle,
    .footer-contact {
      text-align: center;
      color: var(--gray);
    }
  
    .footer-contact-info {
      margin: 0 auto;
      text-align: center;
    }
    .contact-item{
      display: flow-root;
    }
    .hero-image{
      width: 55%;
    }
  }
  
  @media (max-width: 768px) {
    .nav-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: white;
      flex-direction: column;
      padding: 1rem 0;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
  
    .nav-menu.active {
      display: flex;
    }
  
    .nav-menu li {
      margin: 0;
      padding: 1rem 2rem;
    }
  
    .mobile-menu-btn {
      display: block;
    }
  
    .features-grid {
      grid-template-columns: 1fr;
    }
  
    .section-title {
      text-align: center; /* Center the title on mobile for better appearance */
    }

    .hero-image{
      width: 70%;
    }
  }
  
  @media (max-width: 576px) {
    .header-container {
      padding: 1rem;
    }
  
    .container {
      padding: 0 1rem;
    }
  
    .hero-subtitle {
      font-size: 2.2rem;
    }
  
    .hero-title {
      font-size: 2rem;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .info-card-icon {
      left: 30px; /* Adjust position for smaller screens */
    }

    .hero-image{
      width: 75%;
    }
  }
  
  