/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h2{
	font-size:60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: white;
  color: #333;
  scroll-behavior: smooth;
}

.container, .home {
  width: 90%;
  max-width: 1000px;
  margin-left: 5vw;
  padding: 20px 0;
}

/* 🔹 Navigation */
nav {
  background-color: #193248;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: auto;
  margin: auto;
  padding: 15px 50px;
}

.logo img {
	width:110px;
	height:80px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 60px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size:17px;
  font-weight: 800;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d0f0eb;
}

/* 🔹 Header Section */
header {
  background-color: #009688;
  background-image: url("fresh tech website.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: ;
  padding: 160px 20px;
  position: relative;
}

header h1 {
  font-size: 50px;
}

header p {
  font-size: 20px;
  margin-top: 10px;
}

.home {
	align-items: left;
	width:50%;
}

/*About us*/
.allabout {
	margin:5vw 5vw;
	
}

.vm {
	display:flex;
	align-items: center;
	margin-top:70px;
}

.aboutus {
	margin-right:10px;
}

.aboutus h2{
	font-size:60px;
}

.aboutus p{
	font-size:20px;
}

.vision,.mission {
	width:50%;
	text-align:center;
	background-color:#0d1b4c;
	margin:0 60px;
	border-radius: 20px;
	padding:20px;
	color:white;
	
}

.vision h3,.mission h3{
	font-size:25px;
	margin-top:20px;
}

.vision p,.mission p{
	font-size:17px;
	padding:10px;
}

/* 🔹 What we do */
#services {
  background-color: #0d1b4c; /* 深蓝色背景 */
  color: white;
  text-align: center;
  padding: 80px 20px;
}

#services h2 {
	color:white;
}

#services .intro {
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  color: #e0e0e0;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin:0 10vw;
}

.service-cards ul {
	text-align:left;
	list-style-type: disc;
}

.service-cards .card:last-child {
  width: 600px; /* 或你想要的宽度 */
}

.card {
  background-color: white;
  color: #0d1b4c;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 4px 4px 0px #cfd8dc;
  width: 300px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.card p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

.card a {
  color: #d50000;
  text-decoration: none;
  font-weight: bold;
}

/* Contact Us */
#contact {
  background-color: #f2f2f2;
  padding: 80px 20px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px 30px;
  min-width: 280px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p,
.contact-info address {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

.contact-info address {
  font-style: normal;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 100%;
  min-height: 300px;
  margin:50px;
  padding-top:30px;
  padding-left:200px;
}

/* 🔹 Sections */
section {
  scroll-margin-top: 120px; /* 或者等于你的 nav 高度 */
}
section h2 {
  color: #0d1b4c;
  margin-bottom: 20px;
}

section ul {
  list-style: none;
  padding-left: 20px;
}

section ul li {
  margin-bottom: 10px;
}

#contact p {
  margin-bottom: 10px;
}

/* 🔹 Footer */
footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #666;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Header 动画 */
header h1, header p {
  animation: fadeSlideUp 1.2s ease-out forwards;
  opacity: 0;
}

header h1 {
  animation-delay: 0.3s;
}

header p {
  animation-delay: 0.6s;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Nav Link hover */
.nav-links a:hover {
  transform: scale(1.08);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 🔹 Card Hover 动画强化 */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  /* 导航栏 */
  .nav-container {
    
    align-items: flex-start;
  }

  .nav-links {
    gap: 15px;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links li {
    margin-left: 0;
  }

  .logo {
    margin-bottom: 10px;
  }

  /* Header Section 字体缩小 */
  header h1 {
    font-size: 50px;
  }

  header p {
    font-size: 18px;
  }

  /* About Us */
  .vm {
    flex-direction: column;
    margin-top: 40px;
  }

  .vision,
  .mission {
    width: 100%;
    margin: 10px 0;
  }

  /* Services 区块 */
  .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  /* Contact 区块 */
  .contact-wrapper {
    flex-direction: column;
    padding: 20px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-map {
    margin: 0;
    padding: 0;
    height: 250px;
    width: 100%;
  }

  .contact-map iframe {
    width: 100%;
    height: 100%;
  }
}

