* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #00e0c6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f7f7f7;
  color: #111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 40px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.nav a {
  text-decoration: none;
  color: #111;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

/* HERO BASE */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* BACKGROUND VIDEO */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.5);
  transform: scale(1.2);
}

.hero-bg-video video {
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.2); }
  to { transform: scale(1.3); }
}

/* OVERLAY */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 80px);
  gap: clamp(20px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}

/* CONTENT */
.hero-content {
  max-width: 500px;
  color: white;
  flex: 1;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: var(--accent);
  padding: 0 8px;
  border-radius: 4px;
  color: black;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-content p {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.75;
  max-width: 420px;
}

/* VIDEO PLAYER */
.hero-video {
  flex: 1.2;
  max-width: 700px;
}

.hero-video video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* ANIMATION BASE */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* optional: schneller für hero */
.hero-content.hidden,
.hero-video.hidden {
  transition-delay: 0.2s;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav nav {
    justify-content: flex-start;
  }

  .hero-overlay {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 60px 20px;
  }

  .hero-video {
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 42px;
  }
}

/* CONTACT */
.contact {
  padding: 100px 40px;
  text-align: center;
}

.contact a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact a:hover {
  opacity: 0.7;
}

.contact h2 span {
  background: var(--accent);
  padding: 0 8px;
  border-radius: 4px;
  color: black;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* FOOTER */
.footer {
  padding: 40px;
  text-align: center;
}

/* LOGOS */
.logos {
  padding: 60px 40px;
}

.logo-row {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

/* ABOUT */
.about {
  padding: 80px clamp(20px, 5vw, 80px); /* weniger Abstand */
  max-width: 1400px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
}

/* WORK */
.work {
  padding: 100px 40px;
}

.work h2 {
  font-size: 24px; /* vereinheitlicht */
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

h3 {
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  justify-items: center; /* zentriert kleinere Cards */
}

.card {
  aspect-ratio: 16 / 9;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  white-space: nowrap;
  margin: 20px 0;
  width: 85%; /* ca. 15% kleiner */
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
  z-index: 1;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 24px;
  background: var(--accent);
  text-decoration: none;
  color: black;
  font-weight: 500;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card video,
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hochkant Video */
.card video.vertical {
  object-fit: contain;
  background: black;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 247, 247, 0.8);
  backdrop-filter: blur(10px);
}

.sticky {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  width: 100%;
}

.about-text {
  flex: none;
  max-width: 620px;
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  margin-right: -80px;
}

.about-image {
  position: relative;
  margin-left: -40px;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.about-image img {
  max-width: 480px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.2));
}

/* Mobile */
@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }

  .about-text {
    margin-right: 0;
    padding: 40px 24px 24px 24px;
    position: relative;
  }

  .about-image {
    position: static;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
  }

  .about-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
}
/* IMPRESSUM PAGE */

.impressum-page {
  padding-top: 120px;
}

.impressum-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.impressum-subtitle {
  font-size: 28px;
  font-weight: 600;
  margin-top: 80px;
  margin-bottom: 30px;
}

.impressum-text {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 600px;
}

.impressum-label {
  font-weight: 500;
  display: inline-block;
  margin-bottom: 4px;
}

.impressum-block {
  margin: 30px 0;
}

/* slightly tighter spacing for legal text */
.impressum-page p + p {
  margin-top: 6px;
}

/* mobile tweaks */
@media (max-width: 900px) {
  .impressum-title {
    font-size: 32px;
  }

  .impressum-subtitle {
    font-size: 24px;
  }

  .impressum-text {
    max-width: 100%;
  }
}

/* === WORK HOVER UPGRADE === */

.card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::after {
  display: none;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}


/* smooth media transition */
.card video,
.card img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.card:hover video,
.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* subtle fade-in for video vs thumbnail */
.card video {
  opacity: 1;
}

.card video[data-loaded="true"] {
  opacity: 1;
}

/* optional title overlay (future-ready) */
.card-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.card:hover .card-title {
  opacity: 1;
  transform: translateY(0);
}
.clients {
  padding: 40px 40px 20px 40px; /* weniger Abstand oben/unten */
  margin-top: 0;
  text-align: left; /* linksbündig */
  position: relative;
  z-index: 2;
}

.clients h2 {
  font-size: 24px; /* kleiner */
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left; /* linksbündig */
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  overflow: hidden; /* bleibt für carousel */
  padding: 60px 0; /* mehr Platz für Schatten */
  margin: -40px 0; /* gleicht das Padding wieder aus */
  scroll-behavior: auto;
  will-change: transform;
}

.client {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 16px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-size: 14px;
  opacity: 0.4;
  transform: scale(0.9);
  transition: all 0.3s ease;
  scroll-snap-align: center;
  white-space: nowrap;
  margin: 20px 0;
}

.client img {
  max-width: 150px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* aktives (mittiges) Element */
.client.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.client:hover {
  opacity: 1;
  transform: scale(1);
}

/* optional: scrollbar verstecken für cleaner carousel look */
.clients-logos::-webkit-scrollbar {
  display: none;
}
.clients-logos {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* leichte Fade-Out Masken links & rechts für Carousel Look */
.clients-logos {
  position: relative;
}

.clients-logos::before,
.clients-logos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.clients-logos::before {
  left: 0;
  background: linear-gradient(to right, rgba(247,247,247,0.9), rgba(247,247,247,0.4), transparent);
}

.clients-logos::after {
  right: 0;
  background: linear-gradient(to left, rgba(247,247,247,0.9), rgba(247,247,247,0.4), transparent);
}


/* ========================================
   IT PROJECTS
======================================== */

.it-projects {
  padding: 120px 40px;
}

.it-projects-header {
  max-width: 900px;
  margin-bottom: 40px;
}

.it-projects-header h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.it-projects-intro {
  margin-top: 20px;
  margin-left: 40px;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 760px;
}

/* GRID */
.it-projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-left: 40px;
}

/* CARD BASE */
.it-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.it-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0,224,198,0.12), transparent 40%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.04), transparent 30%);
  pointer-events: none;
}

