:root {
  --bg-main: #0b1220;
  --bg-elev-1: #111a2d;
  --bg-elev-2: #18233a;
  --text-main: #e7edf7;
  --text-muted: #9fb0cc;
  --accent: #1f736c;
  --accent-strong: #135171;
  --accent-warm: #3d1988;
  --border: rgba(147, 177, 216, 0.22);
  --shadow-soft: 0 12px 30px rgba(4, 10, 22, 0.35);
  --shadow-accent: 0 16px 40px rgba(54, 209, 196, 0.22);
}

body.light-mode {
  --bg-main: #f2f6fb;
  --bg-elev-1: #ffffff;
  --bg-elev-2: #edf3fb;
  --text-main: #162033;
  --text-muted: #5f718f;
  --accent: #caf6f2;
  --accent-strong: #a9d5d0;
  --accent-warm: #efc9b0;
  --border: rgba(17, 26, 45, 0.12);
  --shadow-soft: 0 10px 25px rgba(17, 26, 45, 0.12);
  --shadow-accent: 0 14px 34px rgba(15, 143, 131, 0.18);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(54, 209, 196, 0.12), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(255, 138, 91, 0.12), transparent 32%),
    url("../img/bg.png") center/cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

body.light-mode::before {
  opacity: 0.09;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-main);
}

p, .text-secondary, .text-muted {
  color: var(--text-muted) !important;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-muted);
}

section {
  padding: 60px 0;
  position: relative;
}

.brand-logo {
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar {
  background: rgba(11, 18, 32, 0.84) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(7, 12, 24, 0.22);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.85) !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler {
  color: var(--text-main) !important;
}

.navbar .nav-link {
  opacity: 0.9;
  border-radius: 8px;
  padding: 0.4rem 0.52rem !important;
  font-size: 0.92rem;
  white-space: nowrap;
}

.navbar .nav-link:hover {
  opacity: 1;
  background: rgba(54, 209, 196, 0.14);
}

.navbar .nav-link.active {
  opacity: 1;
  color: var(--text-main) !important;
  background: rgba(54, 209, 196, 0.08);
  box-shadow: inset 0 -2px 0 #36d1c4;
  font-weight: 600;
}

body.light-mode .navbar .nav-link.active {
  color: #162033 !important;
  background: rgba(31, 115, 108, 0.07);
  box-shadow: inset 0 -2px 0 #1f736c;
}

.navbar-toggler {
  border-color: var(--border) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(54, 209, 196, 0.3);
}

.language-flag {
  display: inline-block;
  background-size: cover;
  margin-right: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: filter 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.flag-active {
  filter: none;
  transform: scale(1.08);
  border-color: var(--accent);
}

.flag-inactive {
  filter: grayscale(100%) brightness(68%);
}

.hero-cta {
  border: 1px solid #8e8e8e !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #f8feff;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding-inline: 1.45rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

body.light-mode .hero-cta {
  color: #162033;
}

.hero-cta:hover,
.hero-cta:focus {
  color: #081320;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  filter: saturate(1.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.75rem;
}

.hero-cta-secondary {
  border: 1px solid var(--border);
  background: rgba(17, 26, 45, 0.72);
  color: var(--text-main);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus {
  border-color: rgba(54, 209, 196, 0.62);
  background: var(--bg-elev-2);
  color: var(--text-main);
  transform: translateY(-2px);
}

body.light-mode .hero-cta-secondary {
  background: rgba(255, 255, 255, 0.82);
}

.leadership-reading-width {
  width: min(100%, 920px);
  margin-inline: auto;
}

.leadership-hero {
  padding-top: 2.5rem !important;
}

.leadership-kicker {
  color: var(--accent) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leadership-lead {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-main) !important;
}

.leadership-intro {
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(17, 26, 45, 0.46);
}

body.light-mode .leadership-intro {
  background: rgba(255, 255, 255, 0.72);
}

.leadership-section {
  padding-block: 64px;
}

.leadership-section.services-section,
.leadership-reflection.services-section {
  text-align: left;
}

.leadership-section-heading {
  max-width: 760px;
  margin-inline: auto;
}

.leadership-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.leadership-principle-card,
.leadership-practice-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(24, 35, 58, 0.86), rgba(17, 26, 45, 0.96));
  box-shadow: var(--shadow-soft);
}

body.light-mode .leadership-principle-card,
body.light-mode .leadership-practice-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 251, 0.94));
}

