/* index.css - Safari uyumlu güncellenmiş versiyon */

@font-face {
  font-family: 'CustomFont';
  src: url('fonts/CustomFont.woff2') format('woff2'),
       url('fonts/CustomFont.woff') format('woff'),
       url('fonts/CustomFont.ttf') format('truetype');
}

body {
  background-color: #1c2237;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

nav.navbar {
  background-color: #2c324d;
}

.hero {
  background: url('bg-image.jpg') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  animation: fadeInUp 1s ease-out 0.5s;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background-color: #2c324d;
  border: none;
  -webkit-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  color: white;
}

.card:hover {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

footer {
  background-color: #2c324d;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.btn-custom {
  background-color: #f8f9fa;
  color: #1c2237;
}

.modal-body {
  max-height: 300px;
  overflow-y: auto;
  background-color: #1e1e2f;
  color: white;
}

/* Ek: Link durumları */
a:visited { text-decoration: none; color: #242a42; }
a:hover { text-decoration: none; color: #ff6f61; }
a:active { text-decoration: none; color: white; }
a:link { text-decoration: none; color: white; }

/* Media Query */
@media (max-width: 768px) {
  body { font-size: 14px; }
}

/* Safari özel destek */
@supports (-webkit-touch-callout: none) {
  .card:hover {
    box-shadow: 0 6px 15px rgba(255,255,255,0.08);
  }
}

/* Diğer sınıflar (eski kodlardan) korunuyor */
.navbarr { background-color: #1e1e2f; color: #f8f8f8; }
.container-fluid { color: white; }
.banneryazi { border-radius: 7px; padding: 1px; background-color: #1e1e2f; }
.activebuton { background-color: white; }
.ara { border: 2px solid #000; border-radius: 5px; background-color: #e8e8e8; color: #000; }
.dersler { border: 1px solid #000; border-radius: 5px; background-color: #1e1e2f; }
.cizgi { border: 5px solid #B3E8E5; }
.cizgi2 { border: 3px solid #ffffff; }
.yaziarka { color: white; border: 3px solid #B3E8E5; border-radius: 10px; margin: 30px; padding: 10px; background-color: #242a42; opacity: 0.8; }
.cardbody { background-color: #242a42; color: white; }
.sliderimg { height: 500px; width: 753px; }
.txtcolor { color: #ffffff; border: 3px solid white; background-color: #242a42; float: right; }
.socialmedia { height: 32px; width: 32px; margin: 10px; }
.divform { width: 50%; color: #ffffff; border: 3px solid #B3E8E5; background-color: #242a42; }
.galeri-section { padding: 60px 20px; max-width: 20000px; margin: auto; text-align: center; color: white; }
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(391px, 2fr)); gap: 30px; margin-top: 50px; }
.galeri-item { border: 2px solid #ffffff; border-radius: 10px; overflow: hidden; transition: transform 0.3s ease; }
.galeri-item:hover { transform: scale(1.05); }
.galeri-item img { width: 100%; height: 100%; display: block; }
.bosluk { margin-bottom: 800px; }
p.text-secondary { font-weight: bold; letter-spacing: 1px; color: #aaa !important; }
