:root {
  --color-primary: #d74a49;
  --color-secondary: #8ba0a4;
  --color-bg: #ffffff;
  --color-bg-1: #bcc0cc;
  --color-bg-2: #ccd0da;
  --color-bg-3: #e6e9ef;
  --color-text: #222;
  --color-info: #5a8eb3;
  --color-warning: #e0a847;

  --color-outline: color-mix(in srgb, var(--color-bg), #000 12%);
  --color-outline-secondary: color-mix(in srgb, var(--color-secondary), #000 10%);
  --color-outline-warning: color-mix(in srgb, var(--color-warning), #000 10%);
  --color-outline-info: color-mix(in srgb, var(--color-info), #000 10%);
}

.blog-header {
  background-color: var(--color-primary) !important;
}


.grayscale {
  filter: grayscale(1);
  opacity: 0.7;
}

.form-data > .radio > input {
  width: 10%;
}

.service {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  transition: transform 0.3s ease;
  margin: 30px 10px 45px 10px;
}

.service-link {
  background: #fff;
  border-radius: 50px 8px 50px 8px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
}

.service-link:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service:hover {
  transform: scale(1.05);
}

.service-image {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(1);
}

.feature {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.04) !important;
  max-width: 285px;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 0px !important;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.09);
}

.feature-image {
  align-items: center;
  max-height: 160px;
  object-fit: cover;
}

.feature-items {
  margin-top: 1.5rem !important;
}

.feature-content {
  padding: 18px !important;
  flex: 1;
}

.feature-content p {
  text-align: left !important;
}

.feature-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(15,23,42,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(250,250,250,0.6) 100%);
  text-align: right !important;
  width: 100%;
}

.modular-row {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
}

.showcase {
  max-width: unset !important;
}

.footer {
  max-width: 100% !important;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.card, .wide-card {
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-bg), #000 12%);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
  width: 260px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card > *,
.wide-card > * {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.wide-card {
  width: 350px !important;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card strong {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.card p {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0px !important;
}

.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tab-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: all 0.2s ease;
  background: transparent;
}

.tab-nav a:hover {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
}

.tab-nav a.active {
  background: linear-gradient(135deg, var(--color-primary) 50%, var(--color-secondary) 50%);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
  .tab-nav {
    gap: 0.3rem;
  }
  .tab-nav a {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

.course-container {
  line-height: 1.7;
  margin: 2rem 0;
}

.course-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 0.75rem;
  padding: 0.5rem;
  margin-top: 1rem;
}

.course-header {
  color: var(--color-primary);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.course-right .icon,
.course-left .icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.course-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.course-left .icon {
  order: 2;
}

.course-left .text {
  order: 1;
  flex: 1;
}

.scrollable-services > .services {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
}

.scrollable-services > .services::-webkit-scrollbar {
  height: 6px;
}

.scrollable-services > .services::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.scrollable-services > .services::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.scrollable-services > .services > .service {
  flex: 0 0 20% !important;
}

.half-columns {
  display: flex;
  flex-wrap: wrap;
}

.half-column {
  flex: 1 1 50%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .half-column {
    width: 100%;
  }
}

.img-40 {
  width: 40%;
}

.project-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    animation: floatLogo 4s ease-in-out infinite;
}

.project-logo img {
    width: 30vw;
    min-width: 180px;
    height: auto;

    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.15))
        drop-shadow(0 0 30px rgb(from var(--color-primary) r g b / 0.15));

    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-logo:hover img {
    transform: scale(1.06);
    filter:
        drop-shadow(0 0 18px rgba(255,255,255,0.25))
        drop-shadow(0 0 30px rgb(from var(--color-primary) r g b / 0.35));
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.langswitcher {
  float: right;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-wb) 0%,
    var(--accent-furnace) 33%,
    var(--accent-anvil) 66%,
    var(--accent-hammer) 100%
  );
  border-radius: 2px;
  opacity: 0.4;
}

.module {
  position: relative;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out both;
}

.module:nth-child(1) { animation-delay: 0.1s; }
.module:nth-child(2) { animation-delay: 0.2s; }
.module:nth-child(3) { animation-delay: 0.3s; }
.module:nth-child(4) { animation-delay: 0.4s; }

.dot {
  position: absolute;
  left: -2.4rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  z-index: 2;
  box-shadow: 0 0 0 3px currentColor;
}

.module-card {
  background: var(--color-bg-3);
  border: 2px solid var(--color-secondary);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  flex-shrink: 0;
}

.title-group h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.title-group .module-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.module-description {
  line-height: 1.7;
}

.module-description strong {
  color: var(--color-primary);
  font-weight: 600;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  header h1 { font-size: 1.75rem; }
  .timeline { padding-left: 2.5rem; }
  .dot { left: -1.9rem; width: 0.875rem; height: 0.875rem; }
  .card { padding: 1.5rem; }
}

  .repo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-outline);
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 4px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .repo-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow:
      0 4px 12px rgba(215, 74, 73, 0.12),
      0 16px 32px rgba(215, 74, 73, 0.06);
    transform: translateY(-2px);
  }

  .repo-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .repo-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--color-bg-3);
    color: var(--color-primary);
    transition: all 0.25s ease;
  }

  .repo-btn:hover .repo-btn__icon {
    background: var(--color-primary);
    color: var(--color-bg);
  }

  .repo-btn__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .repo-btn__text {
    line-height: 1;
  }

  .repo-btn__arrow {
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
    color: var(--color-secondary);
    transition: all 0.25s ease;
  }

  .repo-btn__arrow svg {
    width: 1rem;
    height: 1rem;
  }

  .repo-btn:hover .repo-btn__arrow {
    color: var(--color-primary);
    transform: translateX(3px);
  }

