/* ============================================
   Portre Isigi Studyosu — styles.css
   Atmosfer: Softbox isigi + siyah studyo
   Premium Google Ads Landing Page
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --clr-bg-deep: #0d0d0f;
  --clr-bg-card: #16161a;
  --clr-bg-card-hover: #1e1e24;
  --clr-bg-surface: #1a1a1f;
  --clr-bg-overlay: rgba(13, 13, 15, 0.92);
  --clr-border: #2a2a30;
  --clr-border-light: #3a3a42;
  --clr-accent: #d4a953;
  --clr-accent-soft: #c49a45;
  --clr-accent-glow: rgba(212, 169, 83, 0.15);
  --clr-accent-bright: #e8c06a;
  --clr-text: #e8e4dc;
  --clr-text-muted: #9a968e;
  --clr-text-dim: #6e6b64;
  --clr-heading: #f2efe8;
  --clr-link: #d4a953;
  --clr-link-hover: #e8c06a;
  --clr-success: #5a9e6f;
  --clr-error: #c45c5c;
  --clr-warning: #c49a45;

  --ff-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ff-heading: Georgia, "Times New Roman", serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,169,83,0.1);
  --shadow-glow: 0 0 20px rgba(212,169,83,0.1);
  --shadow-glow-strong: 0 0 40px rgba(212,169,83,0.2), 0 0 80px rgba(212,169,83,0.1);
  --shadow-btn: 0 4px 16px rgba(212,169,83,0.3);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1140px;
  --container-narrow: 780px;
  --header-height: 72px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-link-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--clr-bg-overlay);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 15, 0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo,
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--clr-heading);
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.site-logo:hover,
.logo:hover {
  opacity: 0.85;
  color: var(--clr-heading);
}

.site-logo svg,
.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo-text,
.logo-text {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Navigation --- */
.main-nav,
#mainNav {
  display: flex;
  align-items: center;
}

.nav-list,
#mainNav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-list a,
.nav-list li a,
.nav-link,
#mainNav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-link:hover,
#mainNav ul li a:hover,
#mainNav ul li a[aria-current="page"] {
  color: var(--clr-heading);
  background: rgba(212,169,83,0.08);
}

.nav-list a[aria-current="page"],
#mainNav ul li a[aria-current="page"] {
  color: var(--clr-accent);
}

/* Nav link underline animation */
.nav-list a::after,
.nav-link::after,
#mainNav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after,
.nav-link:hover::after,
#mainNav ul li a:hover::after,
#mainNav ul li a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Mobile Menu Toggle (targets both class and id) --- */
.menu-toggle,
#menuToggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--clr-text);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  padding: 0;
}

/* Hamburger lines (injected by JS) */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

/* Cross animation when menu is open */
.menu-toggle.is-active .hamburger-line:nth-child(1),
#menuToggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2),
#menuToggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-line:nth-child(3),
#menuToggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:hover,
#menuToggle:hover {
  background: rgba(255,255,255,0.05);
}

/* --- Prevent body scroll when menu is open --- */
html.menu-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

/* --- Mobile Styles --- */
@media (max-width: 960px) {
  .menu-toggle,
  #menuToggle {
    display: flex;
  }

  .main-nav,
  #mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(13, 13, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--header-height) + 24px) 24px 32px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .main-nav.is-open,
  #mainNav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .nav-list,
  #mainNav > ul,
  #mainNav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-list a,
  .nav-link,
  #mainNav ul li a {
    font-size: var(--fs-lg);
    padding: 16px 20px;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .nav-list a::after,
  .nav-link::after,
  #mainNav ul li a::after {
    display: none;
  }

  .nav-list a:hover,
  #mainNav ul li a:hover {
    background: rgba(212,169,83,0.1);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(212,169,83,0.12) 0%, rgba(212,169,83,0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
}

@keyframes heroGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 0.7; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(212,169,83,0.25);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-accent), #e0b85e);
  color: var(--clr-bg-deep);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,169,83,0.4);
  color: var(--clr-bg-deep);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Shimmer effect on primary button */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 4s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-light);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--clr-accent), #e0b85e);
  color: var(--clr-bg-deep);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-btn);
}

