/* ============================================
   ATATÜRK WEB SİTESİ — Siyah Estetik Tema
   ============================================ */

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-elevated: #111111;
  --black-card: #141414;
  --black-hover: #1a1a1a;
  --black-border: rgba(255, 255, 255, 0.06);
  --black-border-hover: rgba(212, 175, 55, 0.25);

  --color-red: #C8102E;
  --color-red-glow: rgba(200, 16, 46, 0.35);
  --color-gold: #D4AF37;
  --color-gold-light: #F0D060;
  --color-gold-muted: rgba(212, 175, 55, 0.6);
  --color-gold-glow: rgba(212, 175, 55, 0.15);

  --text-primary: #F5F5F5;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.12);
  --shadow-red: 0 0 60px rgba(200, 16, 46, 0.15);

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.dark-theme {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--black);
  overflow-x: hidden;
  line-height: 1.7;
}

::selection {
  background: var(--color-gold);
  color: var(--black);
}

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

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

.text-gold {
  color: var(--color-gold) !important;
}

/* Film grain dokusu */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-padding {
  padding: 110px 0;
  position: relative;
}

.bg-dark-section {
  background: var(--black-soft);
}

.bg-dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 50%, var(--color-red-glow), transparent),
    radial-gradient(ellipse 50% 30% at 90% 80%, var(--color-gold-glow), transparent);
  pointer-events: none;
}

.bg-cream {
  background: var(--black-elevated);
}

.bg-cream::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--black-border-hover), transparent);
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

/* Altın imza — ortak stil */
.gold-signature {
  display: block;
  object-fit: contain;
  object-position: center;
  filter: invert(77%) sepia(58%) saturate(600%) hue-rotate(360deg) brightness(1.05) contrast(0.95);
  transition: filter var(--transition), transform var(--transition);
}

.gold-signature--preloader {
  height: 56px;
  width: auto;
  max-width: 240px;
  margin: 0 auto 28px;
  animation: pulse-signature 2s ease-in-out infinite;
}

.gold-signature--nav {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-position: left center;
}

.gold-signature--footer {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-position: left center;
}

.navbar-brand:hover .gold-signature--nav {
  filter: invert(77%) sepia(70%) saturate(700%) hue-rotate(360deg) brightness(1.15) contrast(0.95)
    drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  transform: scale(1.02);
}

@keyframes pulse-signature {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

.preloader-text {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.preloader-bar {
  width: 220px;
  height: 2px;
  background: var(--black-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
  animation: loading-bar 1.8s ease forwards;
}

@keyframes loading-bar {
  to { width: 100%; }
}

/* ---- Navbar ---- */
#mainNav {
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}

#mainNav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  border-bottom: 1px solid var(--black-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 400;
  font-size: 0.82rem;
  padding: 8px 14px !important;
  position: relative;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.navbar-toggler {
  border-color: var(--black-border-hover);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-collapse {
  background: transparent;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 12px;
    border: 1px solid var(--black-border);
  }
}

/* ---- Logo arka planları ---- */
.has-logo-bg {
  position: relative;
  overflow: hidden;
}

.has-logo-bg > .container,
.has-logo-bg > .container-fluid {
  position: relative;
  z-index: 1;
}

.section-logo-bg {
  position: absolute;
  inset: 0;
  background-image: var(--logo-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.section-logo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.78) 45%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.hero-logo-bg {
  background-image: url('../logo/arka.jpg');
  opacity: 1;
  background-position: center 30%;
}

.hero-logo-bg::after {
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, transparent 35%);
}

.legacy-logo-bg {
  background-image: url('../logo/arka.jpg');
  opacity: 0.35;
  background-attachment: fixed;
  background-position: center 40%;
}

.legacy-logo-bg::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.82) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

#askeri .section-logo-bg,
#inkilaplar .section-logo-bg {
  background-size: 55% auto;
  background-position: center bottom;
  opacity: 0.07;
}

#ilkeler .section-logo-bg {
  background-size: 50% auto;
  background-position: center;
  opacity: 0.05;
}

#sozler .section-logo-bg {
  opacity: 0.18;
  background-position: center;
}

#sozler .section-logo-bg::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

