/* ============================================================
   kodmob Digital Homepage — Hero Digital + Portfolio CSS
   ============================================================ */

/* ── Paylaşılan ── */
.km-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.km-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.km-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.km-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: transparent;
  color: #1e40af;
  border: 1.5px solid #2563eb;
  border-radius: .625rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.km-btn-outline-dark:hover { background: #2563eb; color: #fff; }
.km-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: .2rem .65rem;
}

/* ============================================================
   HERO DIGITAL
   ============================================================ */
.km-hero {
  background: #f6f6f6;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
}
.km-hero__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Sol içerik */
.km-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h, 70px) + 4rem) 3rem 4rem 4rem;
  max-width: 580px;
}

/* Sağ görsel */
.km-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dekoratif halkalar */
.km-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.km-hero__ring--1 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.km-hero__ring--2 { width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.km-hero__ring--3 { width: 260px; height: 260px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* Floating kartlar */
.km-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgb(0 55 242 / 60%);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(0 55 242 / 80%);
  border-radius: .625rem;
  padding: .5rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  z-index: 10;
  animation: km-float 3s ease-in-out infinite alternate;
}
.km-hero__float--tl { top: 18%; left: 8%; animation-delay: 0s; }
.km-hero__float--br { bottom: 22%; right: 8%; animation-delay: 1.5s; }
.km-hero__float svg { flex-shrink: 0; }
@keyframes km-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* Badge */
.km-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: .3rem .9rem .3rem .6rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.km-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  animation: km-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes km-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.km-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.km-hero__sub {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}
.km-hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* CTA butonları */
.km-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: #2563eb;
  color: #fff;
  border-radius: .625rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.km-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.4);
}
.km-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: transparent;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: .625rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.km-btn-ghost:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

/* Mini çipler */
.km-hero__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.km-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
}
.km-hero__chip svg { color: #94a3b8; }
.km-hero__chip-sep { color: #cbd5e1; font-size: .9rem; line-height: 1; }

/* SVG figür */
.km-hero__svg-figure {
  width: 340px;
  height: auto;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 0 40px rgba(96,165,250,.3));
}
.km-hero__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 5;
}

/* Responsive */
@media (max-width: 1024px) {
  .km-hero__inner { grid-template-columns: 1fr; }
  .km-hero__content {
    padding: calc(var(--header-h, 70px) + 2rem) 2rem 3rem;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .km-hero__sub { max-width: 100%; }
  .km-hero__chips { justify-content: center; }
  .km-hero__visual { min-height: 300px; }
}
@media (max-width: 640px) {
  .km-hero__content { padding: calc(var(--header-h, 70px) + 1.5rem) 1.25rem 2rem; }
  .km-hero__ctas { flex-direction: column; width: 100%; }
  .km-hero__ctas a { justify-content: center; }
  .km-hero__float { display: none; }
}

/* ============================================================
   PORTFOLYO
   ============================================================ */
.km-portfolio {
  background: #f8fafc;
  padding: 5rem 0;
}
.km-portfolio__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.km-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.km-portfolio-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1.5px solid #f1f5f9;
  text-decoration: none;
  transition: box-shadow .25s, transform .2s;
}
.km-portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.km-portfolio-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e2e8f0;
}
.km-portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.km-portfolio-card:hover .km-portfolio-card__img { transform: scale(1.04); }
.km-portfolio-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  height: 100%;
}
.km-portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}
.km-portfolio-card:hover .km-portfolio-card__overlay { opacity: 1; }
.km-portfolio-card__body { padding: 1.25rem; }
.km-portfolio-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
}
.km-portfolio-card__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.km-portfolio__footer { text-align: center; }

@media (max-width: 1024px) { .km-portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .km-portfolio__grid { grid-template-columns: 1fr; }
  .km-portfolio { padding: 3.5rem 0; }
}
