/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* Page Header */
.page-header {
  padding-top: calc(var(--navbar-height) + var(--spacing-2xl));
  padding-bottom: var(--spacing-2xl);
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 191, 165, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Company Story Section */
.company-story {
  background: rgba(27, 38, 59, 0.3);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.story-highlight {
  font-size: var(--font-size-lg);
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.story-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.story-image {
  margin-top: var(--spacing-lg);
}

/* ============================================
   COMPANY LOGO STYLING - RESPONSIVE DIMENSIONS
   ============================================ */

.story-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: rgba(0, 217, 255, 0.03);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: visible;
}

.company-logo {
  width: 100%;
  max-width: 250px;
  /* Mobile default */
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* Animated glow effect */
.story-logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle,
      rgba(212, 175, 55, 0.15) 0%,
      rgba(0, 217, 255, 0.1) 40%,
      transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Hover effects */
.story-logo-container:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(212, 175, 55, 0.2);
}

.story-logo-container:hover .company-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 30px rgba(0, 217, 255, 0.3));
}

/* ============================================
   RESPONSIVE LOGO DIMENSIONS
   ============================================ */

/* Small Mobile (up to 480px) - 250px logo */
@media (max-width: 480px) {
  .company-logo {
    max-width: 250px;
  }

  .story-logo-container {
    padding: var(--spacing-md);
  }
}

/* Medium Mobile/Phablet (481px - 767px) - 300px logo */
@media (min-width: 481px) and (max-width: 767px) {
  .company-logo {
    max-width: 300px;
  }
}

/* Tablet (768px - 1023px) - 350px logo */
@media (min-width: 768px) and (max-width: 1023px) {
  .company-logo {
    max-width: 350px;
  }

  .story-logo-container {
    padding: var(--spacing-xl);
  }
}

/* Desktop (1024px - 1439px) - 400px logo */
@media (min-width: 1024px) and (max-width: 1439px) {
  .company-logo {
    max-width: 400px;
  }
}

