/* ========================================
   PROJECT SINGLE PAGE LAYOUT
   ======================================== */

.project-single-container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 40px 20px;
}

.more-projects-container {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   PROJECT HERO HEADER
   ======================================== */

.project-hero-header {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 40px 20px;
}

.project-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.project-hero-excerpt {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin: 0 auto;
}

.project-hero-excerpt p {
  margin: 0;
}

/* ========================================
   PROJECT SUMMARY AND INFO BAR WRAPPER
   ======================================== */

.project-summary-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  align-items: stretch; /* This ensures both columns stretch to equal height */
}

.project-left-column {
  display: flex;
  flex-direction: column;
}

/* ========================================
   PROJECT INFO BAR
   ======================================== */

.project-info-bar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 10px 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  height: 100%; /* Ensures it takes full height of grid cell */
}

.project-info-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  width: 100%;
  justify-content: space-between;
}

.project-info-item:not(:last-child) {
  border-bottom: 1px solid #cedfe3;
}

.info-label {
  font-size: 16px;
  font-weight: 600;
  color: #001248;
}

.info-value-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-logo {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
}

.info-value {
  text-align: end;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.visit-website-btn {
  padding: 12px 24px;
  background: #0071bd;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.visit-website-btn:hover {
  background: #005a9a;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 189, 0.3);
}

/* ========================================
   PROJECT HEADER (when no hero image)
   ======================================== */

.project-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.project-title {
  font-size: 42px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 15px;
  line-height: 1.2;
}

.project-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
  margin: 0;
}

/* ========================================
   PROJECT SUMMARY SECTION
   ======================================== */

.project-summary-section {
  background: #ffffff;
  padding: 35px 40px;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 18, 72, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 189, 0.15);
}

