:root {
  --page-bg: linear-gradient(
    180deg,
    rgba(255, 217, 140, 0.95),
    rgba(255, 236, 219, 0.9)
  );
  --panel-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #fff7f0;
  --input-bg: rgba(255, 249, 241, 0.9);
  --input-border: rgba(247, 149, 69, 0.35);
  --tag-bg: rgba(247, 149, 69, 0.14);
  --tag-color: var(--orange-color);
  --text-strong: #2f3c52;
}

body {
   background: black; 

}

.project-page {
  max-width: 1320px;
  margin: 60px auto 48px;
  padding: 42px 32px 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 32px;
  background: var(--black);

  border: 4px solid var(--red);

  border-radius: 38px;
  box-shadow: 0 34px 90px rgba(145, 86, 33, 0.12);
  position: relative;
  overflow: hidden;
}

.project-page::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
 background: linear-gradient(to bottom, #efc21e, #f79645);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.project-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
   background: linear-gradient(to bottom, #efc21e, #f79645);
  bottom: -140px;
  left: -120px;
  pointer-events: none;
  
}

.projects-hero {
  grid-column: 1 / -1;
  padding-bottom: 22px;
  position: relative;
  z-index: 1;
}

.projects-hero span {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.projects-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--red);
  max-width: 700px;
  margin-bottom: 18px;
}

.projects-hero p {
  max-width: 700px;
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--black);
}

.project-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  font-size: 0.95rem;
  color: orangered;
  font-weight: 700;
}

.control-group input,
.control-group select {
  border-radius: 18px;
  border: 5px solid var(--input-border);
  padding: 14px 16px;
  font-size: 0.98rem;
  outline: none;
  color: var(--slate);
  background: linear-gradient(to bottom, #efc21e, #f79645);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.control-group input::placeholder {
  color: rgba(86, 53, 18, 0.48);
}

.control-group input:focus,
.control-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(247, 149, 69, 0.12);
}

.project-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 28px;
 background: linear-gradient(to bottom, #efc21e, #f79645);
  border: 1px solid rgba(247, 149, 69, 0.18);
}

.summary-item {
  color: var(--red);
  font-weight: 700;
}

.project-sections {
  display: grid;
  gap: 30px;
}

.project-section {
  width: 100%;
  border-radius: 32px;
  padding: 30px;
  background: rgba(255, 245, 235, 0.96);
  border: 1px solid rgba(247, 149, 69, 0.18);
  box-shadow: 0 18px 45px rgba(247, 149, 69, 0.08);
  position: relative;
}

.project-section::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(247, 149, 69, 0.85),
    rgba(255, 186, 72, 0.45)
  );
}

.project-section h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--red);
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-card {
  border-radius: 30px;
  border: 1px solid rgba(247, 149, 69, 0.2);
  background: linear-gradient(
    180deg,
    rgba(255, 243, 236, 0.95),
    rgba(255, 246, 240, 0.96)
  );
  padding: 24px;
  display: grid;
  gap: 14px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(249, 76, 162, 0.14);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(247, 149, 69, 0.18);
}

.project-card.active,
.project-card.active:hover {
  border-color: var(--orange-color);
  background: rgba(255, 241, 231, 0.98);
}

.project-card .project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  font-size: 1.18rem;
  margin: 0;
  color: var(--slate);
}

.project-card p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #6e5950;
  min-height: 76px;
}

.project-card .project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: #7d6b62;
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 33, 53, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.project-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal {
  width: min(860px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: rgba(255, 250, 245, 0.98);
  border-radius: 34px;
  padding: 30px;
  position: relative;
  box-shadow: 0 42px 100px rgba(15, 28, 58, 0.2);
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.project-modal-overlay.open .project-modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--orange-color);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal-close:hover {
  background: #f57c00;
  transform: scale(1.05);
}

.details-card {
  display: grid;
  gap: 18px;
}

.details-header {
  display: grid;
  gap: 10px;
}

.details-header .pill {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(247, 149, 69, 0.18);
  color: var(--orange-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.details-header h2 {
  font-size: 2rem;
  color: var(--slate);
  margin: 0;
}

.details-date {
  color: #7d6a5a;
  font-size: 0.95rem;
}

.details-image-wrapper {
  border-radius: 28px;
  overflow: hidden;
  min-height: 240px;
  background: linear-gradient(
    180deg,
    rgba(255, 237, 219, 0.8),
    rgba(255, 246, 241, 0.6)
  );
}

.details-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-description {
  font-size: 1rem;
  line-height: 1.85;
  color: #5f4a3b;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #5f4a3b;
  font-size: 0.95rem;
}

.details-meta span {
  background: rgba(247, 149, 69, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
}

.details-graph {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #fff3eb;
  border: 1px solid rgba(247, 149, 69, 0.2);
}

.graph-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate);
}

.graph-bars {
  display: grid;
  gap: 12px;
}

.graph-bar {
  display: grid;
  gap: 10px;
}

.graph-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #5f4a3b;
  font-weight: 700;
}

.graph-bar-track {
  width: 100%;
  height: 14px;
  background: rgba(247, 149, 69, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.graph-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-color), var(--pink));
  transition: width 0.4s ease;
}

.empty-state {
  font-size: 0.98rem;
  color: #7f6a5a;
  padding: 18px 0;
}

@media (max-width: 1100px) {
  .project-page {
    grid-template-columns: 1fr;
    margin: 48px 18px 32px;
    padding: 32px 20px 32px;
  }
}

@media (max-width: 720px) {
  .project-controls {
    grid-template-columns: 1fr;
  }

  .project-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-image-wrapper {
    min-height: 180px;
  }
}
