:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --ink: #1a1712;
  --paper: #f4ead8;
  --accent: #ff6b35;
  --muted: #8a8172;
  --line: rgba(244, 234, 216, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Black-TR.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Black-TR.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Black-TR.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Book-TR.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'GothamPatch';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('sans-serif');
  unicode-range: U+0130;
}

body.theme-gotham {
  --serif: "Gotham", sans-serif;
  --sans: "Gotham", sans-serif;
}


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

br.mobile-br { display: none; }
br.desktop-br { display: initial; }
@media (max-width: 900px) {
  br.mobile-br { display: initial; }
  br.desktop-br { display: none; }
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}


::selection { background: var(--accent); color: var(--ink); }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(32px, 8vw, 140px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}


.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.nav-logo .dot { color: var(--accent); }

.nav-links-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.nav-links-left, .nav-links-right {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links-left {
  justify-self: end;
}
.nav-links-right {
  justify-self: start;
}
.nav-links-center {
  justify-self: center;
  margin: 0 36px;
}

.nav-links-container a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links-container a:not(.nav-cta):hover { color: var(--paper); }

.nav .nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.2s ease;
}
.nav-links-container .nav-cta:hover { background: #e55a00; color: var(--ink); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  margin-right: -16px; /* Offset the padding to keep visual alignment */
  z-index: 10000;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.nav-hamburger:active {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.nav-mobile.open {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .mobile-cta {
  color: var(--accent);
  font-weight: 600;
  border-bottom: none;
}

/* ========== PROGRESS BAR ========== */
.progress-track {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  height: 2px;
  background: var(--line);
  z-index: 9997;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

/* ========== SCROLLER ========== */
.scroller {
  height: 100vh;
  overflow-x: hidden; /* JS animasyonu yapacağı için user'ın native scroll etmesini gizliyoruz */
  overflow-y: hidden;
  scrollbar-width: none;
  display: flex;
  padding-top: 72px;
}
.scroller::-webkit-scrollbar { display: none; }

/* ========== PANELS ========== */
.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: calc(100vh - 72px);
  min-height: 600px;
  scroll-margin-top: 72px; /* Dikey kaydırma hizalaması için */
  display: flex;
  align-items: flex-start;
  padding: clamp(60px, 12vh, 140px) clamp(32px, 8vw, 140px);
  position: relative;
}

#teklif-al {
  justify-content: center;
  align-items: center;
}

#teklif-al .label,
#teklif-al .section-title {
  text-align: center;
  width: 100%;
  max-width: none;
  justify-content: center;
}

.panel-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
}

#iletisim .panel-inner {
  width: min(1400px, 100%);
  margin: 0;
}

/* ========== TEXT ELEMENTS ========== */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.label::before {
  display: none;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
}
.hero-title .highlight { color: var(--accent); }

.hero-sub {
  margin-top: clamp(16px, 3vh, 32px);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: rgba(244, 234, 216, 0.85); /* Muted yerine daha parlak ve okunaklı */
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1.7;
  max-width: 960px;
  white-space: pre-wrap;
}

/* ========== HERO ACTIONS ========== */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 44px);
  flex-wrap: wrap;
}

.hero-actions .btn-primary, .hero-actions .btn-ghost {
  width: 190px;
  height: 52px;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  box-sizing: border-box;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #e55a00; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  box-sizing: border-box;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: rgba(244, 234, 216, 0.5); transform: translateY(-2px); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
}

.section-desc {
  margin-top: clamp(16px, 3vh, 32px);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: rgba(244, 234, 216, 0.85);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1.7;
  max-width: 960px;
  white-space: pre-wrap;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(28px, 4vh, 48px);
  width: 100%;
  max-width: 1200px;
}

