/* =============================================
   PROJECT PAGE STYLES
   ============================================= */

:root {
  --brand: #f7931e;
  --dark: #071c34;
  --nav-pad: 18px;
  --bg-light: #f9fafb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* =============================================
   PROJECT HERO
   ============================================= */
.project-hero {
  background: radial-gradient(circle at 0 0, #1d4ed8 0, #020617 45%, #020617 100%);
  color: #fff;
  padding: 60px 16px 40px;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(247, 147, 30, 0.2), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.project-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.project-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.project-hero-tag span.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.project-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.project-hero-sub {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 560px;
  margin-bottom: 22px;
}

.project-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
}

.chip i {
  color: var(--brand);
  font-size: 13px;
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  background: var(--brand);
  border-radius: 999px;
  padding: 9px 20px;
  border: none;
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(248, 113, 37, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(248, 113, 37, 0.5);
}

.btn-ghost {
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 1);
}

.project-hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}

.stats-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  text-align: left;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #9ca3af;
}

.hero-mini-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* =============================================
   PROJECT CARD
   ============================================= */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.project-shell {
  margin-top: 40px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px 22px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 0 0, rgba(247, 147, 30, 0.08), transparent 50%);
  pointer-events: none;
}

.project-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 28px;
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand);
  margin-bottom: 4px;
  font-weight: 600;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.project-summary {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 12px;
}

.project-meta-table {
  margin-top: 13px;
  border-radius: 14px;
  border: 1px dashed #e5e7eb;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #f9fafb;
}

.meta-item-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9ca3af;
}

.meta-item-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

.project-card-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-line {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-line span.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-line span.badge i {
  font-size: 0.7rem;
}

.summary-highlight-box {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border: 1px solid #facc15;
  font-size: 0.85rem;
  color: #713f12;
}

/* =============================================
   STRATEGY CARDS
   ============================================= */
.strategy-section {
  margin-top: 32px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.strategy-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 15px 14px 16px;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.strategy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(247, 147, 30, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.strategy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(248, 113, 37, 0.4);
  background: #ffffff;
}

.strategy-card:hover::before {
  opacity: 1;
}

.strategy-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 1rem;
}

.strategy-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark);
}

.strategy-desc {
  font-size: 0.86rem;
  color: #6b7280;
}

.strategy-chip {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

.strategy-chip i {
  font-size: 0.7rem;
}

/* =============================================
   TABS SECTION
   ============================================= */
.tabs-section {
  margin-top: 36px;
}

.tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tabs-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand);
  font-weight: 600;
}

.tabs-toggle {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.tab-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
}

.tab-panels {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 16px 18px;
}

.tab-panel {
  display: none;
  font-size: 0.9rem;
  color: #374151;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.05rem;
  margin: 10px 0 4px;
  color: var(--dark);
}

.tab-panel p + p {
  margin-top: 10px;
}

/* =============================================
   PROJECTS SHOWCASE
   ============================================= */
.projects-showcase {
  margin-top: 34px;
}

.projects-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.projects-showcase-header h2 {
  font-size: 1.35rem;
  color: var(--dark);
}

.projects-showcase-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 460px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card-mini {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
  cursor: pointer;
}

.project-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(248, 113, 37, 0.4);
}

.project-card-img {
  height: 170px;
  overflow: hidden;
}

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

.project-card-mini:hover .project-card-img img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.project-tag i {
  font-size: 0.7rem;
  color: var(--brand);
}

.project-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
}

.project-desc {
  font-size: 0.86rem;
  color: #6b7280;
}

.project-card-footer {
  padding: 0 15px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
}

.project-open-btn {
  border: none;
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.project-open-btn i {
  font-size: 0.8rem;
  color: var(--brand);
}

.project-card-mini:hover .project-open-btn {
  background: #020617;
  transform: translateY(-1px);
}

/* =============================================
   MODAL POPUPS
   ============================================= */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.project-modal-overlay.show {
  display: flex;
}

.project-modal {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.7);
  position: relative;
}

.project-modal-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #111827, #020617);
  color: #f9fafb;
}

.project-modal-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.project-modal-sub {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-top: 2px;
}

.project-modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.project-modal-close:hover {
  background: #f97316;
  transform: rotate(3deg);
}

.project-modal-image-wrap {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
}

.project-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #374151;
}

.project-modal-body h3 {
  font-size: 1rem;
  margin: 10px 0 4px;
  color: #111827;
}

.project-modal-body p {
  margin-bottom: 8px;
}

.project-modal-body ul {
  margin-left: 16px;
  margin-bottom: 10px;
  list-style: disc;
}

.project-modal-body li {
  margin-bottom: 4px;
}

.modal-section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  color: #f97316;
  margin-top: 8px;
  margin-bottom: 2px;
  font-weight: 600;
}

/* =============================================
   SCROLL ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .fade-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .project-card-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card {
    padding: 18px 16px 24px;
  }

  .strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-meta-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero {
    padding: 50px 20px 32px;
  }
}

@media (max-width: 640px) {
  .project-hero {
    padding: 40px 14px 32px;
    min-height: auto;
  }

  .project-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .project-hero-title {
    font-size: 1.75rem;
  }

  .project-hero-sub {
    font-size: 0.9rem;
  }

  .project-meta-chips {
    margin-bottom: 16px;
  }

  .chip {
    font-size: 11px;
    padding: 5px 12px;
  }

  .btn-primary,
  .btn-ghost {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-card {
    padding: 14px;
    margin-top: 10px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .hero-mini-note {
    font-size: 0.72rem;
    margin-top: 8px;
  }

  .strategy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-meta-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-container {
    padding: 20px 14px 40px;
    margin-top: 0;
  }

  .project-shell {
    margin-top: 20px;
  }

  .project-card {
    padding: 16px 14px 20px;
  }

  .project-card-inner {
    gap: 20px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-label {
    font-size: 0.75rem;
  }

  .section-sub {
    font-size: 0.85rem;
  }

  .project-modal {
    max-width: 100%;
    max-height: 100vh;
    height: auto;
    border-radius: 0;
    margin: 0;
  }

  .project-modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .project-modal-body {
    padding: 12px 14px 14px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .project-modal-image-wrap {
    max-height: 180px;
    min-height: 180px;
  }

  .project-modal-header {
    padding: 12px 14px 10px;
  }

  .project-modal-title {
    font-size: 0.95rem;
  }
}
