/*
 * public.css — Page-specific styles for GitSpire public website.
 * Homepage sections, service detail, work grid, contact page.
 */

/* ─────────────────────────────────────────────────────────────────────────────
 * ABOUT SECTION
 * ───────────────────────────────────────────────────────────────────────── */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-image-wrap img {
  width: 100%; height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.about-badge {
  position: absolute;
  bottom: var(--space-6); left: var(--space-6);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-3);
}
.about-badge .badge-icon { font-size: 1.6rem; color: var(--accent-orange); }
.about-badge .badge-value { font-size: var(--fs-xl); font-weight: var(--fw-black); color: var(--primary-navy); }
.about-badge .badge-label { font-size: var(--fs-xs); color: var(--text-secondary); }

/* ─────────────────────────────────────────────────────────────────────────────
 * SERVICES GRID
 * ───────────────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }

.service-img-wrap {
  width: 100%; height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gs-card:hover .service-img { transform: scale(1.07); }

/* ─────────────────────────────────────────────────────────────────────────────
 * WORK / PORTFOLIO FILTER
 * ───────────────────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.filter-tab {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--background);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

/* Work card video indicator */
.work-card-media { position: relative; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.work-card-media img { width: 100%; height: 220px; object-fit: cover; transition: transform var(--transition-slow); }
.gs-card:hover .work-card-media img { transform: scale(1.05); }
.video-badge {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(0,0,0,.6); color: #fff;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
  font-size: var(--fs-xs); display: flex; align-items: center; gap: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * CONTACT PAGE
 * ───────────────────────────────────────────────────────────────────────── */
.contact-info-card {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-soft);
  background: var(--background);
  transition: all var(--transition-base);
  text-decoration: none; color: var(--text-primary);
}
.contact-info-card:hover { border-color: var(--primary-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text-primary); }
.contact-info-card .icon-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(11,92,255,.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary-blue);
}
.contact-info-card .label { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: var(--fw-medium); margin-bottom: 2px; }
.contact-info-card .value { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }

/* ─────────────────────────────────────────────────────────────────────────────
 * SERVICE DETAIL PAGE
 * ───────────────────────────────────────────────────────────────────────── */
.service-hero { background: var(--background-soft); padding: var(--space-16) 0; }
.process-step {
  display: flex; gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-soft);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}
.step-content h5 { font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }

/* ─────────────────────────────────────────────────────────────────────────────
 * STUDENTS SECTION
 * ───────────────────────────────────────────────────────────────────────── */
