/* css/projects.css */
.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 5% 56px;
}

.title {
  font-size: clamp(2.1rem, 10vw, 3.6rem);
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 800;
  line-height: 1.08;
}

.project-row {
  display: grid;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.92) 0%, rgba(10, 11, 17, 0.98) 100%);
  box-shadow: var(--shadow);
}

.p-media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.p-media::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  background: radial-gradient(circle, rgba(111, 106, 255, 0.18), transparent 70%);
  z-index: -1;
  filter: blur(38px);
}

.phone-mockup {
  width: min(76vw, 290px);
  height: min(148vw, 560px);
  background: #000;
  border-radius: 34px;
  border: 9px solid #2c2c2e;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #2c2c2e;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.browser-mockup {
  width: 100%;
  max-width: 520px;
  height: 330px;
  background: #1c1c1e;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-header {
  height: 42px;
  background: #2a2a2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  position: relative;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.address-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #151515;
  border-radius: 8px;
  width: 64%;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.address-bar a {
  display: block;
  padding: 5px 14px;
  font-size: 0.74rem;
  color: #a1a1a6;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #000;
}

.scroll-area img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.92);
}

video {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.p-info span {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
  background: rgba(210, 107, 255, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid rgba(210, 107, 255, 0.18);
}

.p-info h2 {
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.12;
  font-weight: 800;
}

.p-info p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  font-size: 0.95rem;
  color: #d2d6e8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: "✦";
  color: var(--primary-light);
  font-weight: bold;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .container {
    padding: 16px 8% 72px;
  }

  .title {
    margin-bottom: 32px;
  }

  .project-row {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
    align-items: center;
    padding: 26px;
    margin-bottom: 22px;
  }

  .project-row:nth-child(even) .p-media {
    order: 2;
  }

  .project-row:nth-child(even) .p-info {
    order: 1;
  }

  .browser-mockup {
    height: 390px;
  }
}