.it-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  border-color: rgba(0,224,198,0.25);
}

/* FEATURED CARD */
.it-project-card.featured {
  padding: 0;
}

.it-project-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.it-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.it-project-card:hover .it-project-image img {
  transform: scale(1.06);
}

/* CONTENT */
.it-project-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.it-project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.it-project-meta span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  opacity: 0.7;
}

.it-project-card h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.it-project-card p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.75;
}

/* TAGS */
.it-project-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.it-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.it-project-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,224,198,0.12);
  color: #0b7f72;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.it-project-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  transition: transform 0.25s ease;
}

.it-project-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: rotate(45deg);
}

.it-project-card:hover .it-project-arrow {
  transform: translateX(4px);
}

/* DISABLED CARDS */
.it-project-card.disabled {
  opacity: 0.72;
}

.it-project-card.disabled::after {
  content: "Coming soon";
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}

.it-project-card.disabled:hover {
  transform: translateY(-4px);
}

.it-project-card.disabled .it-project-content {
  opacity: 0.82;
 }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .it-projects-grid {
    grid-template-columns: 1fr;
  }

  .it-project-card {
    min-height: unset;
  }
}

@media (max-width: 700px) {
  .it-projects {
    padding: 100px 20px;
  }

  .it-projects-header h2 {
    font-size: 24px;
  }

  .it-projects-intro {
    margin-left: 0;
    font-size: 17px;
    line-height: 1.7;
  }

  .it-projects-grid {
    margin-left: 0;
  }

  .it-project-content {
    padding: 24px;
  }

  .it-project-card h3 {
    font-size: 26px;
  }

  .it-project-image {
    height: 200px;
  }
}

/* ========================================
   BLOG LAYOUT
======================================== */

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 180px clamp(20px, 5vw, 80px) 120px;
  background:
    radial-gradient(circle at top left, rgba(0,224,198,0.12), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.blog-hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(0,0,0,0.03), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0,224,198,0.08), transparent 35%);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 34px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-back-link::before {
  content: "<";
  margin-right: 10px;
  color: var(--accent);
}

