.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-red {
  color: #c1121f;
}
.text-center {
  text-align: center;
}

/* --- 1. هدر رزومه --- */
.resume-header {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, #050505, #121212);
  border-bottom: 1px solid #222;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
}

.page-desc {
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #aaa;
  font-size: 1.3rem;
  line-height: 1.4;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  border: 1px solid #333;
  padding: 20px 30px;
  border-radius: 10px;
  background: #1a1a1a;
  min-width: 150px;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #c1121f;
}

.stat-label {
  color: #888;
  font-size: 1.1rem;
}

.btn-download {
  display: inline-block;
  border: 2px solid #c1121f;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-download:hover {
  background-color: #c1121f;
}

/* --- 2. بخش ویدیوها --- */
.video-proof-section {
  padding: 80px 0;
  background-color: #121212;
}

.sec-head {
  text-align: center;
  margin-bottom: 50px;
}

.sec-head h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}
.sec-head p {
  color: #888;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  transition: 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: #555;
}

.video-thumb {
  position: relative;
  height: 200px;
  background: #000;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.3s;
}

.video-thumb:hover img {
  opacity: 0.6;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(193, 18, 31, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px; /* اصلاح بصری آیکون */
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 5px 0;
}

.video-info p {
  font-size: 1.1rem;

  color: #888;
  margin: 0;
}

/* --- 3. تایم‌لاین تاریخچه --- */
.history-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0 auto;
}

/* خط وسط تایم‌لاین */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50px; /* در موبایل سمت راست باشد */
  height: 100%;
  width: 2px;
  background: #333;
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.tl-year {
  min-width: 100px;
  text-align: center;
  background: #1a1a1a;
  border: 1px solid #c1121f;
  color: #c1121f;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  height: fit-content;
  z-index: 2;
}

.tl-content {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
  flex: 1;
}

.tl-content h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 1.3rem;
}
.tl-content p {
  margin: 0;
  font-size: 1.1rem;

  color: #aaa;
}

/* آخرین آیتم (فعال) */
.active-tl .tl-year {
  background: #c1121f;
  color: #fff;
}

.active-tl .tl-content {
  border-color: #c1121f;
}

/* --- 4. گالری تصاویر --- */
.gallery-section {
  padding: 80px 0;
  background-color: #121212;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  border: 1px solid #333;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.g-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 1.1rem;
  transform: translateY(100%);
  transition: 0.3s;
}

.gallery-item:hover .g-caption {
  transform: translateY(0);
}

/* --- ریسپانسیو --- */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem;
  }

  .timeline::before {
    right: 20px;
  }

  .timeline-item {
    gap: 15px;
  }

  .tl-year {
    min-width: 60px;
    font-size: 1.1rem;

    padding: 8px 5px;
  }
}

/* --- 2. تنظیمات هدر رزومه (که باید اسکرول شود) --- */
.resume-header {
  position: relative !important; /* مهم: این باعث می‌شود با صفحه اسکرول شود */
  top: auto;
  z-index: 1; /* لایه پایین‌تر از منو */

  /* تنظیمات ظاهری قبلی را حفظ کنید */
  padding: 80px 0;
  background: linear-gradient(to bottom, #050505, #121212);
}

/* --- بازطراحی بخش ویدیوهای تحویل --- */
.video-proof-section {
  padding: 6rem 2rem;
  background-color: #0d0d0d;
}
.video-proof-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.video-proof-section .sec-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.video-proof-section .sec-head h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 900;
}
.video-proof-section .sec-head p {
  color: #888;
  font-size: 1.3rem;
}

/* شبکه گرید کارت‌ها */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.video-card {
  background-color: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.video-card:hover {
  border-color: #c1121f;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* کانتینر نگهدارنده ویدیو */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10; /* تضمین ابعاد استاندارد برای پر کردن کامل کارت */
  background-color: #000;
}

/* استایل دقیق ویدیو برای قرارگیری ۱۰۰٪ در قالب کارت */
.video-container video {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover; /* پر کردن کامل بدون بریدگی یا کشیدگی ناموزون */
  background-color: #000;
}

/* دکمه پخش اختصاصی روی ویدیو */
.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: #c1121f;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(193, 18, 31, 0.6);
  transition: all 0.3s ease;
  z-index: 2;
}
.custom-play-btn:hover {
  background-color: #fff;
  color: #c1121f;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* پنهان‌سازی دکمه بعد از کلیک */
.custom-play-btn.hidden {
  display: none !important;
}

/* اطلاعات کارت */
.video-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: bold;
}
.video-info p {
  font-size: 1.05rem;
  color: #aaa;
  margin: 0;
}

@media (max-width: 768px) {
  .video-proof-section {
    padding: 4rem 1.5rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}
