/* KGC Denizcilik v7 - interaktif gemi operasyon vitrini */
.kgc-ship-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 62px;
  color: #0a3157;
  background:
    radial-gradient(circle at 15% 42%, rgba(53, 181, 226, 0.14), transparent 25%),
    radial-gradient(circle at 87% 70%, rgba(56, 164, 210, 0.12), transparent 27%),
    linear-gradient(180deg, #fbfdfe 0%, #eef9fd 54%, #e5f4fa 100%);
}

.kgc-ship-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(17, 128, 173, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 128, 173, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 6%, #000 38%, #000 80%, transparent 100%);
}

.kgc-ship-atmosphere {
  position: absolute;
  z-index: -1;
  top: 38%;
  left: -10%;
  width: 120%;
  height: 56%;
  opacity: 0.45;
  background: radial-gradient(ellipse at 50% 90%, rgba(98, 200, 235, 0.28), transparent 64%);
  filter: blur(30px);
  pointer-events: none;
}

.kgc-ship-heading {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 34px;
  text-align: center;
}

.kgc-ship-heading .eyebrow {
  margin: 0 0 13px;
  color: #058ec8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kgc-ship-heading h2 {
  margin: 0;
  color: #0a3157;
  font-size: clamp(39px, 4.3vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.kgc-ship-heading > p:last-child {
  max-width: 800px;
  margin: 17px auto 0;
  color: #61788e;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.58;
}

.kgc-ship-heading > p:last-child strong {
  color: #4c657c;
}

.kgc-ship-side-note {
  position: absolute;
  z-index: 5;
  top: 132px;
  left: max(28px, calc((100vw - 1640px) / 2));
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 25px;
  color: #8caec3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kgc-ship-side-note::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, #5fa9ca 20%, #5fa9ca 80%, transparent);
}

.kgc-ship-stage {
  --focus-x: 25%;
  --focus-y: 55%;
  position: relative;
  width: min(1660px, calc(100% - 42px));
  min-height: clamp(570px, 39vw, 675px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(19, 113, 153, 0.13);
  border-radius: 16px;
  background: #eaf7fc;
  box-shadow:
    0 32px 80px rgba(18, 74, 105, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.kgc-ship-scene,
.kgc-ship-base,
.kgc-ship-focus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kgc-ship-scene {
  overflow: hidden;
}

.kgc-ship-base,
.kgc-ship-focus {
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.kgc-ship-base {
  filter: saturate(0.91) contrast(1.015);
  transform: scale(1.002);
}

.kgc-ship-focus {
  z-index: 1;
  opacity: 0.92;
  filter: saturate(1.15) contrast(1.04) brightness(1.05);
  clip-path: circle(7.5% at var(--focus-x) var(--focus-y));
  transform: scale(1.055);
  transform-origin: var(--focus-x) var(--focus-y);
  transition:
    clip-path 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform-origin 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
}

.kgc-ship-spotlight {
  position: absolute;
  z-index: 2;
  top: var(--focus-y);
  left: var(--focus-x);
  width: 170px;
  height: 170px;
  border: 1px solid rgba(65, 199, 240, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 213, 255, 0.22) 0%, rgba(58, 189, 232, 0.08) 38%, transparent 70%);
  box-shadow: 0 0 40px rgba(41, 183, 229, 0.16);
  transform: translate(-50%, -50%);
  transition:
    top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.kgc-ship-mark {
  position: absolute;
  z-index: 3;
  top: 42.5%;
  left: 14.2%;
  width: clamp(54px, 4.7vw, 78px);
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 2px 3px rgba(3, 37, 65, 0.24));
  pointer-events: none;
}

.kgc-hotspots {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.kgc-ship-active-label {
  display: none;
}

.kgc-hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #0a3157;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.kgc-hotspot-core {
  position: absolute;
  z-index: 3;
  inset: 4px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #18a8df;
  box-shadow:
    0 0 0 8px rgba(30, 177, 225, 0.17),
    0 0 25px rgba(20, 163, 217, 0.64);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1.2),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.kgc-hotspot-core::before,
.kgc-hotspot-core::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(19, 172, 226, 0.52);
  border-radius: 50%;
  opacity: 0;
  animation: kgc-hotspot-pulse 2.8s ease-out infinite;
}

.kgc-hotspot-core::after {
  animation-delay: 1.4s;
}

.kgc-hotspot-core > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(16, 157, 211, 0.3);
  border-radius: 50%;
  color: #0b91c5;
  background: rgba(247, 253, 255, 0.96);
  box-shadow: 0 9px 25px rgba(5, 79, 115, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.kgc-hotspot-core svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kgc-hotspot-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: var(--line-length);
  height: 1.5px;
  background: linear-gradient(90deg, #20b2e7, rgba(16, 148, 203, 0.24));
  box-shadow: 0 0 9px rgba(39, 181, 230, 0.4);
  opacity: 0.68;
  transform: rotate(var(--line-angle));
  transform-origin: 0 50%;
  transition:
    width 0.35s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

.kgc-hotspot-label {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 39px;
  padding: 8px 14px;
  border: 1px solid rgba(9, 115, 162, 0.18);
  border-radius: 7px;
  color: #0a3157;
  background: rgba(251, 254, 255, 0.91);
  box-shadow: 0 9px 24px rgba(8, 68, 99, 0.11);
  backdrop-filter: blur(9px);
  font-size: clamp(11px, 0.86vw, 14px);
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(calc(-50% + var(--label-x)), calc(-50% + var(--label-y)));
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    scale 0.35s cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

.kgc-hotspot:is(:hover, :focus-visible, .is-active) .kgc-hotspot-core {
  background: #7ce3ff;
  box-shadow:
    0 0 0 11px rgba(37, 188, 234, 0.2),
    0 0 36px rgba(26, 177, 225, 0.92);
  transform: scale(1.25);
}

.kgc-hotspot:is(:hover, :focus-visible, .is-active) .kgc-hotspot-core > span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.kgc-hotspot:is(:hover, :focus-visible, .is-active) .kgc-hotspot-line {
  opacity: 1;
  filter: brightness(1.25);
}

.kgc-hotspot:is(:hover, :focus-visible, .is-active) .kgc-hotspot-label {
  border-color: rgba(18, 164, 219, 0.48);
  color: #046f9f;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 13px 29px rgba(6, 78, 112, 0.17),
    0 0 20px rgba(43, 190, 234, 0.14);
  scale: 1.045;
}

.kgc-hotspot:focus-visible {
  outline: 2px solid #083b62;
  outline-offset: 9px;
  border-radius: 50%;
}

.kgc-operation-card {
  position: absolute;
  z-index: 12;
  top: 44px;
  right: 34px;
  width: min(515px, 34.5%);
  min-height: 530px;
  padding: 27px 28px 23px;
  border: 1px solid rgba(7, 93, 134, 0.17);
  border-radius: 15px;
  background: rgba(251, 254, 255, 0.92);
  box-shadow:
    0 25px 65px rgba(10, 66, 97, 0.17),
    inset 0 1px 0 #ffffff;
  backdrop-filter: blur(18px);
}

.kgc-operation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 78px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #0c91ca, #4ed4f2);
}

.kgc-operation-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
  color: #087eb1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kgc-operation-card-topline > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kgc-operation-card-topline b {
  margin-right: 7px;
  color: #71889b;
  font-size: 11px;
}

.kgc-operation-card-topline button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0 0 3px;
  border: 1px solid rgba(10, 96, 138, 0.16);
  border-radius: 50%;
  color: #35667f;
  background: rgba(255, 255, 255, 0.76);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.kgc-operation-card-topline button:hover {
  border-color: #149fd8;
  color: #ffffff;
  background: #149fd8;
  transform: translateY(-2px);
}

.kgc-operation-eyebrow {
  margin: 0 0 5px;
  color: #758b9d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kgc-operation-card h3 {
  min-height: 58px;
  margin: 0 0 15px;
  color: #0a3157;
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.kgc-operation-image-wrap {
  position: relative;
  height: 152px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 9px;
  background: #0b3151;
}

.kgc-operation-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(7, 38, 62, 0.76) 100%);
  pointer-events: none;
}

.kgc-operation-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.kgc-operation-image-wrap > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.75;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.kgc-operation-card.is-changing .kgc-operation-image-wrap img {
  animation: kgc-card-image-in 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kgc-operation-card.is-changing h3,
.kgc-operation-card.is-changing .kgc-operation-eyebrow,
.kgc-operation-card.is-changing .kgc-operation-meta,
.kgc-operation-card.is-changing .kgc-operation-link {
  animation: kgc-card-copy-in 0.5s ease both;
}

.kgc-operation-meta {
  display: grid;
  gap: 7px;
  margin: 0 0 15px;
}

.kgc-operation-meta > div {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 11px;
  align-items: center;
}

.kgc-operation-meta dt,
.kgc-operation-meta dd {
  margin: 0;
}

.kgc-operation-meta dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #173d60;
  font-size: 12px;
  font-weight: 750;
}

.kgc-operation-meta dt svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #119bd3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kgc-operation-meta dd {
  color: #667b8f;
  font-size: 11.5px;
  line-height: 1.25;
}

.kgc-operation-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(10, 79, 113, 0.15);
  color: #087fb3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.kgc-operation-link span {
  font-size: 20px;
  transition: transform 0.25s ease;
}

.kgc-operation-link:hover span {
  transform: translateX(6px);
}

.kgc-ship-footerline {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(1660px, calc(100% - 42px));
  margin: 20px auto 0;
  color: #8da8b9;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.kgc-ship-footerline .kgc-ship-monogram {
  color: rgba(10, 49, 87, 0.16);
  font-size: 37px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.kgc-ship-footerline i {
  height: 1px;
  background: rgba(32, 120, 158, 0.25);
}

@keyframes kgc-hotspot-pulse {
  0% { opacity: 0.7; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}

@keyframes kgc-card-image-in {
  from { opacity: 0.35; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes kgc-card-copy-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1260px) {
  .kgc-ship-side-note {
    display: none;
  }

  .kgc-ship-stage {
    min-height: 600px;
  }

  .kgc-operation-card {
    right: 24px;
    width: 38%;
  }

  .kgc-hotspot-label {
    font-size: 11px;
  }
}

@media (max-width: 1000px) {
  .kgc-ship-section {
    padding: 82px 0 52px;
  }

  .kgc-ship-stage {
    display: grid;
    min-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .kgc-ship-scene {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(19, 113, 153, 0.13);
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(18, 74, 105, 0.12);
  }

  .kgc-operation-card {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    width: 92%;
    min-height: 0;
    margin: -34px auto 0;
  }

  .kgc-operation-card-topline,
  .kgc-operation-eyebrow,
  .kgc-operation-card h3,
  .kgc-operation-link {
    grid-column: 1 / -1;
  }

  .kgc-operation-image-wrap {
    height: 190px;
  }

  .kgc-operation-meta {
    align-self: center;
  }

  .kgc-operation-meta > div {
    grid-template-columns: 46% 1fr;
  }
}

@media (max-width: 720px) {
  .kgc-ship-section {
    padding-top: 72px;
  }

  .kgc-ship-heading {
    width: calc(100% - 32px);
    margin-bottom: 25px;
  }

  .kgc-ship-heading h2 {
    font-size: clamp(35px, 11vw, 47px);
  }

  .kgc-ship-heading > p:last-child {
    font-size: 14px;
  }

  .kgc-ship-stage,
  .kgc-ship-footerline {
    width: calc(100% - 22px);
  }

  .kgc-ship-scene {
    min-height: 480px;
    background: #e9f7fc;
  }

  .kgc-ship-base,
  .kgc-ship-focus {
    height: 320px;
    object-fit: cover;
    object-position: 34% center;
  }

  .kgc-ship-focus {
    display: none;
  }

  .kgc-ship-spotlight {
    width: 110px;
    height: 110px;
  }

  .kgc-ship-mark {
    top: 138px;
    left: 11.5%;
    width: 48px;
  }

  .kgc-hotspots {
    top: 0;
    height: 320px;
  }

  .kgc-hotspot-label,
  .kgc-hotspot-line {
    display: none;
  }

  .kgc-hotspot-core > span {
    width: 38px;
    height: 38px;
  }

  .kgc-ship-active-label {
    position: absolute;
    z-index: 9;
    top: 280px;
    left: 50%;
    display: block;
    max-width: calc(100% - 34px);
    padding: 9px 15px;
    border: 1px solid rgba(13, 143, 193, 0.24);
    border-radius: 999px;
    color: #0a3157;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(10, 74, 105, 0.15);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transform: translateX(-50%);
  }

  .kgc-operation-card {
    display: block;
    width: calc(100% - 20px);
    margin-top: -122px;
    padding: 24px 20px 21px;
  }

  .kgc-operation-card-topline {
    gap: 8px;
  }

  .kgc-operation-card-topline > span {
    font-size: 9px;
  }

  .kgc-operation-card h3 {
    min-height: 0;
    font-size: 23px;
  }

  .kgc-operation-image-wrap {
    height: 175px;
  }

  .kgc-operation-meta > div {
    grid-template-columns: 43% 1fr;
  }

  .kgc-ship-footerline {
    grid-template-columns: auto 1fr;
    margin-top: 17px;
  }

  .kgc-ship-footerline .kgc-ship-monogram,
  .kgc-ship-footerline i {
    display: none;
  }

  .kgc-ship-footerline span:last-child {
    text-align: right;
  }
}

@media (max-width: 460px) {
  .kgc-ship-scene {
    min-height: 445px;
  }

  .kgc-operation-card {
    margin-top: -105px;
  }

  .kgc-operation-card-topline b {
    display: none;
  }

  .kgc-operation-image-wrap > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kgc-hotspot-core::before,
  .kgc-hotspot-core::after,
  .kgc-operation-card.is-changing *,
  .kgc-ship-focus,
  .kgc-ship-spotlight {
    animation: none !important;
    transition: none !important;
  }
}
