/* ========================================
   ABOUT PAGE STYLES
   Jeddah Expert - Luxury Construction
======================================== */

/* ========================================
   PAGE HERO OVERRIDES
======================================== */
.page-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80');
}

/* ========================================
   COMPANY INTRODUCTION
======================================== */
.company-intro {
  background: var(--matte-black);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 15px;
}

.intro-image {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.image-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--metallic-gold);
  border-radius: 20px;
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: linear-gradient(135deg, var(--metallic-gold), var(--gold-dark));
  padding: 25px 35px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.badge-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--royal-blue);
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 13px;
  color: var(--royal-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ========================================
   VISION & MISSION
======================================== */
.vision-mission {
  background: linear-gradient(180deg, var(--dark-gray) 0%, var(--royal-blue) 100%);
  padding: 100px 0;
  transition: background 0.4s ease;
}

body.light-mode .vision-mission {
  background: var(--bg-secondary);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.vm-card:hover {
  transform: translateY(-10px);
  border-color: var(--metallic-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.vm-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--metallic-gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--royal-blue);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.vm-card h3 {
  font-size: 28px;
  color: var(--metallic-gold);
  margin-bottom: 20px;
}

body.light-mode .vm-card h3 {
  color: var(--metallic-gold);
}

.vm-card p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
}

body.light-mode .vm-card p {
  color: var(--text-secondary);
}

.vm-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--metallic-gold), var(--deep-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.vm-card:hover .vm-accent {
  transform: scaleX(1);
}

/* ========================================
   STATISTICS SECTION
======================================== */
.stats-section {
  background: var(--matte-black);
  padding: 80px 0;
  transition: background 0.4s ease;
}

body.light-mode .stats-section {
  background: var(--bg-color);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-box {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(145deg, rgba(10, 31, 68, 0.5), rgba(26, 26, 26, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  transition: all 0.4s ease;
}

body.light-mode .stat-box {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-box:hover {
  transform: translateY(-10px);
  border-color: var(--metallic-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--metallic-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--metallic-gold);
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.stat-box:hover .stat-icon {
  background: var(--metallic-gold);
  color: var(--royal-blue);
  transform: scale(1.1);
}

.stat-box .stat-number,
.stat-box .stat-suffix {
  font-size: 42px;
  font-weight: 700;
  color: var(--metallic-gold);
  line-height: 1;
}

.stat-box .stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
}

/* ========================================
   TIMELINE SECTION
======================================== */
.timeline-section {
  background: var(--royal-blue);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

body.light-mode .timeline-section {
  background: var(--bg-color);
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--metallic-gold), var(--deep-red), var(--metallic-gold));
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 50px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.timeline-year {
  position: absolute;
  top: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--metallic-gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -40px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.4s ease;
}

body.light-mode .timeline-content {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.timeline-content:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--metallic-gold);
  transform: translateY(-5px);
}

.timeline-content h3 {
  font-size: 22px;
  color: var(--metallic-gold);
  margin-bottom: 15px;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}



/* ========================================
   VALUES SECTION
======================================== */
.values-section {
  background: var(--royal-blue);
  position: relative;
  transition: background 0.4s ease;
}

body.light-mode .values-section {
  background: var(--bg-secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 40px 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  transition: all 0.4s ease;
}

body.light-mode .value-item {
  background: var(--bg-color);
  border-color: var(--border-medium);
}

.value-item:hover {
  transform: translateY(-10px);
  border-color: var(--metallic-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.value-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.3);
  line-height: 1;
  margin-bottom: 20px;
}

.value-item h3 {
  font-size: 20px;
  color: var(--metallic-gold);
  margin-bottom: 15px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

body.light-mode .value-item p {
  color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-badge {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 80px;
    padding-right: 20px;
  }

  .timeline-year,
  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    left: 0;
    right: auto;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .experience-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
  }
}

/* ========================================
   REFACTORED FOR CENTRAL THEME CONTROL
   Subpage variables are now in style.css
   ======================================== */