/* ============================================
   AVUKAT ONUR — Golden Ratio Design System (Phi = 1.618)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Golden Ratio Constant */
  --phi: 1.61803398875;

  /* Golden Spacing Scale */
  --space-3xs: 6px;
  --space-2xs: 10px;        /* 16 / 1.618 */
  --space-xs:  16px;        /* Base */
  --space-sm:  26px;        /* 16 * 1.618 */
  --space-md:  42px;        /* 26 * 1.618 */
  --space-lg:  68px;        /* 42 * 1.618 */
  --space-xl:  110px;       /* 68 * 1.618 */

  /* Golden Typography Scale */
  --fs-xs:   0.618rem;      /* 1 / 1.618 */
  --fs-sm:   0.764rem;
  --fs-base: 1rem;          /* 16px */
  --fs-md:   1.618rem;      /* 1 * 1.618 */
  --fs-lg:   2.618rem;      /* 1.618^2 */
  --fs-xl:   4.236rem;      /* 1.618^3 */

  /* Colors */
  --bg: #060609;
  --surface: rgba(255,255,255,0.04);
  --white: #F5F5F7;
  --gray-1: #A1A1A6;
  --gray-2: #6E6E73;
  --gray-3: #505055;
  --accent: #C5A467;
  --accent-dim: rgba(197,164,103,0.12);

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-h: 68px;            /* Golden scale (42 * 1.618) */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* -------- Navbar -------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand .brand-title {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray-1);
  letter-spacing: -0.2px;
}

.nav-brand .brand-title .bold {
  font-weight: 700;
  color: var(--white);
}

.nav-brand .brand-sub {
  font-size: 0.55rem;
  font-weight: 300;
  color: #505055;
  text-transform: uppercase;
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--gray-1);
  letter-spacing: 0.5px;
  transition: color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 22px;
  border-radius: 980px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-btn-contact:hover {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
    transform: translateY(-1px);
  }
}

.nav-btn-contact:active {
  background: rgba(255, 255, 255, 0.8);
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(0.98);
}

/* -------- Hero -------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 32px) 24px 16vh;
  position: relative;
  background: #060609;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* İsim bloğu */
.hero-name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--white);
}

.hero-title .avukat {
  font-weight: 300;
  color: var(--gray-1);
}

.hero-surname {
  font-size: 0.95rem;
  font-weight: 300;
  color: #505055;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Çizgi */
.hero-line {
  width: 68px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* Slogan */
.hero-slogan {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--gray-1);
  letter-spacing: 3px;
}

/* Uzmanlık */
.hero-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.area {
  padding: 8px 18px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--gray-1);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  cursor: default;
  letter-spacing: 0.3px;
}

.area:hover {
  background: var(--accent-dim);
  border-color: rgba(197,164,103,0.2);
  color: var(--accent);
}



/* -------- Infinite Premium Marquee -------- */
.marquee-section {
  position: absolute;
  bottom: 84px;
  left: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  border-top: 1px solid rgba(197, 164, 103, 0.12);
  border-bottom: 1px solid rgba(197, 164, 103, 0.12);
  box-shadow: 0 -8px 24px -4px rgba(197, 164, 103, 0.08), 0 8px 24px -4px rgba(197, 164, 103, 0.08);
  overflow: hidden;
  padding: 14px 0;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 23%, black 77%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 23%, black 77%, transparent 100%);
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: marquee-scroll 200s linear infinite;
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 130px;
  padding-right: 130px;
}

.marquee-item {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: #fff;
}

.marquee-separator {
  color: rgba(197, 164, 103, 0.35);
  font-size: 12px;
  text-shadow: 0 0 6px rgba(197, 164, 103, 0.25);
  pointer-events: none;
  user-select: none;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-duration: 300s;
  }
}

/* İletişim */
.hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.info-item {
  font-size: 0.76rem;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.info-item:hover { color: var(--gray-1); }

.info-item svg {
  width: 13px; height: 13px;
  stroke: var(--gray-2);
  fill: none;
  stroke-width: 1.5;
}

/* -------- Footer -------- */
.footer {
  padding: 14px clamp(20px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--gray-3);
}

/* -------- WhatsApp Float -------- */
.wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 2px 16px rgba(48,209,88,0.25);
  transition: transform 0.3s var(--ease);
}

.wa:hover { transform: scale(1.08); }
.wa svg { width: 24px; height: 24px; fill: white; }

/* -------- Fade-in -------- */
.fi {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeIn 0.7s var(--ease) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.d1 { animation-delay: 0.4s; }
.d2 { animation-delay: 0.55s; }
.d3 { animation-delay: 0.7s; }
.d4 { animation-delay: 0.85s; }
.d5 { animation-delay: 1.0s; }
.d6 { animation-delay: 1.15s; }

/* -------- Mobile -------- */
@media (max-width: 640px) {
  .nav-btn-contact {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  .hero { padding: calc(var(--nav-h) + 16px) 20px 48px; }

  .hero-info { flex-direction: column; align-items: center; gap: 12px; }
  .hero-areas { gap: 6px; }

  .footer { flex-direction: column; text-align: center; padding: 12px 20px; }

  .wa { bottom: 18px; right: 18px; width: 48px; height: 48px; }
  .wa svg { width: 22px; height: 22px; }
}

::-webkit-scrollbar { width: 0; }
::selection { background: rgba(197,164,103,0.3); }

/* -------- Contact Page -------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
  width: 100%;
  max-width: 680px;
  margin-top: var(--space-sm);
}

.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-card:hover {
  border-color: rgba(197, 164, 103, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.68rem;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

a.contact-value:hover {
  color: var(--accent);
}

.btn-vcard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 164, 103, 0.18);
  padding: 12px 28px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}

.btn-vcard:hover {
  background: rgba(197, 164, 103, 0.12);
  color: var(--white);
  border-color: rgba(197, 164, 103, 0.35);
  transform: translateY(-1px);
}

/* ============================================
   ARTICLE DESIGN SYSTEM (Reading & Typography)
   ============================================ */

/* Article Index List */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 680px;
  margin-top: var(--space-sm);
}

.article-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  transition: all 0.3s var(--ease);
}

.article-card:hover {
  border-color: rgba(197, 164, 103, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--gray-2);
}

.article-category {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}

.article-card:hover .article-card-title {
  color: var(--accent);
}

.article-card-summary {
  font-size: 0.92rem;
  color: var(--gray-1);
  line-height: 1.6;
}

.article-card-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Article Detail Page Layout */
.article-page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 42px) 24px 68px;
  text-align: left;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.article-header .article-category {
  font-size: 0.75rem;
}

.article-main-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.5px;
}

.article-header-meta {
  font-size: 0.78rem;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #D8D8DC;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-body p {
  margin: 0;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 20px;
  margin-bottom: -4px;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 14px;
  margin-bottom: -6px;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  background: rgba(197, 164, 103, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--white);
  margin: 8px 0;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  line-height: 1.7;
}

/* Article Author Sign-off Footer Card */
.article-author-card {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  text-align: center;
}

.article-author-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.article-author-brand .brand-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-1);
  letter-spacing: -0.2px;
}

.article-author-brand .brand-title .bold {
  font-weight: 700;
  color: var(--white);
}

.article-author-brand .brand-sub {
  font-size: 0.6rem;
  font-weight: 300;
  color: #505055;
  text-transform: uppercase;
  letter-spacing: 7px;
  margin-top: 4px;
}