/* Large Desktop (1440px+) - 450px logo */
@media (min-width: 1440px) {
  .company-logo {
    max-width: 450px;
  }

  .story-logo-container {
    padding: var(--spacing-2xl);
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .story-logo-container::before {
    animation: none;
  }

  .company-logo {
    transition: none;
  }

  .story-logo-container:hover .company-logo {
    transform: none;
  }
}

/* Founder Section */
.founder-section {
  background: var(--gradient-primary);
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  margin-top: var(--spacing-xl);
}

.founder-image {
  display: flex;
  justify-content: center;
}

.founder-photo {
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.founder-bio {
  text-align: center;
}

.founder-name {
  font-size: var(--font-size-3xl);
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-xs);
}

.founder-title {
  font-size: var(--font-size-lg);
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.founder-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.founder-bio p {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.founder-expertise {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(0, 217, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.founder-expertise h4 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* Team Section */
.team-section {
  background: rgba(27, 38, 59, 0.3);
}

.team-grid {
  margin-top: var(--spacing-xl);
}

/* Responsive team grid - optimized for 6 members */
@media (min-width: 640px) and (max-width: 767px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on small tablet */
  }
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for balanced 2x3 layout */
    gap: var(--spacing-xl);
  }
}

.team-card {
  text-align: center;
  transition: all var(--transition-base);
}

.team-photo {
  width: 100%;
  max-width: 200px;
  /* Maximum size */
  aspect-ratio: 1;
  /* Perfect square */
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  /* Center horizontally */
  border: 3px solid rgba(0, 217, 255, 0.3);
  transition: all var(--transition-base);
  overflow: hidden;
  /* Ensure image stays within circle */
  position: relative;
  background: rgba(27, 38, 59, 0.5);
  /* Fallback background */
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the entire circle */
  object-position: center;
  /* Center the image */
  display: block;
}

.team-card:hover .team-photo {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.team-name {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.team-role {
  color: var(--accent-cyan);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.team-qualification {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-style: italic;
}

/* ============================================
   JOURNEY TIMELINE DETAILED - LARGER CIRCLES
   ============================================ */
.journey-detailed {
  background: var(--gradient-primary);
}

.timeline-detailed {
  max-width: 900px;
  margin: 0 auto;
  margin-top: var(--spacing-xl);
  position: relative;
  padding-left: 90px;
  /* Increased for larger circles */
}

.timeline-detailed::before {
  content: '';
  position: absolute;
  left: 30px;
  /* Adjusted line position */
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.timeline-block {
  position: relative;
  padding-left: 0;
  margin-bottom: var(--spacing-2xl);
}

.timeline-block:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -90px;
  /* Adjusted for larger circles */
  top: 10px;
  width: 60px;
  /* INCREASED from 40px */
  height: 60px;
  /* INCREASED from 40px */
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 700;
  font-size: 11px;
  /* INCREASED from 9px */
  line-height: 1.2;
  color: var(--text-dark);
  border: 4px solid var(--primary-blue);
  /* INCREASED from 3px */
  box-shadow: var(--shadow-md);
  z-index: 1;
  padding: 4px;
  /* INCREASED from 2px */
  text-align: center;
}

.timeline-card {
  background: rgba(27, 38, 59, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.timeline-card h3 {
  color: var(--accent-cyan);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
}

.timeline-card p {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.highlight-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 191, 165, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 191, 165, 0.3);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .timeline-detailed {
    padding-left: 70px;
  }

  .timeline-detailed::before {
    left: 25px;
  }

  .timeline-year {
    left: -70px;
    width: 50px;
    /* Larger on mobile */
    height: 50px;
    font-size: 9px;
    border: 3px solid var(--primary-blue);
    padding: 3px;
  }
}

/* Tablet and Desktop - FIXED: Circles centered on line */
@media (min-width: 768px) {
  .timeline-detailed {
    padding-left: 140px;
    /* Increased padding for proper spacing */
  }

  .timeline-detailed::before {
    left: 60px;
    /* Vertical line position from left edge */
    width: 3px;
  }

  .timeline-year {
    left: -120px;
    /* Centers 80px circle on 60px line: circle center at 60px, left edge at 20px (60-40), offset from 140px = -120px */
    width: 80px;
    /* Circle diameter */
    height: 80px;
    font-size: 13px;
    border: 4px solid var(--primary-blue);
    padding: 6px;
  }

  .timeline-block {
    padding-left: 0;
    /* Reset padding as it's handled by parent */
  }
}

/* Large Desktop (1024px+) - Further optimized centering */
@media (min-width: 1024px) {
  .timeline-detailed {
    padding-left: 150px;
    /* Extra padding for larger screens */
  }

  .timeline-detailed::before {
    left: 65px;
    /* Line position adjusted for larger layout */
    width: 4px;
    /* Slightly thicker line */
  }

  .timeline-year {
    left: -125px;
    /* Centers 80px circle on 65px line: circle center at 65px, left edge at 25px (65-40), offset from 150px = -125px */
    width: 80px;
    height: 80px;
    font-size: 14px;
    /* Slightly larger font */
    border: 5px solid var(--primary-blue);
    /* Thicker border */
  }

  .timeline-card h3 {
    font-size: var(--font-size-2xl);
  }

  .timeline-block {
    margin-bottom: calc(var(--spacing-2xl) + var(--spacing-lg));
    /* More spacing between timeline items */
  }
}





/* Values Section */
.values-section {
  background: rgba(27, 38, 59, 0.3);
}

.values-grid {
  margin-top: var(--spacing-xl);
}

.value-card {
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.value-card h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-md);
}

.value-card p {
  line-height: 1.7;
}

/* Stats Section */
.stats-section {
  background: var(--gradient-accent);
  padding: var(--spacing-2xl) 0;
}

.stats-grid {
  gap: var(--spacing-lg);
}

.stat-box {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: rgba(10, 22, 40, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(10, 22, 40, 0.5);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--primary-dark);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  padding: var(--spacing-2xl) 0;
  margin-top: 0;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

/* ============================================
     TABLET & DESKTOP STYLES (768px+)
     ============================================ */
@media (min-width: 768px) {

  /* Story Section */
  .story-content {
    grid-template-columns: 1fr 1fr;
  }

  .story-image {
    margin-top: 0;
  }

  /* Founder Section */
  .founder-content {
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-2xl);
  }

  .founder-bio {
    text-align: left;
  }

  .founder-expertise h4 {
    text-align: left;
  }

  .expertise-tags {
    justify-content: flex-start;
  }

  /* Timeline - REMOVED: Redundant styles handled by main media query above */

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Team Photos - Larger on tablet */
  .team-photo {
    max-width: 180px;
  }
}

/* ============================================
   RESPONSIVE TEAM PHOTOS OPTIMIZATION
   ============================================ */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .team-photo {
    max-width: 120px;
    border-width: 2px;
  }

  .team-name {
    font-size: var(--font-size-base);
  }

  .team-role {
    font-size: var(--font-size-xs);
  }
}

/* Medium Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .team-photo {
    max-width: 150px;
  }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
  .team-photo {
    max-width: 200px;
    border-width: 4px;
  }

  /* Enhanced hover effects */
  .team-card:hover {
    transform: translateY(-8px);
  }

  .value-card:hover .value-icon {
    transform: scale(1.2);
    transition: transform var(--transition-base);
  }

  .timeline-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
  }
}