.hero-cta:hover {
  background: linear-gradient(135deg, #e0b85e, var(--clr-accent));
  color: var(--clr-bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,169,83,0.4);
}

/* Hero decorative visual */
.hero-visual {
  margin-top: 48px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  filter: drop-shadow(0 4px 24px rgba(212,169,83,0.1));
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.hero-visual:hover svg {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 48px;
  }
  .hero-title {
    font-size: var(--fs-2xl);
  }
  .hero-subtitle {
    font-size: var(--fs-base);
  }
}

/* ============================================
   FLOATING PARTICLES (decorative)
   ============================================ */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0);
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--clr-bg-surface);
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

/* Decorative accent line under section titles */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  border-radius: 2px;
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  margin-bottom: 40px;
  max-width: 620px;
  line-height: 1.8;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  margin-bottom: 40px;
}

/* Section dividers */
.son-yazilar {
  position: relative;
  padding: 80px 0;
}

.son-yazilar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border-light), transparent);
}

.mini-sozluk {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(180deg, var(--clr-bg-deep) 0%, var(--clr-bg-surface) 50%, var(--clr-bg-deep) 100%);
}

.mini-sozluk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
}

/* ============================================
   CARDS — "Portre Paspartu" — Enhanced
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Card glow effect on hover */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212,169,83,0.2), transparent, rgba(212,169,83,0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212,169,83,0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-visual {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--clr-bg-surface) 0%, var(--clr-bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Subtle animated gradient overlay on card visual */
.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,169,83,0.05), transparent, rgba(212,169,83,0.03));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-visual::before {
  opacity: 1;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid var(--clr-bg-card);
  border-radius: 0;
  pointer-events: none;
}

.card-visual svg {
  width: 100%;
  height: 160px;
  opacity: 0.5;
  color: var(--clr-accent);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card:hover .card-visual svg {
  opacity: 0.7;
  transform: scale(1.05);
}

.card-body {
  padding: 20px 24px 24px;
  position: relative;
  z-index: 1;
}

.card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--clr-accent-glow);
  border-radius: 100px;
  border: 1px solid rgba(212,169,83,0.15);
}

.card-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

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

.card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* Card as full clickable block */
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card-link:hover {
  color: inherit;
}

a.card-link:hover .card-title {
  color: var(--clr-accent);
}

/* Card stagger animation */
.card.fade-in {
  transition-delay: calc(var(--card-index, 0) * 0.08s);
}

/* ============================================
   ARTICLE / CONTENT — Enhanced Readability
   ============================================ */

/* .article-layout can be inside .container OR be a direct child of <main>.
   Always provide max-width + auto margin + padding so content never touches edges. */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* When inside a .container, don't double the padding/max-width */
.container .article-layout {
  max-width: none;
  padding: 0;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Breadcrumb without container — ensure padding --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  padding: 16px 24px;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Breadcrumb <ol> style normalization (some pages use <ol> instead of flat links) */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-dim);
}

.breadcrumb ol li + li::before {
  content: "/";
  color: var(--clr-text-dim);
  font-size: var(--fs-xs);
}

.container .breadcrumb {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* --- Sticky Table of Contents --- */
.toc {
  position: relative;
  padding: 20px 0;
}

/* Sticky only on desktop/laptop — needs stretch parent to work */
@media (min-width: 861px) {
  .toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
  }
}

/* TOC heading — handle both .toc-heading, .toc-title, and bare h2/p */
.toc-heading,
.toc-title,
.toc > h2,
.toc > p:first-child {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--ff-body);
  border: none;
  padding: 0;
}

/* Reset any article-content h2 styles leaking into TOC */
.toc > h2::after {
  display: none;
}

/* TOC list — handle both .toc-list and bare <ul> inside .toc */
.toc-list,
.toc > ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list a,
.toc > ul a {
  display: block;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a.is-active,
.toc > ul a:hover,
.toc > ul a.is-active {
  color: var(--clr-heading);
  border-left-color: var(--clr-accent);
  background: var(--clr-accent-glow);
  padding-left: 18px;
}

@media (max-width: 860px) {
  .toc {
    position: relative;
    top: auto;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 32px;
  }
}

/* --- Sections / <main> padding for pages without .container --- */
main#icerik {
  padding: 32px 0;
}

main#icerik > .article-layout {
  /* already has padding via .article-layout rule above */
}

