/* Main CSS - NaturalGlow */

/* --- TEMEL DÜZEN --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER & NAVİGASYON --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}

/* Scroll durumunda header stil değişimi */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header.scrolled {
  background-color: rgba(27, 46, 34, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-normal);
}

.header.scrolled .header-container {
  height: 70px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.logo:hover {
  opacity: 0.9;
}

/* Desktop Menü */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Header Aksiyonları (Tema + Mobil Buton) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Tema Değiştirici */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.theme-toggle-btn:hover {
  background-color: var(--color-accent);
  transform: rotate(15deg);
}

/* Hamburger Menü Butonu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* Hamburger Aktif Durumu */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobil Menü Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 24px;
  transition: right var(--transition-normal);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-link {
  font-size: 1.2rem;
  padding: 10px 0;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  padding: 80px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer {
  background-color: #0E1A12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-brand .logo {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-col-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-accent);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-normal);
}

.footer-social-icon:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-newsletter-form button {
  width: 44px;
  height: 44px;
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.footer-newsletter-form button:hover {
  background-color: #FFFFFF;
  transform: scale(1.05);
}

/* Footer Alt Bilgi ve Sorumluluk Reddi */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 900px;
  line-height: 1.5;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- YARDIMCI / YÜKLEME ANİMASYONU SINIFLARI --- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* Modal Ortak Arka Planı */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(27, 46, 34, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.modal-close-btn:hover {
  background-color: var(--color-accent);
}

/* ==========================================================================
   SAYFA ÖZEL STİLLERİ (PAGE SPECIFIC STYLES)
   ========================================================================== */

/* --- HERO BÖLÜMÜ --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, rgba(183, 228, 199, 0.15) 0%, rgba(248, 244, 239, 0.6) 50%, rgba(45, 106, 79, 0.05) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, rgba(27, 46, 34, 0.95) 0%, rgba(14, 26, 18, 0.95) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
  background-color: rgba(82, 183, 136, 0.1);
  border-color: rgba(82, 183, 136, 0.2);
  color: var(--color-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.hero-visual {
  height: 520px;
}

/* Dekoratif Arka Plan Blobları */
.hero-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  z-index: 1;
}

.hero-blob-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(82, 183, 136, 0.25);
  top: -50px;
  right: -50px;
}

.hero-blob-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(183, 228, 199, 0.3);
  bottom: -50px;
  left: -50px;
}

[data-theme="dark"] .hero-blob-1 {
  background-color: rgba(45, 106, 79, 0.15);
}

[data-theme="dark"] .hero-blob-2 {
  background-color: rgba(27, 46, 34, 0.3);
}

.hero-plant-wrapper {
  position: absolute;
  bottom: 0;
  right: calc((100% - 1200px) / 2 + 24px);
  width: 100%;
  max-width: 520px;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}

.hero-leaf-scroll-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
}

.hero-leaf-entrance-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 350px;
  margin-bottom: 35px; /* offset to sit in the soil */
  transform: translateY(390px);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.hero-leaf-entrance-wrapper.emerged {
  transform: translateY(0);
  opacity: 1;
}

.hero-leaf-illustration {
  width: 100%;
  height: 100%;
  display: block;
  animation: float 6s ease-in-out infinite;
}

.hero-soil-container {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 105px;
  z-index: 10;
  pointer-events: none;
}