#eserler .section-logo-bg {
  background-position: center top;
  opacity: 0.1;
}

#galeri .section-logo-bg {
  opacity: 0.06;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
}

.hero-section::before {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--black) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(212, 175, 55, 0.2), transparent),
    radial-gradient(1px 1px at 75px 85px, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(1px 1px at 125px 45px, rgba(212, 175, 55, 0.15), transparent);
  background-size: 250px 250px;
  animation: particles-drift 30s linear infinite;
  z-index: 0;
}

@keyframes particles-drift {
  to { background-position: 250px 250px; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--color-gold-muted);
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-quote {
  border-left: 2px solid var(--color-gold);
  padding-left: 28px;
  margin: 36px 0;
  position: relative;
}

.hero-quote::before {
  content: '"';
  position: absolute;
  left: -8px;
  top: -20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.2;
  line-height: 1;
}

.hero-quote p {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  margin: 0;
  line-height: 1.7;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, #9B0D24 100%);
  border: 1px solid rgba(200, 16, 46, 0.5);
  padding: 14px 36px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E8304A 0%, var(--color-red) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
  border-color: var(--color-red);
}

.btn-outline-light {
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 500;
  border: 1px solid var(--black-border-hover);
  color: var(--text-primary);
  background: var(--glass);
  backdrop-filter: blur(8px);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.btn-outline-light:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--black-border);
}

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

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  text-shadow: 0 0 30px var(--color-gold-glow);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
  display: block;
}

.hero-portrait-wrap {
  position: relative;
  max-width: 220px;
  margin: 0 auto;
  padding-top: 8px;
}

.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  top: 7px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-gold), transparent 40%, var(--color-red) 80%);
  opacity: 0.4;
  z-index: 0;
}

.hero-portrait-ring {
  position: absolute;
  inset: -14px;
  top: -6px;
  border: 1px solid var(--black-border-hover);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: 0.5;
  animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.015); opacity: 0.6; }
}

.hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  object-position: center top;
  filter: contrast(1.05) brightness(0.95);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold-muted);
  font-size: 1.3rem;
  animation: bounce 2.5s ease infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* ---- Section Headers ---- */
.section-header {
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--black-border-hover);
  border-radius: 50px;
  background: var(--glass);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title.text-white {
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}

/* ---- About ---- */
.about-image-stack {
  position: relative;
  padding-bottom: 24px;
}

.about-img-main {
  width: 82%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--black-border);
  filter: grayscale(15%) contrast(1.05);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--black-border-hover);
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: center top;
  background: var(--black-card);
  filter: grayscale(10%);
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
}

.about-content strong {
  color: var(--color-gold);
  font-weight: 500;
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-gold);
  background: rgba(212, 175, 55, 0.04);
}

.fact-card i {
  font-size: 1.4rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.fact-card strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fact-card span {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Military Cards ---- */
.military-card {
  background: var(--glass);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.military-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.military-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-6px);
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-md);
}

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

.military-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(200, 16, 46, 0.05));
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.military-icon i {
  font-size: 1.3rem;
  color: var(--color-red);
}

.military-card h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.military-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.65;
}

/* ---- Timeline ---- */
.timeline-controls {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-search-wrap {
  position: relative;
}

.timeline-search-wrap .bi-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.timeline-search {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--text-primary);
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-search:focus {
  background: var(--black-card);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
  color: var(--text-primary);
}

.timeline-period-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.timeline-filter-btn {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.timeline-filter-btn:hover,
.timeline-filter-btn.active {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
}

.timeline-stats {
  margin: 14px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.timeline-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px;
  position: relative;
  z-index: 1;
}

.timeline-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  z-index: 1;
}

.timeline-wrapper--collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.92));
  pointer-events: none;
  z-index: 2;
}

.timeline-actions {
  position: relative;
  z-index: 3;
  padding-top: 8px;
}

.timeline-continue-btn {
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.timeline-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.timeline-period-more {
  margin: 8px 0 0 64px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), var(--color-red), transparent);
  opacity: 0.35;
}

.timeline-period {
  margin-bottom: 56px;
}

.timeline-period-header {
  position: relative;
  margin: 0 0 28px 64px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
}

