/* === GLOBAL === */


:root {
  --bg-color: #ffffff;
  --text-color: #222;
  --header-bg: #f5f9fb;
  --footer-bg: #f5f9fb;
  --accent: #3a7b69;
  --accent-hover: #2b5c4f;
}

body[data-theme="dark"] {
  --bg-color: #0f1115;
  --text-color: #eaeaea;
  --header-bg: #181a1f;
  --footer-bg: #181a1f;
  --accent: #4da3ff;
  --accent-hover: #2676d6;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease-in-out;
}

/* === HEADER === */
header {
  background-color: var(--header-bg);
  border-bottom: 1px solid #d6dee3;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #1d1d1d;
  transition: color 0.2s;
}

nav a.active {
  color: var(--accent);
}

nav a:hover {
  color: var(--accent);
}

/* === DARK MODE NAV LINKS === */
body[data-theme="dark"] nav a {
  color: #e0e0e0; /* açık gri, görünür */
}

body[data-theme="dark"] nav a.active {
  color: var(--accent); /* aktif menü rengi korunur */
}

body[data-theme="dark"] nav a:hover {
  color: #ffffff; /* hover olduğunda beyaz */
}


/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  z-index: 1000;
}
.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(
    to bottom right,
    rgba(58, 123, 105, 0.05),
    rgba(58, 123, 105, 0)
  );
}
.hero h2 {
  font-size: 2.2em;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.hero button {
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.hero button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(58, 123, 105, 0.3);
}

/* === CONTENT === */
.content {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.8;
}
.content h2 {
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea {
  padding: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: var(--header-bg);
  color: var(--text-color);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 5px rgba(58, 123, 105, 0.4);
}

button[type="submit"] {
  align-self: flex-end;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background: var(--footer-bg);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

/* === HERO SPLIT SECTION === */
/* === HERO SPLIT === */
.hero-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}

/* Light mode: açık, ferah görünüm */
body:not([data-theme="dark"]) .hero-text {
  background: linear-gradient(
    rgba(255, 255, 255, 0.95),
    rgba(245, 249, 251, 0.95)
  );
  color: #1a1a1a;
}

/* Dark mode: koyu ve kontrastlı */
body[data-theme="dark"] .hero-text {
  background: #0f1115;
  color: #eaeaea;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Görsel kısmı */
.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-text {
    padding: 50px 20px;
    text-align: center;
  }

  .hero-text button {
    margin: 0 auto;
  }

  .hero-image img {
    max-height: 400px;
  }
}

/* === FEATURES SECTION === */
.features {
  background-color: #f5f9fb;
  padding: 80px 20px;
  text-align: center;
}

.features h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1d1d1d;
  position: relative;
}

.features h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #3a7b69;
  margin: 12px auto 0;
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1d;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* === DARK MODE: FEATURES SECTION === */
body[data-theme="dark"] .features {
  background-color: #141518; /* koyu gri arka plan */
}

body[data-theme="dark"] .features h2 {
  color: #eaeaea; /* başlık açık renk */
}

body[data-theme="dark"] .features h2::after {
  background: #4da3ff; /* accent rengini maviye çeviriyoruz */
}

body[data-theme="dark"] .feature-card {
  background-color: #1e1f22; /* kart arka planı koyu */
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .feature-card h3 {
  color: #f1f1f1;
}

body[data-theme="dark"] .feature-card p {
  color: #cfcfcf;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .features {
    padding: 50px 15px;
  }

  .feature-card img {
    height: 150px;
  }
}

/* === STATS SECTION === */
.stats-section {
  position: relative;
  background: url("../images/pexels-photo-2294342.jpeg") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-overlay {
  background-color: rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 1300px;
  padding: 80px 20px;
  border-radius: 8px;
}

.stats-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat p {
  font-size: 1rem;
  font-weight: 500;
  color: #f0f0f0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .stats-section {
    padding: 60px 10px;
  }

  .stats-section h2 {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .stat h3 {
    font-size: 1.6rem;
  }
}

/* === WHY US SECTION === */
.why-us {
  background-color: #f5f9fb;
  padding: 80px 20px;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.why-left img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.why-right {
  flex: 1;
  min-width: 300px;
}

.why-right h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.why-right p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.why-right ul {
  list-style: none;
  padding: 0;
}

.why-right ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #1a1a1a;
}

/* === DARK MODE: WHY US SECTION === */
body[data-theme="dark"] .why-us {
  background-color: #141518; /* koyu arka plan */
}

body[data-theme="dark"] .why-right h2 {
  color: #eaeaea; /* başlık rengi */
}

body[data-theme="dark"] .why-right p {
  color: #cfcfcf; /* açıklama metni */
}

body[data-theme="dark"] .why-right ul li {
  color: #e0e0e0; /* liste metinleri */
}

body[data-theme="dark"] .why-left img {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.08); /* resim kenar parlaması */
}

body[data-theme="dark"] .reviews {
  background: transparent; /* arka plan korunsun */
}

body[data-theme="dark"] .review {
  background-color: #1e1f22; /* kart arka planı */
  color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .review .stars {
  color: #4da3ff; /* yıldız rengi accent uyumlu */
}

body[data-theme="dark"] .review h4 {
  color: #ffffff;
}

body[data-theme="dark"] .review p {
  color: #cccccc;
}

body[data-theme="dark"] .review-button .review-link {
  background-color: #4da3ff;
}

body[data-theme="dark"] .review-button .review-link:hover {
  background-color: #2676d6;
}

/* === REVIEWS SECTION === */
.reviews {
  max-width: 1100px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.review {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.review .stars {
  color: #3a7b69;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.review p {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* === REVIEWS BUTTON === */
.review-button {
  text-align: center; /* Ortalamayı sağlıyor */
  margin-top: 40px;
}

.review-button .review-link {
  background-color: #3a7b69;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block; /* butonun ortalanmasına izin verir */
}

.review-button .review-link:hover {
  background-color: #2e5d52;
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .why-right {
    order: 2;
  }

  .why-left img {
    max-width: 300px;
  }
}

/* === DARK CONTACT SECTION === */
.contact-dark {
  background-color: #1e1f21;
  color: #f3f3f3;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  max-width: 700px;
  width: 100%;
}

.contact-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-container p {
  font-size: 0.95rem;
  color: #d5d5d5;
  margin-bottom: 30px;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-container label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f3f3f3;
}

.contact-container input,
.contact-container textarea {
  background-color: #2b2c2e;
  color: #f3f3f3;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  transition: border 0.2s;
}

.contact-container input:focus,
.contact-container textarea:focus {
  border-color: #3a7b69;
  outline: none;
}

.contact-container button {
  background-color: #3a7b69;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 0 auto; /* Ortalamayı sağlar */
}

.contact-container button:hover {
  background-color: #2b5c4f;
}

@media (max-width: 768px) {
  .contact-container {
    text-align: center;
  }
  .contact-container button {
    margin: 0 auto;
  }
}

/* Light mode - already perfect */
body:not([data-theme="dark"]) .contact-dark {
  border-top: 4px solid var(--accent);
}

/* Dark mode - daha soft ama belirgin çizgi */
body[data-theme="dark"] .contact-dark {
  border-top: 4px solid #4da3ff; /* accent rengin dark tonuna uygun */
  box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.05); /* hafif ayrım efekti */
}

/* === LIGHT MODE: CONTACT SECTION === */
body:not([data-theme="dark"]) .contact-dark {
  background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
  color: #1d1d1d;
}

body:not([data-theme="dark"]) .contact-container p {
  color: #444; /* açıklama metni */
}

body:not([data-theme="dark"]) .contact-container label {
  color: #1d1d1d;
}

body:not([data-theme="dark"]) .contact-container input,
body:not([data-theme="dark"]) .contact-container textarea {
  background-color: #ffffff;
  color: #222;
  border: 1px solid #ccc;
}

body:not([data-theme="dark"]) .contact-container input:focus,
body:not([data-theme="dark"]) .contact-container textarea:focus {
  border-color: #3a7b69;
  box-shadow: 0 0 5px rgba(58, 123, 105, 0.3);
}

body:not([data-theme="dark"]) .contact-container button {
  background-color: #3a7b69;
  color: white;
}

body:not([data-theme="dark"]) .contact-container button:hover {
  background-color: #2b5c4f;
}

/* === DARK MODE BUTTON OVERRIDES === */
body[data-theme="dark"] button,
body[data-theme="dark"] .review-link,
body[data-theme="dark"] .contact-container button {
  background-color: var(--accent); /* mavi ton (tanımlı değişken) */
  color: #fff;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

body[data-theme="dark"] button:hover,
body[data-theme="dark"] .review-link:hover,
body[data-theme="dark"] .contact-container button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* 🎯 Hero-text için eski (outline) stili koruyoruz */
body[data-theme="dark"] .hero-text button {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

body[data-theme="dark"] .hero-text button:hover {
  background-color: #ffffff;
  color: #0f1115;
}

/* === HERO BUTTON (dark modda da mavi olacak şekilde) === */
body[data-theme="dark"] .hero-text button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .hero-text button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.hero-text button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 26px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.hero-text button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* === SECTION DIVIDERS (Accent Style) === */
section {
  border-bottom: 4px solid var(--accent);
}

/* Dark mode için accent rengini mavi yap */
body[data-theme="dark"] section {
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.05); /* hafif ayrım efekti */
}

/* Son contact kısmında alt çizgi olmasın */
.contact-dark {
  border-bottom: none;
}

/* === ABOUT US PAGE === */
.about-section {
  background-color: #edf2f3;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: background 0.3s ease-in-out;
}

.about-container {
  background: #ffffff;
  max-width: 850px;
  padding: 50px 60px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  color: #1d1d1d;
  transition: all 0.3s ease-in-out;
}

.about-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.about-container p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-container ul {
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-container li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #edf2f3;
  font-size: 0.9rem;
}

/* === DARK MODE: ABOUT US === */
body[data-theme="dark"] .about-section {
  background-color: #0f1115;
}

body[data-theme="dark"] .about-container {
  background: #1a1b1f;
  color: #eaeaea;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .about-container h2 {
  color: #ffffff;
}

body[data-theme="dark"] .about-container ul li {
  color: #d6d6d6;
}

body[data-theme="dark"] footer {
  background: #181a1f;
  color: #eaeaea;
}

/* === CONTACT PAGE === */
.contact-page {
  background-color: #edf2f3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px;
  gap: 60px;
  transition: background 0.3s ease;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  color: #1d1d1d;
}

.contact-info a {
  color: #3a7b69;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form span {
  font-size: 0.85rem;
  color: gray;
}

.contact-form input,
.contact-form textarea {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3a7b69;
  outline: none;
}

.contact-form button {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* === DARK MODE CONTACT PAGE === */
body[data-theme="dark"] .contact-page {
  background-color: #0f1115;
}

body[data-theme="dark"] .contact-info {
  color: #eaeaea;
}

body[data-theme="dark"] .contact-info a {
  color: #4da3ff;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background-color: #1e1f22;
  color: #eaeaea;
  border: 1px solid #333;
}

body[data-theme="dark"] .contact-form label {
  color: #f0f0f0;
}

body[data-theme="dark"] .contact-form button {
  background-color: #4da3ff;
}

body[data-theme="dark"] .contact-form button:hover {
  background-color: #2676d6;
}