.student-section { background: linear-gradient(135deg, #f0f4ff 0%, #fff 60%); }
.internship-table { border-radius: var(--radius-lg); overflow: hidden; }
.internship-row:hover { background: rgba(11,92,255,.04); }
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}
.empty-state h4 { color: var(--text-secondary); font-weight: var(--fw-semibold); margin-top: var(--space-4); }

/* ─────────────────────────────────────────────────────────────────────────────
 * TRACK PROJECT
 * ───────────────────────────────────────────────────────────────────────── */
.track-hero { background: var(--background-soft); }
.project-status-card {
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.project-status-header {
  background: var(--primary-navy);
  color: #fff;
  padding: var(--space-6) var(--space-8);
}
.payment-bar {
  background: var(--border-soft);
  border-radius: var(--radius-full);
  height: 8px; overflow: hidden;
  margin-top: var(--space-2);
}
.payment-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #2ecc71);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}
.milestone-timeline { position: relative; padding-left: 2rem; }
.milestone-timeline::before {
  content: '';
  position: absolute; left: 0.45rem; top: 0; bottom: 0;
  width: 2px; background: var(--border-soft);
}
.milestone-dot {
  position: absolute; left: -2rem;
  width: 16px; height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-soft);
  background: #fff;
  top: 4px;
}
.milestone-dot.completed { background: var(--success); border-color: var(--success); }
.milestone-dot.in_progress { background: var(--primary-blue); border-color: var(--primary-blue); }
.milestone-item { position: relative; margin-bottom: var(--space-6); }

/* ─────────────────────────────────────────────────────────────────────────────
 * BLOG
 * ───────────────────────────────────────────────────────────────────────── */
.blog-post-content img { border-radius: var(--radius-md); margin: var(--space-6) 0; max-width: 100%; }
.blog-post-content h2, .blog-post-content h3 { margin-top: var(--space-8); }
.blog-post-content blockquote {
  border-left: 4px solid var(--primary-blue);
  padding: var(--space-4) var(--space-6);
  background: rgba(11,92,255,.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  margin: var(--space-6) 0;
}
.blog-post-content code {
  background: var(--background-soft);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  font-size: 0.875em;
  color: var(--primary-blue);
}
.blog-post-content pre {
  background: var(--primary-navy);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  overflow-x: auto;
  margin: var(--space-6) 0;
}
.blog-post-content pre code { background: none; color: inherit; }

/* ─────────────────────────────────────────────────────────────────────────────
 * RESPONSIVE
 * ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section { min-height: auto; padding-top: 6rem; }
  .hero-image { max-width: 100%; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 575.98px) {
  .services-grid { grid-template-columns: 1fr; }
  .filter-tabs { justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * TECH MARQUEE
 * ───────────────────────────────────────────────────────────────────────── */
.tech-marquee-wrap { overflow: hidden; width: 100%; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex-shrink: 0; min-width: 72px; }
.tech-item-name { font-size: .72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────────────────────────────────────
 * PROJECT TRACKING
 * ───────────────────────────────────────────────────────────────────────── */
.project-status-card { border-radius: var(--radius-xl); border: 1.5px solid var(--border-soft); overflow: hidden; box-shadow: var(--shadow-md); }
.project-status-header { background: linear-gradient(135deg, var(--primary-navy) 0%, #0d3080 100%); color: #fff; padding: 2rem 2.5rem; }
.tracking-status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .9rem; border-radius: var(--radius-full); font-size: .78rem; font-weight: 700; }
.tracking-status-badge.status-pending { background: rgba(240,160,0,.15); color: #c17c00; }
.tracking-status-badge.status-in_progress { background: rgba(11,92,255,.1); color: var(--primary-blue); }
.tracking-status-badge.status-completed { background: rgba(31,169,113,.12); color: var(--success); }
.tracking-status-badge.status-on_hold { background: rgba(220,53,69,.1); color: var(--danger); }
.payment-bar { height: 8px; background: var(--border-soft); border-radius: var(--radius-full); overflow: hidden; }
.payment-bar-fill { height: 100%; background: linear-gradient(90deg, var(--success), #34d399); border-radius: var(--radius-full); transition: width 1s ease; }
.milestone-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.milestone-item { display: flex; align-items: flex-start; gap: 1rem; position: relative; }
.milestone-item::before { content:''; position:absolute; left:11px; top:24px; bottom:-24px; width:1.5px; background:var(--border-soft); z-index:0; }
.milestone-item:last-child::before { display: none; }
.milestone-dot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; position: relative; z-index: 1; }
.milestone-dot.completed { background: var(--success); }
.milestone-dot.in_progress { background: var(--primary-blue); }
.milestone-dot.pending { background: var(--border-medium); }

/* ─────────────────────────────────────────────────────────────────────────────
 * CONTACT PAGE
 * ───────────────────────────────────────────────────────────────────────── */
.contact-info-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); border: 1.5px solid var(--border-soft); color: var(--text-primary); text-decoration: none; transition: all .2s; }
.contact-info-card:hover { border-color: var(--primary-blue); color: var(--primary-blue); box-shadow: var(--shadow-sm); }
.contact-info-card .icon-wrap { flex-shrink: 0; width: 44px; height: 44px; background: rgba(11,92,255,.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--primary-blue); }
.contact-info-card .label { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.contact-info-card .value { font-size: .88rem; font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────────────────
 * SERVICE HERO
 * ───────────────────────────────────────────────────────────────────────── */
.service-hero { background: var(--background-soft); border-bottom: 1px solid var(--border-soft); padding: 5rem 0 4rem; }
.process-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; background: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step-content h5 { font-weight: 700; margin-bottom: .25rem; }

/* ─────────────────────────────────────────────────────────────────────────────
 * ADMIN STAT CARD
 * ───────────────────────────────────────────────────────────────────────── */
.admin-stat-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1.5px solid var(--border-soft); transition: box-shadow .2s; }
.admin-stat-card:hover { box-shadow: var(--shadow-md); }
.admin-stat-card .stat-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.admin-stat-card .stat-num { font-size: 1.6rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.admin-stat-card .stat-lbl { font-size: .75rem; color: var(--text-secondary); margin-top: .15rem; }

/* ─────────────────────────────────────────────────────────────────────────────
 * ACCORDION / FAQ
 * ───────────────────────────────────────────────────────────────────────── */
.gs-accordion .accordion-item { border: 1.5px solid var(--border-soft); border-radius: var(--radius-md) !important; margin-bottom: .5rem; overflow: hidden; }
.gs-accordion .accordion-button { font-weight: 600; color: var(--text-primary); background: var(--background-soft); }
.gs-accordion .accordion-button:not(.collapsed) { background: rgba(11,92,255,.05); color: var(--primary-blue); box-shadow: none; }

/* ─────────────────────────────────────────────────────────────────────────────
 * EMPTY STATE & PAGINATION
 * ───────────────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-state h4 { font-weight: 700; margin: 1rem 0 .5rem; }
.gs-pagination .page-link { border-radius: var(--radius-md) !important; border: 1.5px solid var(--border-soft); color: var(--text-primary); margin: 0 .15rem; padding: .45rem .75rem; }
.gs-pagination .page-item.active .page-link { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }

/* ==========================================================================
   HOMEPAGE HERO — LARGE RIGHT-EDGE AI / IOT ARTWORK
   ========================================================================== */

/* Keep the hero text and buttons above the artwork */
.hero-section .hero-copy-col {
  position: relative;
  z-index: 4;
}

/* Keep the image wrapper clean */
.hero-section .hero-image-wrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Desktop and large laptop layout */
@media (min-width: 1200px) {

  /*
   * The image column must not become the positioning parent.
   * The image wrapper will instead position itself relative
   * to the hero's centred Bootstrap container.
   */
  .hero-section .hero-image-col {
    position: static;
  }

  /*
   * right: calc(50% - 50vw)
   * precisely moves the image wrapper from the centred container
   * to the browser's right viewport edge.
   */
  .hero-section .hero-image-wrapper {
    position: absolute;
    top: 48%;
    right: calc(50% - 50vw);
    transform: translateY(-50%);

    width: clamp(820px, 67vw, 1280px);
    max-width: none;

    display: block;
    margin: 0;
    overflow: visible;
    text-align: right;
    z-index: 2;
  }

  .hero-section .hero-image {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;

    margin: 0;
    object-fit: contain;
    object-position: center right;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    /*
     * Softly fade only the left and bottom areas.
     * The right edge remains sharp and touches the screen edge.
     */
    -webkit-mask-image:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.35) 9%,
        rgba(0, 0, 0, 1) 20%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 100%
      );

    -webkit-mask-composite: source-in;

    mask-image:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.35) 9%,
        rgba(0, 0, 0, 1) 20%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 100%
      );

    mask-composite: intersect;

    filter:
      drop-shadow(0 22px 44px rgba(6, 28, 79, 0.13))
      drop-shadow(0 5px 18px rgba(11, 92, 255, 0.08));

    transform-origin: center right;
    pointer-events: none;
  }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1199.98px) {

  .hero-section {
    min-height: auto;
    padding-top: 2rem !important;
  }

  .hero-section .hero-image-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 2rem;
  }

  .hero-section .hero-image-wrapper {
    position: relative;
    top: auto;
    right: auto;
    transform: none;

    width: min(900px, 100%);
    max-width: none;
    margin: 0 auto;
  }

  .hero-section .hero-image {
    width: 100% !important;
    max-width: none !important;
    max-height: 55vh;
    margin: 0 auto;

    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0) 100%
    );

    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0) 100%
    );

    pointer-events: none;
  }
}

