html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ============================================================
   Portfolio listing — card grid
   ============================================================ */
.portfolio-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 32px 0 64px;
}

@media (max-width: 900px) {
  .portfolio-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-card-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background-color: #1a1040;
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(232, 82, 42, 0.3);
}

.portfolio-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.portfolio-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #e8522a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}

.portfolio-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d8d2ec;
  margin: 0 0 18px;
  flex: 1;
}

.portfolio-card-link {
  align-self: flex-start;
  color: #ffb59a;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.portfolio-card-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   Confidential / NDA section
   ============================================================ */
.confidential-section {
  background-color: #0d0820;
  padding: 90px 24px;
  text-align: center;
  width: 100%;
}

.confidential-inner {
  max-width: 760px;
  margin: 0 auto;
}

.confidential-icon {
  color: #e8522a;
  margin-bottom: 24px;
  opacity: 0.85;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.confidential-section h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.confidential-section p {
  color: #c0b8d8;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.btn-contact-nda {
  display: inline-block;
  margin-top: 32px;
  background-color: #e8522a;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-contact-nda:hover {
  background-color: #c43f1a;
  color: #ffffff;
}

/* ============================================================
   Home page — "Now Building" strip
   ============================================================ */
.now-building-strip {
  background-color: #e8522a;
  padding: 18px 24px;
  width: 100%;
}

.now-building-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.now-building-label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px 10px;
  border-radius: 4px;
}

.now-building-text {
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.now-building-text strong {
  font-weight: 700;
}

.now-building-cta {
  display: inline-block;
  background: #fff;
  color: #e8522a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 22px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.now-building-cta:hover {
  background: #1a1040;
  color: #fff;
}

.now-building-inline-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.now-building-inline-link:hover {
  color: #1a1040;
}

@media (max-width: 640px) {
  .now-building-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* -- Portfolio Detail Page — Two Column Layout ------------------------- */
/* All rules below are scoped to portfolio detail pages via the           */
/* .portfolio-detail-layout wrapper or .portfolio-* class names so they    */
/* cannot affect the home page or any other page.                         */

.portfolio-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  align-items: start;
  background-color: #ffffff;
}

/* Main content column (left) */
.portfolio-detail-main {
  min-width: 0;
}

.portfolio-detail-main h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1040;
  margin-bottom: 8px;
  line-height: 1.25;
}

.portfolio-detail-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.portfolio-detail-thumb-link {
  display: block;
  flex: 1 1 200px;
  max-width: 300px;
}

.portfolio-detail-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-detail-thumb:hover {
  border-color: #e8522a;
  transform: translateY(-3px);
}

.portfolio-detail-description {
  margin-top: 24px;
  line-height: 1.8;
  color: #1a1040;
  font-size: 1rem;
}

.portfolio-detail-description h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1040;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8522a;
}

.portfolio-detail-description p {
  margin-bottom: 18px;
  color: #2d2d2d;
  line-height: 1.8;
}

.btn-back-to-portfolio {
  display: inline-block;
  margin-top: 40px;
  margin-bottom: 16px;
  background: transparent;
  color: #e8522a;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid #e8522a;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-back-to-portfolio:hover {
  background: #e8522a;
  color: #ffffff;
}

/* Sidebar column (right) */
.portfolio-detail-sidebar {
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: visible;
  position: sticky;
  top: 24px;
}

.portfolio-sidebar-section {
  padding: 0 0 28px 0;
  border-bottom: none;
}

.portfolio-sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8522a;
  margin-top: 0;
  margin-bottom: 12px;
}

.portfolio-tech-list,
.portfolio-team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-tech-list li,
.portfolio-team-list li {
  padding: 4px 0;
  border-bottom: none;
  color: #2d2d2d;
  font-size: 0.95rem;
  line-height: 1.4;
}

.portfolio-tech-list li:last-child,
.portfolio-team-list li:last-child {
  border-bottom: none;
}

.portfolio-team-list a {
  color: #e8522a;
  text-decoration: none;
  font-weight: 600;
}

.portfolio-team-list a:hover {
  text-decoration: underline;
}

.portfolio-project-link {
  color: #e8522a;
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}