/* Article meta — handle both .article-meta and .meta */
.article-meta,
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--clr-border);
}

/* --- Article Content — Premium Typography --- */
.article-content {
  max-width: var(--container-narrow);
}

.article-content h1 {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-content h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: none;
  position: relative;
}

/* Decorative accent line under article h2 */
.article-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  border-radius: 2px;
}

.article-content h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 3px solid rgba(212,169,83,0.4);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--clr-text);
  line-height: 1.85;
  font-size: var(--fs-base);
}

/* Drop cap for first paragraph after h1 */
.article-content h1 + .article-meta + p::first-letter,
.article-content h1 + p::first-letter {
  font-family: var(--ff-heading);
  font-size: 3.2em;
  font-weight: var(--fw-bold);
  float: left;
  line-height: 0.8;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--clr-accent);
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 0;
}

.article-content ul {
  list-style: none;
}

.article-content ol {
  list-style: none;
  counter-reset: ol-counter;
}

.article-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--clr-text);
  line-height: 1.7;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  opacity: 0.6;
}

.article-content ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  color: var(--clr-text);
  line-height: 1.7;
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(212,169,83,0.2);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-accent);
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--clr-accent);
  background: linear-gradient(135deg, var(--clr-accent-glow), rgba(212,169,83,0.05));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--clr-text);
  position: relative;
}

.article-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: var(--ff-heading);
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: 0.2;
  line-height: 1;
}

.article-content strong {
  color: var(--clr-heading);
  font-weight: var(--fw-semibold);
}

/* --- Article Images --- */
.article-img {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  transition: box-shadow 0.3s ease;
}

.article-img:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.article-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.article-img:hover img {
  transform: scale(1.02);
}

.article-img figcaption {
  padding: 12px 20px;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  font-style: italic;
  border-top: 1px solid var(--clr-border);
  background: rgba(0,0,0,0.2);
}

.article-img--float-right {
  float: right;
  max-width: 320px;
  margin: 4px 0 16px 24px;
}

.article-img--float-left {
  float: left;
  max-width: 320px;
  margin: 4px 24px 16px 0;
}

.article-img--inline {
  max-width: 480px;
}

@media (max-width: 640px) {
  .article-img--float-right,
  .article-img--float-left {
    float: none;
    max-width: 100%;
    margin: 20px 0;
  }
  .article-img--inline {
    max-width: 100%;
  }
}

/* (article-meta and breadcrumb styles are defined above in the ARTICLE section) */

.breadcrumb a {
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--clr-accent);
}

.breadcrumb-sep {
  color: var(--clr-text-dim);
  font-size: var(--fs-xs);
}

/* --- Related Content --- */
.related-box {
  margin-top: 56px;
  padding: 28px;
  background: linear-gradient(135deg, var(--clr-bg-card), var(--clr-bg-surface));
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.related-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}

.related-box-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.related-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.related-list a:hover {
  background: var(--clr-accent-glow);
  color: var(--clr-heading);
  padding-left: 18px;
}

.related-list a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

/* ============================================
   PLACEHOLDER PORTRAIT FRAMES
   ============================================ */
.portrait-frame {
  position: relative;
  background: linear-gradient(145deg, #1a1a20 0%, #111114 100%);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 320px;
  margin: 24px auto;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.portrait-frame svg {
  width: 80px;
  height: 80px;
  opacity: 0.15;
  color: var(--clr-accent);
}

.portrait-frame-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  font-style: italic;
}

/* --- Light Diagram Placeholder --- */
.light-diagram {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: border-color 0.3s ease;
}

.light-diagram:hover {
  border-color: var(--clr-border-light);
}

.light-diagram svg {
  max-width: 100%;
  height: auto;
}

/* ============================================
   GLOSSARY — Enhanced
   ============================================ */
.glossary,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.glossary-item {
  padding: 20px 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glossary-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--clr-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glossary-item:hover {
  transform: translateY(-3px);
  border-color: var(--clr-border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.glossary-item:hover::before {
  opacity: 1;
}

.glossary-item dt,
.glossary-term {
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  margin-bottom: 6px;
}

.glossary-item dd,
.glossary-def {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ============================================
   FAQ / SSS
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--clr-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-heading);
  text-align: left;
  background: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255,255,255,0.02);
  color: var(--clr-accent);
}

.faq-question[aria-expanded="true"] {
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--clr-text-dim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-question:hover .faq-icon {
  color: var(--clr-accent);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--clr-accent);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer.is-open {
  padding: 20px 24px;
  max-height: 600px;
}

.faq-answer p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================
   FORM — Enhanced
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-heading);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--clr-error);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-bg-deep);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--clr-border-light);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow), 0 0 20px rgba(212,169,83,0.08);
  outline: none;
  background: rgba(22,22,26,0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-dim);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--clr-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--clr-accent), #e0b85e);
  color: var(--clr-bg-deep);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.form-submit::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 4s ease-in-out infinite;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,169,83,0.4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-result {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: none;
  animation: fadeInUp 0.3s ease;
}