/* ================================================================
   MOBILE HERO — FULL IMAGE, NO CROPPING
   ================================================================ */
@media (max-width: 767.98px) {

  .hero-section {
    min-height: auto;
    padding: 0.75rem 0 3.5rem !important;
  }

  /*
   * Never use a fixed height here.
   * The complete AI/IoT artwork must remain visible.
   */
  .hero-section .hero-image-col {
    position: relative !important;
    order: -1;

    width: 100%;
    height: auto !important;

    padding: 0 !important;

    /*
     * Pull the content upward only enough to remove
     * the transparent empty area inside the PNG.
     */
    margin: 0 0 clamp(-68px, -12vw, -42px) !important;

    overflow: visible !important;
  }

  .hero-section .hero-image-wrapper {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    transform: none !important;

    display: block;
    overflow: visible !important;
  }

  .hero-section .hero-image {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block;

    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 auto !important;

    object-fit: contain !important;
    object-position: center top !important;

    transform: none !important;

    /*
     * Remove the previous crop masks.
     * Your original PNG already contains a soft fade.
     */
    /*
 * Mobile edge fade:
 * - soft left and right corners
 * - stronger bottom fade behind the category text
 */
-webkit-mask-image:
  linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 5%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, 0.35) 95%,
    transparent 100%
  ),
  linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.85) 76%,
    rgba(0, 0, 0, 0.42) 87%,
    transparent 100%
  );

