/**
 * Sayuswa Teknologi — Projects & Case Studies Showcase Styling
 *
 * @package SayuswaTheme
 * @version 1.0.0
 */

/* Hero Section */
.sayuswa-projects-hero {
  background: linear-gradient(135deg, #032737 0%, #053C53 50%, #00A896 100%);
  color: #FFFFFF;
  padding: 60px 0 70px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(21, 232, 77, 0.2);
}

.sayuswa-projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(21, 232, 77, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sayuswa-projects-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.sayuswa-projects-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 232, 77, 0.12);
  color: #15E84D;
  border: 1px solid rgba(21, 232, 77, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.sayuswa-projects-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.sayuswa-projects-title span {
  color: #15E84D;
  background: linear-gradient(90deg, #15E84D, #00A896);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sayuswa-projects-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Stats Counter Strip */
.sayuswa-projects-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 35px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #15E84D;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .sayuswa-projects-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Projects Main Content & Filter Area */
.sayuswa-projects-container {
  padding: 50px 0 80px 0;
  background: #F8FAFC;
}

.sayuswa-projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.filter-btn:hover {
  border-color: #053C53;
  color: #053C53;
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: #053C53;
  color: #FFFFFF;
  border-color: #053C53;
  box-shadow: 0 4px 12px rgba(5, 60, 83, 0.25);
}

.filter-btn.is-active i {
  color: #15E84D;
}

/* Projects Grid Layout */
.sayuswa-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .sayuswa-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .sayuswa-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Card Styling */
.project-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #CBD5E1;
  box-shadow: 0 20px 35px rgba(5, 60, 83, 0.12);
}

.project-card-banner {
  height: 200px;
  background: #053C53;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.project-banner-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(3, 39, 55, 0.2) 0%, rgba(3, 39, 55, 0.85) 100%);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #15E84D;
  border: 1px solid rgba(21, 232, 77, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-industry-location {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 3;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.project-card-desc {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Key Metrics Summary Inside Card */
.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #F1F5F9;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.metric-box {
  text-align: center;
}

.metric-val {
  font-size: 13px;
  font-weight: 700;
  color: #053C53;
  display: block;
  white-space: nowrap;
}

.metric-lbl {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}

/* Tech Stack Tags */
.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tech-tag {
  background: #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Card Action Footer */
.project-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.btn-case-study {
  width: 100%;
  background: #053C53;
  color: #FFFFFF;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-case-study:hover {
  background: #00A896;
  color: #FFFFFF;
}

/* Case Study Modal */
.sayuswa-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sayuswa-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.sayuswa-modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.sayuswa-modal-backdrop.is-open .sayuswa-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
  color: #0F172A;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
}

.modal-header-banner {
  background: linear-gradient(135deg, #032737, #053C53);
  color: #FFFFFF;
  padding: 35px 30px;
}

.modal-project-badge {
  display: inline-block;
  background: rgba(21, 232, 77, 0.15);
  color: #15E84D;
  border: 1px solid rgba(21, 232, 77, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-project-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.modal-project-client {
  font-size: 13px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body-content {
  padding: 30px;
}

.modal-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #053C53;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px 0;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 8px;
}

.modal-section-title:first-child {
  margin-top: 0;
}

.modal-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
}

.modal-specs-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .modal-specs-list {
    grid-template-columns: 1fr;
  }
}

.modal-spec-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.modal-spec-item strong {
  color: #0F172A;
  display: block;
  margin-bottom: 2px;
}

.modal-footer-cta {
  background: #F1F5F9;
  padding: 24px 30px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 600px) {
  .modal-footer-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* RFP CTA Banner */
.sayuswa-projects-rfp {
  background: linear-gradient(135deg, #053C53, #032737);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 45px 40px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 15px 35px rgba(3, 39, 55, 0.2);
  border: 1px solid rgba(21, 232, 77, 0.3);
}

@media (max-width: 900px) {
  .sayuswa-projects-rfp {
    flex-direction: column;
    text-align: center;
    padding: 35px 24px;
  }
}

.rfp-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.rfp-text p {
  font-size: 14.5px;
  color: #CBD5E1;
  margin: 0;
  max-width: 600px;
}

.rfp-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .rfp-actions {
    flex-direction: column;
    width: 100%;
  }
}