.hero-soil-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cilt Tipleri Etiketleri */
.leaf-tag {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--color-primary);
  border: 1px solid rgba(45, 106, 79, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 12;
  opacity: 0;
  transform: scale(0.7) translateY(15px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, background-color 0.3s, color 0.3s, box-shadow 0.3s;
  pointer-events: auto;
  cursor: pointer;
}

.hero-leaf-entrance-wrapper.emerged .leaf-tag {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.leaf-tag:hover {
  transform: scale(1.1) translateY(-3px);
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 6px 15px rgba(45, 106, 79, 0.25);
}

[data-theme="dark"] .leaf-tag {
  background-color: rgba(27, 46, 34, 0.85);
  color: var(--color-accent);
  border-color: rgba(183, 228, 199, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .leaf-tag:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow: 0 6px 15px rgba(183, 228, 199, 0.25);
}

/* Etiket Pozisyonları ve Gecikmeleri */
.leaf-tag.tag-normal { top: 16%; left: 40%; transition-delay: 1.0s; }
.leaf-tag.tag-karma  { top: 38%; left: 66%; transition-delay: 1.2s; }
.leaf-tag.tag-kuru   { top: 42%; left: 8%;  transition-delay: 1.4s; }
.leaf-tag.tag-yagli  { top: 58%; left: 60%; transition-delay: 1.6s; }
.leaf-tag.tag-hassas { top: 64%; left: 14%; transition-delay: 1.8s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- KATEGORİ KARTLARI --- */
.category-card {
  text-align: center;
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: rgba(45, 106, 79, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-normal);
}

[data-theme="dark"] .category-icon-wrapper {
  background-color: rgba(82, 183, 136, 0.1);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.category-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- NASIL ÇALIŞIR --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 24px;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.step-description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- İSTATİSTİKLER --- */
.stats-section {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}

[data-theme="dark"] .stats-section {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

[data-theme="dark"] .stat-icon {
  color: var(--color-primary);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

[data-theme="dark"] .stat-number {
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .stat-label {
  color: var(--color-text-muted);
}

/* --- BLOG DETAY / KARTLAR --- */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(183, 228, 199, 0.2) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 3rem;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-img-placeholder {
  transform: scale(1.03);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  font-size: 0.82rem;
}

.blog-author {
  font-weight: 500;
  color: var(--color-text);
}

/* --- DİNAMİK FİLTRE VE ARAMA SİSTEMLERİ --- */
.filter-wrapper {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 16px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* --- BİTKİSEL ÇÖZÜMLER SAYFASI --- */
.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto 48px;
  display: flex;
  gap: 12px;
}

.plant-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.plant-card-latin {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.plant-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

/* Bitki Detay Sayfası / Modalı Yapısı */
.plant-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.plant-detail-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.plant-detail-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plant-detail-emoji {
  font-size: 2.5rem;
}

.plant-detail-names h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
}

.plant-detail-names p {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.plant-detail-section {
  margin-bottom: 24px;
}

.plant-detail-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}

.plant-detail-section ul {
  padding-left: 20px;
  list-style: disc;
}

.plant-detail-section li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* --- CHATBOT DANIŞMAN SAYFASI --- */
.chatbot-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 650px;
}

.chatbot-sidebar {
  border-right: 1px solid var(--color-border);
  padding: 24px;
  overflow-y: auto;
}

.chatbot-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.chatbot-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chatbot-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-header-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

.chatbot-header-info p {
  font-size: 0.8rem;
  color: var(--color-success);
}

.chat-history {
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--color-secondary);
}

[data-theme="dark"] .chat-history {
  background-color: rgba(27, 46, 34, 0.5);
}

.message-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-user {
  align-self: flex-end;
  background-color: #E2EAFC;
  color: #1D3557;
  border-bottom-right-radius: 4px;
}

[data-theme="dark"] .message-user {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.message-ai {
  align-self: flex-start;
  background-color: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.message-ai ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-top: 8px;
}

.message-ai li {
  margin-bottom: 4px;
}

.chat-quick-suggestions {
  padding: 12px 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-quick-btn {
  padding: 6px 12px;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-quick-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  display: flex;
  gap: 12px;
}

.chat-input-area input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background-color: var(--color-bg-page);
  color: var(--color-text);
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.chat-send-btn:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

/* --- HAKKIMIZDA BİYOGRAFİ GENİŞLEME --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.member-card {
  text-align: center;
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--color-border);
  font-size: 3rem;
  overflow: hidden;
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.member-bio {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.member-bio.active {
  max-height: 200px;
  margin-top: 12px;
}

/* --- İLETİŞİM SAYFASI --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(45, 106, 79, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-details h5 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.contact-info-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-error {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-success-alert {
  display: none;
}

/* Responsiveness overrides details */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-visual {
    order: 1;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .chatbot-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chatbot-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    max-height: none;
    height: auto;
  }
  .chatbot-main {
    height: 600px;
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .team-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid::before {
    display: none;
  }
}

/* --- HAREKETLİ YAPRAKLAR ARKA PLANI --- */
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.leaf-particle {
  position: absolute;
  top: -50px;
  will-change: transform, opacity;
  animation: fall-and-sway linear infinite;
  opacity: 0;
}

@keyframes fall-and-sway {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--leaf-opacity, 0.3);
  }
  50% {
    transform: translateY(50vh) translateX(var(--leaf-sway-mid, 30px)) rotate(var(--leaf-rotate-mid, 180deg));
  }
  90% {
    opacity: var(--leaf-opacity, 0.3);
  }
  100% {
    transform: translateY(105vh) translateX(var(--leaf-sway-end, -20px)) rotate(var(--leaf-rotate-end, 360deg));
    opacity: 0;
  }
}