.leadership-principle-card {
  min-height: 250px;
  padding: 30px;
}

.leadership-principle-number {
  position: absolute;
  top: 10px;
  right: 18px;
  color: rgba(54, 209, 196, 0.18);
  font-family: 'Orbitron', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

body.light-mode .leadership-principle-number {
  color: rgba(31, 115, 108, 0.12);
}

.leadership-principle-card h3,
.leadership-practice-card h3 {
  position: relative;
  font-size: 1.08rem;
  line-height: 1.4;
}

.leadership-principle-card h3 {
  max-width: 78%;
  min-height: 3.1em;
  margin-bottom: 18px;
}

.leadership-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.leadership-practice-card {
  padding: 26px;
  border-top: 3px solid var(--accent);
}

.leadership-practice-card h3 {
  margin-bottom: 14px;
}

.leadership-reflection {
  margin-bottom: 0;
}

.leadership-reflection-block {
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--border);
}

.leadership-reflection-block + .leadership-reflection-block {
  margin-top: 36px;
}

.leadership-reflection-block h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.leadership-reflection-block p {
  margin-bottom: 0;
}

.certificates-reading-width {
  max-width: 880px;
}

.certificates-hero.services-section {
  text-align: center;
}

.certificates-kicker {
  color: var(--accent) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}

.certificate-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(24, 35, 58, 0.9), rgba(17, 26, 45, 0.98));
  box-shadow: var(--shadow-soft);
}

body.light-mode .certificate-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 251, 0.94));
}

.certificate-thumbnail-link {
  flex: 0 0 42%;
  min-width: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  background: rgba(8, 19, 32, 0.35);
}

body.light-mode .certificate-thumbnail-link {
  background: rgba(237, 243, 251, 0.7);
}

.certificate-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.certificate-placeholder {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(54, 209, 196, 0.28);
  border-radius: 6px;
  color: var(--text-main);
  background: linear-gradient(145deg, rgba(31, 115, 108, 0.18), rgba(61, 25, 136, 0.16));
  font-weight: 800;
  letter-spacing: 0.03em;
}

.certificate-placeholder .bi {
  color: var(--accent);
  font-size: 2.4rem;
  line-height: 1;
}

.certificate-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.certificate-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.certificate-type {
  padding: 3px 9px;
  border: 1px solid rgba(54, 209, 196, 0.35);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(31, 115, 108, 0.14);
  font-weight: 700;
  line-height: 1.35;
}

