/*
 * Lider Metal - Service Detail Pages Styles
 * Project cards section - matches neler-yapiyoruz design
 * Compatible with hakkimizda.css design system
 */

/* ============================================
   Projects Section
   ============================================ */

.projects-section {
  position: relative;
  padding: 30px 0 20px;
  z-index: 2;
  width: 100%;
}

.projects-title {
  font-size: 32px;
  font-weight: 400;
  color: #31508c;
  text-align: center;
  margin-bottom: 60px;
  text-decoration: underline;
  text-decoration-color: #31508c;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ============================================
   Project Card - Image Box on Top Design
   ============================================ */

.project-card {
  background: transparent;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-8px);
}

/* Project Image Box */
.project-image-box {
  width: 100%;
  height: 200px;
  background: #d4d4d4;
  border-radius: 0 40px 0 40px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Second card - opposite corner */
.project-card:nth-child(2) .project-image-box {
  border-radius: 40px 0 40px;
}

.project-card:hover .project-image-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

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

/* Project Title */
.project-title {
  font-size: 18px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 14px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #2C4475;
}

/* Project Description */
.project-description {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

/* Project Link */
.project-link {
  font-size: 14px;
  font-weight: 600;
  color: #31508c;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #31508c;
  transition: width 0.3s ease;
}

.project-card:hover .project-link {
  color: #2C4475;
}

.project-card:hover .project-link::after {
  width: 100%;
}

/* ============================================
   Projects Footer
   ============================================ */

.projects-footer {
  text-align: center;
  padding-top: 20px;
}

.view-all-projects {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #31508c;
  text-decoration: none;
  padding: 14px 40px;
  border: 2px solid #31508c;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.view-all-projects:hover {
  background: #31508c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 80, 142, 0.2);
}

/* ============================================
   CTA Section
   ============================================ */

.cta1-section {
  position: relative;
  padding: 50px 0 80px;
  z-index: 2;
}

.cta1-box {
  background: linear-gradient(135deg, #31508E 0%, #2C4475 100%);
  padding: 10px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(49, 80, 142, 0.2);
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta1-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(49, 80, 142, 0.3);
  background: linear-gradient(135deg, #2C4475 0%, #1f3054 100%);
}

.cta1-title {
  font-size: 25px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.cta1-title strong {
  font-weight: 700;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 991px) {
  .projects-section {
    padding: 0px 0 50px;
  }

  .projects-title {
    font-size: 28px;
    margin-bottom: 50px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .project-image-box {
    height: 180px;
  }

  .project-card:nth-child(2) .project-image-box {
    border-radius: 40px 0 0 0;
  }

  .project-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  .cta1-title {
    font-size: 28px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 767px) {
  .projects-section {
    padding: 0px 0 20px;
  }

  .projects-title {
    font-size: 26px;
    margin-bottom: 45px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 420px;
    margin: 0 auto 40px;
  }

  .project-image-box {
    height: 170px;
  }

  .project-card:nth-child(2) .project-image-box {
    border-radius: 40px 0 0 0;
  }

  .project-title {
    font-size: 16.5px;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  .cta1-section {
    padding: 40px 0 70px;
  }

  .cta1-title {
    font-size: 24px;
  }

  .view-all-projects {
    font-size: 15px;
    padding: 12px 35px;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 575px) {
  .projects-section {
    padding: 0px 0 15px;
  }

  .projects-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .projects-grid {
    gap: 24px;
    margin-bottom: 35px;
  }

  .project-image-box {
    height: 160px;
  }

  .project-card:nth-child(2) .project-image-box {
    border-radius: 40px 0 0 0;
  }

  .project-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .project-description {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .project-link {
    font-size: 13.5px;
  }

  .cta1-title {
    font-size: 22px;
  }

  .view-all-projects {
    font-size: 14px;
    padding: 11px 30px;
  }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL
   ============================================ */

@media (max-width: 379px) {
  .projects-title {
    font-size: 22px;
  }

  .project-image-box {
    height: 150px;
  }

  .project-card:nth-child(2) .project-image-box {
    border-radius: 40px 0 0 0;
  }

  .project-title {
    font-size: 15px;
  }

  .project-description {
    font-size: 12.5px;
  }

  .project-link {
    font-size: 13px;
  }

  .cta1-title {
    font-size: 20px;
  }
}

/* ============================================
   Animation States
   ============================================ */

.project-card.fade-in-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .projects-section {
    padding: 30px 0;
  }

  .project-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .project-card:hover {
    transform: none;
    box-shadow: none;
  }

  .cta1-section {
    display: none;
  }
}