.card {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-horizontal {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.card-content {
  display: flex;
  flex-direction: column;
}
.card h3, .card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--paper);
}
.card-header .card-title {
  margin-bottom: 0;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ========== STATS ========== */
.stats-row {
  display: flex;
  gap: clamp(32px, 6vw, 72px);
  margin-top: clamp(32px, 5vh, 56px);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  transform: translateZ(0);
  font-variant-ligatures: none;
  -webkit-font-variant-ligatures: none;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ========== PORTFOLIO ========== */
.portfolio-grid {
  max-width: 860px;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-thumb {
  height: 148px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-eticaret {
  background: linear-gradient(135deg, #1c0a30 0%, #7c3aed 45%, #ff6b35 100%);
}
.thumb-kurumsal {
  background: linear-gradient(135deg, #071a35 0%, #2563eb 45%, #06b6d4 100%);
}
.thumb-restoran {
  background: linear-gradient(135deg, #1f0a0a 0%, #dc2626 45%, #f97316 100%);
}

.thumb-mockup {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  background: rgba(18, 16, 12, 0.92);
  border-radius: 6px 6px 0 0;
  padding: 10px 10px 0;
  backdrop-filter: blur(4px);
}
.mock-topbar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.mock-topbar span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.mock-hero {
  height: 28px;
  background: rgba(255, 107, 53, 0.15);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 10px;
}
.mock-line {
  height: 3px;
  background: rgba(244, 234, 216, 0.15);
  border-radius: 2px;
}
.mock-line.w-40 { width: 40%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-55 { width: 55%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-80 { width: 80%; }

.portfolio-info {
  padding: 20px 24px 24px;
}
.portfolio-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(28px, 4vh, 48px);
  width: 100%;
}
@media (min-width: 901px) {
  .contact-grid {
    gap: 0;
  }
  .contact-info {
    padding-right: clamp(40px, 6vw, 80px);
    border-right: 1px solid rgba(244, 234, 216, 0.1);
  }
  .contact-form-container {
    padding-left: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  }
.contact-info .section-desc {
  margin-top: 0;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.4);
  transition: border-color 0.3s;
}
.contact-info a:hover {
  border-bottom-color: var(--accent);
}

.social-links {
  margin-top: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent) !important;
  border-bottom: none !important;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}
.social-link svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-link:hover {
  opacity: 1;
}
.social-link:hover svg {
  transform: scale(1.1);
}

.contact-form, #contactFormContent, #quoteFormContent { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}
.contact-form {
  height: 100%;
  min-height: 380px;
  justify-content: center;
}

/* ========== FORM GROUPS ========== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: var(--sans);
  font-feature-settings: "locl";
  -webkit-font-feature-settings: "locl";
  color: rgba(244, 234, 216, 0.4);
  opacity: 1 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: none; height: 80px; }

.contact-form button {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  align-self: flex-start;
}
.contact-form button:hover { background: #e55a00; transform: translateY(-1px); }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Karakter sayacı boşluk kaplamasın; 16px'lik form boşluğunun içinde yüzsün
   (İletişim formundaki buton hizasıyla birebir aynı dursun) */
#char-count {
  position: absolute;
  right: 0;
  bottom: -16px;
}

/* Form başarı mesajı */
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 10px;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.form-success.visible { opacity: 1; transform: translateY(0); }
.form-success span { color: var(--accent); font-size: 15px; font-weight: 700; }

  background: transparent;
  border: none;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  transform: translateY(-5%); /* Optik olarak tüm bloğu hafif yukarı alıyoruz */
  width: 100% !important;
  text-align: center !important;
}
#quoteSuccessMsg h2, #contactSuccessMsg h2 {
  margin-bottom: 0 !important;
  line-height: 1;
  text-align: center !important;
  width: 100% !important;
}
#quoteSuccessMsg p, #contactSuccessMsg p {
  margin-top: 4px !important; /* Başlıkla metni birbirine iyice yaklaştırıyoruz ki 'bir bütün' görünsünler */
  text-align: center !important;
  width: 100% !important;
}

/* ========== COUNTER (GİZLENDİ) ========== */
.counter {
  display: none !important;
  position: fixed;
  bottom: 28px;
  right: clamp(32px, 5vw, 64px);
  z-index: 9999;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.counter b { color: var(--paper); font-weight: 600; }

/* ========== HINT ========== */
.hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.6s ease;
}
.hint .key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--paper);
}
.hint.hidden { opacity: 0; pointer-events: none; }

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav { display: flex; justify-content: space-between; height: 60px; padding: 0 24px; }
  .nav-links-container { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { top: 60px; display: flex !important; }

  html {
    overflow-y: auto;
    height: auto;
  }
  body {
    overflow: visible;
    height: auto;
  }
  .scroller {
    height: auto;
    overflow: visible;
    flex-direction: column;
    padding-top: 60px;
  }
  .panel {
    flex: none;
    width: 100%;
    min-height: calc(100vh - 60px);
    scroll-margin-top: 60px;
    height: auto;
    padding: 48px 24px 60px;
    
    /* İçeriği dikey olarak ortalamak ve taşmaları önlemek için */
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    
    /* Kullanıcı kaydırırken tam hizaya oturması için */
  }
  .panel-inner {
    margin: 0;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .contact-form button { width: 100%; align-self: stretch; }
  .card { padding: 24px; }
  .card p { word-break: break-word; }
  .card-grid { grid-template-columns: 1fr; }
  .portfolio-thumb { height: 120px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .hint { display: none; }
  .counter { display: none; }
  .progress-track { display: none; }
}

p[data-cid] {
  white-space: pre-wrap;
}

/* ========== ABSTRACT BACKGROUND ========== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
