@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
  font-family:'Inter', sans-serif;
  background: #0d131a;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  /* justify-content: space-evenly; */
}

h1 {
    font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

h3 {
  font-size: 1.6rem;          /* 你页面正文20px的话，这里≈25.6px合适 */
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-flex;       /* 关键：用基线对齐孩子 */
  align-items: baseline;      /* 关键：跟随文字基线 */
  gap: 0.6rem;
}

p {
  font-size: 20px;
  line-height: 1.5;
}

.container {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #0d131a;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ccc;
    text-decoration: underline; 
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
     /* Adjust based on header/footer height height: calc(100vh - 100px); background-color: rgba(13, 19, 26, 0.5);*/
    text-align: center;
    min-height: 70vh;
    background: #0D131A;
}

main h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

main p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #ccc;
}

.buttons {
    gap: 20px;
}

.button {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button.primary {
    border: 2px solid #007BFF;
    background-color: transparent;
    color: #007BFF;
}

.button.primary:hover {
    color: #fff;
}

.button.secondary {
    background-color: transparent;
    color: #007BFF;
}

.button.secondary:hover {
    color: #fff;
}

.button.third {
  padding: 0;
  background-color: transparent;
  color: #007BFF;
}

.button.third:hover {
  color: #fff;
}

/** start about section**/

@media (min-width: 800px) {
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background: #0D131A;
  }
  
  .content-box {
    max-width: 50%;
    padding: 2rem;
    border-radius: 8px;
  }
  
  .browser-mockup {
    border: 2px solid #444;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(74, 101, 122, 0.5); /* Border shadow */
  }
  
  .browser-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #222;
    border-bottom: 2px solid #444;
  }
  
  .browser-header .dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    margin-right: 0.5rem;
  }
  
  .browser-header .dot:nth-child(1) {
    background-color: #ff5f56;
  }
  
  .browser-header .dot:nth-child(2) {
    background-color: #ffbd2e;
  }
  
  .browser-header .dot:nth-child(3) {
    background-color: #27c93f;
  }
  
  .content {
    padding: 2rem;
  }
  
  .highlight {
    background: linear-gradient(45deg, #ff007b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-emphasis-color: transparent;
  }
}

/** end about section **/

/** start of service section **/

.services {
    background: #0D131A;
    width: 100%;
    padding: 20px;
  }

  .services.part {
    text-align: center;
    width: 100%;
    display: grid;
    justify-items: center;
  } 

  .container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.services-table {
    width: 60%;
    border-collapse: collapse;
}

.services-table td {
    padding: 20px;
    vertical-align: top;
}

.services-table .image-cell img {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
}

.services-table .text-cell {
    padding-left: 20px;
    text-align: left;
}

.text-cell .divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: 80%;           /* 只占右侧文字区 */
  margin: 1rem 0 1.5rem 0;
}

.services-table .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);    /* 稍浅灰白 */
}

.services-table .code {
    font-size: 16px;
    color: #888;
}

.image-container {
    width: 40%;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
}
/**end of service section**/


/**start feedback container**/
.satisfaction {
    text-align: center;
    margin: 0 auto;
  }
  
  .testimonial {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(74, 101, 122, 0.5);
    margin-left: 45vh;
    margin-right: 45vh;
  }
  
  .testimonial blockquote {
    font-style: italic;
    color: #ffffff;
  }
  
  .testimonial cite {
    font-style: normal;
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #dddddd;
  }
  
  .trusted-clients {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 6rem;
    margin-bottom: 4rem;
    margin-left: 20vh;
    margin-right: 20vh;
  }
  
  .trusted-clients img {
    width: var(--client-logo-width);
    height: var(--client-logo-height);
  }
  
  .trusted-clients span {
    color: #ffd700; /* Gold color for "Trusted Clients" text */
    font-weight: bold;
    font-style: italic;
    font-size: 1.5rem;
  }

/**end Feedback container**/

/**start footer section**/
footer {
    background: slategrey;
    padding: 20px 0;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 300px;
  }
  
  .footer-section {
    flex: 1;
    padding: 0 20px;
  }
  
  .footer-section h2 {
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .footer-section p, .footer-section ul, .footer-section a {
    font-size: 1em;
    color: #fff;
  }
  
  .footer-section ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 5px 0;
  }
  
  .footer-section a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
/**end footer section**/

.section-separator {
  width: 100%;
  display: block;
  height: 1px;
  background: #d0cbcb;
  margin: 10px 0;
}

/* Media Queries for Mobile Devices */
@media (max-width: 800px) {
    .body {
        min-width: 750px;
        font-size: 12px;
    }

    p {
      margin: 16px;
      font-size: 16px;
      line-height: 1.5;
    }
    
    .highlight {
      background: linear-gradient(45deg, #ff007b, #b66cff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-emphasis-color: transparent;
    }

    .container {
        width: auto;
        flex-direction: column;
        margin: 8px;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main {
        height: auto;
        padding: 40px 0;
    }

    .main h1 {
        font-size: 2rem;
    }

    .main p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .about {
      display: block;
      text-align: center;
    }

    .about h3 {
      margin: auto;
      font-size: 20px;
    }

    .content {
      flex-direction: column;
    }
    .services {
      width: auto;
      background: #0D131A;
      padding: 20px;
    }
    .services.part {
      text-align: center;
      width: auto;
      display: grid;
      justify-items: center;
    }

    .services-table,
    .image-container {
        width: 100%;
    }
    .image-container {
        margin-top: 20px;
    }

    .service-image img {
      display: none;
    }

    .button.third {
      padding: 0;
      max-width: 300px;
      margin: auto;
      background-color: transparent;
      color: #007BFF;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .satisfaction {
      text-align: center;
      margin: 20px;
    }

    .testimonial {
      margin: 1rem 0;
    }
  
    .trusted-clients {
      flex-direction: column;
      gap: 3rem;
    }
  
    .trusted-clients img {
      width: 80px;
    }

    footer {
      background: #4A657A;
      padding-top: 0;
      padding-bottom: 0;
    }

    .footer-container {
      display: grid;
      padding: 0;
      margin: 20px;
    }

    .footer-container p {
      margin-left: 0;
      margin-top: 16px;
    }

    .footer .clients {
      flex-direction: column;
      gap: 10px;
    }
    .footer-section {
      flex: 1;
      padding: 0;
    }
}

/* Media query for devices with a minimum width of 801px and maximum width of 1200px (tablets and medium-sized devices) */
@media (min-width: 801px) and (max-width: 1290px) {
  .container {
      padding: 20px;
  }
  .services-table td {
      display: table-cell;
      width: auto;
      padding: 15px;
  }
  .services-table .image-cell,
  .services-table .text-cell {
      width: auto;
      display: table-cell;
      text-align: left;
      padding-left: 20px;
  }
  .services-table .image-cell img {
      width: 120px;
      height: 120px;
  }
  .services-table .text-cell {
      padding-top: 0;
  }
}


@media (max-width: 600px) {
  .services-table td {
      display: block;
      width: 100%;
      padding: 10px;
  }
  .services-table .image-cell,
  .services-table .text-cell {
      width: 100%;
      display: block;
      text-align: center;
      padding-left: 0;
  }
  .services-table .image-cell img {
      width: 80px;
      height: 80px;
  }
  .services-table .text-cell {
      padding-top: 10px;
  }
}