/* ============================================================
   HyperLyra Nedir? — sayfaya özel stiller
   Ortak css/style.css ve js/main.js değiştirilmez.
   Bu dosya yalnızca bu sayfanın hero, kartları ve footer'ını biçimlendirir.
   ============================================================ */

/* Erişilebilirlik */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- KOZMİK ARKA PLAN ----------------
   Tek bir arka plan tanımı kullanılır.
   Koyu katman %48: kozmik renkleri koruyarak parlaklığı daha belirgin azaltır.
   Bu katman yalnızca body arka planını etkiler; kart fotoğraflarını karartmaz. */
html {
  background-color: #020713;
}

body {
  background-color: #020713;
  background-image:
    linear-gradient(
      rgba(1, 4, 13, 0.48),
      rgba(1, 4, 13, 0.48)
    ),
    url("../assets/kozmik-bulutsu-arka-plan.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---------------- HERO ---------------- */
.nedir-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(232px, 19vw, 288px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 5, 15, 0.38) 0%,
      rgba(1, 5, 15, 0.12) 45%,
      rgba(1, 5, 15, 0.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 5, 15, 0.06) 0%,
      rgba(1, 5, 15, 0.02) 70%,
      rgba(1, 5, 15, 0.18) 100%
    );
  background-color: transparent;
}

