* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #f7fbf5;
  color: #1f2933;
}

/* NAVBAR */
.navbar { background:#1f6f3f; padding:12px 0; }
.nav-container {
  max-width:1200px; margin:auto; padding:0 20px;
  display:flex; justify-content:space-between; align-items:center;
}
.brand { display:flex; gap:12px; align-items:center; }
.brand img { height:42px; }
.brand-name { color:#fff7cc; font-weight:700; }
.brand-slogan { color:#fefce8; font-size:12px; }
.menu a { color:#fefce8; margin-left:22px; text-decoration:none; }

/* HERO */
.hero {
  height:360px;
  background:linear-gradient(rgba(31,111,63,.65),rgba(31,111,63,.65)),
  url("images/sunflower.jpg") center/cover no-repeat;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
}
.hero h1 { color:#fff; font-size:40px; }

/* CONTENT */
.content { max-width:1100px; margin:60px auto; padding:0 20px; }
.content h2 {
  display:inline-block; background:#d1fae5; padding:10px 22px;
  border-radius:10px; border-left:6px solid #1f6f3f;
}

/* PRODUCTS */
.products {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px; margin-top:40px;
}
.product-card {
  background:#fff; border-radius:14px; overflow:hidden;
  box-shadow:0 10px 22px rgba(31,111,63,.15);
  cursor:pointer; transition:.3s;
}
.product-card:hover { transform:translateY(-6px); }
.product-card img { width:100%; height:200px; object-fit:cover; }
.product-card h3 { padding:18px; margin:0; color:#14532d; }

/* MODAL */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none; z-index:1000;
}
.modal {
  position:fixed; top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:#fff; width:92%; max-width:650px;
  padding:30px; border-radius:18px;
  display:none; z-index:1001;
}
.modal-close {
  position:absolute; top:16px; right:20px;
  font-size:22px; cursor:pointer;
}
.modal-image {
  width:100%; border-radius:12px; margin-bottom:15px;
}
.feature-list { list-style:none; padding:0; }
.feature-list li {
  padding:8px 0; border-bottom:1px solid #e5e7eb;
}

/* FOOTER */
footer {
  background:#1f6f3f; color:#fff;
  text-align:center; padding:20px; margin-top:60px;
}
/* =====================
   SADECE T-5 KANOLA PRESİ
===================== */
.t5-image {
  max-height: 220px;     /* sadece T-5 küçülür */
  object-fit: contain;
}
/* =====================
   VİDEOLAR SAYFASI
===================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.video-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(31, 111, 63, 0.15);
  overflow: hidden;
}

/* Responsive iframe */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 oran */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* FOTOĞRAF GALERİ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* =====================
   GALERİ MODAL (GELİŞTİRİLMİŞ)
===================== */
.gallery-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  display: none;
  z-index: 1001;
  width: 90%;
  max-width: 1100px;      /* 🔑 DAHA BÜYÜK MODAL */
  max-height: 90vh;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.gallery-modal img {
  width: 100%;
  max-height: 75vh;       /* 🔑 FOTOĞRAF BÜYÜDÜ */
  object-fit: contain;
  border-radius: 16px;
}

/* KAPATMA (X) */
.gallery-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 30px;
  font-weight: bold;
  color: #1f6f3f;
  cursor: pointer;
  background: #e9f7ef;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OK TUŞLARI */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  color: #1f6f3f;
  background: #e9f7ef;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
/* İLETİŞİM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-box,
.contact-form-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.contact-info-box iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 12px;
  margin-top: 20px;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form-box button {
  width: 100%;
  padding: 14px;
  background: #1f6f3f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.captcha {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

/* BAŞARI POPUP */
.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  display: none;
  z-index: 1001;
  text-align: center;
  max-width: 420px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================
   REFERANSLAR
===================== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.reference-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
  text-align: center;
}

.reference-card img {
  max-height: 80px;
  margin-bottom: 16px;
  object-fit: contain;
}

.reference-card h3 {
  font-size: 16px;
  color: #1f6f3f;
  margin-bottom: 8px;
}

.reference-card p,
.reference-card a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.reference-card.no-logo {
  padding-top: 32px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    color: #ffffff;
    font-size: 20px;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #f1c40f; /* mevcut vurgu rengine uyumlu */
}

.footer-design {
    font-size: 13px;
    color: #cccccc;
}

.footer-design strong {
    color: #ffffff;
}
.other-works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
/* Modal arka plan */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* Modal içerik */
.modal-content {
    background: #fff;
    max-width: 900px;
    margin: 5% auto;
    padding: 25px;
    position: relative;
    border-radius: 8px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Kapat butonu */
.modal .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Galeri */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.modal-gallery img {
    width: 100%;
    border-radius: 6px;
}

/* Özellikler */
.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
/* =====================
   MISIR KIRICI MODAL – ÖZEL
===================== */
.kirici-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  padding: 30px;
  border-radius: 18px;
  z-index: 1002;
  overflow-y: auto;
  display: none;
}

/* Galeri */
.kirici-modal .modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.kirici-modal .modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

/* Kapatma */
.kirici-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}
/* ===============================
   MODAL GENEL AYAR
=============================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* Ürün popup */
.modal,
.kirici-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 90%;
  width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Küçük ekran */
@media (max-width: 768px) {
  .modal,
  .kirici-modal {
    width: 95%;
    padding: 20px;
  }
}

/* Kapatma butonu */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* Modal içi görseller */
.modal-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Galeri */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.modal-gallery img {
  width: 100%;
  border-radius: 6px;
}

/* Özellik listesi */
.feature-list {
  padding-left: 20px;
}
/* ===============================
   POPUP FOTOĞRAF SABİTLEME – NİHAİ
=============================== */

/* Modal içi scroll KAPAT */
.modal,
.kirici-modal {
  max-height: none !important;
  overflow: hidden !important;
}

/* Modal içi ana görseli ekrana sığdır */
.modal-image {
  max-height: 60vh;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px;
}

/* Galeri görselleri */
.modal-gallery img {
  max-height: 180px;
  object-fit: cover;
}

/* Mobil ayar */
@media (max-width: 768px) {
  .modal-image {
    max-height: 45vh;
  }
}
/* ===============================
   MODAL DENGELİ YAPI (GÖRSEL + YAZI)
=============================== */

.modal,
.kirici-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 800px;
  max-width: 95%;
  height: 80vh;
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  padding: 0;
}

/* Modal içeriği */
#productContent,
.kirici-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 25px;
  box-sizing: border-box;
}

/* Görsel alan */
.modal-image {
  max-height: 40vh;
  width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* Yazı alanı scroll alabilir */
/* MODAL VARSAYILAN GİZLİ */
.modal-overlay,
.modal,
.kirici-modal {
  display: none;
}

/* MODAL AKTİF */
.modal-overlay.active,
.modal.active,
.kirici-modal.active {
  display: block;
}
/* POPUP İÇERİĞİNİ YAN YANA YAP */
#popupMetin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: flex-start;
}

/* Küçük ekranlarda alt alta düşsün */
@media (max-width: 768px) {
  #popupMetin {
    grid-template-columns: 1fr;
  }
}

/* Popup içindeki görselleri sınırla */
.urun-popup img {
  max-height: 320px;
  object-fit: contain;
}
/* DIL DEGISTIRICI – TR | EN (SABIT VE NET) */
.navbar {
  position: relative;
}

.lang-switch {
  position: absolute;
  top: 14px;
  right: 20px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch a {
  color: #1f6f3f;
  text-decoration: none;
  font-weight: 700;
}

.lang-switch a:hover {
  text-decoration: underline;
}
