/* Modern Style for PESHK Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Modern Color Palette */
:root {
  --primary-color: #2E8B57;
  --primary-light: #3CB371;
  --primary-color-30: #2E8B5730;
  --primary-light-30: #3CB37130;
  --secondary-color: #FF6B35;
  --accent-color: #20B2AA;
  --text-primary: #2C3E50;
  --text-primary-reverse: #e9e9e9;
  --text-secondary: #6C757D;
  --text-secondary-reverse: #a0adb8;
  --text-light: #95A5A6;
  --background-light: #F8F9FA;
  --background-white: #FFFFFF;
  --border-color: #E9ECEF;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius:24px;
  --transition: all 0.3s ease;
  --brand: var(--primary-color);
  font-family: Tahoma, Helvetica, Arial, "Microsoft Yahei","微软雅黑", STXihei, "华文细黑", sans-serif;
}
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* hides anything spilling horizontally */
}
body {
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1.reversed-color, h2.reversed-color, h3.reversed-color, h4.reversed-color, h5.reversed-color, h6.reversed-color{
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary-reverse) !important;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p.reversed-color {
  color: white !important;
}


/* Scroll arrows styling */
.scroll-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:2; width:56px; height:56px; border-radius:50%;
  border:none; background: var(--brand); color:#fff; font-size:1.6rem;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.15);
  transition:background .2s ease;
}
.scroll-btn:hover { background:#0a6b45; }
.scroll-btn.left { left:10px; }
.scroll-btn.right { right:10px; }
.scroll-btn.hidden { display:none; }

/* Modern Header */
#header {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e5e5e5;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

#header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

#logo {
  height: 50px;
  transition: var(--transition);
}

#logo:hover {
  transform: scale(1.05);
}

.hero-section-600px {
  height: 600px !important;

}

.highlight-background {
  background: yellow;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  z-index: 1;
  overflow: hidden;
  filter: blur(3px);
}

.hero-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.8) 0%, rgba(60, 179, 113, 0.6) 50%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 700px;
  margin: 1.5rem auto;
}

.hero-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features-warp{
  width: fit-content;
  margin: auto;
}

.feature-item {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 1.5rem;
}

.feature-item a{
  color: var(--text-primary-reverse);
  text-decoration: none;
  transition: var(--transition);
}

.feature-item i {
  font-size: 1.2rem;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out 0.4s both;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

/* Product Showcase */
.product-showcase {
  padding: 4rem 0;
  background: var(--background-white);
}

.showcase-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}
/* Horizontal scroll container */
.product-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox hide scrollbar */
}

.product-row::-webkit-scrollbar {
  display: none; /* Chrome hide scrollbar */
}

.product-row::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}


/* Product card style */
.product-card {
  background: linear-gradient(0deg, var(--primary-light-30), var(--primary-light));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  padding: 1rem;
  min-width: 25%;
  text-decoration: none; color: inherit;
}

/* Container for scroll buttons + row */
.product-container .product-title{
  padding-top: 10px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4285914286;
  letter-spacing: -0.016em;
  margin: 0;
}
/* Container for scroll buttons + row */
.product-container {
  position: relative;
  padding: 2rem;
}

.product-overview .product-container {
  max-width: 1400px;
  margin: auto;

}
.compact .product-card {
  min-width: 10%;
}

.product-card img {
    height: 300px;
    display: block;
    margin: auto;
    max-height: 400px;
    object-fit: scale-down;
    width: -webkit-fill-available;
}

.product-card:hover {
  transform: translateY(-5px);
}

.apple-style .product-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding-top: 2rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.promo-card {
  border-radius: 10px;
  padding: 2.5rem;
  color: #fff;
  background: #2e8b57; /* default green */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-6px);
}

.promo-card.teal {
  background: #20b2aaaa;
}
.promo-card.teal:hover {
  background: #20b2aa;
}

.promo-card.green {
  background: #3cb371aa;
}

.promo-card.green:hover {
  background: #3cb371;
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1 1 250px;
  min-width: 240px;
}

.promo-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promo-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #2e8b57;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background: #f0f0f0;
}

