/**
 * About Page Styles
 * Speed Protection - Astra Child Theme
 */

/* =========================================
   HERO SECTION
   ========================================= */
.sp-about-hero {
  position: relative;
  padding: 150px 20px 100px;
  background: var(--sp-dark);
  color: white;
  text-align: center;
  overflow: visible;
  z-index: 0 !important;
}

.sp-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 77, 0, 0.1), transparent 40%),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.03),
      transparent 40%
    ),
    linear-gradient(to bottom, #0a0a0a 0%, #000000 100%);
  z-index: 0;
}

.sp-hero-content {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  margin: 0 auto;
}

.sp-hero-title {
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 25px;
  letter-spacing: -2px;
  color: var(--sp-white);
  background: linear-gradient(to bottom, #fff 40%, #a3a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-hero-lead {
  font-size: 1.5rem;
  color: #d4d4d4;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

@media (max-width: 768px) {
  .sp-about-hero {
    padding: 120px 20px 60px;
  }

  .sp-hero-lead {
    font-size: 1.1rem;
  }
}

/* =========================================
   DNA SECTION (Grid)
   ========================================= */
.sp-dna-section {
  padding: 60px 20px;
  background: var(--sp-white);
}

.sp-section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.sp-section-heading h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sp-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.sp-dna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.sp-dna-card {
  background: var(--sp-light);
  padding: 50px;
  border-radius: 24px;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.sp-dna-card:hover {
  background: white;
  transform: translateY(-10px);
  box-shadow: var(--sp-card-shadow);
  border-color: rgba(0, 0, 0, 0.05);
}

.sp-dna-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--sp-primary);
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.sp-dna-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--sp-dark);
}

@media (max-width: 640px) {
  .sp-dna-section {
    padding: 40px 15px;
  }

  .sp-section-heading h2 {
    font-size: 2.2rem;
  }

  .sp-dna-card {
    padding: 30px;
  }
}

/* =========================================
   HISTORY SECTION (Timeline)
   ========================================= */
.sp-history-section {
  padding: 80px 20px;
  background: var(--sp-darker);
  color: white;
  position: relative;
  overflow: hidden;
}

.sp-map-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Mercator_projection_SW.jpg/1200px-Mercator_projection_SW.jpg");
  background-size: cover;
  opacity: 0.03;
  pointer-events: none;
  filter: grayscale(100%);
}

.sp-timeline-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.sp-timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--sp-primary),
    transparent
  );
}

@media (min-width: 900px) {
  .sp-timeline-line {
    left: 50%;
  }
}

.sp-history-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.sp-history-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 20px;
  width: calc(100% - 60px);
  margin-left: 60px;
  transition: transform 0.3s ease;
}

.sp-history-item:hover .sp-history-content {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sp-primary);
}

@media (min-width: 900px) {
  .sp-history-item {
    justify-content: flex-end;
  }

  .sp-history-item:nth-child(even) {
    justify-content: flex-start;
  }

  .sp-history-content {
    width: 45%;
    margin: 0;
  }

  .sp-history-item:nth-child(odd) .sp-history-content {
    margin-left: 50px;
    text-align: left;
  }

  .sp-history-item:nth-child(even) .sp-history-content {
    margin-right: 50px;
    text-align: right;
  }
}

.sp-history-year {
  font-family: "Arial Black", sans-serif;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -40px;
  right: 20px;
  line-height: 1;
}

.sp-history-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.sp-history-desc {
  color: #a3a3a3;
  line-height: 1.7;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .sp-history-section {
    padding: 60px 15px;
  }

  .sp-history-content {
    padding: 25px;
    width: calc(100% - 45px);
    margin-left: 45px;
  }

  .sp-history-year {
    font-size: 3.5rem;
    top: -25px;
    right: 15px;
  }

  .sp-timeline-line {
    left: 15px;
  }

  .sp-timeline-dot {
    left: 6px;
  }
}

.sp-timeline-dot {
  position: absolute;
  left: 11px;
  top: 40px;
  width: 20px;
  height: 20px;
  background: var(--sp-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 77, 0, 0.2);
  z-index: 10;
}

@media (min-width: 900px) {
  .sp-timeline-dot {
    left: 50%;
    margin-left: -9px;
  }
}

/* =========================================
   STATS FOOTER
   ========================================= */
.sp-stats-row {
  background: var(--sp-primary);
  padding: 40px 20px;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.sp-stats-row > div {
  flex: 1 1 auto;
  min-width: 150px;
}

.sp-stat-num {
  font-size: 4rem;
  font-weight: 900;
  display: block;
  margin-bottom: 10px;
}

.sp-stat-text {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .sp-stats-row {
    padding: 40px 15px;
    gap: 25px;
  }

  .sp-stat-num {
    font-size: 2.5rem;
  }

  .sp-stat-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}