.form-result--success {
  display: block;
  background: rgba(90,158,111,0.1);
  border: 1px solid var(--clr-success);
  color: var(--clr-success);
}

.form-result--error {
  display: block;
  background: rgba(196,92,92,0.1);
  border: 1px solid var(--clr-error);
  color: var(--clr-error);
}

/* --- Honeypot --- */
.ht-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  tab-index: -1;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--clr-bg-card);
  border-top: 1px solid var(--clr-border);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.cookie-banner-text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cookie-btn--accept {
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
}

.cookie-btn--accept:hover {
  background: var(--clr-accent-soft);
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: var(--clr-border);
  color: var(--clr-text);
}

.cookie-btn--reject:hover {
  background: var(--clr-border-light);
}

.cookie-btn--settings {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

.cookie-btn--settings:hover {
  border-color: var(--clr-border-light);
  color: var(--clr-text);
}

/* --- Cookie Settings Panel --- */
.cookie-settings-panel {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.cookie-settings-panel.is-open {
  display: block;
}

.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-border);
}

.cookie-setting:last-child {
  border-bottom: none;
}

.cookie-setting-info {
  flex: 1;
}

.cookie-setting-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-heading);
}

.cookie-setting-desc {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--clr-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--clr-text);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--clr-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-save-btn {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
}

.cookie-save-btn:hover {
  background: var(--clr-accent-soft);
}

/* ============================================
   FOOTER — Enhanced
   ============================================ */
.site-footer {
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-surface);
  padding: 56px 0 24px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto 32px;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-links li a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color 0.2s ease, padding-left 0.3s ease;
}

.footer-links a:hover,
.footer-links li a:hover {
  color: var(--clr-accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.footer-legal a:hover {
  color: var(--clr-accent);
}

/* ============================================
   SITEMAP PAGE
   ============================================ */
.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.sitemap-section h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
}

.sitemap-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sitemap-section a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  padding: 4px 0;
  display: block;
}

.sitemap-section a:hover {
  color: var(--clr-accent);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-family: var(--ff-heading);
  font-size: 8rem;
  font-weight: var(--fw-bold);
  color: var(--clr-border);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--clr-border), var(--clr-border-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  color: var(--clr-heading);
  margin-bottom: 12px;
}

.error-text {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.error-link {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.error-link:hover {
  background: var(--clr-accent-soft);
  color: var(--clr-bg-deep);
  transform: translateY(-2px);
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  padding: 24px 28px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--clr-border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.contact-card-icon {
  width: 24px;
  height: 24px;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.contact-card-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: var(--fs-sm);
  color: var(--clr-text);
}

.contact-card-value a {
  color: var(--clr-text);
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--clr-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ============================================
   ANIMATIONS — Enhanced
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-bright));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,169,83,0.4);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  border-color: var(--clr-accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(212,169,83,0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   TEXT SELECTION
   ============================================ */
::selection {
  background: rgba(212, 169, 83, 0.3);
  color: var(--clr-heading);
}

::-moz-selection {
  background: rgba(212, 169, 83, 0.3);
  color: var(--clr-heading);
}

/* ============================================
   SMOOTH SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}

/* ============================================
   CONTACT FORM CARD
   ============================================ */
.contact-form-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-bright), transparent);
}

.contact-form-card .contact-form-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--clr-border);
}

.contact-form-card .contact-form-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-bottom: 8px;
}

.contact-form-card .contact-form-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.contact-form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-card .form-grid .form-group--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-form-card .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .toc,
  .menu-toggle,
  .scroll-progress,
  .back-to-top,
  .particles {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
}
