/* ─────────────────────────────────────────────────────────
   Tuğrul Etyemez Dijital Danışmanlık — style.css
   ───────────────────────────────────────────────────────── */

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

:root {
  --navy:     #0D1B3E;
  --gold:     #C9A84C;
  --gold-lite:#E2C47A;
  --off-white:#F0EDE6;
  --muted:    rgba(240,237,230,0.5);
  --dim:      rgba(240,237,230,0.25);
  --bg:       #04080F;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain overlay ───────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ── Custom cursor ───────────────────────────────────────── */
#cursor {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  /* transform JS ile her karede güncelleniyor; transition burada gerçek fare ile çakışıp rahatsız edici gecikme yaratır */
  will-change: transform;
  mix-blend-mode: difference;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

#cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  body { cursor: auto; }
  #cursor,
  #cursor-ring { display: none !important; }
}

/* ── Stars canvas ────────────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ──────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.4s, padding 0.3s;
}

nav.scrolled {
  background: rgba(4,8,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--off-white);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: #04080F;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  color: #04080F;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-title .accent { color: var(--gold); }
.hero-title .dim    { color: var(--muted); }

.hero-sub {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(240,237,230,0.06);
  border: 1px solid rgba(240,237,230,0.15);
  padding: 20px 52px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.btn-primary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
}

.btn-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.direct-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.direct-link a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

.direct-link a:hover { opacity: 0.7; }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s 1.4s infinite;
}

.scroll-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
#stats {
  padding: 80px 48px;
  border-top: 1px solid rgba(240,237,230,0.06);
  border-bottom: 1px solid rgba(240,237,230,0.06);
  position: relative;
  z-index: 2;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 48px;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
#services {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 64px;
  line-height: 1.15;
}

.section-title .accent { color: var(--gold); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240,237,230,0.06);
  border: 1px solid rgba(240,237,230,0.06);
}

.service-card {
  background: var(--bg);
  padding: 48px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.service-card:hover { background: rgba(201,168,76,0.04); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--gold);
  opacity: 0.7;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--off-white);
}

.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   APPROACH
══════════════════════════════════════════════════════════ */
#approach-wrapper {
  border-top: 1px solid rgba(240,237,230,0.06);
}

#approach {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach-text .section-title { margin-bottom: 24px; }

.approach-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

.approach-steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(240,237,230,0.07);
  transition: padding-left 0.3s;
}

.step:first-child { border-top: 1px solid rgba(240,237,230,0.07); }
.step:hover { padding-left: 8px; }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  padding-top: 2px;
  flex-shrink: 0;
  width: 28px;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--off-white);
}

.step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
#contact {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-title .accent { color: var(--gold); }

.contact-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
}

.contact-btn.primary {
  background: var(--gold);
  color: #04080F;
  font-weight: 500;
}

.contact-btn.primary:hover { background: var(--gold-lite); }

.contact-btn.secondary {
  border: 1px solid rgba(240,237,230,0.2);
  color: var(--off-white);
}

.contact-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  padding: 32px 48px;
  border-top: 1px solid rgba(240,237,230,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.footer-info {
  text-align: right;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  #approach { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }

  #hero { padding: 100px 24px 80px; }

  #stats { padding: 60px 24px; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .stat-num { font-size: 40px; }

  #services { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 24px; }

  #approach { padding: 80px 24px; }

  #contact { padding: 80px 24px; }
  .contact-links { flex-direction: column; align-items: center; }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }
  .footer-info { text-align: center; }

  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
