/* ===============================
   🔴 HD ELEKTRİK 2025 – ANA OMURGA CSS
   Versiyon: HD62rev3_full
   =============================== */

/* === GENEL AYARLAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f8f8;
  color: #222;
  line-height: 1.6;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #e60000;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.3rem;
  color: #e60000;
  font-weight: 700;
}

.brand-text p {
  font-size: 0.8rem;
  color: #444;
}

/* === NAV === */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #e60000;
}

.lang-switch {
  margin-left: 20px;
  font-weight: 600;
  color: #333;
}

/* === ANA GRID === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 40px 80px;
  background-color: #fff;
}

.card {
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card h3 {
  margin-bottom: 10px;
  color: #222;
  font-size: 1.1rem;
  position: relative;
}

/* 🔴 Kırmızı Çizgi – Kurumsal Kimlik */
.card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #e60000;
  margin: 6px auto 0 auto;
  border-radius: 2px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === CTA === */
.cta {
  display: inline-block;
  margin-top: 10px;
  color: #e60000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.cta:hover {
  color: #000;
}

/* === FOOTER === */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ===============================
   🟢 REV3: GÖRSEL KART EFEKT SİSTEMİ
   (1-3 ve 7-9 için)
   =============================== */

/* Görsel kutuların arka planları */
.resim_1 { background-image: url("../images/cards/card_1.jpg"); }
.resim_2 { background-image: url("../images/cards/card_2.jpg"); }
.resim_3 { background-image: url("../images/cards/card_3.jpg"); }
.resim_7 { background-image: url("../images/cards/card_7.jpg"); }
.resim_8 { background-image: url("../images/cards/card_8.jpg"); }
.resim_9 { background-image: url("../images/cards/card_9.jpg"); }

.resim_1, .resim_2, .resim_3,
.resim_7, .resim_8, .resim_9 {
  background-size: cover;
  background-position: center;
  min-height: 260px;
  border-radius: 10px;
  filter: brightness(0.9);
  transition: all 0.5s ease-in-out;
}

/* Overlay (Proje yazısı) */
.overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
}

/* Görsel ↔ Metin geçişi */
.card.show-text .overlay-text {
  opacity: 1;
}

/* ===============================
   🔧 RESPONSIVE DÜZENLER
   =============================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-text p {
    font-size: 0.7rem;
  }
}
/* 🌐 TR | EN DİL SEÇİCİ YASAL TELİF HİZASI */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* TR | EN dil seçici - Yasal Telif'in sağında */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  top: 0;
}

.lang-switch a {
  text-decoration: none;
  color: #111;
  transition: color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: #e60000;
}

.lang-switch span {
  color: #888;
}

/* Responsive: küçük ekranlarda hizayı koru */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 8px;
  }

  .lang-switch {
    justify-content: center;
  }
}
/* =========================================================
   HD ELEKTRİK 2025 — MOBİL HEADER DÜZENİ (REV6.2)
   ========================================================= */

/* Genel header yapısı düzeltildi */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e60000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
}

/* Header içindeki hizalama */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 25px;
}

/* Logo alanı */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 60px;
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e60000;
  margin: 0;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.8rem;
  margin: 0;
  color: #333;
  line-height: 1.2;
}

/* Menü alanı */
.main-nav {
  flex: 1;
  text-align: right;
}

.main-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #e60000;
}

.main-nav a.active {
  color: #e60000;
  font-weight: 600;
}

/* =========================================================
   MOBİL GÖRÜNÜM — EKRAN 768px ve ALTI
   ========================================================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
  }

  .brand {
    flex-direction: column;
    align-items: center;
  }

  .brand-logo img {
    height: 70px;
  }

  .brand-text h1 {
    font-size: 1.6rem;
  }

  .brand-text p {
    font-size: 0.9rem;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .lang-switch {
    margin-top: 8px;
  }
}

/* =========================================================
   EK GÜZELLEŞTİRMELER
   ========================================================= */

/* Dil geçiş bağlantısı */
.lang-switch a {
  font-weight: 600;
  color: #222;
}

.lang-switch a:hover {
  color: #e60000;
}
/* =========================================================
   HD ELEKTRİK 2025 — MOBİL HEADER REV7
   Üstte logo + şirket bilgisi, altta menü (TR|EN dahil)
   ========================================================= */

@media (max-width: 768px) {

  /* === Header Genel === */
  .site-header {
    background: #fff;
    border-bottom: 2px solid #e60000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px 0 5px;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  /* === Logo ve Yazı Bloğu === */
  .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .brand-logo img {
    height: 65px;
  }

  .brand-text {
    line-height: 1.2;
  }

  .brand-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e60000;
    margin: 0;
  }

  .brand-text p {
    font-size: 0.8rem;
    margin: 0;
    color: #333;
  }

  /* === Menü Alt Blok === */
  .main-nav {
    width: 100%;
    border-top: 1px solid #ddd;
    padding-top: 8px;
  }

  .main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0 10px 5px;
  }

  .main-nav a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .main-nav a.active {
    color: #e60000;
    font-weight: 600;
  }

  .main-nav a:hover {
    color: #e60000;
  }

  /* === Dil Seçenekleri (TR | EN) === */
  .lang-switch {
    width: 100%;
    text-align: center;
    margin-top: 4px;
    border-top: 1px solid #eee;
    padding-top: 4px;
  }

  .lang-switch a {
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
    text-decoration: none;
    margin: 0 3px;
  }

  .lang-switch a:hover {
    color: #e60000;
  }
}

/* Tablet geçişleri için (isteğe bağlı) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .main-nav ul {
    justify-content: center;
    gap: 20px;
  }
}
/* ============================================
   🔴 REV6 — BELİRGİN "Devam Et →" Butonu
   (4,5,6 kutucukları için)
   ============================================ */

.card.category .cta-big {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  margin-top: 25px;
  box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.card.category .cta-big:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}
.site-footer {
  text-align: center;
  background: #000;
  padding: 25px 10px 0;
  font-size: 0.9rem;
  color: #fff;
  border-top: 2px solid #e60000;
}

.legal-bar {
  background: #111;
  color: #fff;
  padding: 15px 20px;
  font-size: 0.85rem;
  margin-top: 20px;
  line-height: 1.5;
}

.legal-bar strong {
  color: #e60000;
}
