/* =========================================
   DIGIMORPHE — Ana Sayfa Stil Dosyası
   ========================================= */

@font-face {
  font-family: 'Jura';
  src: url('assets/fonts/Jura-Light.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Jura';
  src: url('assets/fonts/Jura-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --bg: #EBEBE9;
  --bg-alt: #DEDEDC;
  --ink: #171614;
  --ink-soft: rgba(23,22,20,0.68);
  --ink-faint: rgba(23,22,20,0.15);
  --purple: #D946EF;
  --teal: #6FADA8;
  --peach: #E8965C;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; }

.nav-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
}
.nav-toggle-bars span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  margin-top: 5px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars span:first-child { margin-top: 0; }
.nav-toggle.open .nav-toggle-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18em;
}
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--ink-faint);
  padding: 16px 26px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  z-index: 30;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.nav-links.open { display: flex; }
.nav-links a { opacity: 0.75; transition: opacity 0.2s; margin-top: 12px; }
.nav-links a:hover { opacity: 1; }
.nav-links a:first-child { margin-top: 0; }
.nav-links a:hover { opacity: 1; }

/* ---------- HERO (full-bleed video + overlay) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #9A9DA0 0%, #FFFFFF 100%);
}
.hero-video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  mix-blend-mode: multiply;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-overlay .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 160px;
  padding-bottom: 160px;
}

.hero h1 {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 3px 0 0 rgba(217,70,239,0.45), -3px 0 0 rgba(111,173,168,0.45);
  max-width: 620px;
}

.hero-wordmark {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 68px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-shadow: 3px 0 0 rgba(217,70,239,0.45), -3px 0 0 rgba(111,173,168,0.45);
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.1s forwards;
}

.hero h1 .word {
  display: inline-block;
  white-space: nowrap;
}
.hero h1 .letter {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  color: rgba(23,22,20,0.25);
  animation: letterIn 0.85s cubic-bezier(0.2,0.6,0.3,1) forwards;
}
@keyframes letterIn {
  0% { opacity: 0; filter: blur(8px); transform: translateY(14px); color: rgba(23,22,20,0.25); }
  45% { opacity: 0.55; filter: blur(4px); color: rgba(23,22,20,0.45); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); color: var(--ink); }
}

.hero p.subhead {
  margin-top: 22px;
  font-size: 16px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.btn {
  display: inline-block;
  margin-top: 38px;
  padding: 16px 34px;
  border: 1.5px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero .btn {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.7s forwards;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-invert { border-color: var(--bg); color: var(--bg); }
.btn-invert:hover { background: var(--bg); color: var(--ink); }

/* ---------- SECTION GENERIC ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 22px;
  font-weight: 700;
}
.section-title {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 34px;
  max-width: 680px;
  margin-bottom: 26px;
}
.section-body {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
}

/* ---------- PRINCIPLES (Yaklaşımımız) ---------- */
.principles {
  display: flex;
  flex-wrap: wrap;
  margin-top: 56px;
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
}
.principle {
  width: calc(33.333% - 1px);
  box-sizing: border-box;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 0;
}
.principle summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 16px;
  user-select: none;
}
.principle summary::-webkit-details-marker { display: none; }
.principle .pnum {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
}
.principle .pdesc {
  padding: 0 24px 24px 62px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: justify;
}
.principle[open] summary { color: var(--purple); }

@media (max-width: 900px) {
  .principle { width: calc(50% - 1px); }
}
@media (max-width: 600px) {
  .principle { width: 100%; }
}