.timeline-period-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--color-gold);
  margin: 0 0 6px;
}

.timeline-period-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.timeline-period-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-period-events {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-left: 64px;
  width: 100%;
}

.timeline-dot {
  position: absolute;
  left: 22px;
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  border: 2px solid var(--black);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.3);
  top: 18px;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: var(--black-card);
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--black-border);
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--black-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.timeline-date {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-red-light, #e8a0a0);
  letter-spacing: 0.02em;
}

.timeline-event-title {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.75;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.75;
}

/* ---- Principles ---- */
.principle-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: width var(--transition);
}

.principle-card:hover {
  transform: translateY(-8px);
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-gold);
}

.principle-card:hover::after {
  width: 60%;
}

.principle-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.03));
  border: 1px solid var(--black-border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-icon i {
  font-size: 1.6rem;
  color: var(--color-gold);
}

.principle-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.principle-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ---- Reforms ---- */
.nav-pills .nav-link {
  color: var(--text-secondary) !important;
  background: var(--glass);
  border: 1px solid var(--black-border);
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.nav-pills .nav-link::after {
  display: none;
}

.nav-pills .nav-link:hover {
  border-color: var(--black-border-hover);
  color: var(--color-gold) !important;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(200, 16, 46, 0.08)) !important;
  color: var(--text-primary) !important;
  border-color: rgba(200, 16, 46, 0.4);
}

.reform-panel {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.reform-panel h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: var(--color-gold);
}

.reform-panel p {
  color: var(--text-secondary);
}

.reform-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.reform-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--black-border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-secondary);
}

.reform-list li:last-child {
  border-bottom: none;
}

.reform-list i {
  color: var(--color-gold);
  margin-top: 4px;
  font-size: 0.7rem;
}

/* ---- Quotes ---- */
.quotes-section {
  position: relative;
  overflow: hidden;
}

.quotes-section::before {
  content: '"';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 30rem;
  color: rgba(212, 175, 55, 0.03);
  line-height: 1;
  pointer-events: none;
}

.quote-slide {
  text-align: center;
  padding: 50px 24px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 28px;
  font-weight: 400;
}

.quote-slide cite {
  color: var(--color-gold);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
  background-color: var(--black-card);
  border: 1px solid var(--black-border-hover);
  border-radius: 50%;
  padding: 22px;
  background-size: 45%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

/* ---- Eserler & Mektuplar ---- */
.works-tabs {
  gap: 10px;
  flex-wrap: wrap;
}

.works-tab-content {
  position: relative;
  z-index: 1;
}

.work-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0.5;
  transition: opacity var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-gold);
}

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

.work-card--featured {
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.06), var(--black-card));
}

.work-card--featured::before {
  background: linear-gradient(90deg, var(--color-gold), var(--color-red), transparent);
  opacity: 0.8;
}

.work-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.work-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--black-border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.work-card-icon i {
  font-size: 1.4rem;
  color: var(--color-gold);
}

.work-card-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}

.work-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.work-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.work-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.work-card-highlights li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-card-highlights i {
  color: var(--color-gold);
  font-size: 1.2rem;
  line-height: 1;
}

.letters-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.letter-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: all var(--transition);
}

.letter-card:hover {
  border-color: var(--black-border-hover);
  border-left-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.letter-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.letter-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold);
}

.letter-type {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--black-border-hover);
  color: var(--text-muted);
}

.letter-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.letter-excerpt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
}

.letter-context {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ---- 10 Kasım Anma ---- */
.memorial-section {
  background: linear-gradient(180deg, #0a0002 0%, var(--black-soft) 40%, #080004 100%);
  overflow: hidden;
}

.memorial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(200, 16, 46, 0.2), transparent),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(212, 175, 55, 0.08), transparent);
  pointer-events: none;
}

.memorial-logo-bg {
  background-image: url('../logo/arka.jpg');
  opacity: 0.08;
  background-position: center 30%;
}