-webkit-mask-composite: source-in;

mask-image:
  linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 5%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, 0.35) 95%,
    transparent 100%
  ),
  linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.85) 76%,
    rgba(0, 0, 0, 0.42) 87%,
    transparent 100%
  );

mask-composite: intersect;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    filter: drop-shadow(0 10px 22px rgba(6, 28, 79, 0.1));

    pointer-events: none;
  }

  .hero-section .hero-copy-col {
    position: relative;
    z-index: 4;

    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .hero-section .hero-heading {
    margin-top: 0 !important;
  }

  .hero-section .hero-sub {
    margin-top: 1.25rem;
  }
}


/* ==========================================================================
   FINAL STABLE PUBLIC NAVBAR
   The navbar keeps exactly the same dimensions before and after scrolling.
   This block does not modify any hero styles.
   ========================================================================== */

:root {
  --gs-navbar-height: 58px;
}

html {
  scroll-padding-top: var(--gs-navbar-height);
}

body {
  padding-top: var(--gs-navbar-height) !important;
}

.gs-navbar,
.gs-navbar.scrolled {
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  left: 0 !important;

  width: 100% !important;
  height: var(--gs-navbar-height) !important;
  min-height: var(--gs-navbar-height) !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translate3d(0, 0, 0) !important;
  translate: none !important;

  opacity: 1 !important;
  visibility: visible !important;

  border: 0 !important;

  z-index: 1050 !important;

  transition:
    background-color 180ms ease,
    box-shadow 180ms ease !important;
}

