/**
 * ITSOFT DZ - About Page Complete Styles
 * Modern professional design with proper organization
 */

/* ============================================
   BASE SETTINGS
   ============================================ */

* {
  box-sizing: border-box;
}

/* ============================================
   HERO SECTION
   ============================================ */

.about-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

@media (max-width: 767px) {
  .about-hero {
    min-height: auto;
    padding: calc(64px + 3rem) 0 3rem;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 163, 224, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 204, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066CC;
  margin-bottom: 2rem;
}

.hero-label i {
  font-size: 1rem;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.about-hero h1 .line {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #334155;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.hero-stat {
  text-align: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .hero-stat {
    padding: 1rem;
  }
}

.hero-stat:hover {
  border-color: #0066CC;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #0066CC;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: #334155;
  font-weight: 500;
}

/* ============================================
   STORY SECTION
   ============================================ */

.story-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
}

@media (max-width: 767px) {
  .story-section {
    padding: 3rem 0;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-visual {
  position: relative;
  order: 1;
}

@media (min-width: 1024px) {
  .story-visual {
    order: 0;
  }
}

.story-image-large {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 102, 204, 0.25);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(0, 163, 224, 0.2) 0%, transparent 60%);
}

.image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.image-content i {
  margin-bottom: 1rem;
}

.image-content span {
  font-size: 1.25rem;
  font-weight: 600;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .story-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.story-card-small {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .story-card-small {
    padding: 1rem;
  }
}

.story-card-small:hover {
  border-color: #0066CC;
  transform: translateY(-4px);
}

.story-card-small i {
  font-size: 1.5rem;
  color: #0066CC;
  margin-bottom: 0.5rem;
  display: block;
}

.story-card-small span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.story-text {
  padding: 1rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0066CC;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.story-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #0f172a;
}

.story-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

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

.achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.achievement i {
  font-size: 1.25rem;
  color: #0066CC;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.achievement div {
  flex: 1;
}

.achievement strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.achievement span {
  font-size: 0.875rem;
  color: #334155;
}

/* ============================================
   MISSION SECTION
   ============================================ */

.mission-section {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
}

@media (max-width: 767px) {
  .mission-section {
    padding: 3rem 0;
  }
}

.mission-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.mission-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.mission-header p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mission-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .mission-card {
    padding: 1.5rem;
  }
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
}

.mission-card:hover {
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.mission-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0066CC;
  margin-bottom: 1.5rem;
}

.mission-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.mission-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.5rem;
}

.mission-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mission-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.mission-features i {
  color: #0066CC;
}

/* ============================================
   VALUES SECTION
   ============================================ */

.values-section {
  padding: 5rem 0;
  background: #ffffff;
}

@media (max-width: 767px) {
  .values-section {
    padding: 3rem 0;
  }
}

.values-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.values-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.values-header p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .value-item {
    padding: 1.5rem;
  }
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.value-item:hover::before {
  transform: scaleY(1);
}

.value-item:hover {
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  transform: translateX(4px);
}

.value-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0066CC;
  opacity: 0.1;
  line-height: 1;
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0066CC;
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.value-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1rem;
}

.value-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-item ul li {
  font-size: 0.875rem;
  color: #334155;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.value-item ul li:last-child {
  border-bottom: none;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */

.timeline-section {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
}

@media (max-width: 767px) {
  .timeline-section {
    padding: 3rem 0;
  }
}

.timeline-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.timeline-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.timeline-header p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
}

.journey {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 3.5rem;
}

.journey::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, #0066CC 0%, rgba(0, 163, 224, 0.5) 60%, rgba(0, 102, 204, 0.15) 100%);
  border-radius: 2px;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journey-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.journey-dot {
  position: absolute;
  top: 1.25rem;
  left: -3.5rem;
  width: 48px;
  height: 48px;
  margin-left: 0;
  background: #0066CC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 0 4px #f8fafc, 0 0 0 6px rgba(0, 102, 204, 0.35);
}

.journey-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.journey-card:hover {
  border-color: #0066CC;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
  transform: translateY(-2px);
}

.journey-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 2rem;
  padding: 0.25rem 0.875rem;
  margin-bottom: 0.75rem;
}

.journey-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.journey-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

