/* alt3 — Yaratıcı Uçuk (Awwwards / Figma Config / studio siteleri) */
:root {
  --bg: #FEF3C7;
  --bg-2: #FFFAEB;
  --ink: #1A1A1A;
  --ink-2: #3A2E1C;
  --muted: #6B5A3F;
  --purple: #7C3AED;
  --pink: #F472B6;
  --orange: #FF6B35;
  --cream: #FEF3C7;
  --line: #2D2D2D;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand: 'Fraunces', serif;
  --tr: 0.4s cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
[lang="ar"] body { font-family: 'Tajawal', var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand-logo { height: 40px; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.primary-nav a {
  font-weight: 500; font-size: 15px; padding: 8px 0;
  position: relative; transition: all var(--tr);
}
.primary-nav a::before {
  content: ''; position: absolute; inset: auto 0 -2px 0; height: 3px;
  background: var(--purple); transform: scaleX(0); transform-origin: left;
  transition: transform var(--tr);
}
.primary-nav a:hover::before, .primary-nav a[aria-current]::before { transform: scaleX(1); }
.header-tools { display: flex; gap: 12px; align-items: center; }
.lang-switch { display: inline-flex; gap: 0; border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-option { padding: 6px 12px; font-size: 12px; border-radius: 999px; font-weight: 600; }
.lang-option.active { background: var(--purple); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 4px; justify-content: center; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
@media (max-width: 980px) {
  .primary-nav { position: absolute; inset: 76px 0 auto 0; background: var(--bg); border-bottom: 2px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all var(--tr); }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 20px 28px; }
  .primary-nav li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero-creative {
  position: relative; padding: 100px 0 60px; overflow: hidden;
}
.hero-creative .blob {
  position: absolute; top: -10%; right: -15%; width: 700px; height: 700px;
  color: var(--pink); opacity: .5; z-index: 0;
  animation: morph 15s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { transform: rotate(0deg) scale(1); }
  33%     { transform: rotate(20deg) scale(1.1); }
  66%     { transform: rotate(-15deg) scale(0.95); }
}
.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.eyebrow {
  display: inline-block; padding: 8px 14px; background: var(--ink);
  color: var(--bg); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 999px;
  margin-bottom: 24px; font-weight: 600;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 7.5vw, 96px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--purple); font-weight: 500; }
.hero-sub { font-size: 20px; max-width: 680px; color: var(--ink-2); }
.hero-ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-weight: 600; font-size: 15px;
  border-radius: 999px; transition: all var(--tr);
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-2px) rotate(-1deg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px) rotate(1deg); }

/* Marquee */
.marquee { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin-top: 40px; overflow: hidden; background: var(--orange); }
.marquee-track {
  display: flex; gap: 40px; padding: 18px 0;
  animation: scroll 18s linear infinite;
  white-space: nowrap;
}
.marquee-track span { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
@keyframes scroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* Sections */
section { padding: 110px 0; }
.alt-bg { background: var(--bg-2); }
.section-head { max-width: 860px; margin-bottom: 60px; }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.1;
  letter-spacing: -0.02em;
}
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.two-col .intro-body p { color: var(--ink-2); margin-bottom: 18px; font-size: 17px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Tilted services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.tilt-card {
  background: #fff; border: 2px solid var(--ink); padding: 28px;
  border-radius: 20px; transform: rotate(var(--ri, 0deg));
  transition: all var(--tr); box-shadow: 6px 6px 0 var(--ink);
}
.tilt-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 10px 10px 0 var(--purple); }
.tilt-card .tag { display: inline-block; padding: 4px 10px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; border-radius: 999px; margin-bottom: 14px; }
.tilt-card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 10px; line-height: 1.25; }
.tilt-card p { color: var(--ink-2); font-size: 15px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.tilt-project {
  background: var(--pink); color: var(--ink);
  border: 2px solid var(--ink); padding: 40px 32px;
  border-radius: 24px; transform: rotate(var(--ri, 0deg));
  transition: all var(--tr); box-shadow: 8px 8px 0 var(--ink);
}
.tilt-project:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 12px 12px 0 var(--purple); }
.tilt-project:nth-child(2n) { background: var(--orange); }
.tilt-project:nth-child(3n) { background: var(--purple); color: #fff; }
.tilt-project:nth-child(3n) .tag { background: #fff; color: var(--purple); }
.tilt-project .tag { display: inline-block; padding: 4px 10px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .1em; border-radius: 999px; }
.tilt-project h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 14px 0 12px; line-height: 1.15; }
.tilt-project p { font-size: 15px; line-height: 1.6; }

/* CTA */
.cta-footer { background: var(--ink); color: var(--bg); padding: 140px 0; text-align: center; }
.cta-footer h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.015em; }
.cta-footer p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 32px; }
.cta-footer .btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.cta-footer .btn-primary:hover { background: var(--pink); border-color: var(--pink); }

