/* ===== ABOUT PAGE SPECIFIC STYLES ===== */

/* Page Hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--neutral-gray) 100%);
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-hero .hero-pattern {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Company Story */
.company-story {
  background-color: var(--bg-primary);
}

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

.story-text .section-title {
  color: var(--primary-navy);
  margin-bottom: 2rem;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-teal);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.story-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--primary-teal);
}

.highlight-item i {
  color: var(--primary-teal);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.highlight-item span {
  font-weight: 600;
  color: var(--text-primary);
}

.story-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visual-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.card-content {
  position: relative;
  z-index: 2;
}

.visual-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.visual-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== INTERACTIVE TIMELINE SECTION ===== */
.timeline-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.interactive-timeline {
  position: relative;
  margin-top: 4rem;
}

/* Progress Rail */
.timeline-progress-rail {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none; /* Hidden by default, shown on larger screens */
}

@media (min-width: 1200px) {
  .timeline-progress-rail {
    display: block;
  }
}

.progress-line {
  width: 2px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--primary-teal), transparent);
  position: relative;
}

.progress-markers {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progress-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 163, 163, 0.3);
  border: 2px solid var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.progress-marker:hover,
.progress-marker.active {
  background: var(--primary-teal);
  transform: scale(1.3);
}

/* Desktop Layout */
.timeline-desktop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .timeline-desktop-layout {
    display: none;
  }
}

/* Year Display */
.timeline-year-display {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.year-circle {
  position: sticky;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-circle-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.year-circle-bg {
  fill: none;
  stroke: rgba(15, 163, 163, 0.1);
  stroke-width: 2;
}

.year-circle-progress {
  fill: none;
  stroke: var(--primary-teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

/* Timeline Cards */
.timeline-cards {
  padding: 2rem 0;
}

.timeline-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid rgba(15, 163, 163, 0.2);
  opacity: 0.6;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 163, 163, 0.05), rgba(25, 55, 109, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.timeline-card:hover::before,
.timeline-card.active::before {
  opacity: 1;
}

.timeline-card.active {
  opacity: 1;
  transform: translateY(0);
  border-left-color: var(--primary-teal);
  box-shadow: 0 20px 40px rgba(15, 163, 163, 0.1);
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.card-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.timeline-card h3 {
  color: var(--primary-navy);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Mobile Layout */
.timeline-mobile-layout {
  display: none;
}

@media (max-width: 768px) {
  .timeline-mobile-layout {
    display: block;
  }
}

.sticky-year-header {
  position: sticky;
  top: 80px;
  background: var(--bg-primary);
  padding: 1rem 0;
  text-align: center;
  z-index: 10;
  border-bottom: 2px solid var(--primary-teal);
  margin-bottom: 2rem;
}

.mobile-year-display {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  transition: all 0.4s ease;
}

.mobile-timeline-cards {
  padding: 0 1rem;
}

.mobile-timeline-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-teal);
  transition: all var(--transition-normal);
}

.mobile-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mobile-card-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.mobile-timeline-card h3 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.mobile-timeline-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Timeline CTA */
.timeline-cta {
  margin-top: 4rem;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.cta-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  color: var(--white);
  border: 2px solid transparent;
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 163, 163, 0.3);
}

.cta-buttons .btn-outline {
  background: transparent;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
}

.cta-buttons .btn-outline:hover {
  background: var(--primary-teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .year-number,
  .year-circle-progress,
  .progress-marker {
    transition: none;
  }
  
  .timeline-card.active {
    transform: none;
  }
  
  .year-circle-progress {
    stroke-dashoffset: 0;
  }
}

/* Focus Styles for Accessibility */
.timeline-card:focus,
.progress-marker:focus {
  outline: 3px solid var(--primary-teal);
  outline-offset: 2px;
}

.timeline-card:focus {
  transform: translateY(-4px);
}

/* Legacy Timeline Styles for Compatibility */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-teal), var(--primary-navy));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  opacity: 0.3;
  transition: all var(--transition-normal);
}

.timeline-item.active {
  opacity: 1;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: rgba(15, 163, 163, 0.3);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-marker.active {
  background-color: var(--primary-teal);
  transform: translateX(-50%) scale(1.2);
}

.marker-inner {
  width: 100%;
  height: 100%;
  background-color: var(--primary-teal);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-normal);
  opacity: 0;
}

.timeline-marker.active .marker-inner {
  transform: scale(1);
  opacity: 1;
}

.timeline-item:hover .marker-inner {
  transform: scale(1);
  opacity: 1;
}

.timeline-content {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  width: calc(50% - 2rem);
  position: relative;
  transition: all var(--transition-normal);
  transform: translateX(-20px);
  border-left: 4px solid rgba(15, 163, 163, 0.3);
}

.timeline-content.active {
  transform: translateX(0);
  border-left-color: var(--primary-teal);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 2rem;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -24px;
  border-left-color: var(--bg-primary);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -24px;
  border-right-color: var(--bg-primary);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.team-section {
  padding: 60px 0;
  text-align: center;
}

.section-header {
  margin-bottom: 40px;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.team-member {
  background: #f9fbfd;
  border-radius: 14px;
  padding: 40px 24px;
  max-width: 320px;
  flex: 1;
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(11,38,64,0.12);
}

.member-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border: 4px solid #fff;
  position: relative;
  z-index: 2;
  background-color: #fff;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.team-member:hover .member-avatar img {
  transform: scale(1.05);
}

.member-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.member-role {
  font-size: 0.9rem;
  color: #009688;
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

/* Overlay bio on hover */
.member-bio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 50, 0.95); /* semi-transparent so photo visible */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
  z-index: 3;
}

.member-bio-overlay p {
  max-width: 420px;
  margin: 0;
}

.team-member:hover .member-bio-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Certifications Section */
.certifications-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  color: var(--white);
}

.certifications-section .section-title {
  color: var(--white);
}

.certifications-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

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

.cert-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

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

.cert-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.cert-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cert-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .story-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-marker {
    left: 2rem;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content {
    width: calc(100% - 4rem);
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }
  
  .timeline-content::before {
    left: -24px !important;
    right: auto !important;
    border-right-color: var(--bg-primary) !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.125rem;
  }
  
  .story-text p {
    font-size: 1rem;
  }
  
  .lead-text {
    font-size: 1.125rem;
  }
  
  .story-highlights {
    margin-top: 1.5rem;
  }
  
  .highlight-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .visual-card {
    padding: 1.5rem;
  }
  
  .timeline {
    padding: 1rem 0;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-marker {
    left: 1rem;
  }
  
  .timeline-content {
    width: calc(100% - 2rem);
    margin-left: 2rem !important;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .cert-card {
    padding: 1.5rem;
  }
  
  .cert-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}