:root {
  --color-primary: #800000;    /* bordo */
  --color-secondary: #003366;  /* lacivert */
  --color-light: #f5f5f5;
  --color-dark: #111;
}/* Genel Ayarlar */
* {
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

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

/* HEADER */
.main-header {
  background-color: #4e0727;
  padding: 16px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 3000; /* hamburger menü tree-controls / içerik üstünde */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* MENU */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #82c8fc;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background-color: #a52a2a;
}

/* TOGGLE BUTTON */
.mobile-menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #82c8fc;
  cursor: pointer;
  z-index: 1001;
}

/* RESPONSIVE */
@media (max-width: 768px), (max-height: 520px) and (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 3002;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; /* header altına yerleşsin */
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #4e0727;
    padding: 16px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 3001; /* arama / istatistik paneli üstünde */
  }

  .main-nav.show {
    display: flex;
  }
}


/* ANASAYFA */

/* HERO */
.hero-section {
  height:100vh; position:relative; display:flex; align-items:center; justify-content:center;
  background: url('images/hero-image2.webp') center/cover no-repeat;
}
.hero-section::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,51,102,0.6));
}
.hero-content {
  position:relative; z-index:1; text-align:center; color:#fff; padding:0 1rem;
}
.hero-content h1 {
  font-size:3.5rem; margin-bottom:1rem; line-height:1.1;
}
.hero-content h1 .highlight { color: var(--color-light); }
.hero-content p { font-size:1.25rem; margin-bottom:2rem; }
.btn-primary {
  display:inline-block; padding:0.75rem 2rem; font-size:1rem; font-weight:600;
  background: var(--color-secondary); color:#fff; border-radius:30px;
  text-decoration:none; transition: transform .3s, background .3s;
}
.btn-primary:hover {
  transform: translateY(-4px);
  background: var(--color-primary);
}

/* INTRO SECTION */
.intro-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
}

.intro-text {
  max-width: 600px;
  margin: 0 auto;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #800000;
}

.intro-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #800000;
  color: #800000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background-color: #800000;
  color: white;
}

.intro-image {
  text-align: center;
}

.intro-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* CTA */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to right, #f8f8f8, #e0e0e0);
}

.cta-section h2 {
  color: #800000;
  margin-bottom: 10px;
}

.cta-section p {
  margin-bottom: 20px;
  color: #555;
}


/* GALERİ */
.gallery-section {
  text-align: center;
  padding: 60px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* CTA */
.cta-section {
  background-color: #f2f2f2;
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  margin-bottom: 20px;
  color: #800000;
}

/* Sayfa Bölüm Başlıkları */
section h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #800000;
  text-align: center;
}

/* ABOUT */
.about-section,
.memory-section,
.document-section,
.contact-section {
  padding: 80px 20px;
}


.about-section {
  padding: 80px 20px;
}

.about-section h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #800000;
  text-align: center;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  min-width: 300px;
  font-size: 1.1rem;
  color: #444;
  text-align: justify;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }
}


/* ANI VE HATIRA */
.memory-section {
  padding: 80px 20px;
  text-align: center;
}

.memory-section h1 {
  font-size: 2rem;
  color: #800000;
  margin-bottom: 10px;
}

.memory-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.memory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.memory-card {
  background-color: #fffdfa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.memory-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.memory-text {
  padding: 20px;
  text-align: left;
}

.memory-text h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #800000;
}

.memory-text p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
}

/* BELGELER */
.document-section {
  padding: 80px 20px;
  text-align: center;
}

.document-section h1 {
  font-size: 2rem;
  color: #800000;
  margin-bottom: 10px;
}

.document-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.document-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.document-card {
  background: #fefefe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.document-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.doc-content {
  padding: 20px;
}

.doc-content h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 1.2rem;
}

.doc-content p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

/* CONTACT */
.contact-section {
  padding: 80px 20px;
  text-align: center;
}

.contact-section p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.contact-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card .icon {
  font-size: 2rem;
  margin-right: 20px;
  color: #5dade2;
}

.contact-card .info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #800000;
}

.contact-card .info p {
  margin: 0;
  color: #444;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}


/* Responsive Ayarlar */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

  /* Soyağacı bağlantıları — site teması (bordo / lacivert) */
  .f3 path.link {
    stroke-linecap: round;
    stroke: #6b1e3c;
    stroke-width: 2.5px;
    opacity: 0.55;
    z-index: 999;
  }

  .link.f3-path-to-main {
    stroke: #82c8fc !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
    z-index: 9999;
  }

  /* Kart paleti: yumuşak bordo (kadın) / lacivert (erkek) */
  .f3 {
    --female-color: #6b1e3c !important;
    --male-color: #1e3a5f !important;
  }

  .f3 .card-inner.card-rect {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(20, 24, 40, 0.16) !important;
    padding: 12px 14px !important;
    color: #f7f4f5 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .f3 .card-inner.card-rect:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(20, 24, 40, 0.28) !important;
    z-index: 10;
  }

  .card-inner.f3-path-to-main {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(107, 30, 60, 0.22) !important;
    transition: all 0.25s ease;
  }

  html, body {
    margin: 0 !important;
  }

  #FamilyChart.f3 {
    background-color: #eef3f8 !important;
  }


 

  