.memorial-logo-bg::after {
  background: linear-gradient(
    180deg,
    rgba(10, 0, 2, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(10, 0, 2, 0.98) 100%
  );
}

.memorial-tag {
  border-color: rgba(200, 16, 46, 0.4);
  color: rgba(255, 180, 180, 0.9);
}

.memorial-countdown-wrap {
  text-align: center;
  margin: 48px auto 0;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.memorial-countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.memorial-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-unit {
  min-width: 72px;
  padding: 16px 12px;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: var(--radius);
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(200, 16, 46, 0.5);
  padding-bottom: 18px;
}

.memorial-countdown-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.memorial-today {
  padding: 36px 24px;
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--radius-lg);
}

.memorial-today i {
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: 12px;
  display: block;
  animation: heart-pulse 2s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.memorial-today-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.memorial-today-time {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.memorial-candle-panel,
.memorial-silence-panel {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  backdrop-filter: blur(8px);
}

.memorial-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.memorial-panel-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.candle-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.candle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.35;
  transition: opacity var(--transition), transform var(--transition);
}

.candle:not(:disabled):hover {
  opacity: 0.7;
  transform: scale(1.08);
}

.candle--lit {
  opacity: 1;
  cursor: default;
}

.candle-body {
  display: block;
  width: 10px;
  height: 28px;
  background: linear-gradient(180deg, #f5f0e6, #d4c9a8);
  border-radius: 2px 2px 4px 4px;
  box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.2);
}

.candle-flame {
  display: block;
  width: 12px;
  height: 16px;
  background: radial-gradient(ellipse at bottom, #ff6b35, #ffd700 40%, transparent 70%);
  border-radius: 50% 50% 20% 20%;
  opacity: 0;
  transform-origin: bottom center;
}

.candle--lit .candle-flame {
  opacity: 1;
  animation: candle-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes candle-flicker {
  0% { transform: scale(1) rotate(-2deg); opacity: 0.85; }
  100% { transform: scale(1.12) rotate(2deg); opacity: 1; }
}

.memorial-candle-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.candle-counter {
  font-size: 0.85rem;
  color: var(--color-gold-muted);
}

.memorial-quote {
  border-left: 3px solid var(--color-red);
  padding: 16px 0 16px 20px;
  margin: 0 0 28px;
}

.memorial-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.memorial-silence-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
}

.memorial-silence-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.silence-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.silence-overlay-inner {
  text-align: center;
  padding: 40px 24px;
  max-width: 480px;
}

.silence-flame {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  animation: candle-flicker 2s ease-in-out infinite alternate;
}

.silence-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.silence-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.silence-timer {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  line-height: 1;
}

/* ---- Anıtkabir Harita ---- */
.anitkabir-block {
  margin-top: 56px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.anitkabir-header {
  margin-bottom: 28px;
}

.anitkabir-tag {
  border-color: rgba(212, 175, 55, 0.35);
}

.anitkabir-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin: 12px 0 10px;
}

.anitkabir-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

.anitkabir-tabs {
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px auto 20px;
  position: relative;
  z-index: 1;
}

.anitkabir-tab-content {
  position: relative;
  z-index: 1;
}

.anitkabir-tour-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.anitkabir-tour-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-stop {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--black-border);
  background: rgba(0, 0, 0, 0.35);
}

.tour-stop i {
  color: var(--color-gold-muted);
  margin-right: 4px;
}

.anitkabir-tour-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border-hover);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200, 16, 46, 0.12);
  background: #000;
  min-height: min(72vh, 640px);
}

.anitkabir-tour-frame:fullscreen {
  border-radius: 0;
  min-height: 100vh;
}

.anitkabir-tour-frame:fullscreen .anitkabir-tour-iframe {
  min-height: 100vh;
}

.anitkabir-tour-iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 640px);
  height: min(72vh, 640px);
  border: none;
  background: #0a0a0a;
}

.anitkabir-tour-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
  text-align: center;
}

.anitkabir-tour-credit {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.anitkabir-tour-credit a {
  color: var(--color-gold-muted);
}

.anitkabir-tour-credit a:hover {
  color: var(--color-gold);
}

.anitkabir-map-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-red);
  background: var(--black-card);
}

.anitkabir-map-panel {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.anitkabir-panel-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--black-border-hover);
  color: var(--color-gold);
  backdrop-filter: blur(6px);
}

.anitkabir-map,
.anitkabir-pano {
  flex: 1;
  width: 100%;
  min-height: 360px;
  background: #0a0a0a;
  border: none;
}

