/* alt6 — Çip / Mikrodevre Temalı (NVIDIA/Arm/TSMC event pages) */
:root {
  --bg: #050510;
  --bg-2: #0A0A18;
  --surf: #101022;
  --line: rgba(0,212,255,0.18);
  --text: #E6EDF3;
  --muted: #8A93A0;
  --neon: #39FF14;
  --electric: #00D4FF;
  --phosphor: #B6E613;
  --copper: #B87333;
  --silver: #C0C0C0;
  --tr: 0.35s cubic-bezier(.2,.8,.2,1);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
[lang="ar"] body { font-family: 'Noto Kufi Arabic', var(--sans); }
/* circuit grid overlay */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,16,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand-logo { height: 32px; filter: brightness(0) invert(1); }
.primary-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.primary-nav a {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding: 6px 0; position: relative; letter-spacing: .02em;
  transition: color var(--tr);
}
.primary-nav a::before { content: '> '; opacity: 0; transition: opacity var(--tr); }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--electric); }
.primary-nav a:hover::before, .primary-nav a[aria-current]::before { opacity: 1; color: var(--neon); }
.header-tools { display: flex; gap: 10px; align-items: center; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; background: var(--surf); border: 1px solid var(--line); border-radius: 2px; }
.lang-option { font-family: var(--mono); padding: 5px 10px; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.lang-option.active { background: var(--electric); color: var(--bg); }
.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(--electric); }
@media (max-width: 980px) {
  .primary-nav { position: absolute; inset: 72px 0 auto 0; background: var(--bg-2); border-bottom: 1px 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-chip {
  padding: 130px 0 100px; position: relative; overflow: hidden;
}
.hero-chip .circuit-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--electric); z-index: 0;
}
.hero-chip .circuit-bg g:last-child circle {
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-chip .circuit-bg g:last-child circle:nth-child(3n) { animation-delay: -0.8s; }
.hero-chip .circuit-bg g:last-child circle:nth-child(3n+1) { animation-delay: -1.6s; }
@keyframes pulse { 0%,100% { opacity: 0.35; r: 3; } 50% { opacity: 1; r: 6; filter: drop-shadow(0 0 8px currentColor); } }
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  color: var(--neon); letter-spacing: .15em; padding: 6px 12px;
  border: 1px solid var(--neon); border-radius: 2px;
  margin-bottom: 28px;
  background: rgba(57,255,20,0.05);
}
.eyebrow::before { content: '// '; }
.hero-title {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 24px;
}
.cursor::after { content: '_'; color: var(--neon); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: 18px; max-width: 620px; color: var(--muted); line-height: 1.55; }
.hero-ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 2px;
  transition: all var(--tr); position: relative;
}
.btn-primary { background: var(--electric); color: var(--bg); }
.btn-primary::before, .btn-ghost::before { content: '['; margin-right: 4px; }
.btn-primary::after, .btn-ghost::after { content: ']'; margin-left: 4px; }
.btn-primary:hover { background: var(--neon); box-shadow: 0 0 20px rgba(57,255,20,0.5); }
.btn-ghost { color: var(--electric); border: 1px solid var(--electric); }
.btn-ghost:hover { background: var(--electric); color: var(--bg); box-shadow: 0 0 20px rgba(0,212,255,0.5); }