.icon-deltachat {
  display: inline-block;
  width: 1.4rem;
  height: 1.8rem;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' version='1.1' id='svg3' sodipodi:docname='Delta_chat_(Instant_Messenger)_logo.svg' inkscape:version='1.3.2 (091e20ef0f, 2023-11-25)' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs3' /%3E%3Csodipodi:namedview id='namedview3' pagecolor='%23505050' bordercolor='%23eeeeee' borderopacity='1' inkscape:showpageshadow='0' inkscape:pageopacity='0' inkscape:pagecheckerboard='0' inkscape:deskcolor='%23505050' inkscape:zoom='27.708333' inkscape:cx='33.924812' inkscape:cy='21.455639' inkscape:window-width='3440' inkscape:window-height='1404' inkscape:window-x='0' inkscape:window-y='0' inkscape:window-maximized='1' inkscape:current-layer='svg3' /%3E%3Cpath d='M24 1.3a22.7 22.7 0 0 0 0 45.4c14.4-.3 9.6-4.7 23.7 1-7.5-13-1-13.3-1-23.7A22.7 22.7 0 0 0 24 1.3z' style='fill:none;fill-opacity:0;stroke:%23000;stroke-width:0.57405078;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1' id='path1' /%3E%3Cpath id='path2' style='fill:%23000000;fill-opacity:0.99774659;stroke:none' d='M 24 5.3007812 A 19 19 0 0 0 5.3007812 24.300781 C 5.3007812 34.600771 13.60001 42.900781 24 42.800781 C 33.79999 42.800781 31.500402 37.300786 42.400391 42.300781 C 36.400397 33.000791 42.599219 31.800773 42.699219 23.800781 C 42.699219 13.500792 34.29999 5.2007813 24 5.3007812 z M 23.173828 10.794922 C 23.412445 10.791172 23.658003 10.793281 23.908203 10.800781 C 25.909801 10.860781 27.6521 11.129375 29.134766 11.609375 C 30.617431 12.089375 31.359375 12.86922 31.359375 13.949219 C 31.359375 14.369218 31.210596 14.729297 30.914062 15.029297 C 30.617529 15.329297 30.173144 15.510313 29.580078 15.570312 C 28.838746 15.570313 28.022412 15.120702 27.132812 14.220703 C 26.16908 13.380704 25.352746 12.779922 24.685547 12.419922 C 24.018348 12.059922 23.278356 11.880859 22.462891 11.880859 C 21.276758 11.880859 20.311645 12.089766 19.570312 12.509766 C 18.82898 12.929765 18.458984 13.439063 18.458984 14.039062 C 18.458984 14.639062 18.793738 15.210001 19.460938 15.75 C 20.128137 16.289999 21.610072 17.219064 23.908203 18.539062 C 26.577 20.039061 28.468079 21.210782 29.580078 22.050781 C 30.692077 22.89078 31.580848 23.879532 32.248047 25.019531 C 32.915246 26.15953 33.285242 27.420783 33.359375 28.800781 C 33.359375 31.080779 32.321825 33.119924 30.246094 34.919922 C 28.170362 36.71992 25.797704 37.619141 23.128906 37.619141 C 20.682509 37.619141 18.644604 36.900936 17.013672 35.460938 C 15.38274 34.020939 14.529211 32.099216 14.455078 29.699219 C 14.455078 27.419221 15.382997 25.499452 17.236328 23.939453 C 19.08966 22.439455 21.387929 21.540234 24.130859 21.240234 C 23.389527 20.580235 22.314782 19.770546 20.90625 18.810547 C 19.423585 17.730548 18.421277 16.889062 17.902344 16.289062 C 17.383411 15.689063 17.125 15.030546 17.125 14.310547 C 17.125 13.230548 17.75536 12.359218 19.015625 11.699219 C 20.118357 11.121719 21.503513 10.821172 23.173828 10.794922 z M 25.130859 22.140625 C 20.682864 22.740624 18.458984 25.139848 18.458984 29.339844 C 18.458984 31.619841 19.052149 33.360548 20.238281 34.560547 C 21.276147 35.760546 22.536866 36.359375 24.019531 36.359375 C 25.502196 36.359375 26.725721 35.760546 27.689453 34.560547 C 28.653185 33.360548 29.17196 31.800857 29.246094 29.880859 C 29.246094 26.940862 27.87379 24.360623 25.130859 22.140625 z ' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