.anitkabir-embed-frame {
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.anitkabir-map-panel + .anitkabir-map-panel {
  border-left: 1px solid var(--black-border);
}

.anitkabir-fallback {
  border-radius: var(--radius-lg);
  border: 1px solid var(--black-border-hover);
  background: var(--black-card);
  overflow: hidden;
}

.anitkabir-embed {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(30%) contrast(1.05);
}

.anitkabir-fallback-inner {
  padding: 20px 24px 24px;
  text-align: center;
}

.anitkabir-fallback-inner p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto 16px;
}

.anitkabir-fallback-inner code {
  color: var(--color-gold);
  font-size: 0.82rem;
}

.anitkabir-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Gallery ---- */
.gallery-controls {
  max-width: 900px;
  margin: 36px auto 0;
  position: relative;
  z-index: 1;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  padding-left: 48px;
  border-radius: 50px;
  border: 1px solid var(--black-border);
  height: 50px;
  background: var(--black-card);
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--black-border-hover);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
  background: var(--black-hover);
  color: var(--text-primary);
}

.gallery-select {
  max-width: 180px;
  margin-left: auto;
  border-radius: 50px;
  height: 50px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--text-primary);
}

.gallery-select:focus {
  border-color: var(--black-border-hover);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.view-toggle .btn {
  border-radius: 50px !important;
  width: 50px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black-card);
  border-color: var(--black-border);
  color: var(--text-secondary);
}

.view-toggle .btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--black-border-hover);
  color: var(--color-gold);
}

.view-toggle .btn:hover {
  border-color: var(--black-border-hover);
  color: var(--color-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.gallery-grid.masonry {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  transition: all var(--transition);
}

.gallery-item:hover {
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-gold);
}

.gallery-grid.masonry .gallery-item:nth-child(3n+1) {
  aspect-ratio: 3/4;
}

.gallery-grid.masonry .gallery-item:nth-child(5n+2) {
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9) contrast(1.05);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px;
  gap: 12px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-num {
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  align-self: flex-start;
}

.gallery-item-actions {
  display: flex;
  gap: 10px;
  align-self: center;
}

.gallery-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--black-border-hover);
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.gallery-action-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: scale(1.08);
}

.gallery-item-error {
  border-color: rgba(200, 16, 46, 0.4);
}

.gallery-item-error::after {
  content: '!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  font-size: 1.5rem;
  font-weight: 700;
}

.gallery-empty,
.gallery-error,
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.gallery-loading .lightbox-spinner {
  margin: 0 auto 16px;
}

.gallery-loading p {
  margin: 0;
  color: var(--text-muted);
}

.gallery-error i {
  font-size: 2.5rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 16px;
}

.gallery-error p {
  margin-bottom: 20px;
}

.gallery-error-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.gallery-error-hint code {
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-gold);
}