/* Footer */
.site-footer { background: var(--bg); border-top: 3px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 40px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-col h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 16px; letter-spacing: -0.01em; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 8px 0; font-size: 14px; }
.footer-col a:hover { color: var(--purple); }
.footer-col p { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.copyright { border-top: 2px solid var(--ink); padding: 18px 0; font-size: 13px; text-align: center; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Page hero */
.page-hero { padding: 110px 0 60px; background: var(--bg-2); border-bottom: 2px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.025em; margin: 10px 0 14px; }
.page-hero p { max-width: 680px; color: var(--ink-2); font-size: 18px; }

/* Ref */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.ref-item {
  aspect-ratio: 5/3; display: grid; place-items: center; padding: 18px;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  transition: all var(--tr);
}
.ref-item:nth-child(3n) { background: var(--bg-2); }
.ref-item:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 6px 6px 0 var(--purple); }
.ref-item img { max-height: 60px; }

/* About */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.mv-card { background: #fff; border: 2px solid var(--ink); padding: 40px; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.mv-card:nth-child(2) { background: var(--cream); transform: rotate(1deg); }
.mv-card h3 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin-bottom: 14px; color: var(--purple); line-height: 1.15; }
.mv-card p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .mv-grid { grid-template-columns: 1fr; } .mv-card:nth-child(2) { transform: none; } }

/* Projects page */
.project-detail { padding: 60px 0; border-bottom: 2px solid var(--line); }
.project-detail:last-child { border-bottom: 0; }
.project-detail .subt { font-family: var(--sans); font-size: 13px; color: var(--purple); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.project-detail h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin: 6px 0 18px; }
.project-detail p { color: var(--ink-2); font-size: 17px; max-width: 820px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info h3 { font-family: var(--sans); font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--purple); letter-spacing: .12em; text-transform: uppercase; }
.contact-info p { color: var(--ink-2); margin-bottom: 12px; }

[data-contact-form] { background: #fff; padding: 32px; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); }
.form-field { margin-bottom: 18px; }
.form-field label { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: .08em; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--ink);
  background: var(--bg-2); font: inherit; color: var(--ink);
  border-radius: 12px; transition: border-color var(--tr);
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--purple); background: #fff; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.form-status.error { color: #D93635; }
.form-status.success { color: var(--purple); }
.form-status.sending { color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: all .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].revealed { opacity: 1; transform: none; }

.stats { display: none; } /* rewrite tarzı stat kutucukları alt4'te açık, alt3'te gerek yok */

.bento-num, .chip-card, .m-service, .case-card, .chip-project, .m-project { display: none; }


/* ============================================================
   TrinoGate — Dropdown + Detay + Polish ekleri (ortak, tüm alt)
   ============================================================ */

/* Dropdown — desktop'ta hover/focus, mobile'da click-toggle (JS) */
.has-dropdown { position: relative; }
.has-dropdown > a { position: relative; padding-right: 14px; }
[dir="rtl"] .has-dropdown > a { padding-right: 0; padding-left: 14px; }
/* Alt başına farklı underline ::after kuralları var; buradaki arrow
   reset ile hepsini ezer: static position, oto boyut, şeffaf zemin. */
.has-dropdown > a::after {
  content: '▾' !important;
  display: inline-block !important;
  position: static !important;
  inset: auto !important;
  width: auto !important; height: auto !important;
  margin: 0 0 0 6px !important;
  background: none !important;
  color: inherit !important;
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.6;
  transform: none !important;
  transition: transform .25s ease, opacity .25s ease !important;
  vertical-align: middle;
}
[dir="rtl"] .has-dropdown > a::after { margin: 0 6px 0 0 !important; }
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after,
.has-dropdown.open > a::after { transform: rotate(180deg) !important; opacity: 1 !important; }

