/**
 * CECCM - About Page Styles
 *
 * Page-specific styles for the about page.
 * Uses design tokens from design-tokens.css, components from components.css,
 * and landing page base styles from landing.css.
 *
 * @version 1.0.0
 * @date 2026-03-21
 */

/* ============================================
   PAGE HERO SECTION
   Used by about.php for the "Our Story" header
   ============================================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(34, 211, 238, 0.08) 0%,
      transparent 60%
    );
  animation: hero-ambient 20s ease-in-out infinite;
}

/* Gradient orbs for depth */
.page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.page-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.3) 0%,
    transparent 70%
  );
  top: -150px;
  left: -150px;
  animation: float-orb 15s ease-in-out infinite;
}

.page-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.3) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  animation: float-orb 15s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Page tag - pill badge above title */
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #06b6d4;
  margin-bottom: var(--space-6);
}

/* Page title - main heading */
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: var(--space-6);
}

/* Page subtitle - descriptive text below title */
.page-subtitle {
  font-size: var(--text-xl);
  color: #d1d5db;
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ABOUT PAGE CONTENT WRAPPER
   Replaces nested .main-content to avoid
   specificity conflicts with landing.css
   ============================================ */
.about-page-content {
  padding: var(--space-8) 0;
}

/* ============================================
   GLASS CARD (standalone definition)
   Used by objective-card, leadership-content, cta-card
   ============================================ */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(6, 182, 212, 0.15);
}

/* ============================================
   SECTION HEADER CENTER
   ============================================ */
.section-header-center {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header-center h2 {
  color: #ffffff;
  margin: var(--space-4) 0;
  text-align: center;
  width: 100%;
}

/* ============================================
   SECTION LABEL
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #06b6d4;
  margin-bottom: var(--space-4);
}

/* ============================================
   ABOUT SECTION MODERN (Mission / Vision)
   ============================================ */
.about-section-modern {
  padding: var(--space-16) 0;
  position: relative;
}

.about-section-modern + .about-section-modern {
  padding-top: 0;
}

/* ============================================
   ABOUT GRID (Two-column layout)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-grid-reverse {
  direction: rtl;
}

.about-grid-reverse > * {
  direction: ltr;
}

/* ============================================
   ABOUT TEXT & IMAGE
   ============================================ */
.about-text {
  position: relative;
  z-index: 1;
}

.about-text .section-label {
  margin-bottom: var(--space-4);
}

.about-text h2 {
  margin-bottom: var(--space-6);
}

.about-text p {
  color: #d1d5db;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  z-index: 1;
}

/* ============================================
   IMAGE CARD
   ============================================ */
.image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-smooth);
}

.image-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    var(--shadow-2xl),
    0 0 40px rgba(6, 182, 212, 0.15);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.image-card:hover img {
  transform: scale(1.05);
}

/* ============================================
   OBJECTIVES SECTION MODERN
   ============================================ */
.objectives-section-modern {
  padding: var(--space-16) 0;
  position: relative;
  background: var(--color-bg-secondary, #111827);
}

.objectives-section-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

/* ============================================
   OBJECTIVES GRID (3-column card grid)
   ============================================ */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ============================================
   OBJECTIVE CARD & ICON
   ============================================ */
.objective-card {
  padding: var(--space-8);
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-8px);
}

.objective-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-6);
  font-size: 1.75rem;
  color: var(--color-accent-cyan, #22d3ee);
  transition: all var(--transition-smooth);
}

.objective-card:hover .objective-icon {
  transform: scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.3),
    rgba(139, 92, 246, 0.3)
  );
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.objective-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.objective-card p {
  color: #9ca3af;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================
   VALUES SECTION MODERN
   ============================================ */
.values-section-modern {
  padding: var(--space-16) 0;
  position: relative;
}

/* ============================================
   VALUES GRID (4-column grid)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ============================================
   VALUE CARD & NUMBER
   ============================================ */
.value-card {
  padding: var(--space-8);
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(6, 182, 212, 0.15);
}

.value-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.value-card p {
  color: #9ca3af;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================
   LEADERSHIP SECTION MODERN
   ============================================ */
.leadership-section-modern {
  padding: var(--space-16) 0;
  position: relative;
  background: var(--color-bg-secondary, #111827);
}

.leadership-section-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

/* ============================================
   LEADERSHIP CONTENT
   ============================================ */
.leadership-content {
  padding: var(--space-10);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.leadership-content .section-label {
  margin-bottom: var(--space-4);
}

.leadership-content h2 {
  margin-bottom: var(--space-6);
}

.leadership-content p {
  color: #d1d5db;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.leadership-content p:last-of-type {
  margin-bottom: var(--space-8);
}

/* ============================================
   LEADERSHIP STATS
   ============================================ */
.leadership-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   STAT BOX, NUMBER, LABEL
   ============================================ */
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

.stat-label {
  font-size: var(--text-xs);
  color: #9ca3af;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================
   CTA SECTION MODERN
   ============================================ */
.cta-section-modern {
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-section-modern::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cta-section-modern::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   CTA CARD & BUTTONS
   ============================================ */
.cta-card {
  padding: var(--space-12);
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  margin-bottom: var(--space-4);
}

.cta-card p {
  color: #d1d5db;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-grid-reverse {
    direction: ltr;
  }

  .leadership-stats {
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
    padding: var(--space-16) 0 var(--space-12);
  }

  .page-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .page-subtitle {
    font-size: var(--text-base);
  }

  .page-orb-1 {
    width: 300px;
    height: 300px;
  }

  .page-orb-2 {
    width: 250px;
    height: 250px;
  }

  .about-section-modern,
  .objectives-section-modern,
  .values-section-modern,
  .leadership-section-modern,
  .cta-section-modern {
    padding: var(--space-12) 0;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .leadership-content {
    padding: var(--space-6);
  }

  .leadership-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .cta-card {
    padding: var(--space-8);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .objective-card {
    padding: var(--space-6);
  }

  .value-card {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 35vh;
    padding: var(--space-12) 0 var(--space-10);
  }

  .page-tag {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-3);
  }

  .page-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-subtitle {
    font-size: var(--text-sm);
  }

  .about-section-modern,
  .objectives-section-modern,
  .values-section-modern,
  .leadership-section-modern,
  .cta-section-modern {
    padding: var(--space-10) 0;
  }

  .section-header-center {
    margin-bottom: var(--space-8);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  .value-number {
    font-size: var(--text-3xl);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .image-card,
  .image-card img,
  .objective-card,
  .value-card,
  .glass-card {
    transition: none;
  }

  .page-orb,
  .page-hero-bg::before {
    animation: none;
  }
}
