/* Project Detail Page Styles */

/* CSS Variables */
:root {
  --charcoal: #1c1c1c;
  --steel: #4a5568;
  --concrete: #e2e8f0;
  --sky: #4fd1c7;
  --yellow: #f2c94c;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--sky), var(--yellow));
  --gradient-dark: linear-gradient(135deg, var(--charcoal), var(--steel));
  --shadow-soft: 0 8px 25px rgba(28, 28, 28, 0.08);
  --shadow-medium: 0 12px 35px rgba(28, 28, 28, 0.15);
  --shadow-strong: 0 20px 50px rgba(28, 28, 28, 0.25);
}

/* Project Hero Section */
.project-hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.project-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.8), rgba(74, 85, 104, 0.6));
}

.project-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.project-breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.9;
}

.project-breadcrumb a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
  color: var(--yellow);
}

.project-breadcrumb span {
  color: var(--white);
}

.project-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.project-status,
.project-sector,
.project-location {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.completed {
  background: linear-gradient(90deg, #10b981, #059669);
  color: var(--white);
}

.project-status.ongoing {
  background: linear-gradient(90deg, var(--yellow), #f59e0b);
  color: var(--charcoal);
}

.project-status.planned {
  background: linear-gradient(90deg, var(--sky), #0ea5e9);
  color: var(--white);
}

.project-sector {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.project-location {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.project-description {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
}

/* Project Gallery */
.project-gallery {
  padding: 80px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 500px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item.main {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Project Information */
.project-info {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.info-content .section-title {
  margin-bottom: 30px;
  color: var(--charcoal);
}

.info-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--steel);
  margin-bottom: 20px;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 5px;
  line-height: 1.3;
}

.stat-label {
  font-size: 14px;
  color: var(--steel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Project Specifications */
.project-specs {
  padding: 80px 0;
  background: var(--white);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.spec-category {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 30px;
  border-radius: 16px;
  border-left: 4px solid var(--sky);
}

.spec-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
  font-size: 15px;
  line-height: 1.6;
  color: var(--steel);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* Project Timeline */
.project-timeline {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sky), var(--yellow));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-soft);
}

.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-medium);
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.timeline-description {
  color: var(--steel);
  line-height: 1.6;
  font-size: 15px;
}

/* Related Projects */
.related-projects {
  padding: 80px 0;
  background: var(--white);
}

.related-swiper {
  margin-top: 40px;
  padding: 20px 0 60px;
}

.related-project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.related-project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.project-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-card-content {
  padding: 20px;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.project-card-meta {
  font-size: 14px;
  color: var(--steel);
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--charcoal), var(--steel));
  color: var(--white);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--charcoal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .project-title {
    font-size: 3rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .gallery-grid {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .project-hero {
    height: 100vh;
    min-height: 400px;
  }
  
  .project-title {
    font-size: 2.5rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 15px;
  }
  
  .gallery-item.main {
    grid-row: auto;
    height: 300px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .info-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 10px;
    width: 16px;
    height: 16px;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 2rem;
  }
  
  .project-description {
    font-size: 1rem;
  }
  
  .info-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .timeline-content {
    padding: 20px;
  }
}

/* RTL Support */
[dir="rtl"] .timeline::before {
  right: 30px;
  left: auto;
}

[dir="rtl"] .timeline-item {
  padding-right: 80px;
  padding-left: 0;
}

[dir="rtl"] .timeline-marker {
  right: 20px;
  left: auto;
}

[dir="rtl"] .timeline-content:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .spec-category {
  border-left: none;
  border-right: 4px solid var(--sky);
}

/* RTL Header Support */
[dir="rtl"] .hamburger {
    right: auto;
    left: 5%;
}

@media (max-width: 768px) {
  [dir="rtl"] .timeline::before {
    right: 20px;
  }
  
  [dir="rtl"] .timeline-item {
    padding-right: 60px;
  }
  
  [dir="rtl"] .timeline-marker {
    right: 10px;
  }
}