/* Eğer alt CSS'inde .primary-nav a::before underline kullanıyorsa (alt3),
   dropdown'da onu da gizle ki çakışmasın */
.has-dropdown > a::before { display: none !important; }

.primary-nav .dropdown,
.dropdown {
  list-style: none !important;
  margin: 0 !important;
  padding: 10px !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  inset-inline-start: 0 !important;
  /* parent .primary-nav ul flex zorlamasını ez */
  display: block !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-width: 340px !important;
  max-width: 380px !important;
  width: max-content !important;
  background: var(--bg, #fff);
  border: 1px solid var(--line, #E5E5E5);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.05);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
  transition: opacity .25s, transform .25s, visibility 0s 0s;
}
.primary-nav .dropdown li,
.dropdown li { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }

.dropdown li { border: 0; padding: 0; }
.dropdown a {
  display: block; padding: 12px 14px;
  font-size: 14px; line-height: 1.4;
  color: var(--text, var(--ink, #1A1A1A));
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.dropdown a:hover,
.dropdown a:focus { background: rgba(127,127,127,0.08); color: inherit; }
.dropdown a strong {
  display: block; font-weight: 600;
  margin-bottom: 3px; font-size: 14px;
}
.dropdown a span {
  display: block; font-size: 12px;
  opacity: 0.65;
}

/* Mobile: dropdown'ı akordiyon olarak göster */
@media (max-width: 980px) {
  .has-dropdown .dropdown {
    position: static; min-width: auto; max-width: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 16px;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a::after { margin-inline-start: auto; }
}

/* RTL dropdown açılış yönü */
[dir="rtl"] .dropdown { inset-inline-start: auto; inset-inline-end: 0; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--neon, var(--electric, var(--primary, #F08A24))));
  transform: scaleX(0); transform-origin: left;
  z-index: 99; pointer-events: none;
  transition: transform .1s linear;
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ---- Detay sections (services.html + projects.html) ---- */
.details-host {
  display: flex; flex-direction: column; gap: 0;
}
.detail-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line, #E5E5E5);
  scroll-margin-top: 96px;
  transition: background .6s ease;
}
.detail-section:last-child { border-bottom: 0; }
.detail-section.highlight {
  background: color-mix(in oklab, var(--accent, #F08A24) 12%, transparent);
  border-radius: 12px; padding-left: 20px; padding-right: 20px;
}
.detail-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.detail-num {
  font-size: 14px; letter-spacing: .15em; opacity: 0.55;
  font-family: var(--mono, var(--sans));
  font-variant-numeric: tabular-nums;
}
.detail-tag {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  background: color-mix(in oklab, var(--accent, #F08A24) 15%, transparent);
  color: var(--accent, inherit);
  border-radius: 999px;
}
.detail-head h2 {
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15;
  letter-spacing: -0.01em; font-weight: 600;
}
.detail-body { max-width: 860px; }
.detail-body .lead {
  font-size: 18px; line-height: 1.55; margin-bottom: 14px;
  color: var(--text, var(--ink, inherit));
  font-weight: 500;
}
.detail-body p { color: var(--muted, #666); margin-bottom: 18px; font-size: 16px; line-height: 1.65; }
.detail-bullets { margin-top: 18px; }
.detail-bullets h4 {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 12px; font-weight: 600;
}
.detail-bullets ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.detail-bullets li {
  position: relative; padding-inline-start: 22px;
  color: var(--text, var(--ink, inherit));
  font-size: 15px; line-height: 1.5;
}
.detail-bullets li::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 8px;
  width: 10px; height: 2px;
  background: var(--accent, var(--neon, currentColor));
}
@media (max-width: 720px) {
  .detail-bullets ul { grid-template-columns: 1fr; }
}

/* Servis/proje card link stilleri (i18n.js a etiketiyle render eder) */
.services-grid a, .projects-grid a { text-decoration: none; color: inherit; }

.service-more {
  display: inline-block; margin-top: 10px;
  font-size: 12px; letter-spacing: .1em;
  opacity: 0.65; transition: opacity .2s, transform .2s;
}
a:hover .service-more { opacity: 1; transform: translateX(2px); }
[dir="rtl"] a:hover .service-more { transform: translateX(-2px); }
