@import url("/assets/css/base/tokens.css");

/* ===============================
      Vizyon / Misyon / Değerler
   =============================== */
#vizyon-misyon {
  background: #ffffff;
  color: #000000;
  padding: 90px 24px;
}
.vmd-wrap {
  max-width: 1240px;
  margin: 0 auto;
}
.vmd-head {
  text-align: center;
  margin-bottom: 40px;
}
.vmd-head .kicker {
  color: var(--accent, #1e90ff);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.vmd-head .title {
  color: var(--accent, #1e90ff);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.vmd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vmd-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}
.vmd-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    rgba(30, 144, 255, 0.35),
    rgba(30, 144, 255, 0) 40%,
    rgba(30, 144, 255, 0.35)
  );
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#vizyon-misyon .vmd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(30, 144, 255, 0) 0%,
    rgba(30, 144, 255, 1) 25%,
    rgba(30, 144, 255, 0) 50%,
    rgba(30, 144, 255, 1) 75%,
    rgba(30, 144, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: neonBorder 6s linear infinite;
  /* Masked double-rectangle technique for animated gradient border */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  /* Safari (WebKit) uses different composite keyword mapping */
  -webkit-mask-composite: xor; /* Safari */
  mask-composite: exclude; /* Standard */
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.55));
}
/* Fallback: environments without mask-composite support */
@supports not (mask-composite: exclude) {
  #vizyon-misyon .vmd-card::before {
    /* Remove masking & approximate border via inset box-shadow */
    -webkit-mask: none;
    mask: none;
    background: linear-gradient(
      120deg,
      rgba(30, 144, 255, 0.8),
      rgba(30, 144, 255, 0) 40%,
      rgba(30, 144, 255, 0.8)
    );
    animation: none; /* keep static if animation can't render properly */
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.6),
      0 0 12px rgba(30, 144, 255, 0.45);
    padding: 0; /* Remove padding since mask is gone */
  }
}
/* Local keyframes (in case contact.css not loaded on this page) */
@keyframes neonBorder {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.vmd-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08),
    0 18px 40px rgba(30, 144, 255, 0.08);
}
.vmd-card:hover::after {
  opacity: 1;
}

.vmd-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  background: linear-gradient(140deg, #1e90ff, #3eb2ff);
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.35);
}
.vmd-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
  color: #000;
}
.vmd-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.vmd-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: grid;
  gap: 10px;
}
.vmd-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: #333;
}
.vmd-list li i {
  color: #3eb2ff;
  margin-top: 2px;
}

/* Variations for subtle color cues if needed */
.vmd-vision .vmd-icon {
  background: linear-gradient(140deg, #1e90ff, #1e88e5);
  box-shadow: 0 10px 30px rgba(37, 196, 255, 0.35);
}
.vmd-mission .vmd-icon {
  background: linear-gradient(140deg, #1e90ff, #1e88e5);
  box-shadow: 0 10px 30px rgba(37, 196, 255, 0.35);
}
.vmd-values .vmd-icon {
  background: linear-gradient(140deg, #1e90ff, #1e88e5);
  box-shadow: 0 10px 30px rgba(37, 196, 255, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .vmd-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  #vizyon-misyon {
    padding: 70px 18px;
  }
  .vmd-grid {
    grid-template-columns: 1fr;
  }
  .vmd-head .title {
    font-size: 24px;
  }
}