.blog-back-link:hover {
  opacity: 1;
  transform: translateX(-3px);
}

.blog-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.blog-badge-row span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.blog-hero h1 {
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 650;
  max-width: 1000px;
}

.blog-subtitle {
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.7;
  max-width: 780px;
  opacity: 0.75;
}

.blog-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.blog-tech-tags span {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0,224,198,0.12);
  color: #0b7f72;
  font-size: 14px;
  font-weight: 500;
}

/* MAIN LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 80px) 140px;
}

/* SIDEBAR */
.blog-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-sidebar-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.blog-sidebar-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.blog-sidebar-card h3 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.blog-sidebar-text {
  opacity: 0.7;
  line-height: 1.8;
  font-size: 15px;
}

.blog-progress {
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-progress-bar {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6df2df);
  border-radius: 999px;
}

.blog-progress-bar.progress-78 {
  width: 78%;
}

.blog-progress-bar.progress-86 {
  width: 86%;
}

.blog-stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-stack-list li {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-stack-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* CONTENT */
.blog-content {
  min-width: 0;
}

.blog-section {
  margin-bottom: 120px;
}

.blog-section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 700;
}

.blog-section h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-weight: 650;
}

.blog-section p {
  font-size: 20px;
  line-height: 1.9;
  opacity: 0.82;
  max-width: 850px;
  margin-bottom: 24px;
}

/* CODE BLOCK */
.blog-code-block {
  margin: 40px 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1115;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.blog-code-block pre {
  padding: 40px;
  overflow-x: auto;
  color: #d8f8f4;
  font-size: 16px;
  line-height: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* LISTS */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  padding-left: 24px;
}

.blog-list li {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.82;
}

/* HIGHLIGHT BOX */
.blog-highlight-box {
  margin-top: 40px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.65)
  );
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.blog-highlight-box h3 {
  font-size: 28px;
  margin-bottom: 28px;
}

.blog-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-highlight-grid div {
  padding: 24px;
  border-radius: 20px;
  background: rgba(0,0,0,0.03);
}

.blog-highlight-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.blog-highlight-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* RELATED PROJECTS */
.related-projects {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) 120px;
}

.related-projects-header {
  margin-bottom: 34px;
}

.related-projects-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.related-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.1);
  border-color: rgba(0,224,198,0.25);
}

.related-project-card h3 {
  font-size: 28px;
  line-height: 1.14;
}

.related-project-card p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.75;
}

.related-project-card.disabled {
  opacity: 0.7;
  cursor: default;
}

.related-project-card.disabled::after {
  content: "Coming soon";
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    padding: 140px 20px 90px;
  }

  .blog-hero h1 {
    font-size: 58px;
  }

  .blog-subtitle {
    font-size: 18px;
    line-height: 1.7;
  }

  .blog-layout {
    padding: 60px 20px 100px;
  }

  .blog-section {
    margin-bottom: 80px;
  }

  .blog-section h2 {
    font-size: 40px;
  }

  .blog-section p,
  .blog-list li {
    font-size: 17px;
    line-height: 1.8;
  }

  .blog-code-block pre {
    padding: 24px;
    font-size: 14px;
  }

  .blog-highlight-box {
    padding: 24px;
  }

  .blog-highlight-grid {
    grid-template-columns: 1fr;
  }

  .related-projects {
    padding: 0 20px 100px;
  }

  .related-projects-grid {
    grid-template-columns: 1fr;
  }

  .related-project-card {
    min-height: unset;
    padding: 24px;
  }
}

/* ===== BLOG LAYOUT V2 ===== */

.blog-hero-v2 {
  background: #fff;
  padding: 120px clamp(20px, 5vw, 80px) 80px;
}

.blog-hero-v2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.blog-hero-v2-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.blog-hero-v2-content h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #111;
}

.blog-hero-v2-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 2rem;
  max-width: 38ch;
}

