/*
UPDATED PROJECTS BASE CSS
-------------------------
Keep visual/default/responsive styling in this file.
For desktop manual X/Y positioning, widths, font sizes, card sizes,
iframe size, and internal content movement, edit positioning-projects.css.
*/

/*
PURPOSE OF THIS FILE:
This stylesheet controls ONLY the Projects page (projects.html).

CURRENT PROJECTS PAGE:
- PrivAI live embedded demonstration
- PrivAI feature cards
- Privacy workflow cards
- Responsive iframe sizing

This file does NOT change other Safeify Explore pages.
*/


/* =========================================================
   HERO CONTENT
========================================================= */

.projects-hero-copy {
  max-width: 880px;
  line-height: 1.8;
}

.hero-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.privai-primary-button,
.privai-secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.privai-primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #0c78e8, #16b995);
  box-shadow: 0 10px 25px rgba(18, 110, 232, 0.20);
}

.privai-secondary-button {
  color: #16406f;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(84, 145, 209, 0.28);
}

.privai-primary-button:hover,
.privai-secondary-button:hover {
  transform: translateY(-2px);
}


/* =========================================================
   PRIVAI LIVE SECTION
========================================================= */

.privai-live-section {
  position: relative;
  padding-top: 34px;
}

.privai-section-heading {
  max-width: 900px;
}

.privai-demo-intro {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.8;
}


/* =========================================================
   MAIN PRIVAI WINDOW
========================================================= */

.privai-demo-wrapper {
  width: 100%;
  margin-top: 36px;
  overflow: hidden;

  border-radius: 22px;
  border: 1px solid rgba(70, 135, 210, 0.30);

  background: #171717;

  box-shadow:
    0 28px 75px rgba(17, 61, 120, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   PRIVAI TOP BAR
========================================================= */

.privai-demo-topbar {
  min-height: 60px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 20px;
  padding: 10px 18px;

  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.10);

  color: #ffffff;
}

.privai-status {
  display: flex;
  align-items: center;
  gap: 9px;

  font-size: 13px;
  font-weight: 800;
}

.privai-status-dot {
  width: 9px;
  height: 9px;

  display: inline-block;
  flex: 0 0 auto;

  border-radius: 50%;
  background: #18c98b;

  box-shadow: 0 0 10px rgba(24,201,139,0.95);
}

.privai-demo-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.58);
  text-align: center;
}

.privai-open-button {
  justify-self: end;

  min-height: 36px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #15b987;
  color: #ffffff;

  text-decoration: none;
  font-size: 12px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.privai-open-button:hover {
  transform: translateY(-1px);
  background: #10a77a;
}


/* =========================================================
   PRIVAI IFRAME
========================================================= */

.privai-frame-shell {
  position: relative;
  width: 100%;
  background: #202020;
}

.privai-demo-frame {
  display: block;

  width: 100%;
  height: min(820px, 78vh);
  min-height: 650px;

  border: 0;
  background: #1e1e1e;
}

.privai-frame-fallback {
  padding: 30px;
  background: #181818;
  color: #ffffff;
}

.privai-frame-fallback a {
  color: #47d9ab;
}


/* =========================================================
   PRIVAI FEATURE CARDS
========================================================= */

.privai-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 16px;
  margin-top: 26px;
}

.privai-feature-card {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 13px;

  padding: 21px;

  border-radius: 16px;

  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(93,151,210,0.25);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  box-shadow: 0 10px 30px rgba(22,73,130,0.07);
}

.privai-feature-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: rgba(220, 238, 255, 0.72);
  border: 1px solid rgba(90, 150, 210, 0.18);

  font-size: 19px;
}

.privai-feature-card strong {
  display: block;

  margin-bottom: 7px;

  color: #12325e;
  font-size: 13px;
}

.privai-feature-card p {
  margin: 0;

  color: #526a87 !important;

  font-size: 12px;
  line-height: 1.6;
}


/* =========================================================
   PRIVACY FLOW
========================================================= */

.privai-flow-section {
  margin-top: 72px;
}

.privai-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
  margin-top: 34px;
}

.privai-flow-card {
  min-height: 220px;
  padding: 28px;

  border-radius: 18px;

  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(93,151,210,0.23);

  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);

  box-shadow: 0 12px 34px rgba(21,76,145,0.07);
}

.privai-flow-number {
  display: inline-flex;

  margin-bottom: 28px;

  color: #126ee8;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.privai-flow-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.privai-flow-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   DEVELOPMENT NOTICE
========================================================= */

.privai-dev-note {
  margin-top: 32px;
  padding: 16px 18px;

  border-radius: 13px;

  background: rgba(232, 244, 255, 0.76);
  border: 1px solid rgba(80, 143, 211, 0.24);

  color: #345675;

  font-size: 12px;
  line-height: 1.65;
}

.privai-dev-note strong {
  color: #123d69;
}

.privai-dev-note code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(12,47,103,0.08);
  color: #0c2f67;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
  .privai-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privai-demo-frame {
    height: 720px;
    min-height: 620px;
  }
}


@media (max-width: 900px) {
  .privai-demo-topbar {
    grid-template-columns: 1fr auto;
  }

  .privai-demo-label {
    display: none;
  }

  .privai-flow-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {
  .hero-demo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .privai-primary-button,
  .privai-secondary-button {
    width: 100%;
  }

  .privai-demo-wrapper {
    margin-top: 26px;
    border-radius: 15px;
  }

  .privai-demo-topbar {
    padding: 10px 12px;
  }

  .privai-open-button {
    font-size: 11px;
    padding: 0 11px;
  }

  .privai-demo-frame {
    height: 680px;
    min-height: 580px;
  }

  .privai-feature-grid {
    grid-template-columns: 1fr;
  }

  .privai-flow-section {
    margin-top: 54px;
  }
}


@media (max-width: 480px) {
  .privai-status {
    font-size: 12px;
  }

  .privai-open-button {
    min-height: 34px;
  }

  .privai-demo-frame {
    height: 640px;
    min-height: 540px;
  }

  .privai-feature-card {
    padding: 18px;
  }

  .privai-flow-card {
    min-height: 0;
    padding: 22px;
  }
}