.nedir-hero__stars {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 27% 66%, #bfe6ff 98%, transparent),
    radial-gradient(1.6px 1.6px at 44% 15%, #fff 98%, transparent),
    radial-gradient(1.1px 1.1px at 58% 74%, #e0c8ff 98%, transparent),
    radial-gradient(1.8px 1.8px at 72% 30%, #fff 98%, transparent),
    radial-gradient(1.1px 1.1px at 86% 60%, #bfe6ff 98%, transparent),
    radial-gradient(1.5px 1.5px at 93% 18%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 6% 82%, #e0c8ff 98%, transparent);
  background-size:
    340px 260px, 280px 240px, 400px 300px, 320px 260px,
    360px 280px, 300px 240px, 260px 220px, 380px 300px;
}

.nedir-hero__nebula {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.16;
  border-radius: 50%;
}

.nedir-hero__nebula--a {
  left: -8%;
  top: 10%;
  width: 38%;
  height: 70%;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(22, 140, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 72% 52%, rgba(160, 70, 255, 0.32), transparent 66%);
}

.nedir-hero__nebula--b {
  right: -10%;
  top: -6%;
  width: 42%;
  height: 86%;
  background:
    radial-gradient(ellipse at 55% 40%, rgba(17, 231, 245, 0.30), transparent 58%),
    radial-gradient(ellipse at 30% 60%, rgba(211, 39, 255, 0.26), transparent 62%);
}

.nedir-hero__inner {
  width: min(100% - 72px, var(--max));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(18px, 2.6vw, 32px) 0;
}

.nedir-hero__brand { min-width: 0; }



.nedir-hero__wordmark {
  display: block;
  width: min(100%, 680px);
  height: auto;
  opacity: 1;
  filter:
    brightness(1.35)
    contrast(1.28)
    saturate(1.18)
    drop-shadow(0 0 3px rgba(40, 190, 255, 0.65))
    drop-shadow(0 0 14px rgba(100, 65, 255, 0.42));
}



.nedir-hero__copy {
  min-width: 0;
  padding-left: clamp(18px, 2.6vw, 40px);
}

.nedir-hero__copy p {
  margin: 0;
  color: #f8f9ff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 24px rgba(2, 8, 22, 0.8);
}

.nedir-hero__horizon { display: none; }

/* ---------------- BÖLÜMLER VE KARTLAR ---------------- */
.nedir-sections {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(36px, 5vw, 64px) clamp(18px, 3.6vw, 36px) clamp(14px, 2vw, 28px);
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(1, 4, 11, 0.10) 0%,
    rgba(2, 7, 19, 0.06) 50%,
    rgba(2, 4, 13, 0.12) 100%
  );
}

.about-card {
  position: relative;
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

/* İnce kozmik kenarlık; kart üstüne yatay çizgi bindirmez. */
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(120, 200, 255, 0.75) 0%,
    rgba(90, 60, 200, 0.35) 35%,
    rgba(200, 120, 255, 0.55) 62%,
    rgba(17, 231, 245, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

.about-card::after { content: none; }

.about-card__body {
  position: relative;
  z-index: 3;
  padding: clamp(28px, 3.6vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 20px);
}

.about-card__body h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  background-image: linear-gradient(180deg, #f1f7ff 0%, #b9d5ff 42%, #7eb1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 18px rgba(2, 8, 22, 0.55);
}

.about-card--mission .about-card__body h2 {
  background-image: linear-gradient(180deg, #f4eaff 0%, #d1b5ff 42%, #a078ff 100%);
}

.about-card--services .about-card__body h2 {
  background-image: linear-gradient(180deg, #e8fdff 0%, #a8f2fb 42%, #61d9e9 100%);
}

.about-card--approach .about-card__body h2 {
  background-image: linear-gradient(180deg, #eff7ff 0%, #c1dcff 42%, #83b8ff 100%);
}

.about-card--vision .about-card__body h2 {
  background-image: linear-gradient(180deg, #f7eaff 0%, #dfbaff 42%, #b779f0 100%);
}

.about-card__body p {
  margin: 0;
  max-width: 60ch;
  color: #f0f3fc;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Görsel sırası ve kırpımı korunur. */
.about-card__media {
  position: relative;
  z-index: 2;
  min-height: 240px;
  overflow: hidden;
}

.about-card__media::after { display: none; }

.about-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}

/* Misyon kartı: görsel sağda, metne yumuşak geçiş. */
@media (min-width: 901px) {
  .about-card--mission {
    display: block;
    min-height: 240px;
  }

  .about-card--mission .about-card__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 62%;
    min-height: 0;
    z-index: 2;
  }

  .about-card--mission .about-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.16) 10%,
      rgba(0, 0, 0, 0.62) 27%,
      #000 48%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.16) 10%,
      rgba(0, 0, 0, 0.62) 27%,
      #000 48%
    );
    filter: brightness(1.18) contrast(1.04) saturate(1.04);
  }

  .about-card--mission .about-card__body {
    width: 66%;
    min-height: 240px;
    z-index: 3;
    background: transparent;
  }
}

/* ---------------- FOOTER ---------------- */
.nedir-footer {
  position: relative;
  text-align: center;
  padding: clamp(20px, 2.5vw, 34px) 24px clamp(20px, 2.5vw, 30px);
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(2, 4, 13, 0.12) 0%,
    rgba(1, 3, 10, 0.22) 100%
  );
  border-top: 0;
}

.nedir-footer__rule { display: none; }

.nedir-footer__quote {
  margin: 0 auto;
  max-width: 22ch;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 22px rgba(2, 8, 22, 0.8);
}

.nedir-footer__slogan {
  margin: clamp(14px, 2vw, 22px) 0 0;
  color: #e1f4ff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
}

.nedir-footer__star {
  color: #8fe9ff;
  padding: 0 0.35em;
  text-shadow: 0 0 10px rgba(17, 231, 245, 0.8);
}

.nedir-footer__copy {
  display: block;
  margin-top: clamp(24px, 3.4vw, 40px);
  color: #c1cce0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-size: auto 100vh;
    background-position: center top;
  }

  .nedir-hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(18px, 3vw, 26px);
    padding: clamp(40px, 8vw, 64px) 0;
  }

  .nedir-hero__brand {
    display: flex;
    justify-content: flex-start;
  }

  .nedir-hero__wordmark { width: min(100%, 480px); }
  .nedir-hero__copy { padding-left: 18px; }

  .about-card { grid-template-columns: 1fr; }

  .about-card__body {
    order: 1;
    padding: clamp(26px, 5vw, 38px);
  }

  .about-card__body h2 { font-size: clamp(28px, 4.5vw, 38px); }

  .about-card__body p {
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.75;
  }

  .about-card__media {
    order: 2;
    min-height: 200px;
  }

  .about-card__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  }

  .about-card__media::after { display: none; }

  .about-card--mission { display: grid; }

  .about-card--mission .about-card__media {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 200px;
  }

  .about-card--mission .about-card__body {
    width: 100%;
    min-height: 0;
  }

  .about-card--mission .about-card__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  }
}

@media (max-width: 620px) {
  .nedir-hero { min-height: 0; }

  .nedir-hero__copy {
    border-left: 0;
    padding-left: 0;
  }

  .nedir-hero__copy p {
    font-size: clamp(22px, 6.2vw, 32px);
    font-weight: 600;
  }

  .nedir-hero__wordmark { width: min(100%, 420px); }
  .nedir-sections { gap: 18px; padding-inline: 18px; }

  .about-card__body { padding: 26px 24px; }

  .about-card__body h2 { font-size: clamp(26px, 7vw, 33px); }

  .about-card__body p {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
  }

  .nedir-footer__quote { font-size: clamp(23px, 6.5vw, 32px); }

  .nedir-footer__slogan {
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nedir-hero__wordmark { filter: none; }
}

/* Not: Dosyanın sonunda ikinci bir body arka planı tanımı bulunmamalıdır. */