.project-summary-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(0, 113, 189, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 18, 72, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.project-summary-content {
  position: relative;
  z-index: 1;
}

.project-summary-title {
  font-size: 36px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0071bd;
  position: relative;
}

.project-summary-text {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.project-summary-text p {
  margin-bottom: 16px;
}

.project-summary-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   PROJECT NAMES SECTION
   ======================================== */

.project-names-section {
  background: #ffffff;
  padding: 35px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 18, 72, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 189, 0.15);
  height: 100%; /* Ensures it takes full height of grid cell */
  display: flex;
  flex-direction: column;
}

.project-names-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(0, 113, 189, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 18, 72, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.project-names-title {
  font-size: 36px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0071bd;
  position: relative;
  z-index: 1;
}

.project-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-left: 10px;
  flex: 1; /* Allows the list to grow and fill remaining space */
}

.project-name-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #001248;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border-left: 4px solid #0071bd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  flex: 1 1 150px; /* Equal flex-basis, can grow and shrink */
  min-width: 500px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-name-badge:hover {
  border-left-width: 6px;
  border-left-color: #001248;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

/* Responsive adjustments for project names */
@media (max-width: 1024px) {
  .project-names-section {
    padding: 30px 35px;
  }

  .project-names-title {
    font-size: 26px;
  }

  .project-name-badge {
    font-size: 14px;
    padding: 10px 20px;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .project-names-section {
    padding: 25px 20px;
    margin-bottom: 25px;
  }

  .project-names-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .project-names-list {
    gap: 10px;
  }

  .project-name-badge {
    font-size: 13px;
    padding: 9px 18px;
  }
}

@media (max-width: 480px) {
  .project-names-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .project-names-title {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
  }

  .project-names-list {
    gap: 8px;
  }

  .project-name-badge {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 25px;
  }
}

/* ========================================
   PROJECT GALLERY SECTION
   ======================================== */

.project-gallery-slider {
  margin-bottom: 50px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 18, 72, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 189, 0.15);
}

.project-gallery-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(0, 113, 189, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 18, 72, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.project-gallery-title {
  font-size: 36px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0071bd;
  position: relative;
  z-index: 1;
}

.gallery-slider-container {
  position: relative;
  z-index: 1;
}

.gallery-swiper {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-slide {
  height: 500px;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Responsive height adjustments */
@media (max-width: 1024px) {
  .gallery-slide {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .gallery-slide {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .gallery-slide {
    height: 250px;
  }
}

/* Swiper Navigation Buttons */
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #001248;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
  background: #0071bd;
  color: #ffffff;
  transform: scale(1.1);
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

/* Swiper Pagination Dots */
.gallery-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.gallery-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: #0071bd;
  transform: scale(1.2);
}

/* ========================================
   SCOPE OF WORK SECTION
   ======================================== */

.project-scope-section {
  margin-bottom: 50px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 18, 72, 0.12);
  border: 1px solid rgba(0, 113, 189, 0.15);
  position: relative;
  overflow: hidden;
}

.project-scope-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(0, 113, 189, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 18, 72, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.project-scope-title {
  font-size: 36px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0071bd;
  position: relative;
  z-index: 1;
}

.project-key-items {
  margin: 0;
  position: relative;
  z-index: 1;
}

.key-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.key-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.key-item-icon {
  color: #0071bd;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.key-item-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

/* ========================================
   PROJECT CONTENT
   ======================================== */

.project-content {
  margin-bottom: 50px;
}

.project-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #001248;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0071bd;
}

.project-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #001248;
  margin: 25px 0 15px;
}

.project-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}

.project-content ul,
.project-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.project-content li {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 10px;
}

.project-content a {
  color: #0071bd;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.project-content a:hover {
  color: #005a9a;
}

/* ========================================
   MORE PROJECTS SECTION
   ======================================== */

.more-projects-section {
  padding: 40px 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 40px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #0071bd;
  position: relative;
}

.projects-slider-container {
  position: relative;
}

.projects-slider {
  display: flex;
  gap: 30px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #0071bd #e0e0e0;
}

.projects-slider::-webkit-scrollbar {
  height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 4px;
}

.projects-slider::-webkit-scrollbar-thumb {
  background: #0071bd;
  border-radius: 4px;
}

.project-card {
  min-width: 320px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.project-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-link {
  background: #ffffff;
  color: #001248;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-card-link:hover {
  background: #0071bd;
  color: #ffffff;
  text-decoration: none;
}

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

.project-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #001248;
  margin: 0 0 8px;
}

.project-card-client {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 4px;
}

.project-card-services {
  font-size: 14px;
  color: #0071bd;
  margin: 0;
  font-weight: 500;
}

.projects-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.projects-prev,
.projects-next,
.gallery-prev,
.gallery-next {
  width: 45px;
  height: 45px;
  background: #ffffff;
  border: 2px solid #0071bd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  font-size: 24px;
  color: #0071bd;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(35, 94, 255, 0.3);
}

.projects-prev:hover,
.projects-next:hover,
.gallery-prev:hover,
.gallery-next:hover {
  background: #0071bd;
  color: #ffffff;
  transform: scale(1.1);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .project-summary-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-info-bar {
    position: static;
    order: -1;
  }

  .project-single-container {
    padding: 30px 20px;
  }

  .project-names-section,
  .project-summary-section {
    padding: 30px 35px;
  }

  .project-gallery-slider {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .project-hero-header {
    min-height: 400px;
  }

  .project-hero-title {
    font-size: 42px;
  }

  .project-hero-excerpt {
    font-size: 18px;
  }

  .project-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .visit-website-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .project-title,
  .project-summary-title,
  .project-gallery-title,
  .project-scope-title,
  .section-title {
    font-size: 28px;
  }

  .project-names-section,
  .project-summary-section,
  .project-gallery-slider,
  .project-scope-section {
    padding: 25px 20px;
  }

  .project-names-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .gallery-prev,
  .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .projects-slider {
    gap: 20px;
  }

  .project-card {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .project-hero-header {
    min-height: 350px;
  }

  .project-hero-title {
    font-size: 32px;
  }

  .project-hero-excerpt {
    font-size: 16px;
  }

  .project-hero-content {
    padding: 30px 20px;
  }

  .project-single-container {
    padding: 20px 15px;
  }

  .project-title,
  .project-summary-title,
  .project-gallery-title,
  .project-scope-title,
  .section-title {
    font-size: 24px;
  }

  .project-names-section,
  .project-summary-section,
  .project-gallery-slider,
  .project-scope-section {
    padding: 20px 15px;
  }

  .project-names-title {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
  }

  .key-item-text {
    font-size: 15px;
  }

  .project-card {
    min-width: 250px;
  }
}
