:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A; /* This is the body background from shared.css */
  --text-main: #FFF6D6; /* Main text color for dark backgrounds */
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Ensure text is visible on dark body background */
  line-height: 1.6;
  background-color: var(--background-color); /* Fallback, though body handles this */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--background-color);
  padding-top: 10px; /* Small top padding as per rules */
}

.page-about__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-about__section-spacing {
  padding: 60px 20px;
  background-color: var(--background-color);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__section-title--cta {
    color: var(--text-main); /* White text on dark CTA background */
}

.page-about__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: justify;
}

.page-about__text-block--cta {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
}
.page-about__text-link:hover {
    color: var(--primary-color);
}


/* Flex Containers */
.page-about__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__flex-container--reverse {
    flex-direction: row-reverse;
}

.page-about__content-column {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
}

.page-about__image-column {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-about__grid-container--two-col {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}


/* Cards */
.page-about__card {
  background: var(--card-bg); /* Dark background for cards */
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main); /* Light text on dark card background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 0.95em;
  color: var(--text-main);
}

.page-about__card--tech {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text on button gradient */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: inset 0 0 0 0 var(--primary-color); /* Initial glow for secondary */
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-color); /* Dark text on primary color background */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 10px var(--glow-color);
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-buttons--centered {
    justify-content: center;
}

/* CTA Box */
.page-about__cta-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__flex-container {
    flex-direction: column;
  }
  .page-about__flex-container--reverse {
    flex-direction: column; /* Keep column for smaller screens */
  }
  .page-about__grid-container--two-col {
    grid-template-columns: 1fr; /* Single column for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Enforce small top padding */
  }
  .page-about__hero-content {
    padding: 20px 15px 0;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__section-spacing {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to buttons themselves */
    padding-right: 15px;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for stacked buttons */
  }

  .page-about__cta-box {
      padding: 30px 15px;
  }
}