:root {
  --primary-color: #0091ff;
  --secondary-color: #007acc;
  --text-color: #333333;
  --light-text-color: #666666;
  --bg-color: #f5f7fa;
  --white: #ffffff;
  --border-color: #e1e4e8;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --font-family: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.85); /* Glassmorphism base */
  backdrop-filter: blur(12px); /* Blur effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  padding: 15px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Softer shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem; /* Slightly larger */
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.logo img {
  height: 36px; /* Slightly larger */
  width: auto;
  margin-right: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px; /* Space between links */
}

.main-nav a {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 145, 255, 0.08); /* Subtle background on hover */
}


/* Hero Section */
/* Hero Carousel */
.hero-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #f5f7fa 0%, #ffffff 100%);
}

.carousel-slide {
    display: none;
    padding: 40px 0 60px;
    text-align: left; /* Align text to left for side-by-side */
    animation: fadeEffect 1s;
}

.carousel-slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.4} 
    to {opacity: 1}
}

.hero-content {
    flex: 1;
    max-width: 500px; /* Limit text width */
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #001f3f;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    margin-top: 0; /* Remove top margin in flex layout */
    position: relative;
    display: flex;
    justify-content: center; /* Center image in its half */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    width: auto; /* Allow width to adjust */
    border-radius: 10px;
    object-fit: contain;
}

/* Carousel Controls */
.carousel-prev, .carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #ccc;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: transparent;
    border: none;
}

.carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #001f3f;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Products Section */
.products-section {
  padding: 60px 0;
  background-color: #f0f4f8; /* Slightly darker bg for contrast */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid #e1e4e8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.product-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.product-highlight {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 30px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 180px;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  height: 64px;
  width: auto;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: var(--white);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

.footer-logo img {
  height: 24px;
  margin-right: 8px;
}

.copyright {
  color: #999;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide .container {
      flex-direction: column;
      text-align: center;
  }

  .hero-content {
      max-width: 100%;
      margin-bottom: 30px;
  }

  .hero-image {
      margin-top: 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
