/* style/about.css */

/* Root variables for consistent styling */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Text color for the entire page content, matching dark body bg */
  background-color: var(--bg-dark); /* Ensure sections can inherit or define their own */
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: var(--text-light);
}

.page-about__main-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-about__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__cta-button--primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-about__cta-button--secondary:hover {
  background-color: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Content Sections */
.page-about__introduction, .page-about__security, .page-about__products, .page-about__experience, .page-about__responsibility, .page-about__why-choose, .page-about__conclusion {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__introduction .page-about__grid-item, .page-about__responsibility .page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-about__introduction .page-about__grid-title, .page-about__responsibility .page-about__grid-title {
  color: var(--secondary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-about__introduction p, .page-about__responsibility p {
  font-size: 16px;
  color: var(--text-light);
}

.page-about__introduction .page-about__list li, .page-about__why-choose .page-about__list li {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
  list-style-type: '🚀 ';
  padding-left: 10px;
}

.page-about__introduction .page-about__list li::marker, .page-about__why-choose .page-about__list li::marker {
  color: var(--secondary-color);
}

.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__grid-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__content-row--reverse {
  flex-direction: row-reverse;
}

.page-about__content-text {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Product Cards */
.page-about__grid--products {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__product-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-about__product-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__product-title a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-about__product-card p {
  font-size: 15px;
  color: var(--text-light);
  flex-grow: 1;
}

.page-about__conclusion .page-about__container--center {
  max-width: 800px;
}

.page-about__cta-buttons--center {
  margin-top: 30px;
}

.page-about a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 44px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__content-row {
    flex-direction: column;
    text-align: center;
  }
  .page-about__content-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 36px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__sub-title {
    font-size: 20px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 100%;
    max-width: 100% !important; /* Ensure buttons adapt */
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__content-row--reverse {
    flex-direction: column;
  }
  .page-about__content-text, .page-about__content-image {
    width: 100%;
  }
  .page-about__image, .page-about__grid-image, .page-about__product-image, .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure images fit without cropping on mobile */
  }
  .page-about__container {
    padding: 0 10px;
  }
  .page-about__text-block, .page-about__product-card p, .page-about__introduction p, .page-about__responsibility p, .page-about__introduction .page-about__list li, .page-about__why-choose .page-about__list li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 30px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__sub-title {
    font-size: 18px;
  }
}