.gs-navbar {
  background: rgba(255, 255, 255, 0.99) !important;

  border-bottom: 0 !important;
  box-shadow: none !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.gs-navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;

  border-bottom: 0 !important;

  box-shadow:
    0 6px 20px
    rgba(6, 28, 79, 0.08) !important;

  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.gs-navbar > .container {
  height: 100% !important;
  min-height: 0 !important;

  display: flex;
  align-items: center;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.gs-navbar .navbar-brand {
  height: 100%;

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

  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;

  line-height: 1;
}

.gs-navbar .navbar-logo-img {
  display: block;

  width: auto !important;
  height: 40px !important;
  max-width: 220px;
  max-height: 40px !important;

  margin: 0 !important;

  object-fit: contain;
}

.gs-navbar .navbar-toggler {
  display: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1199.98px) {

  :root {
    --gs-navbar-height: 54px;
  }

  .gs-navbar .container {
    padding-right: 0.9rem !important;
    padding-left: 0.9rem !important;
  }

  .gs-navbar .navbar-logo-img {
    width: auto !important;
    height: 37px !important;
    max-width: 195px;
    max-height: 37px !important;
  }

  .gs-navbar .navbar-toggler {
    width: 40px;
    height: 40px;

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

    margin-left: auto !important;
    padding: 0.25rem !important;
  }

  .gs-navbar .navbar-toggler-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .gs-navbar .navbar-collapse {
    position: absolute;

    top: var(--gs-navbar-height);
    right: 0.75rem;
    left: 0.75rem;

    max-height:
      calc(
        100vh
        - var(--gs-navbar-height)
        - 1rem
      );

    padding: 0.8rem 1rem 1rem;

    overflow-y: auto;

    background: rgba(255, 255, 255, 0.99);

    border: 0 !important;
    border-radius: 0 0 16px 16px;

    box-shadow:
      0 12px 26px
      rgba(6, 28, 79, 0.10);
  }

  .gs-navbar .navbar-collapse .ms-3 {
    margin-left: 0 !important;
  }
}

@media (min-width: 1200px) {

  .gs-navbar .navbar-toggler {
    display: none !important;
  }

  .gs-navbar .navbar-collapse {
    display: flex !important;
  }
}


/* ==========================================================================
   FOOTER TEXT BRAND
   ========================================================================== */

.footer-brand-name {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;

  text-decoration: none !important;
  line-height: 0.94;

  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.footer-brand-git,
.footer-brand-tech {
  display: block;

  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;

  font-weight: 900;
  letter-spacing: -0.045em;
}

.footer-brand-git {
  font-size:
    clamp(
      1.9rem,
      3vw,
      2.55rem
    );

  color: #ffffff;
}

.footer-brand-tech {
  margin-top: 0.22rem;

  font-size:
    clamp(
      0.92rem,
      1.4vw,
      1.15rem
    );

  letter-spacing: 0.16em;
  text-transform: uppercase;

  background:
    linear-gradient(
      90deg,
      #68a5ff 0%,
      #9dc4ff 45%,
      #ff9e48 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.footer-brand-name:hover,
.footer-brand-name:focus-visible {
  transform: translateY(-2px);

  filter:
    drop-shadow(
      0 7px 15px
      rgba(52, 126, 255, 0.25)
    );
}

.footer-brand-name:focus-visible {
  outline:
    2px solid
    rgba(255, 255, 255, 0.8);

  outline-offset: 6px;
  border-radius: 4px;
}

/* ==========================================================================
   SMOOTH PAGE NAVIGATION
   Smooths normal Flask link navigation and POST/redirect page changes.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation:
    gs-page-out
    150ms
    ease-in
    both;
}

::view-transition-new(root) {
  animation:
    gs-page-in
    220ms
    ease-out
    both;
}

@keyframes gs-page-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.82;
  }
}

@keyframes gs-page-in {
  from {
    opacity: 0.82;
  }

  to {
    opacity: 1;
  }
}

#main-content {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

html.gs-page-leaving #main-content {
  opacity: 0.82;
  transform: translateY(2px);
}

/* Prevent rapid repeated clicks while a form is submitting. */
form[data-submitting="true"] {
  pointer-events: none;
}

form[data-submitting="true"] button[type="submit"],
form[data-submitting="true"] input[type="submit"] {
  opacity: 0.76;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  #main-content {
    transition: none !important;
  }

  html.gs-page-leaving #main-content {
    opacity: 1;
    transform: none;
  }
}