/* Sections */
section { padding: 110px 0; }
.alt-bg { background: var(--bg-2); }
.section-head { max-width: 860px; margin-bottom: 56px; position: relative; }
.section-head::before {
  content: ''; display: block; width: 40px; height: 2px;
  background: var(--neon); margin-bottom: 20px;
  box-shadow: 0 0 8px rgba(57,255,20,0.6);
}
.section-title { font-family: var(--sans); font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.two-col .intro-body p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Chip-card services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.chip-card {
  background: var(--bg); padding: 32px 24px; position: relative;
  transition: all var(--tr);
}
.chip-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(0,212,255,0.08), transparent 50%);
  pointer-events: none;
}
.chip-card:hover { background: var(--bg-2); box-shadow: inset 0 0 40px rgba(0,212,255,0.08); }
.chip-card .pin {
  font-family: var(--mono); font-size: 13px; color: var(--neon);
  letter-spacing: .1em; display: inline-block;
  padding: 4px 8px; background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.4); border-radius: 2px;
  margin-bottom: 16px;
}
.chip-card h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--electric); margin-bottom: 10px; line-height: 1.2; }
.chip-card p { color: var(--muted); font-size: 14.5px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.chip-project {
  background: var(--surf); border: 1px solid var(--line); padding: 36px 28px;
  border-radius: 2px; position: relative; transition: all var(--tr);
  border-top: 2px solid var(--electric);
}
.chip-project::before {
  content: ''; position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 10px var(--neon);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.chip-project:hover { border-top-color: var(--neon); box-shadow: 0 0 20px rgba(0,212,255,0.15); }
.chip-project .pin-label { font-family: var(--mono); font-size: 11px; color: var(--neon); letter-spacing: .15em; text-transform: uppercase; }
.chip-project h3 { font-family: var(--sans); font-size: 28px; font-weight: 600; color: var(--electric); margin: 12px 0 14px; }
.chip-project p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* CTA */
.cta-footer { background: var(--bg-2); padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cta-footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 50% 100%, rgba(0,212,255,0.2), transparent 60%),
    radial-gradient(300px 150px at 50% 0%, rgba(57,255,20,0.15), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-footer h2 { font-family: var(--sans); font-size: clamp(32px, 4.5vw, 56px); font-weight: 500; margin-bottom: 16px; letter-spacing: -0.01em; }
.cta-footer p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 40px; }
.footer-logo { height: 30px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; color: var(--neon); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col h4::before { content: '# '; opacity: .6; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 8px 0; font-size: 14px; color: var(--muted); font-family: var(--mono); }
.footer-col a:hover { color: var(--electric); }
.footer-col p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.copyright { border-top: 1px solid var(--line); padding: 20px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Page hero */
.page-hero { padding: 120px 0 60px; border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-family: var(--sans); font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 14px; color: var(--electric); }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 17px; }

/* Ref */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ref-item {
  aspect-ratio: 5/3; display: grid; place-items: center; padding: 20px;
  background: var(--surf); border: 1px solid var(--line); border-radius: 2px;
  transition: all var(--tr);
}
.ref-item img { max-height: 56px; filter: brightness(0) invert(0.85); opacity: .7; transition: all var(--tr); }
.ref-item:hover { border-color: var(--electric); box-shadow: 0 0 15px rgba(0,212,255,0.2); }
.ref-item:hover img { filter: none; opacity: 1; }

/* About */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.mv-card { background: var(--surf); padding: 40px; border: 1px solid var(--line); border-top: 2px solid var(--electric); }
.mv-card:nth-child(2) { border-top-color: var(--neon); }
.mv-card h3 { font-family: var(--mono); color: var(--neon); font-size: 20px; margin-bottom: 16px; letter-spacing: .05em; }
.mv-card h3::before { content: '// '; opacity: .5; }
.mv-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .mv-grid { grid-template-columns: 1fr; } }

/* Projects page */
.project-detail { padding: 50px 0; border-bottom: 1px solid var(--line); }
.project-detail:last-child { border-bottom: 0; }
.project-detail .subt { font-family: var(--mono); font-size: 11px; color: var(--neon); letter-spacing: .15em; text-transform: uppercase; }
.project-detail h3 { font-family: var(--sans); font-size: clamp(32px, 4.5vw, 56px); color: var(--electric); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 18px; }
.project-detail p { color: var(--muted); font-size: 16px; max-width: 820px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h3 { font-family: var(--mono); font-size: 12px; color: var(--neon); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 10px; }
.contact-info h3::before { content: '# '; }
.contact-info p { color: var(--text); margin-bottom: 12px; font-family: var(--mono); font-size: 15px; }
.contact-info a { color: var(--electric); }

[data-contact-form] { background: var(--surf); padding: 32px; border: 1px solid var(--line); border-radius: 2px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--mono); font-size: 11px; color: var(--neon); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  background: var(--bg); font-family: var(--mono); font-size: 14px; color: var(--text);
  border-radius: 2px; transition: border-color var(--tr);
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--neon); box-shadow: 0 0 10px rgba(57,255,20,0.2); }
.form-status { margin-top: 12px; font-family: var(--mono); font-size: 13px; min-height: 1.2em; }
.form-status.error { color: #FF6B6B; }
.form-status.success { color: var(--neon); }

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

.bento-card, .tilt-card, .m-service, .case-card, .bento-project, .tilt-project, .m-project, .project-card, .service-card { 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); }
