/* Temel Ayarlar */
body {
  background-color: #f0f4f8;
  font-family: 'Arial', sans-serif;
}

.header-with-bg {
  min-height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/background.png');
  background-size: cover;
  background-position: 85% center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .header-with-bg {
    background-position: center center;
    min-height: auto;
  }
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Başlık ve Kartlar */
.section-title {
  color: #1a3c34;
  border-bottom: 3px solid #ff6f61;
  padding-bottom: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.section-title i {
  margin-right: 10px;
  color: #ff6f61;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Sosyal Simgeler */
.social-icons a {
  color: #ffffff;
  margin: 0 12px;
  font-size: 1.7rem;
  transition: color 0.3s;
  text-decoration: none;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.social-icons a:hover {
  color: #ff6f61;
}

/* Navbar */
.navbar {
  background-color: #ff6f61;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.navbar-brand {
  color: #ffffff !important;
  font-weight: bold;
}

.nav-item button {
  margin-left: 0.25rem !important;
  margin-right: 0.25rem !important;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: #fff;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: #ffe6d3 !important;
}
.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
  outline: none !important;
}

/* Galeri */
.gallery-wrapper {
  position: relative;
  margin-top: 1rem;
}

/* Buton stilleri */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff6f61;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}
.slider-btn:hover {
  background: #e5533d;
}
.slider-btn.left {
  left: 0px; /* Daha fazla boşluk */
}
.slider-btn.right {
  right: 0px; /* Daha fazla boşluk */
}

/* Scroll kutusu */
.overflow-scroll-x {
  overflow-x: auto; /* mobilde scroll çalışsın */
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  margin: 0 auto;
}

/* Scroll çubuğunu gizle (hem mobil hem masaüstü) */
.overflow-scroll-x::-webkit-scrollbar {
  display: none;
}
.overflow-scroll-x {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* Masaüstünde scroll gizle ve kenar boşlukları ekle */
@media (min-width: 577px) {
  .overflow-scroll-x {
    overflow-x: hidden;
    margin: 0 60px; /* Butonlar ile fotoğraflar arası boşluk */
  }
}

/* Mobilde butonları gizle */
@media (max-width: 576px) {
  .slider-btn {
    display: none !important;
  }
}


.gallery-slider {
  display: inline-flex;
  gap: 15px;
}

.gallery-slider a img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 576px) {
  .gallery-slider a img {
    width: 140px;
    height: 140px;
  }

  /* Mobilde scroll açılabilir */
  .overflow-scroll-x {
    overflow-x: auto;
  }

  /* Mobilde butonlar gizlenir */
  .slider-btn {
    display: none !important;
  }
}

@media (hover: hover) {
  .gallery-slider a img:hover {
    transform: scale(1.05);
    opacity: 0.85;
  }
}


/* Diğer */
.overflow-hidden {
  overflow: hidden;
}
section[id] {
  scroll-margin-top: 50px;
}
@media (max-width: 576px) {
  .profile-img {
    width: 150px;
    height: 150px;
  }
  .social-icons a {
    font-size: 1.4rem;
    margin: 0 8px;
  }
  section[id] {
    scroll-margin-top: 50px;
  }
}

/* Tema Light */
body.light-mode {
  background-color: #f0f4f8;
  color: #000;
}
body.light-mode .bg-light {
  background-color: #e6f0fa !important;
}
body.light-mode .card,
body.light-mode .list-group-item {
  background-color: #fff;
  color: #000;
}
body.light-mode .section-title {
  color: #1a3c34;
}
body.light-mode footer {
  background-color: #ff6f61 !important;
}

/* Tema Dark */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f5f5f5;
}
body.dark-mode .text-muted {
  color: #ccc !important;
}
body.dark-mode .bg-light {
  background-color: #2a2a2a !important;
}
body.dark-mode .card,
body.dark-mode .list-group-item {
  background-color: #2d2d2d;
  color: #fff;
  border-color: #444;
}
body.dark-mode .section-title {
  color: #ff6f61;
}
body.dark-mode .navbar {
  background-color: #333 !important;
}
body.dark-mode .nav-link {
  color: #f5f5f5 !important;
}
body.dark-mode footer {
  background-color: #111 !important;
}
body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobilde tema + dil + hamburger hizalaması */
@media (max-width: 991.98px) {
  .navbar .d-flex.align-items-center.d-lg-none {
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0.3rem;
  }

  #toggle-theme-mobile,
  #lang-toggle-mobile {
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  .navbar-toggler {
    padding: 5px 8px;
    border: none;
  }
}