/*
 * Global Styles for Gümüş Hilal Güvenlik ve Koruma web sayfası
 * Renk paleti: koyu mavi ve altın tonları, modern ve profesyonel bir görünüm
 */

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #0a1e3b;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Color Variables */
:root {
  --primary: #0a1e3b;
  --secondary: #c79526;
  --light: #ffffff;
  --grey: #f2f2f2;
}

/* Navbar Styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background-color: rgba(10, 30, 59, 0.85);
  backdrop-filter: blur(8px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.logo {
  /* Logoyu daha belirgin kılmak için boyutu artırıp gölge ekliyoruz */
  height: 50px;
  width: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(199, 149, 38, 0.6));
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.site-title {
  color: #fff;
  font-size: 1.1rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-menu a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: var(--secondary);
}

/* Burger icon for mobile */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background-color: #fff;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-label span::before {
  top: -8px;
}
.nav-toggle-label span::after {
  top: 8px;
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-toggle-label {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100% - 60px);
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    background-color: rgba(10, 30, 59, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-menu a {
    margin-bottom: 1rem;
  }
  /* slide-out menu when checked */
  .nav-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }
  /* animate burger into X when checked */
  .nav-toggle:checked + .nav-toggle-label span {
    background-color: transparent;
  }
  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Bölüm düzenleme: Hakkımızda ve misyon/vizyon bölümleri için içeriği sayfa ortasına alıyoruz */
.about .container .about-content,
.about .container .mission-vision {
  max-width: 900px;
  margin: 0 auto;
}
.mission-vision {
  justify-content: space-between;
  gap: 2rem;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Yarı saydam örtü: arka plandaki geometrik deseni görünür kılar */
  background-color: rgba(10, 30, 59, 0.65);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
  font-weight: 700;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}
.btn-primary {
  background-color: var(--secondary);
  color: #fff;
}
.btn-primary:hover {
  background-color: #a47a1c;
}
.btn-secondary {
  background-color: var(--primary);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--secondary);
  color: #fff;
}
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #1DA851;
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* About Section */
.about .about-content {
  margin-bottom: 2rem;
}
.about-text p {
  margin-bottom: 1rem;
  max-width: 800px;
}
.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mission-vision h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.mission-vision p {
  max-width: 800px;
}
@media (min-width: 768px) {
  .mission-vision {
    flex-direction: row;
  }
  .mission-vision > div {
    flex: 1;
  }
}

/* Features Section */
.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature-item {
  background-color: var(--light);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
}
.icon-wrapper {
  /* Ayarlanmış boyut ve boşluk */
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Özellik ikonları için boyutlandırma ve renk filtreleme */
.icon-wrapper img {
  width: 42px;
  height: 42px;
  /* Altın rengine yakın bir ton için filtre uygulanmıştır */
  filter: invert(43%) sepia(69%) saturate(336%) hue-rotate(15deg) brightness(93%) contrast(96%);
}
.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.feature-item p {
  font-size: 0.95rem;
  color: #333;
}

/* Gallery Section */
/* Yana kaydırmalı galeri: flex tabanlı yatay bir kaydırma alanı */
.gallery-carousel {
  position: relative;
  margin-top: 1.5rem;
  /* Galeri genişliğini kısıtlayarak sayfa ortasında daha dengeli bir görünüm sağlıyoruz */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-carousel {
  position: relative;
  margin-top: 1.5rem;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  /* kaydırma çubuklarını gizle */
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 auto;
}
.carousel-item img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.carousel-item img:hover {
  transform: scale(1.05);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(10, 30, 59, 0.7);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}
.carousel-btn:hover {
  background-color: rgba(10, 30, 59, 0.9);
}
.carousel-btn.prev {
  left: -0.5rem;
}
.carousel-btn.next {
  right: -0.5rem;
}

/* Lightbox styles: modal ekran ve yönlendirme butonları */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  padding: 1rem;
  box-sizing: border-box;
}

/* Hakkımızda ve Misyonumuz yazıları için daha içerden başlangıç */
/* Hakkımızda bölümü ve Misyonumuz altındaki paragraf yazılarını daha içerden başlatmak için kenar boşluğu veriyoruz. */
.about .about-text {
  padding-left: 0;
}
.mission-vision .mission {
  padding-left: 0;
}

/* Paragraf başlarını içeri almak için ilk satıra girinti veriyoruz */
.about .about-text p {
  /* Metni her iki yana yaslayarak düzgün kenar boşlukları sağlıyoruz */
  text-indent: 0;
  text-align: justify;
}
/* Misyon ve vizyon paragraflarını hizalama ayarları */
/* Her iki paragrafı da girintisiz ve iki yana yaslı hale getiriyoruz */
.mission-vision .mission p,
.mission-vision .vision p {
  text-indent: 0;
  padding-left: 0;
  text-align: justify;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #ffffff;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Sınav talimatı açıklama satırını ortalamak için */
/*
 * The exam introduction line should visually align with the bullet list below it.
 * To achieve this, we center it within the same width as the list (800px) and
 * apply a left padding approximately equal to the list’s left indentation plus
 * the bullet marker’s width. This shifts the visual center of the heading to
 * align with the first line of text in the list while keeping the text
 * centered within its own padded area.
 */
.exam .container > p {
  text-align: center;
  margin: 0 auto 1rem auto;
  /* To align the heading with the list items, we allocate a left padding roughly
   * equal to the combined indentation of the list’s padding and the width of
   * the bullet marker. This shifts the centroid of the heading to match the
   * beginning of the list text while retaining the same overall container
   * width as the list. Adjust the padding value if the bullet style changes.
   */
  max-width: 800px;
  padding-left: 2rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.75);
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  transform: none;
}
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Exam Section */
.exam-list {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1rem;
  list-style: disc;
}
.exam-list li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact p {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  flex: 1 1 100%;
}
.contact label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--primary);
}
.contact input,
.contact textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  resize: none;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-info {
  margin-top: 2rem;
  font-size: 0.9rem;
}
.contact-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-info a {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Başlık sabitlendiği için bölümlere kaydırma payı ekle */
section {
  scroll-margin-top: 80px;
}