/* ---------- SERVICES SUMMARY ---------- */
.services-list {
  margin-top: 56px;
}
.service-row {
  display: flex;
  gap: 36px;
  padding: 30px 0;
  border-top: 1px solid var(--ink-faint);
  align-items: flex-start;
}
.service-row:last-child { border-bottom: 1px solid var(--ink-faint); }
.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--purple);
  width: 30px;
  flex-shrink: 0;
  padding-top: 3px;
  font-weight: 700;
}
.service-title {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 20px;
  width: 360px;
  flex-shrink: 0;
  line-height: 1.3;
}
.service-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-top: 3px;
  text-align: justify;
}
.section-link {
  display: inline-block;
  margin-top: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

@media (max-width: 800px) {
  .service-row { flex-wrap: wrap; }
  .service-title { width: 100%; }
}

/* ---------- FOUNDERS SUMMARY ---------- */
.founders-row {
  display: flex;
  gap: 60px;
  margin-top: 56px;
}
.founder-card { flex: 1; margin-right: 60px; }
.founder-card:last-child { margin-right: 0; }
.founder-name {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 6px;
}
.founder-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-weight: 700;
}
.founder-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
}

@media (max-width: 800px) {
  .founders-row { flex-direction: column; gap: 40px; }
}

/* ---------- CLOSING CTA (full-bleed video + overlay, light) ---------- */
.cta-close {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: linear-gradient(90deg, #9A9DA0 0%, #FFFFFF 100%);
}
.cta-video-wrap {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 520px;
  z-index: 1;
  mix-blend-mode: multiply;
}
.cta-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}
.cta-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
  padding-bottom: 90px;
}
.cta-overlay .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.cta-overlay form { text-align: left; }

.cta-close h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--ink);
  text-shadow: 3px 0 0 rgba(217,70,239,0.45), -3px 0 0 rgba(111,173,168,0.45);
}
.cta-close p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 34px;
  max-width: 460px;
}

/* ---------- CONTACT FORM (mini, in closing) ---------- */
.mini-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.mini-form input, .mini-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(23,22,20,0.25);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  padding: 10px 2px;
  outline: none;
}
.mini-form input::placeholder, .mini-form textarea::placeholder {
  color: rgba(23,22,20,0.45);
}
.mini-form input:focus, .mini-form textarea:focus {
  border-bottom-color: var(--purple);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
}
.footer .wrap span:last-child { margin-left: 40px; }

/* ---------- İÇ SAYFA HERO (Hizmetler/Hakkımızda/İletişim) ---------- */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
}
.page-title {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 44px;
  max-width: 760px;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* ---------- SERVICE BLOCK (detaylı) ---------- */
.services-list-detailed .service-row {
  align-items: flex-start;
}
.service-block { flex: 1; }
.services-list-detailed .service-title {
  width: auto;
  margin-bottom: 10px;
  font-size: 22px;
}
.services-list-detailed .service-desc {
  max-width: 640px;
}

/* ---------- ÇALIŞMA MODELİMİZ ---------- */
.models-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 44px;
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
}
.model-card {
  width: calc(33.333% - 1px);
  box-sizing: border-box;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 32px 28px;
}
.model-title {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--purple);
}
.model-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
}
@media (max-width: 900px) {
  .model-card { width: calc(50% - 1px); }
}
@media (max-width: 600px) {
  .model-card { width: 100%; }
}

/* ---------- VAKA VURGUSU (Hizmetler sayfasında) ---------- */
.case-highlight {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--purple);
  max-width: 640px;
}
.case-highlight-label {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
.case-highlight-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
}
.case-highlight-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}
.case-inline-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- İLETİŞİM SAYFASI ---------- */
.contact-grid {
  display: flex;
  gap: 90px;
  padding-bottom: 40px;
}
.contact-info {
  flex: 0 0 320px;
}
.contact-info-item { margin-bottom: 36px; }
.contact-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 8px;
  font-weight: 700;
}
.contact-value {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
}
.contact-value-sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 260px;
}
.contact-form {
  flex: 1;
  max-width: 520px;
}
.contact-form input, .contact-form textarea {
  color: var(--ink);
  border-bottom-color: var(--ink-faint);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgba(23,22,20,0.4);
}

@media (max-width: 800px) {
  .contact-grid { flex-direction: column; gap: 50px; }
}

