/* === KÖK RENK DEĞİŞKENLERİ === */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #f2f2f2;
  --footer-text: #444;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.dark {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --accent-color: #1f1f1f;
  --footer-text: #999;
}

/* === NAVBAR === */
header {
  background-color: var(--bg-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 2000;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a,
#theme-toggle {
  text-decoration: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover,
#theme-toggle:hover {
  color: #888888;
}

/* === ARKA PLAN RESMİ === */
main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  background: url("resources/images/Landing-bg.png?v=2") no-repeat center center / cover;
  min-height: calc(100vh - 64px - 60px);
  position: relative;
  z-index: 1;
}

/* === FORM BÖLÜMÜ === */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 80px;
  padding: 40px 20px;
  justify-content: center;
  gap: 40px;
  align-items: center;
  min-height: auto; /* 100vh yerine */
}


.contact-left,
.contact-right {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-left form {
  background-color: var(--accent-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;

  /* ✅ Alt boşluk ver */
  margin-bottom: 30px;
}


.contact-left form h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
}

.contact-left input,
.contact-left textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  resize: none;
}

.contact-left button {
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.contact-left button:hover {
  background-color: #0056b3;
}

.contact-right img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  width: 90%;
}

/* === BAŞARI MESAJI POPUP === */
.form-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.form-success.show {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.form-success-box {
  background: white;
  padding: 40px 60px;
  border-radius: 10px;
  max-width: 90%;
  position: relative;
  text-align: center;
  font-size: 18px;
  color: black;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--accent-color);
  color: var(--footer-text);
  transition: background 0.3s, color 0.3s;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--bg-color);
    padding: 10px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .logo img {
    height: 40px;
  }

  .contact-container {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .contact-right img {
    width: 80%;
  }

  .form-success-box {
    padding: 30px 20px;
  }
  
}