.button-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.promo-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.feature-icon i {
  color: var(--background-white);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Related Services */
.related-services {
  padding: 4rem 0;
  background: var(--background-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-info {
  padding: 1.5rem;
}

.service-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Statistics Section */
.statistics-section {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--background-white);
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.statistic-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.statistic-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.statistic-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--background-white);
  margin-bottom: 1rem;
  display: block;
}

.statistic-card h3 {
  color: var(--background-white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.statistic-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Company Overview */
.company-overview {
  padding: 4rem 0;
  background: var(--background-white);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.overview-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.overview-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.overview-card:hover .overview-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.overview-icon i {
  color: var(--background-white);
  font-size: 2rem;
}

.overview-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.overview-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Services Overview */
.services-overview {
  padding: 4rem 0;
  background: var(--background-light);
}

.services-overview .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.services-overview .service-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.services-overview .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.services-overview .service-card:hover .service-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.service-icon i {
  color: var(--background-white);
  font-size: 1.8rem;
}

.services-overview .service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.services-overview .service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Company Values */
.company-values {
  padding: 4rem 0;
  background: var(--background-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.value-icon i {
  color: var(--background-white);
  font-size: 1.8rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Company Overview Content */
.overview-content {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 3rem;
  text-align: left;
}

.overview-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Certificates Section */
.certificates-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.certificate-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.certificate-card:hover img {
  transform: scale(1.02);
}

.certificate-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.certificate-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Company Structure Section */
.company-structure-section {
  padding: 4rem 0;
  background: var(--background-white);
}

.structure-image {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 3rem;
  text-align: center;
}

.structure-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.structure-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* Contact Information */
.contact-info-section {
  padding: 4rem 0;
  background: var(--background-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--primary-light);
  transform: scale(1.1);
}

.contact-icon i {
  color: var(--background-white);
  font-size: 1.8rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary-light);
}

/* Contact Form */
.contact-form-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 3rem;
}

.contact-form {
  background: var(--background-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}



.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
/* Mobile first: stack everything in one column */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  
  .form-group input,
  .form-group select,
  .form-group textarea{ max-width: 60vw;
  }
}

/* Optional: slightly wider gaps on large screens */
@media (min-width: 1024px) {
  .form-container { padding: 2rem; }
  .form-grid { gap: 1.25rem; }
}

/* Map Section */
.map-section {
  padding: 4rem 0;
  background: var(--background-white);
}

.map-container {
  margin-top: 3rem;
}

.google-maps {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Footer */
#footer {
  background: var(--text-primary);
  color: var(--background-white);
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--background-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-light);
}
 /* grid inside existing footer-section */
  .footer-links-grid{
    display:grid;
    grid-template-columns: repeat(3,minmax(180px,1fr));
    gap:16px 24px;
    margin-top:8px;
  }
  .footer-subtitle{
    font-size:14px;
    font-weight:700;
    margin:0 0 6px;
    display:flex; align-items:center; gap:8px;
  }
  .footer-list{margin:0; padding:0; list-style:none}
  .footer-list li{margin:4px 0}
  .footer-list a{text-decoration:none}
  .footer-list a:hover{text-decoration:underline}
  /* small tweak to contact icons for alignment */
  .contact-info .icon{width:18px; text-align:center; margin-right:6px}
  /* responsive */
  @media (max-width: 900px){
    .footer-links-grid{grid-template-columns: 1fr 1fr}
  }
  @media (max-width: 600px){
    .footer-links-grid{grid-template-columns: 1fr}
  }

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}
.contact-info li a{
  color: var(--text-light);
  text-decoration: none;
}

.contact-info .icon {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--text-secondary);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  
  .product-overview-grid{
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-container {
    padding: 0 1rem;
  }
  
  .showcase-container {
    padding: 0 1rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 6px 20px;
  transition: var(--transition);
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* Product Overview */
.product-overview {
  padding: 2rem 0;
  background: var(--background-white);
}

.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product-overview-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-overview-card img {
  width: 100%;
  height: 700px;
  border-radius: 5%;
  object-fit: scale-down;
  transition: var(--transition);
}

.compact .product-overview-card img {
  height: 100%;
  max-height: 300px;
}


.product-overview-card:hover img {
  transform: scale(1.05);
}

.product-overview-info {
}

.product-overview-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-overview-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.view-details-btn {
  width: 100%;
  text-align: center;
}

/* Product Details Section */
.product-details-section {
  padding: 4rem 0 0 0;
  background: var(--background-light);
}

.product-details-section .showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

a.index-link{
  color: var(--primary-color);
  transition: var(--transition);
}

.product-detail-item {
  margin-bottom: 4rem;
}

.product-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-detail-header h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-detail-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.main-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.main-image:hover img {
  transform: scale(1.02);
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumbnail-images img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail-images img:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.product-detail-info {
  padding: 2rem;
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.product-detail-info h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.product-detail-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.product-detail-info ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.product-detail-info ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Smooth Navigation */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Product Navigation Animation */
.product-detail-item {
  position: relative;
}

.product-detail-item::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}

.product-detail-item.visible::before {
  opacity: 1;
}

/* Responsive Design for Product Details */
@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .apple-style .product-collection-grid {
    grid-template-columns: 1fr;
  }
  
  .thumbnail-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
}

/* Compact Features Section */
.features-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item-compact {
  display: flex;
  align-items: center;
  background: var(--background-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  gap: 1rem;
}

.feature-item-compact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.feature-icon-compact {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-size: 1.2rem;
}

.feature-content-compact {
  flex: 1;
}

.feature-content-compact h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.feature-content-compact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Responsive for compact features */
@media (max-width: 768px) {
  .features-grid-compact {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item-compact {
    padding: 1rem;
  }
  
  .feature-icon-compact {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .feature-content-compact h3 {
    font-size: 0.95rem;
  }
  
  .feature-content-compact p {
    font-size: 0.85rem;
  }
}

/* Selective Image Loading Animation */
.thumbnail-images img,
.product-overview-card img,
.main-image img,
.hero-image img,
.certificate-card img,
.structure-image img {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.thumbnail-images img.loaded,
.product-overview-card img.loaded,
.main-image img.loaded,
.hero-image img.loaded,
.certificate-card img.loaded,
.structure-image img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Ensure animated images are visible after a delay if JavaScript fails */
.thumbnail-images img,
.product-overview-card img,
.main-image img,
.hero-image img,
.certificate-card img,
.structure-image img {
  animation: imageFallback 1s ease 1s forwards;
}

@keyframes imageFallback {
  to {
    opacity: 1;
    transform: scale(1);
  }
} 






/* Modern Navigation */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 999;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.2s ease;
}

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

/* Dropdowns */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  min-width: 200px;
  z-index: 998;
  list-style: none;
}

.dropdown-menu li a {
  padding: 0.75rem 1.5rem;
  color: #333;
  display: block;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: #0071e3;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1d1d1f;
}

@media (max-width: 768px) {
  .nav-links{
    align-items: start;
  }
  .scroll-btn{
    display:none;
  }
  .main-nav {
    display: none;             /* hide by default */
    flex-direction: column;
    background: var(--background-white, #fff);
    position: absolute;
    top: 60px; /* adjust to header height */
    left: 0;
    width: 100%;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 999;
    max-height: calc(100dvh - var(--header-height, 60px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum */
  }
  .main-nav.active { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0 16px;
  }

  .dropdown-menu{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0 16px;
    border: 0px solid #eee;
    box-shadow: none;
    background: transparent;


  }

  .mobile-menu-toggle {
    display: flex;
  }

  .product-card {
    min-width: 100%;
  }
  /* Optional: you can add mobile nav toggle JS later */
}


/* product page */
/* Media */
.product-card__media{
  position: relative;
  overflow: hidden;
  margin: 0;
}
.compact .product-card__media{
  height: 75%;
}

.product-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
  will-change: transform;
  
}
.view-details-link {
  font-size: 14px;
  font-weight: 400;
  color: #0071e3;          /* Apple blue */
  text-decoration: none;
  display: inline-block;
  transition: color .2s ease;
}

.view-details-link:hover {
  color: #005bb5;          /* darker on hover */
  text-decoration: underline;
}

/* 走马灯 > 3 < */
.pager{
  display:flex; justify-content:center; gap:8px; margin:10px 0 0;
}
.pager button{
  width:8px; height:8px; border-radius:50%;
  border:none; background:#cfd8dc; cursor:pointer; padding:0;
}
.pager button[aria-current="true"]{
  background:#0b8a5a;
}
@media (max-width: 820px){
  .pager button{ width:10px; height:10px; }
}

@media (min-width: 821px){
  #product-pager{ display:none; }
}

/* new generated for category page */
/* --- Category page enhancements (shared) --- */
:root{
  --edge-fade: linear-gradient(90deg, rgba(255,255,255,0) 0,
    rgba(255,255,255,1) 32px, rgba(255,255,255,1) calc(100% - 32px),
    rgba(255,255,255,0) 100%);
}
.category-hero{position:relative; padding:48px 0 28px; color:#0b3b29;}
.category-hero::before{content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, #e8f6f0 0%, #f4fbf8 100%);}
.category-hero .showcase-container{position:relative;}
.category-hero h1{margin:.1em 0 .2em; color:#0b3b29;}
.category-hero p{margin:0; color:#236e55;}

.product-rail-mask{mask-image: var(--edge-fade); -webkit-mask-image: var(--edge-fade);}
.product-row{
  display:grid; grid-auto-flow:column;
  grid-auto-columns: clamp(260px, 35vw, 400px);
  gap:18px; overflow-x:auto; padding:8px 8px 12px;
  scroll-snap-type:x mandatory; scroll-padding: 10px;
  scrollbar-width:thin;
}
.product-row::-webkit-scrollbar{height:8px;}
.product-row::-webkit-scrollbar-thumb{background:#d1d5db; border-radius:999px;}

.product-card{scroll-snap-align:start; transition:transform .22s ease, box-shadow .22s ease;}
.product-card:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.12);}

.product-card__media{border-radius:12px; overflow:hidden; background:#f3f4f6;}
.product-card__media img{width:100%; height:100%; aspect-ratio:4/5; object-fit:cover; display:block;}

.pager{display:none; gap:.5rem; justify-content:center; margin:.5rem 0 0;}
.pager button{width:.55rem; height:.55rem; border-radius:999px; border:0; background:#cbd5e1;}
.pager button[aria-current="true"]{background:#0b8a5a;}
@media (max-width: 820px){ .pager{display:flex;} }

.other-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px;}
@media (max-width: 1024px){ .other-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){
  .other-grid{ grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x:auto; scroll-snap-type:x mandatory; }
  .other-grid > *{scroll-snap-align:start;}
}
/* Section Wrappers */
.job-listings-section,
.benefits-section,
.application-process-section {
  padding: 60px 0;
  background: var(--background-white);
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: .3em;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-light);
  margin: 0;
}

/* ===== Job Listings ===== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,.06));
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid;
  width: fit-content;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.08));
}

.job-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.job-icon {
  background: var(--primary, #0a60ff);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.job-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.job-type {
  font-size: .85rem;
  color: var(--text-light);
}

.job-content p { color: var(--text-secondary); margin: 0 0 12px; }

.job-requirements h4 {
  margin: 10px 0 6px;
  font-size: 1rem;
  color: var(--text-primary);
}
.job-requirements ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 12px;
  color: var(--text-secondary);
}
.job-actions .btn {
  padding: 8px 14px;
  font-size: .9rem;
}

/* ===== Benefits ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.benefit-card {
  background: #fff;
  border-radius: var(--radius-sm, 10px);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
  transition: transform .2s ease;
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.benefit-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text-primary); }
.benefit-card p { margin: 0; font-size: .9rem; color: var(--text-secondary); }

/* ===== Application Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.process-step {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
}
.step-number {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.process-step h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.process-step p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-secondary);
}

.application-cta {
  margin-top: 40px;
}
.application-cta h3 { margin: 0 0 8px; color: var(--text-primary); }
.application-cta p { margin: 0 0 16px; color: var(--text-secondary); }

.cta-note >i {
  margin: 0 6px 0 16px;
}