/* project-detail.css - Advanced styling for project detail page */

/* ==================== HEADER OVERRIDES ==================== */
.header.transparent .header-logo-text {
  color: #111827;
  text-shadow: none;
}

.header.transparent .nav-link {
  color: #111827;
  text-shadow: none;
}

.header.transparent .lang-switcher-desktop {
  background: rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(8px);
}

.header.transparent .lang-btn {
  color: rgba(17, 24, 39, 0.75);
}

.header.transparent .lang-btn.active {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  box-shadow: none;
}

.header.transparent .mobile-lang-btn {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  text-shadow: none;
}

.header.transparent .mobile-menu-btn {
  color: #111827;
  filter: none;
}

/* ==================== ANCHOR NAVIGATION ==================== */
.anchor-nav {
  position: sticky;
  top: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 2px solid #e5e7eb;
  z-index: 90;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.anchor-nav.show {
  display: block;
}

.anchor-nav-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.anchor-link {
  padding: 0.5rem 1rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.anchor-link:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.anchor-link.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* ==================== HERO SECTION ==================== */
.project-hero {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
  margin-top: 70px;
}

.project-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.project-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin: 0;
}

.project-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.meta-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.project-hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .project-hero {
    padding: 40px 20px;
  }

  .project-hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-page-title {
    font-size: 1.75rem;
  }

  .anchor-nav-content {
    gap: 1rem;
  }
}

/* ==================== TRUST BANNER ==================== */
.trust-banner {
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 8px;
}

.trust-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.trust-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* ==================== PROJECT DESCRIPTION ==================== */
.project-description-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f5f7fa 100%);
}

.section-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.description-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.description-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-number span {
  font-size: 1rem;
  color: #6b7280;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .section-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== CTA BANNERS ==================== */
.cta-banner-primary,
.cta-banner-secondary {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.cta-banner-secondary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #2563eb;
}

.btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .cta-content h3 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

/* ==================== TECHNICAL DETAILS / ACCORDION ==================== */
.technical-details {
  padding: 60px 20px;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
}

.technical-details h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111827;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: #f9fafb;
  color: #2563eb;
}

.accordion-header.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid #e5e7eb;
}

.accordion-content.active {
  max-height: 1000px;
}

.accordion-content {
  padding: 1.5rem;
  background: #f9fafb;
  display: none;
}

.accordion-header.active + .accordion-content {
  display: block;
  max-height: 1000px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #111827;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding-left: 1.75rem;
  position: relative;
  color: #374151;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 600;
}

.subsidy-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subsidy-info p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

.subsidy-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subsidy-info li {
  color: #374151;
  padding-left: 1.5rem;
  position: relative;
}

.subsidy-info li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 600;
}

/* ==================== GALLERY ==================== */
.project-gallery {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f5f7fa 100%);
}

.project-gallery h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Marquee slider (> 3 images) ---- */
@keyframes gallery-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.project-gallery.gallery-slider .gallery-grid {
  overflow: hidden;
  display: block;
  max-width: 100%;
}

.gallery-slider-wrap {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: gallery-marquee 18s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.project-gallery.gallery-slider .gallery-item {
  flex: 0 0 min(320px, 80vw);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.gallery-expand {
  padding: 0.75rem 1.5rem;
  background: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-expand {
  opacity: 1;
  transform: scale(1);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* ==================== RELATED PROJECTS ==================== */
.related-projects {
  padding: 60px 20px;
  background: white;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.related-project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #e5e7eb;
}

.related-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #2563eb;
}

.related-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-project-card:hover .related-image img {
  transform: scale(1.05);
}

.related-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.related-content {
  padding: 1.5rem;
}

.related-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.related-location {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

/* ==================== CONTACT FORM ==================== */
.contact-form-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f5f7fa 100%);
}

.contact-form-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #111827;
}

.project-contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.checkbox {
  flex-direction: row;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-group.checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-group.checkbox label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9375rem;
  color: #374151;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-group.checkbox label a {
  color: #2563eb;
  text-decoration: none;
}

.form-group.checkbox label a:hover {
  text-decoration: underline;
}

.form-group.privacy label {
  flex-direction: column;
  gap: 0.5rem;
}

.project-contact-form button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
}

.form-success-message,
.form-error-message {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.form-success-message {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
  color: #065f46;
}

.form-error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
}

.success-icon,
.error-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-success-message h4,
.form-error-message h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.0625rem;
}

.form-success-message p,
.form-error-message p {
  margin: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-contact-form {
    padding: 1.5rem;
  }
}

/* ==================== STICKY CTA BUTTON ==================== */
.sticky-cta {
  display: none !important;
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 95;
}

.sticky-cta.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.sticky-cta-btn {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  min-width: 140px;
}

.sticky-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.sticky-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .sticky-cta {
    bottom: 80px;
    right: 10px;
    left: 10px;
  }

  .sticky-cta-btn {
    width: 100%;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .technical-details h2 {
    font-size: 1.5rem;
  }

  .accordion-header {
    padding: 1rem;
    font-size: 1rem;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    padding: 40px 20px;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: auto;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .project-page-title {
    font-size: 1.5rem;
  }

  .cta-content h3 {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