.certificate-title {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.certificate-issuer {
  margin-bottom: 12px;
  color: var(--text-main) !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.certificate-description {
  font-size: 0.92rem;
}

.certificate-cta {
  margin-top: auto;
}

.certificates-empty {
  max-width: 720px;
  margin-inline: auto;
  padding: 42px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(17, 26, 45, 0.42);
}

body.light-mode .certificates-empty {
  background: rgba(255, 255, 255, 0.68);
}

.certificates-empty .bi {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 2.5rem;
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: min(100%, 360px);
  }

  .leadership-principles-grid,
  .leadership-practice-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .leadership-principle-card {
    min-height: 0;
  }

  .leadership-principle-card h3 {
    min-height: 0;
  }

  .leadership-intro {
    padding: 20px;
  }

  .certificate-card {
    flex-direction: column;
  }

  .certificate-thumbnail-link {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .certificate-thumbnail,
  .certificate-placeholder {
    max-width: 420px;
  }
}

#services,
.services-section {
  background: linear-gradient(180deg, rgba(24, 35, 58, 0.58), rgba(17, 26, 45, 0.62));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-left: 25px;
  padding-right: 25px;
  text-align: justify;
  margin-bottom: 20px;
}

body.light-mode #services,
body.light-mode .services-section {
  background: linear-gradient(180deg, rgba(237, 243, 251, 0.92), rgba(255, 255, 255, 0.95));
}

.card,
.service-card,
.portfolio-card,
.quick-contact-item {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.card-title,
.card-text,
.card-footer {
  color: inherit;
}

.service-card,
.portfolio-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.portfolio-card:hover,
.quick-contact-item:hover {
  transform: none;
  border-color: rgba(54, 209, 196, 0.44);
  box-shadow: var(--shadow-accent);
}

.service-card .card-body,
.portfolio-card .card-body {
  position: relative;
  transition: transform 0.22s ease;
}

.service-card-link {
  z-index: 3;
}

.service-card:hover .card-body,
.portfolio-card:hover .card-body {
  transform: none;
}

.service-card .card-body::before,
.portfolio-card .card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  background: linear-gradient(120deg, rgba(54, 209, 196, 0.08), transparent 45%, rgba(255, 138, 91, 0.08));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.service-card:hover .card-body::before,
.portfolio-card:hover .card-body::before {
  opacity: 1;
}

.portfolio-card .card-img-top {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.offer-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.offer-infrastructure {
  max-width: 900px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(8 71 66 / 0.7);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.offer-infrastructure-icon {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.offer-infrastructure-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.offer-infrastructure p {
  margin: 0;
  color: var(--text-muted);
}

.offer-collaboration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 24px;
}

.offer-mode-card {
  text-align: left;
}

.offer-mode-card-primary {
  border-color: rgba(54, 209, 196, 0.44);
}

.offer-mode-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(54, 209, 196, 0.35);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(31, 115, 108, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.offer-start-note {
  max-width: 980px;
  margin-inline: auto;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(24, 35, 58, 0.24);
  text-align: left;
}

body.light-mode .offer-start-note {
  background: rgba(237, 243, 251, 0.7);
}

.offer-start-note h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.offer-start-note p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .offer-collaboration-grid {
    grid-template-columns: 1fr;
  }
}

.case-study-card .badge,
#case-study-modal-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.case-study-card .badge-ready,
#case-study-modal-status.badge-ready {
  background: rgba(31, 115, 108, 0.22);
  color: var(--text-main);
}

.case-study-card .badge-developed,
#case-study-modal-status.badge-developed {
  background: rgba(85, 130, 210, 0.22);
  color: var(--text-main);
}

.case-study-card .badge-in-progress,
#case-study-modal-status.badge-in-progress {
  background: rgba(239, 201, 176, 0.18);
  color: var(--text-main);
}

.case-study-media {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.case-study-open-trigger {
  cursor: pointer;
}

.case-study-open-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  background: rgba(5, 10, 20, 0.78);
}

.case-study-modal.is-open {
  display: flex;
}

.case-study-modal-panel {
  width: min(900px, calc(100vw - 120px));
  height: min(88vh, 920px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.case-study-modal-panel.no-media {
  grid-template-rows: minmax(0, 1fr);
}

.case-study-modal-panel.no-media .case-study-modal-media-wrap {
  display: none;
}

.case-study-modal-close,
.case-study-modal-nav {
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.92);
  color: #ffffff;
  font-weight: 700;
}

.case-study-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  z-index: 2;
}

.case-study-modal-nav {
  width: 44px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.case-study-modal-media-wrap {
  min-height: 0;
  background: rgba(8, 19, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-modal-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.case-study-modal-media.has-media {
  display: block;
}

.case-study-modal-content {
  min-height: 0;
  overflow: auto;
  padding: 34px 32px;
}

.case-study-modal-role {
  color: var(--text-muted);
  font-weight: 700;
}

.case-study-modal-desc {
  color: var(--text-main);
  line-height: 1.7;
}

.case-study-modal-desc > :last-child {
  margin-bottom: 0;
}

.case-study-modal-desc h1,
.case-study-modal-desc h2,
.case-study-modal-desc h3,
.case-study-modal-desc h4 {
  margin: 1.4em 0 0.55em;
  font-size: 1.15rem;
}

.case-study-modal-desc pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(8, 19, 32, 0.55);
}

.case-study-modal-desc code {
  font-size: 0.9em;
}

.case-study-modal-desc blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.case-study-modal-desc table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.case-study-modal-desc th,
.case-study-modal-desc td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
}

body.case-study-modal-open {
  overflow: hidden;
}

.notebook-viewer-page {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.notebook-viewer-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.notebook-viewer-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notebook-viewer-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
}

.notebook-viewer-notice .bi {
  margin-top: 0.1em;
  color: var(--accent);
}

.notebook-viewer-back {
  flex: 0 0 auto;
}

.notebook-frame-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.notebook-frame {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 640px;
  border: 0;
  background: #ffffff;
}

@media (max-width: 860px) {
  .notebook-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .notebook-frame {
    height: 72vh;
    min-height: 520px;
  }

  .case-study-modal {
    padding: 18px 12px;
    gap: 8px;
  }

  .case-study-modal-panel {
    width: calc(100vw - 72px);
    height: 88vh;
    grid-template-rows: minmax(160px, 34vh) 1fr;
  }

  .case-study-modal-panel.no-media {
    grid-template-rows: minmax(0, 1fr);
  }

  .case-study-modal-content {
    padding: 24px 20px;
  }

  .case-study-modal-nav {
    width: 34px;
    height: 54px;
  }
}

.portfolio-card:hover .card-img-top {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.quick-contact-item {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.quick-contact-label {
  color: var(--text-main);
  font-weight: 600;
}

.quick-contact-detail {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.quick-contact-item > span {
  color: var(--text-main);
  font-weight: 600;
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-tech,
.portfolio-card .btn-primary {
  background: var(--accent);
  border: 1px solid transparent;
  color: #081320;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-tech:hover,
.portfolio-card .btn-primary:hover {
  background: var(--accent-strong);
  color: #f8feff;
  transform: none;
  box-shadow: var(--shadow-soft);
}

form input,
form textarea {
  background: var(--bg-elev-1) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  padding: 10px;
  border-radius: 8px;
}

form input:focus,
form textarea:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(54, 209, 196, 0.22) !important;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.news-container {
  max-width: 900px;
}

.news-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.news-filter-option {
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--border);
  font-weight: 600;
}

.news-filter-option:hover,
.news-filter-option:focus-visible {
  color: var(--text-main);
  background: var(--bg-elev-2);
  border-color: rgba(54, 209, 196, 0.5);
}

.news-filter-option.is-active {
  color: #ffffff;
  background: #1f736c;
  border-color: #2b9188;
}

.news-filter-option.is-active:hover,
.news-filter-option.is-active:focus-visible {
  color: #ffffff;
  background: #286f69;
  border-color: #36a399;
}

body.light-mode .news-filter-option {
  color: #162033;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(22, 32, 51, 0.24);
}

body.light-mode .news-filter-option:hover,
body.light-mode .news-filter-option:focus-visible {
  color: #162033;
  background: #ffffff;
  border-color: #1f736c;
}

body.light-mode .news-filter-option.is-active,
body.light-mode .news-filter-option.is-active:hover,
body.light-mode .news-filter-option.is-active:focus-visible {
  color: #162033;
  background: #caf6f2;
  border-color: #8bc9c2;
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.news-content > :last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-sep {
  opacity: 0.6;
}
#tech-stack {
  padding-top: 44px;
}

.tech-stack-wrap {
  max-width: 1050px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}

.tech-card {
  background: linear-gradient(165deg, rgba(24, 35, 58, 0.86), rgba(17, 26, 45, 0.96));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  min-height: 160px;
}

body.light-mode .tech-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 251, 0.94));
}

.tech-card-title {
  font-size: 1rem;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  border: 1px solid rgba(54, 209, 196, 0.33);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(31, 115, 108, 0.14);
  line-height: 1.3;
}

body.light-mode .tech-tag {
  background: rgba(31, 115, 108, 0.08);
}

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

  .tech-card {
    min-height: 0;
  }
}

@media (max-width: 500px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
.portfolio-image-wrap {
  position: relative;
}

.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.84);
  display: none;
}

.reference-modal.is-open {
  display: block;
}

.reference-modal-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 26px 20px 20px;
}

.reference-modal-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  background: #ffffff;
}

.reference-modal-close {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.92);
  color: #ffffff;
  font-weight: 700;
  z-index: 2001;
}

body.reference-modal-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2100;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-banner__text {
  margin: 0;
}

.cookie-banner__link {
  margin-left: 8px;
  color: var(--text-main);
  text-decoration: underline;
}

.cookie-banner__btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}
