/* =========================================================
   SOFT IVORY SAAS THEME — FULL CSS
========================================================= */

:root {
  --bg: #f7f7f4;         /* soft ivory */
  --surface: #ffffff;     /* clean surface */
  --surface-dark: #f3f3f0;
  --text: #1a1a1a;        /* strong readable black */
  --text-light: #616161;  /* softer gray */
  --border: #dedede;      /* SaaS thin border */
  --accent: #00ffc3;      /* your neon accent */
  --accent-soft: #66ff7a;
  --radius: 14px;
}

/* GLOBAL -------------------------------------------------- */

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
}

.project-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 26px 80px;
}

/* NAVBAR -------------------------------------------------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);

  margin-bottom: -40px; /* FIXED */
}


.nav-left {
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-right {
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

/* HEADER -------------------------------------------------- */

.project-header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.subtitle {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* SECTIONS ------------------------------------------------ */

.section {
  margin-top: 70px;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 26px;
  position: relative;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: -10px;
  left: 0;
  border-radius: 2px;
  opacity: 0.7;
}

.section p {
  font-size: 1.08rem;
  margin-bottom: 18px;
}

/* GRID & CARDS ------------------------------------------- */

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--accent);
  background: var(--surface-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* IMAGES -------------------------------------------------- */

.img-full {
  width: 100%;
  border-radius: var(--radius);
  border: none;
  margin-top: 18px;
}

/* CODE BLOCK ---------------------------------------------- */

.code {
  background: #fdfdfb; /* warm white */
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.55;
  white-space: pre;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.comment {
  color: #888;
}

/* LISTS --------------------------------------------------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 12px;
}

.feature-list strong {
  color: var(--accent);
}

/* FOOTER -------------------------------------------------- */

.bottom-footer {
  margin-top: 80px;
  background: var(--surface);
  padding: 16px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}

.nav-logo {
  height: 32px;   /* Base size (mobile) */
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition: opacity 0.2s ease, height 0.2s ease;
}


.nav-logo:hover {
  opacity: 1;
}

@media (min-width: 900px) {
  .nav-logo {
    height: 46px;   /* Perfect size for your 700×125 banner */
  }
}

.improvements-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.improvements-list li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
  font-size: 1.05rem;
}

.improvements-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
}

/* Arrow list (matches mobile.html style but tuned for ivory UI) */
.arrow-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.arrow-list li {
  margin-bottom: 12px;
  padding-left: 24px;    /* indent */
  position: relative;
  color: var(--text);     /* your normal text color */
  font-size: 1.05rem;
  line-height: 1.55;
}

.arrow-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);       /* neon #00ffc3 */
  font-size: 1rem;
  opacity: 0.95;
}

.section-divider {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 8px 0 8px;
  opacity: 0.9;
}

.subtitle {
  margin-bottom: 10px !important; /* was 30–40px visually */
}

.section-divider {
  margin-top: 22px;
  margin-bottom: 18px;
}

.section-divider + p {
  margin-top: 0;
}

.section:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.section-divider {
  margin-top: 18px;
  margin-bottom: 20px;
}

.section > p:first-of-type {
  margin-top: 0 !important;
}

.date-tag {
  font-size: 0.9rem;
  color: #777;
  margin-top: 6px;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.project-container img.screenshot {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 26px 0;
  display: block;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.simple-ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ss-small {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

/* Grid */
.simple-ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ss-small {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.ss-small:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Fullscreen Preview Modal */
.img-preview {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-preview img {
  max-width: 95%;
  max-height: 95%;
  
  
  .view-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.view-link:hover {
  opacity: 0.8;
}

  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* GLOBAL LINK STYLE */
a {
  color: #00966f;              /* change this if you want a different color */
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

/* Underline animation */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: currentColor;          /* underline uses the same color as the link */
  transition: width 0.25s ease;
  border-radius: 2px;
}

a:hover::after {
  width: 100%;
  opacity: 0.9;
}

a:hover {
  opacity: 0.85;
}


.no-nav .top-nav {
  display: none !important;
}


/* Center subtitle only on project index page */
.home-page .project-header .subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
