/* Sticky footer için temel yapı */
:root {
  --header-height: 60px; /* JS ile güncellenir */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #111;
  color: #f1f1f1;
  font-family: 'Fira Code', monospace;
  font-size: 16px;
}

/* scroll kilidi sınıfı */
body.no-scroll {
  overflow: hidden;
}

/* İçeriği saran main container (header yüksekliğine göre otomatik boşluk) */
main.container {
  flex: 1;
  max-width: 600px;
  width: 90%;
  margin: calc(var(--header-height) + 40px) auto 0 auto;
  padding: 20px 25px; /* Sağ-sol boşluk artırıldı */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;

  /* Responsive genişlik ve ölçeklendirme */
  min-width: 320px;
  box-sizing: border-box;
}

.container ul {
  padding-left: 20px; /* sol boşluk */
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  box-sizing: border-box;
}

.container section,
.container p,
.container ul {
  width: 100%;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #111;
  display: flex;
  justify-content: flex-start; /* Hamburger ve menü sola hizalı */
  align-items: center;
  padding: 12px 20px;
  z-index: 1002; /* menüden üstte kalacak */
  border-bottom: none;
}

/* Menü kapsayıcısı */
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 20px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-left a,
.nav-right a {
  color: #f1f1f1;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  outline: none;
}

.nav-right a i {
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.nav-right a:hover i,
.nav-left a:hover {
  color: #0a84ff;
}

.nav-left a.active {
  color: #0a84ff;
}

/* Hamburger Menü Butonu (buton ile erişilebilir) */
.hamburger {
  display: none; /* Desktop'ta gizli */
  flex-direction: column;
  cursor: pointer;
  width: 36px;
  height: 28px;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.hamburger:focus {
  outline: 2px solid #0a84ff;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background-color: #f1f1f1;
  border-radius: 2px;
  transition: all 0.25s ease;
  margin: 2px 0;
}

/* Mobil görünüm */
@media screen and (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%);
    background-color: #111;
    padding: 20px 25px;
    gap: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    max-height: 70vh;
    width: 90%;
    max-width: 350px;
    overflow-y: auto;
    z-index: 1001;
  }

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

  /* Overlay için body üzerine ek bir karartma */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
  }

  /* Linkler: sol liste dikey, ikonlar yatay */
  .nav-left {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
  }

  .nav-left a {
    padding: 8px 16px;
    width: auto;
    font-size: 1.05rem;
  }

  /* Nav-right ikonları her zaman yatay */
  .nav-right {
    flex-direction: row;
    gap: 18px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .nav-right a {
    padding: 6px 10px;
  }

  .nav-right a i {
    font-size: 1.4rem;
  }

   main.container {
    width: 95%;
    max-width: none;
    padding: 15px 20px;
  }

  .about_projects_navigation,
  .about_associations_navigation {
    display: block;
    max-width: 600px; /* container ile uyumlu */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;  /* Hafif iç boşluk */
    padding-right: 15px; /* Hafif iç boşluk */
    box-sizing: border-box;
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
  }


  .container ul {
    padding-left: 15px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Masaüstü görünümü */
@media (min-width: 601px) {
  .nav-left {
    display: flex;
  }
  .nav-right {
    display: flex;
  }
}

/* About sayfası alt başlıklar sağ-sol eşit boşluk */
.about_projects_navigation,
.about_associations_navigation {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  display: inline-block;
}

/* CONTACT SAYFASI */
.contact-container {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.contact-heading {
  font-size: 2.5rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #f1f1f1;
  display: inline-block;
  padding-bottom: 5px;
}

/* İKONLAR */
.icon-wrapper {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.icon-wrapper a {
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.3s ease;
}

.icon-wrapper a:hover {
  color: #0a84ff;
}

/* FORM */
.contact-form {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-form textarea,
.contact-form input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #333;
  color: #f1f1f1;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

.contact-form button {
  padding: 10px 20px;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  max-width: 150px;
  align-self: center;
}

.contact-form button:hover {
  background-color: #0a84ff;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.profile-photo {
  width: clamp(150px, 40vw, 300px);
  height: clamp(150px, 40vw, 300px); /* width ile aynı clamp değerleri */
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  max-width: 90vw;
  max-height: 90vw;
}

/* Animasyon */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Başlıklar */
.intro-heading,
.about-heading,
.blog-heading {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 20px;
}

.about-heading,
.blog-heading {
  border-bottom: 2px solid #f1f1f1;
}

.intro-paragraph,
.internship-paragraph,
.about-projects-paragraph,
.about-volunteer-paragraph {
  text-indent: 2em;
  line-height: 1.6;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.blog-paragraph,
.projects-paragraph {
  text-align: center;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.indented-line {
  display: block;
  text-indent: 2em;
}

.about_projects_navigation {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.about_projects_navigation:hover {
  color: #0a84ff;
}

.about_associations_navigation {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #999;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about_associations_navigation:hover {
  color: #0a84ff;
  border-bottom-color: #0a84ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 25px; /* Sağ-sol boşluk artırıldı */
  font-size: 0.9rem;
  background-color: #111;
  color: #f1f1f1;
}

/* CV indirme linki */
.cv-download-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #f1f1f1;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  background-color: #333;
}

.cv-download-link:hover {
  background-color: #0a84ff;
  color: #fff;
}

/* Scroll to top butonu */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  font-size: 18px;
}

#scrollTopBtn:hover {
  background-color: #0a84ff;
}
