html, body {
  margin: 0;
  margin-top: 70px;
  margin-left: 5px;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-image: url("kiraybackblur.jpg"); /* arka plan görselin */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
}

/* Menü barı */
nav {
  background-color: rgba(0,0,0,0.7); /* şeffaf siyah bar */
  padding: 15px;
  position: fixed;                   /* ekranın üstüne sabitle */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;  
}

.logo img {
  height: 100px;          /* logonun boyutu */
  vertical-align: middle;
}


nav ul .etahsilat-logo img {
  height: 70px;       /* logonun boyutu */
  vertical-align: middle;
}

.etahsilat-logo img {
  height: 70px !important;   /* yüksekliği büyütür */
  width: auto !important;    /* orantıyı korur */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;   /* dikey ortalama */
}

nav ul li {
  margin: 0 15px;
}

nav ul li.logo {
  margin-right: auto;    /* logoyu sola yapıştırır */
}

nav ul li.etahsilat-logo {
  margin-left: auto;     /* e-Tahsilat’ı sağa yapıştırır */
}


/* Genel menü linkleri */

/* Hover efekti sadece menü sekmelerine */
nav ul li a {
    font-weight: bold;
    font-size: 18px;
  position: relative;
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
}

/* Alt çizgi (soldan sağa) */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

/* Üst çizgi (sağdan sola) */
nav ul li a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%; /* alt çizgi soldan sağa */
}

nav ul li a:hover::before {
  width: 100%; /* üst çizgi sağdan sola */
}
  
/* e-Tahsilat logosu için hover efekti kaldır */
.etahsilat-logo a::after,
.etahsilat-logo a::before {
  display: none !important;
  content: none !important;
}

.logo a::after,
.logo a::before {
  display: none !important;
  content: none !important;
}

nav ul .etahsilat-logo img {
  height: 30px;
  vertical-align: middle;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("kiraybackblur.jpg");
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Logo animasyonu */
.logo-anim {
  width: 120px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  50%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* Menüdeki dropdown öğesi */
.dropdown {
  position: relative; /* kritik: referans noktası burası */
}



/* Çalışma Alanlarımız başlığı */
.practice-areas h2 {
  text-align: center;
  font-size: 32px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Grid düzeni */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 sütun */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  margin-bottom: 20px;   /* ekstra boşluk yok */
  padding-bottom: 20;  /* nefes boşluğu da kaldır */
  z-index: 1;

}

/* Kart görünümü */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 16px;
  color: #333;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Modal (bilgi ekranı) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 60%;
  border-radius: 8px;
  text-align: left;
}

.modal-content h3 {
  margin-top: 0;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 8px;       /* iç boşluğu küçülttük */
  font-size: 12px;    /* yazı boyutunu küçülttük */
  position: static;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: auto;
}