﻿body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #f8fafc;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/images/premium_bg.webp') no-repeat center center;
  background-size: cover;
  filter: blur(8px);
  z-index: -1;
  transform: scale(1.05); /* Scales slightly to hide blurred edges */
}

.timeline-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.timeline-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #db0000; /* Bright red for dark background */
}
.timeline-section h4 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 4rem;
  color: #ff4d4d; /* Bright red */
  text-transform: uppercase;
  letter-spacing: 2px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(235, 37, 37, 0.4);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item .content {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.timeline-item .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  background: rgba(255, 255, 255, 0.35);
}

.timeline-item img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item .text h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #db0000;
  font-weight: 700;
}

.timeline-item .text h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #111111;
}

.timeline-item .text p {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.6;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: #0f172a;
  border: 4px solid #ff4d4d;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 20px;
    margin-bottom: 3rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item::before {
    left: 0;
  }
}
