/* --- 1. TEMEL AYARLAR --- */
:root {
  --header-bg: #1c1c1c;
  --body-bg: #ffffff;
  --text-main: #333333;
  --accent-color: #fca311;
  --font-main: 'Montserrat', sans-serif;
  --card-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  background-color: var(--body-bg);
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; height: auto; }

/* --- 2. HEADER --- */
header {
  background-color: var(--header-bg);
  padding: 15px 0;
  color: white;
  border-bottom: 4px solid var(--accent-color);
}

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

.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo span { font-size: 1.3rem; font-weight: 700; font-style: italic; color: #fff; }

.main-site-btn {
  border: 1px solid var(--accent-color);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.9rem;
}

/* --- 3. ANA İÇERİK --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header { text-align: center; margin-bottom: 30px; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; font-weight: 800; }

/* ARAMA ÇUBUĞU */
.search-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 60px !important;
  padding: 0 15px;
  display: flex;
  justify-content: center;
}

#searchInput {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  background-color: #fff;
}

#searchInput:focus {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(252,163,17,0.15);
}

/* --- 4. PROJE IZGARASI --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  gap: 35px;
  justify-content: center;
}

.project-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  height: 100%;
}

.project-card:hover { transform: translateY(-7px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }

/* GERİ ALINDI: Resimler tekrar kutuyu tam dolduracak (cover) */
.card-image { 
  height: 200px;          /* Yüksekliği standart bir değere çektim */
  width: 100%; 
  object-fit: cover;      /* Resmi kutuya yay, gerekirse kırp */
  border-bottom: 1px solid #eee;
}

.card-info { padding: 20px; text-align: center; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }

/* --- 5. DETAY SAYFASI --- */
.project-container { max-width: 850px; margin: 0 auto; }
.project-main-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; margin-bottom: 45px; cursor: zoom-in; }

.content h2 { 
  font-size: 1.8rem; 
  margin: 45px 0 25px; 
  border-bottom: 3px solid var(--accent-color); 
  display: inline-block; 
  padding-bottom: 8px;
  font-weight: 800;
}

.content h3 {
  font-size: 1.4rem;
  margin: 35px 0 20px !important; 
  font-weight: 700;
}

.content p { margin-bottom: 25px; font-size: 1.1rem; color: #444; line-height: 1.8; }

.content ul { 
  margin-bottom: 35px; 
  padding-left: 0; 
  list-style: none;
}

/* Madde işaretleri (Nokta) - HİZALI HALİ KORUNDU */
.content li { 
    position: relative;
    padding-left: 25px;
    margin-bottom: 18px; 
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
    display: block;
}

.content li::before { 
    content: "";
    position: absolute;
    left: 0;
    top: 10px;                 
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.content li strong {
    color: #000;
    font-weight: 700;
    display: inline;
}

/* --- 6. WHATSAPP & FOOTER (KORUNDU) --- */
.whatsapp-fixed { 
  position: fixed; 
  bottom: 25px; 
  right: 25px; 
  background: #25d366; 
  color: white; 
  padding: 10px 18px; 
  border-radius: 50px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  z-index: 9999; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
  font-weight: bold; 
  transition: transform 0.3s;
}

.whatsapp-fixed:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.whatsapp-fixed img { width: 24px; height: 24px; display: block; }

footer { text-align: center; padding: 40px; background: #f9f9f9; border-top: 1px solid #eee; margin-top: 60px; color: #888; }

/* --- 7. MOBİL UYUM --- */
@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 15px; text-align: center; }
  .search-container { margin-bottom: 50px !important; }
  #searchInput { font-size: 16px; padding: 12px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; padding: 0 15px; gap: 30px; }
  .project-card { max-width: 100%; }
  main { padding: 30px 15px; }
}