.portfolio-project-link:hover {
  text-decoration: underline;
}

/* Responsive: stack to single column on tablet and mobile */
@media (max-width: 860px) {
  .portfolio-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-detail-sidebar {
    position: static;
  }

  .portfolio-detail-thumb-link {
    flex: 1 1 45%;
  }
}

@media (max-width: 500px) {
  .portfolio-detail-thumb-link {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .portfolio-detail-main h1 {
    font-size: 1.6rem;
  }
}

/* -- Portfolio Detail Lightbox ----------------------------------------- */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox-img {
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: block;
  background: #111;
}

.portfolio-lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #f0f0f0;
  font-size: 0.95rem;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  max-width: 80vw;
  text-align: center;
  pointer-events: none;
}

.portfolio-lightbox-close,
.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-lightbox-close:hover,
.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
  background: #e8522a;
  transform: scale(1.05);
}

.portfolio-lightbox-close {
  top: 16px;
  right: 20px;
  font-size: 2rem;
  padding: 4px 14px;
}

.portfolio-lightbox-prev { left: 20px;  top: 50%; transform: translateY(-50%); }
.portfolio-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.portfolio-lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.portfolio-lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 640px) {
  .portfolio-lightbox { padding: 12px; }
  .portfolio-lightbox-prev,
  .portfolio-lightbox-next { font-size: 1.2rem; padding: 8px 12px; }
}


/* -- Portfolio page body (used by _LayoutPortfolio.cshtml only) ----------
   Provides the dark site background that the home page normally gets from
   its hero section. Scoped to the .portfolio-page-body class on <body> so
   it cannot affect the home page or any other layout. */
body.portfolio-page-body {
  background-color: #1a1040;
  color: #e0d8f0;
  min-height: 100vh;
  padding-top: 90px;
}

/* Navbar background matches the hero color so the fixed nav blends seamlessly
   into the dark hero on portfolio pages (no visible black bar separator). */
body.portfolio-page-body .navbar.fixed-top {
  background-color: #1a1040 !important;
}

/* Inline links inside description paragraphs need readable contrast */
body.portfolio-page-body .portfolio-detail-description a {
  color: #e8522a;
  text-decoration: underline;
}


/* -- Portfolio Hero Section ---------------------------------------------- */
.portfolio-hero {
  width: 100%;
  background-color: #1a1040;
  padding: 100px 24px 80px;
  text-align: center;
  border-bottom: none;
}

.portfolio-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

@media (max-width: 900px) {
  .portfolio-hero { padding: 70px 24px 56px; }
  .portfolio-hero-title { font-size: 2.8rem; }
}

@media (max-width: 600px) {
  .portfolio-hero { padding: 50px 20px 40px; }
  .portfolio-hero-title { font-size: 2rem; }
}

/* -- Portfolio Index Page Wrapper ----------------------------------------- */
.portfolio-index-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  background-color: #ffffff;
}

/* The hero supplies its own top spacing below the fixed navbar, so the */
/* detail layout no longer needs its 48px top margin. */
/* (Old margin overrides removed - the layout/wrapper now use margin:0 auto.) */


/* -- Hero wave transition (dark hero to white content area) -------------- */
.portfolio-hero-wave {
  display: block;
  line-height: 0;
  margin-top: 0;
  background-color: #ffffff;
  overflow: hidden;
}

.portfolio-hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
  min-height: 80px;
}

/* -- White content wrapper that surrounds @RenderBody on portfolio pages.
      Note: more-specific 'body.portfolio-page-body' rule above keeps the
      <body> dark (visible behind/under the fixed navbar); this lower-
      specificity rule paints the inner <div class="portfolio-page-body">
      that wraps RenderBody white. */
.portfolio-page-body {
  background-color: #ffffff;
  min-height: 400px;
  margin-top: 0;
  padding-top: 0;
  color: #2d2d2d;
  font-size: 1rem;
  line-height: 1.7;
}

/* Default text colors inside the white content area only.
   These selectors are tag-prefixed with `div` so they match the inner
   <div class="portfolio-page-body"> that wraps @RenderBody(), but NOT
   the outer <body class="portfolio-page-body">. Without the `div` prefix
   these rules would leak into the navbar and hero (descendants of body)
   and paint their text dark-on-dark, making it invisible. */