.blog-hero-v2-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.blog-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-cta-primary:hover {
  opacity: 0.85;
  color: #fff;
}

.blog-cta-ghost {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  gap: 0.4rem;
}

.blog-cta-ghost:hover {
  color: var(--accent);
}

.blog-hero-v2-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-hero-v2-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.12);
}

.blog-hero-v2-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,224,198,0.08) 0%, rgba(0,224,198,0.04) 100%);
  border: 2px dashed rgba(0,224,198,0.3);
}

/* Full-width sections wrapper */
.blog-sections-v2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.blog-section-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Content section (default type) */
.blog-section-v2 {
  padding: 5rem 0;
}

.blog-section-v2 .blog-section-label {
  margin-bottom: 1rem;
}

.blog-section-v2 h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
  margin-bottom: 1.5rem;
}

.blog-section-v2 p {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1rem;
  max-width: 780px;
}

.blog-section-v2 .blog-list {
  margin-top: 1rem;
}

.blog-section-v2 .blog-list li {
  font-size: 16px;
}

/* Intro section */
.blog-section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}

.blog-intro-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
}

.blog-intro-image-placeholder {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.blog-intro-text .blog-section-label {
  margin-bottom: 0.75rem;
}

.blog-intro-text h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
  margin-bottom: 1.25rem;
}

.blog-intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.blog-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.75rem;
  font-size: 15px;
}

.blog-intro-link:hover {
  text-decoration: underline;
}

/* Architecture section */
.blog-section-architecture {
  padding: 5rem 0;
}

.blog-arch-header {
  margin-bottom: 2.5rem;
}

.blog-arch-header .blog-section-label {
  margin-bottom: 0.75rem;
}

.blog-arch-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.75rem;
}

.blog-arch-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.65;
}

.blog-arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.blog-arch-stack-block {
  background: #111;
  border-radius: 12px;
  padding: 1.75rem 2rem;
}

.blog-arch-stack-row {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.5;
}

.blog-arch-stack-row:last-child {
  border-bottom: none;
}

.blog-arch-stack-key {
  color: #888;
  min-width: 9rem;
  flex-shrink: 0;
}

.blog-arch-stack-value {
  color: #d8f8f4;
}

.blog-arch-diagram-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  min-height: 160px;
}

.blog-arch-node {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 12.5px;
  text-align: center;
  background: #fff;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.blog-arch-node strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.blog-arch-node small {
  color: #888;
  font-size: 11px;
}

.blog-arch-arrow {
  color: #bbb;
  font-size: 1.25rem;
  line-height: 1;
}

/* Roadmap section */
.blog-section-roadmap {
  padding: 5rem 0;
}

.blog-roadmap-header {
  margin-bottom: 3rem;
}

.blog-roadmap-header .blog-section-label {
  margin-bottom: 0.75rem;
}

.blog-roadmap-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
}

.blog-roadmap-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.blog-roadmap-step {
  text-align: center;
  padding: 0.5rem;
}

.blog-roadmap-num {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 1rem;
}

.blog-roadmap-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

.blog-roadmap-step p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

/* Screenshots section */
.blog-section-screenshots {
  padding: 5rem 0;
}

.blog-screenshots-header {
  margin-bottom: 2rem;
}

.blog-screenshots-header .blog-section-label {
  margin-bottom: 0.75rem;
}

.blog-screenshots-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
}

.blog-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}

.blog-screenshots-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.blog-screenshots-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.blog-screenshots-link:hover {
  text-decoration: underline;
}

/* Responsive v2 */
@media (max-width: 900px) {
  .blog-hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .blog-hero-v2-image {
    order: -1;
  }

  .blog-section-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-arch-grid {
    grid-template-columns: 1fr;
  }

  .blog-roadmap-steps {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .blog-hero-v2 {
    padding: 100px 20px 60px;
  }

  .blog-section-v2,
  .blog-section-intro,
  .blog-section-architecture,
  .blog-section-roadmap,
  .blog-section-screenshots {
    padding: 3rem 0;
  }

  .blog-roadmap-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