@media (min-width: 768px) {
  .journey-list {
    gap: 2rem;
  }

  .journey-card {
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .journey {
    padding-left: 3rem;
  }

  .journey::before {
    left: 19px;
  }

  .journey-dot {
    left: -3rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .stats-section {
    padding: 3rem 0;
  }
}

.stats-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 100px 200px;
  opacity: 0.5;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .stats-grid {
    gap: 1rem;
  }
}

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

@media (max-width: 767px) {
  .stat-card {
    padding: 1.5rem;
  }
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 auto 1rem;
}

.stat-card .stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 3rem 0;
  }
}

.cta-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 163, 224, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.cta-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.cta-content p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #334155;
  font-size: 0.875rem;
}

.trust-indicators {
  display: flex;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: #94a3b8;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #0066CC;
  color: #ffffff;
  border: 1px solid #0066CC;
}

.btn-primary:hover {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: #0066CC;
  border: 1px solid #0066CC;
}

.btn-outline:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: #004C99;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .btn-large {
    width: 100%;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.animate-in {
  opacity: 1;
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .hero-mesh {
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 163, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 224, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .hero-label {
  background: rgba(0, 102, 204, 0.2);
  color: #00A3E0;
}

[data-theme="dark"] .about-hero h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .hero-description {
  color: #cbd5e1;
}

[data-theme="dark"] .hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-stat:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: #0066CC;
}

[data-theme="dark"] .story-section,
[data-theme="dark"] .values-section {
  background: #0f172a;
}

[data-theme="dark"] .story-text h2,
[data-theme="dark"] .mission-header h2,
[data-theme="dark"] .values-header h2,
[data-theme="dark"] .timeline-header h2,
[data-theme="dark"] .cta-content h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .story-content p,
[data-theme="dark"] .mission-header p,
[data-theme="dark"] .values-header p,
[data-theme="dark"] .timeline-header p,
[data-theme="dark"] .cta-content p {
  color: #cbd5e1;
}

[data-theme="dark"] .story-image-large {
  background: linear-gradient(135deg, #0066CC 0%, #1e293b 100%);
}

[data-theme="dark"] .story-card-small,
[data-theme="dark"] .achievement,
[data-theme="dark"] .mission-card,
[data-theme="dark"] .value-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .story-card-small:hover,
[data-theme="dark"] .achievement:hover,
[data-theme="dark"] .mission-card:hover,
[data-theme="dark"] .value-item:hover {
  border-color: #0066CC;
  background: rgba(0, 102, 204, 0.05);
}

[data-theme="dark"] .story-card-small i,
[data-theme="dark"] .achievement i,
[data-theme="dark"] .value-icon {
  background: rgba(0, 102, 204, 0.15);
  color: #00A3E0;
}

[data-theme="dark"] .value-number {
  color: #00A3E0;
}


[data-theme="dark"] .achievement strong {
  color: #f1f5f9;
}

[data-theme="dark"] .achievement span {
  color: #cbd5e1;
}

[data-theme="dark"] .mission-section,
[data-theme="dark"] .timeline-section,
[data-theme="dark"] .cta-section {
  background: #1e293b;
}

[data-theme="dark"] .mission-card {
  background: #0f172a;
}

[data-theme="dark"] .journey::before {
  background: linear-gradient(180deg, #00A3E0 0%, rgba(0, 163, 224, 0.4) 60%, rgba(0, 163, 224, 0.1) 100%);
}

[data-theme="dark"] .journey-dot {
  background: #0066CC;
  box-shadow: 0 0 0 4px #1e293b, 0 0 0 6px rgba(0, 163, 224, 0.4);
}

[data-theme="dark"] .journey-card {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .journey-card:hover {
  border-color: #0066CC;
  background: rgba(0, 102, 204, 0.05);
}

[data-theme="dark"] .journey-year {
  color: #00A3E0;
  background: rgba(0, 163, 224, 0.12);
}

[data-theme="dark"] .journey-card h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .journey-card p {
  color: #cbd5e1;
}

[data-theme="dark"] .cta-trust {
  color: #cbd5e1;
}

[data-theme="dark"] .trust-indicators {
  color: #334155;
}

[data-theme="dark"] .value-item ul li {
  border-color: #334155;
}

[data-theme="dark"] .mission-features span {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .mission-features i {
  color: #00A3E0;
}

[data-theme="dark"] .story-cards {
  gap: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Base Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

.fade-in-delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Animations */
.hero-label {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards 0.2s;
}

.about-hero h1 .line {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.about-hero h1 .line:nth-child(1) {
  animation-delay: 0.3s;
}

.about-hero h1 .line:nth-child(2) {
  animation-delay: 0.4s;
}

.about-hero h1 .line:nth-child(3) {
  animation-delay: 0.5s;
}

.hero-description {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.7s;
}

.hero-stat {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.hero-stat:nth-child(1) {
  animation-delay: 0.8s;
}

.hero-stat:nth-child(2) {
  animation-delay: 0.9s;
}

.hero-stat:nth-child(3) {
  animation-delay: 1s;
}

.hero-stat:nth-child(4) {
  animation-delay: 1.1s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Story Section Animations */
.story-visual {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
}

.story-text {
  opacity: 0;
  animation: fadeInLeft 1s ease forwards 0.3s;
}

.story-image-large {
  position: relative;
  overflow: hidden;
}

.story-image-large::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.story-card-small {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.story-card-small:nth-child(1) {
  animation-delay: 0.5s;
}

.story-card-small:nth-child(2) {
  animation-delay: 0.6s;
}

.story-card-small:nth-child(3) {
  animation-delay: 0.7s;
}

.achievement {
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

.achievement:nth-child(1) {
  animation-delay: 0.8s;
}

.achievement:nth-child(2) {
  animation-delay: 0.9s;
}

.achievement:nth-child(3) {
  animation-delay: 1s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mission Cards Animation */
.mission-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.mission-card:nth-child(1) {
  animation-delay: 0.2s;
}

.mission-card:nth-child(2) {
  animation-delay: 0.4s;
}

.mission-card:hover {
  transform: translateY(-8px);
}

.mission-icon {
  transition: transform 0.4s ease;
}

.mission-card:hover .mission-icon {
  transform: rotateY(360deg);
}

.mission-features span {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.mission-card:nth-child(1) .mission-features span:nth-child(1) {
  animation-delay: 0.6s;
}

.mission-card:nth-child(1) .mission-features span:nth-child(2) {
  animation-delay: 0.7s;
}

.mission-card:nth-child(1) .mission-features span:nth-child(3) {
  animation-delay: 0.8s;
}

.mission-card:nth-child(2) .mission-features span:nth-child(1) {
  animation-delay: 0.8s;
}

.mission-card:nth-child(2) .mission-features span:nth-child(2) {
  animation-delay: 0.9s;
}

.mission-card:nth-child(2) .mission-features span:nth-child(3) {
  animation-delay: 1s;
}

/* Values Section Animation */
.value-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.value-item:nth-child(1) {
  animation-delay: 0.2s;
}

.value-item:nth-child(2) {
  animation-delay: 0.4s;
}

.value-item:nth-child(3) {
  animation-delay: 0.6s;
}

.value-item:nth-child(4) {
  animation-delay: 0.8s;
}

.value-item:hover {
  transform: translateX(10px);
}

.value-icon {
  transition: all 0.4s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-number {
  opacity: 0;
  animation: numberPop 0.6s ease forwards;
}

.value-item:nth-child(1) .value-number {
  animation-delay: 0.3s;
}

.value-item:nth-child(2) .value-number {
  animation-delay: 0.5s;
}

.value-item:nth-child(3) .value-number {
  animation-delay: 0.7s;
}

.value-item:nth-child(4) .value-number {
  animation-delay: 0.9s;
}

@keyframes numberPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.value-item ul li {
  opacity: 0;
  animation: fadeInRight 0.5s ease forwards;
}

.value-item:nth-child(1) ul li:nth-child(1) {
  animation-delay: 0.4s;
}

.value-item:nth-child(1) ul li:nth-child(2) {
  animation-delay: 0.5s;
}

.value-item:nth-child(1) ul li:nth-child(3) {
  animation-delay: 0.6s;
}

.value-item:nth-child(2) ul li:nth-child(1) {
  animation-delay: 0.6s;
}

.value-item:nth-child(2) ul li:nth-child(2) {
  animation-delay: 0.7s;
}

.value-item:nth-child(2) ul li:nth-child(3) {
  animation-delay: 0.8s;
}

.value-item:nth-child(3) ul li:nth-child(1) {
  animation-delay: 0.8s;
}

.value-item:nth-child(3) ul li:nth-child(2) {
  animation-delay: 0.9s;
}

.value-item:nth-child(3) ul li:nth-child(3) {
  animation-delay: 1s;
}

.value-item:nth-child(4) ul li:nth-child(1) {
  animation-delay: 1s;
}

.value-item:nth-child(4) ul li:nth-child(2) {
  animation-delay: 1.1s;
}

.value-item:nth-child(4) ul li:nth-child(3) {
  animation-delay: 1.2s;
}

/* Journey entrance (dégradé, piloté par .timeline-animate via IO) */
.journey-item {
  opacity: 0;
  transform: translateY(24px);
}

.journey-item.timeline-animate {
  animation: fadeInUp 0.7s ease forwards;
}

.journey-item:nth-child(1).timeline-animate {
  animation-delay: 0.05s;
}

.journey-item:nth-child(2).timeline-animate {
  animation-delay: 0.15s;
}

.journey-item:nth-child(3).timeline-animate {
  animation-delay: 0.25s;
}

.journey-item:nth-child(4).timeline-animate {
  animation-delay: 0.35s;
}

.journey-item:nth-child(5).timeline-animate {
  animation-delay: 0.45s;
}


/* Stats Animation */
.stat-card {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.4s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.8s;
}

.stat-icon {
  transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: rotateY(180deg);
}

.stat-number {
  opacity: 0;
  animation: countUp 0.8s ease forwards;
}

.stat-card:nth-child(1) .stat-number {
  animation-delay: 0.4s;
}

.stat-card:nth-child(2) .stat-number {
  animation-delay: 0.6s;
}

.stat-card:nth-child(3) .stat-number {
  animation-delay: 0.8s;
}

.stat-card:nth-child(4) .stat-number {
  animation-delay: 1s;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Section Animation */
.cta-content {
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

.cta-actions {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.8s;
}

.cta-trust {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1s;
}

.trust-indicators i {
  opacity: 0;
  animation: popIn 0.4s ease forwards;
}

.trust-indicators i:nth-child(1) {
  animation-delay: 1.2s;
}

.trust-indicators i:nth-child(2) {
  animation-delay: 1.3s;
}

.trust-indicators i:nth-child(3) {
  animation-delay: 1.4s;
}

.trust-indicators i:nth-child(4) {
  animation-delay: 1.5s;
}

.trust-indicators i:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating Animation for Hero Background */
.hero-background {
  animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(10px);
  }
}

/* Grid Animation */
.hero-grid {
  animation: gridPulse 30s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Stats Particles Animation */
.stats-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(0, 102, 204, 0.1), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 163, 224, 0.1), transparent),
    radial-gradient(2px 2px at 60px 40px, rgba(0, 102, 204, 0.1), transparent),
    radial-gradient(2px 2px at 80px 80px, rgba(0, 163, 224, 0.1), transparent);
  background-size: 100% 100%;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 100% 0%;
  }
}

/* Stagger Animation Helper */
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-container .stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-container .stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-container .stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-container .stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Pulse Animation for Icons */
@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.mission-icon i,
.value-icon i,
.journey-dot i {
  animation: pulseIcon 3s ease-in-out infinite;
}

/* Hover Glow Effect */
.story-card-small:hover,
.value-item:hover,
.journey-card:hover,
.stat-card:hover {
  position: relative;
}

.story-card-small:hover::before,
.value-item:hover::before,
.journey-card:hover::before,
.stat-card:hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #0066CC, #00A3E0, #0066CC);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Smooth Scroll Reveal */
@media (prefers-reduced-motion: no-preference) {
  .story-section,
  .mission-section,
  .values-section,
  .timeline-section,
  .stats-section,
  .cta-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .story-section.visible,
  .mission-section.visible,
  .values-section.visible,
  .timeline-section.visible,
  .stats-section.visible,
  .cta-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Animations */
@media (max-width: 767px) {
  .hero-stat,
  .story-card-small,
  .mission-card,
  .value-item,
  .journey-item,
  .stat-card {
    animation-duration: 0.5s;
  }

  .hero-label,
  .about-hero h1 .line,
  .hero-description {
    animation-duration: 0.6s;
  }
}