/* ---------- YASAL SAYFA (KVKK) ---------- */
.legal-content { padding-top: 20px; }
.legal-heading {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 19px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content .section-body { max-width: 760px; }
.legal-link { color: var(--purple); border-bottom: 1px solid currentColor; font-weight: 700; }
.legal-note {
  margin-top: 50px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ---------- FOOTER LEGAL LINK ---------- */
.footer-legal { margin-top: 6px; }
.footer-legal a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(23,22,20,0.2);
}

/* ---------- KVKK ONAY KUTUSU (form) ---------- */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--purple);
}
.consent-row label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent-row label a { color: var(--purple); border-bottom: 1px solid currentColor; font-weight: 700; }

/* ---------- FORM DURUM MESAJI ---------- */
.form-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}
.form-status-success { color: #3F8F5F; }
.form-status-error { color: #C0392B; }
@media (max-width: 900px) {
  .section-title { font-size: 26px; }
}

/* ================================
   MOBİL DÜZELTMELER (kapsamlı)
   ================================ */

@media (max-width: 780px) {
  .wrap { padding-left: 24px; padding-right: 24px; }

  /* NAV — hamburger menüye geçiyoruz */
  .nav { padding: 16px 0; }
  .nav-overlay { position: static; }
  .nav .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  .nav-logo { font-size: 15px; gap: 8px; }
  .nav-logo img { width: 26px; height: 26px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: static;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    width: 100%;
    flex-basis: 100%;
    margin-top: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 8px 0 0 0; }
  .nav-links a:first-child { margin-top: 0; }

  /* HERO — video ve metni üst üste değil, alt alta diziyoruz */
  .hero { display: block; }
  .hero-video-wrap {
    position: static;
    width: 100%;
    mix-blend-mode: multiply;
    overflow: visible;
  }
  .hero-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-overlay { position: static; padding: 28px 0 50px; }
  .hero-overlay .wrap {
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-wordmark { font-size: 30px; letter-spacing: 0.05em; margin-bottom: 10px; }
  .hero h1 { font-size: 32px; line-height: 1.2; max-width: 100%; }
  .hero p.subhead { font-size: 13px; }
  .btn { padding: 13px 22px; font-size: 12px; }

  /* SECTION SPACING */
  .section { padding: 60px 0; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 28px; }
  .eyebrow { font-size: 11px; }

  /* PRINCIPLES / MODELS GRIDS */
  .principle summary { padding: 20px 16px; font-size: 14px; }
  .principle .pdesc { padding: 0 16px 20px 40px; }
  .model-card { padding: 22px 18px; }

  /* SERVICE ROWS */
  .service-row { flex-direction: column; gap: 8px; }
  .service-title { width: 100%; }
  .services-list-detailed .service-title { font-size: 18px; }

  /* FOUNDERS */
  .founder-name { font-size: 17px; }

  /* CLOSING CTA — video ve metni üst üste değil, alt alta diziyoruz */
  .cta-close { display: block; min-height: auto; }
  .cta-video-wrap {
    position: static;
    width: 60%;
    max-width: 220px;
    mix-blend-mode: multiply;
    margin: 0 auto 24px;
  }
  .cta-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
  }
  .cta-overlay { position: static; padding: 50px 0 60px; }
  .cta-overlay .wrap {
    align-items: flex-start;
    text-align: left;
  }
  .cta-overlay form { text-align: left; }
  .cta-close h2 { font-size: 26px; }
  .mini-form { max-width: 100%; }

  /* CONTACT PAGE */
  .contact-info { flex: none; }

  /* FOOTER */
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer .wrap span:last-child { margin-left: 0; }

  /* CASE HIGHLIGHT */
  .case-highlight-label { font-size: 13px; }
}

@media (max-width: 420px) {
  .hero-wordmark { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .page-title { font-size: 24px; }
  .cta-close h2 { font-size: 24px; }
}