.gallery-item.loading {
  background: linear-gradient(90deg, var(--black-card) 25%, var(--black-hover) 50%, var(--black-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.pagination .page-link {
  color: var(--text-secondary);
  background: var(--black-card);
  border-radius: 10px !important;
  margin: 0 4px;
  border: 1px solid var(--black-border);
  padding: 10px 16px;
  font-weight: 400;
  transition: all var(--transition);
}

.pagination .page-item.active .page-link {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  border-color: var(--black-border-hover);
}

.pagination .page-link:hover {
  background: var(--black-hover);
  border-color: var(--black-border-hover);
  color: var(--color-gold);
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--black-border);
}

/* ---- Lightbox ---- */
.lightbox-content {
  background: var(--black-elevated);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 96vh;
}

.lightbox-header-info {
  min-width: 0;
}

.lightbox-counter {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lightbox-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--black-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.lightbox-tool-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--black-border-hover);
  color: var(--color-gold);
}

.lightbox-body {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: #000;
}

.lightbox-stage {
  flex: 1;
  height: 65vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  margin: 0 56px;
}

.lightbox-stage.is-zoomed {
  cursor: grab;
}

.lightbox-stage.is-panning {
  cursor: grabbing;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.15s ease;
}

.lightbox-img.loaded {
  opacity: 1;
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.lightbox-loader.active {
  display: flex;
}

.lightbox-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid var(--black-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--black-border-hover);
  color: var(--color-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-footer {
  padding: 10px 20px 16px;
  justify-content: center;
}

.lightbox-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-title {
  color: var(--text-primary);
  font-family: var(--font-display);
}

/* ---- Legacy ---- */
.legacy-section {
  position: relative;
  overflow: hidden;
}

.legacy-section .container {
  position: relative;
  z-index: 1;
}

.legacy-card {
  background: var(--glass);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  height: 100%;
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.legacy-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-6px);
  border-color: var(--black-border-hover);
  box-shadow: var(--shadow-gold);
}

.legacy-card i {
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 22px;
}

.legacy-card h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.legacy-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.legacy-quote {
  max-width: 720px;
  margin: 0 auto;
}

.legacy-quote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
}

.legacy-quote cite {
  display: block;
  margin-top: 20px;
  color: var(--color-gold);
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: var(--text-secondary);
  padding: 70px 0 36px;
  border-top: 1px solid var(--black-border);
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.site-footer h5 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.footer-links,
.footer-dates {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-dates li {
  padding: 7px 0;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-dates strong {
  color: var(--color-gold);
  font-weight: 500;
}

.footer-divider {
  border-color: var(--black-border);
  margin: 44px 0 28px;
}

.footer-bottom p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-note {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  opacity: 0.7;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--black-card);
  color: var(--color-gold);
  border: 1px solid var(--black-border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

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

.back-to-top:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* ---- İndirme bildirimi ---- */
.download-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(18, 18, 18, 0.92);
  color: var(--text-primary);
  border: 1px solid var(--black-border-hover);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  max-width: min(90vw, 420px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.download-toast.is-error {
  border-color: rgba(220, 80, 80, 0.5);
  color: #ffb4b4;
}

/* ---- Bootstrap overrides ---- */
.dark-theme .form-control,
.dark-theme .form-select {
  background-color: var(--black-card);
  border-color: var(--black-border);
  color: var(--text-primary);
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus {
  background-color: var(--black-hover);
  border-color: var(--black-border-hover);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.dark-theme .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .gold-signature--nav {
    height: 36px;
    max-width: 160px;
  }

  .gold-signature--preloader {
    height: 48px;
    max-width: 210px;
  }

  .gold-signature--footer {
    height: 40px;
    max-width: 170px;
  }

  .section-padding {
    padding: 80px 0;
  }

  .hero-stats {
    gap: 28px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .timeline-line {
    left: 18px;
  }

  .timeline-period-header {
    margin-left: 48px;
    padding: 18px 16px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-dot {
    left: 12px;
  }

  .timeline-period-more {
    margin-left: 48px;
  }

  .timeline-period-filters {
    justify-content: flex-start;
  }

  .about-img-secondary {
    width: 42%;
    bottom: 0;
  }

  .gallery-select {
    margin: 0 auto;
  }

  .work-card-highlights {
    grid-template-columns: 1fr;
  }

  .candle-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .countdown-unit {
    min-width: 60px;
    padding: 12px 8px;
  }

  .countdown-sep {
    display: none;
  }

  .memorial-countdown {
    gap: 12px;
  }

  .anitkabir-map-wrap {
    grid-template-columns: 1fr;
  }

  .anitkabir-tour-iframe {
    min-height: 55vh;
    height: 55vh;
  }

  .anitkabir-tour-frame {
    min-height: 55vh;
  }

  .anitkabir-tour-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .anitkabir-tour-stops {
    justify-content: center;
  }

  .anitkabir-map-panel + .anitkabir-map-panel {
    border-left: none;
    border-top: 1px solid var(--black-border);
  }

  .anitkabir-map,
  .anitkabir-pano {
    min-height: 280px;
  }

  .reform-panel {
    padding: 28px;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .lightbox-stage {
    margin: 0 44px;
    height: 50vh;
  }

  .lightbox-toolbar {
    gap: 4px;
  }

  .lightbox-tool-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .lightbox-counter {
    max-width: 180px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .hero-eyebrow {
    letter-spacing: 4px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .grain-overlay {
    display: none;
  }
}