div.portfolio-page-body p,
div.portfolio-page-body li,
div.portfolio-page-body td,
div.portfolio-page-body th,
div.portfolio-page-body dt,
div.portfolio-page-body dd,
div.portfolio-page-body span,
div.portfolio-page-body label,
div.portfolio-page-body blockquote,
div.portfolio-page-body address {
  color: #2d2d2d;
}

div.portfolio-page-body h1,
div.portfolio-page-body h2,
div.portfolio-page-body h3,
div.portfolio-page-body h4,
div.portfolio-page-body h5,
div.portfolio-page-body h6 {
  color: #1a1040;
}

div.portfolio-page-body a {
  color: #e8522a;
  text-decoration: none;
}

div.portfolio-page-body a:hover {
  text-decoration: underline;
}

div.portfolio-page-body strong,
div.portfolio-page-body b {
  color: #1a1040;
  font-weight: 700;
}

div.portfolio-page-body ul,
div.portfolio-page-body ol {
  color: #2d2d2d;
  padding-left: 24px;
}

div.portfolio-page-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}


/* -- Unified nav + hero dark block (portfolio pages only) --------------- */
/* Wraps the fixed navbar AND the hero so the navbar's transparent areas
   blend into one continuous dark purple band on portfolio pages. */
.portfolio-top-block {
  background-color: #1a1040;
  width: 100%;
}

/* When the navbar is rendered inside .portfolio-top-block, drop any
   override that paints it differently. (No-op if the .navbar.fixed-top
   rule above already uses the same #1a1040, but kept defensively in case
   that rule is changed in future.) */
.portfolio-top-block .navbar,
.portfolio-top-block header.navbar,
.portfolio-top-block .navbar.fixed-top {
  background-color: #1a1040 !important;
  background: #1a1040 !important;
}


/* -- Generic site content wrapper (alias of portfolio-index-wrapper) -----
   Used by About/Jobs/Contact pages that share _LayoutPortfolio.cshtml
   but don't need a sidebar. Same visual treatment as the portfolio index. */
.site-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  background-color: #ffffff;
}


/* -- Portfolio cards override (restore dark-card text colors) ------------
   The generic div.portfolio-page-body h3 / p / a rules (intended for the
   white content area) have higher specificity than the single-class card
   rules and would otherwise paint card titles/descriptions dark-on-dark.
   These compound selectors restore the card's intended light text. */
div.portfolio-page-body .portfolio-card-title {
  color: #ffffff;
}

div.portfolio-page-body .portfolio-card-desc {
  color: #d8d2ec;
}

div.portfolio-page-body .portfolio-card-link {
  color: #ffb59a;
}

div.portfolio-page-body .portfolio-card-link:hover {
  color: #ffffff;
}

div.portfolio-page-body .portfolio-card-badge {
  color: #ffffff;
}


/* -- Restore proper button text/background contrast inside content area --
   The generic div.portfolio-page-body a { color: #e8522a } rule outranks
   Bootstrap's .btn-primary { color: #fff }, which would otherwise paint
   anchor-style buttons orange-on-orange (unreadable). These compound
   selectors restore the intended white-on-orange button look anywhere a
   .btn appears inside the white content area. */
div.portfolio-page-body a.btn,
div.portfolio-page-body button.btn {
  color: #ffffff;
  text-decoration: none;
}

div.portfolio-page-body a.btn-primary,
div.portfolio-page-body button.btn-primary {
  background-color: #e8522a;
  border-color: #e8522a;
  color: #ffffff;
  font-weight: 700;
}

div.portfolio-page-body a.btn-primary:hover,
div.portfolio-page-body button.btn-primary:hover,
div.portfolio-page-body a.btn-primary:focus,
div.portfolio-page-body button.btn-primary:focus {
  background-color: #c8421e;
  border-color: #c8421e;
  color: #ffffff;
  text-decoration: none;
}

div.portfolio-page-body a.btn-secondary,
div.portfolio-page-body button.btn-secondary {
  color: #ffffff;
}

/* -- Contact page intro copy ------------------------------------------- */
.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
