/* ===============================
   LOCAL FONT: SPACE GROTESK
   (STATIC WEIGHTS — GOOGLE PARITY)
================================ */


@font-face {
  font-family: "Doto";
  src: url("/assets/fonts/Doto-Black-Regular.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



/* =========================================================
   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;
}

.project-container {
  padding-top: 0px;
}


/* 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;
}


/* 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;
  width: auto;
}

.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;
}


/* FOOTER -------------------------------------------------- */

.bottom-footer {
  margin-top: 40px;
  background: var(--surface);
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}






.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;
}



.view-link {
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  color: 0096ff;
}

.view-link:hover {
  opacity: 0.8;
}


/* 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;
}


/* Hero-specific alignment control */
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
}



/* ===============================
   FORM ELEMENTS
================================ */

input,
textarea {
  width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);

  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 195, 0.15);
}

/* Fix textarea resize behavior */
textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===============================
   PRIMARY BUTTON
================================ */

.button-primary {
  appearance: none;
  border: none;
  cursor: pointer;

  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;

  padding: 12px 22px;
  border-radius: 10px;

  background: ;
  color: #00966f;

  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input,
textarea {
  box-sizing: border-box;
}


body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

.doto {
  font-family: "Doto", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}


@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
  }

  .nav-right {
    font-size: 0.9rem;
  }
}


.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  white-space: nowrap;
}

.divider-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider-sec::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-sec span {
  white-space: nowrap;
}

/* ===============================
   BACK TO TOOLS LINK
================================ */

.back-link {
  position: fixed;
  top: 16px;
  left: 18px;

  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;

  color: var(--text-light);
  background: rgba(255, 255, 255, 0.85);

  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);

  backdrop-filter: blur(6px);
  z-index: 1000;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ===============================
   PROJECT HEADER LAYOUT
================================ */

.project-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 10px;
}


/* Back button should not compete with primary actions */
.project-header .back-link {
  font-size: 0.85rem;
  opacity: 0.85;
}

.project-header .back-link:hover {
  opacity: 1;
}

/* FORCE back link to be non-sticky */
.back-link {
  position: static !important;
}

/* Back button must not inherit link underline animation */
.back-link::after {
  content: none !important;
}
