/* =====================================================================
   Modernizasyon & Responsive katmanı
   Orijinal Now UI Kit tasarımının ÜSTÜNE biner; tasarımı değiştirmez,
   yalnızca mobil uyumu ve modern dokunuşları geliştirir.
   ===================================================================== */

:root { --brand: #378C3F; --brand-dark: #2c6f32; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageFadeIn 0.6s ease both;
}

/* Yumuşak sayfa açılışı */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Menü arka planı / gölgesi yumuşak geçsin */
.navbar { transition: background-color 0.4s ease, box-shadow 0.35s ease, padding 0.3s ease; }

/* --- Tüm görseller ekrana uyumlu --- */
img { max-width: 100%; }

/* Deneyim / eğitim / proje kartlarındaki logolar taşmasın, düzgün ölçeklensin */
.cc-experience-header img,
.cc-education-header img {
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

/* --- Kartlara modern, yumuşak hover --- */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(20, 40, 25, 0.13);
}

/* Buton geçişleri yumuşasın, hafif kalkma efekti */
.btn { transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease; }
.btn:hover { transform: translateY(-2px); }

/* Profil görseli — modern gölge + hafif zoom */
.cc-profile-image img {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease;
}
.cc-profile-image img:hover { transform: scale(1.04); }

/* --- Erişilebilirlik: net klavye odağı --- */
a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(55, 140, 63, 0.45);
  outline-offset: 2px;
}

/* Form alanlarında modern odak halkası */
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(55, 140, 63, 0.18);
}

/* =====================================================================
   RESPONSIVE — mobil ve tablet iyileştirmeleri
   ===================================================================== */

/* Tablet ve altı: açılan menü okunur bir zemine otursun */
@media (max-width: 991px) {
  #navigation {
    background: var(--brand);
    border-radius: 0 0 14px 14px;
    padding: 12px 18px;
    margin-top: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  }
  #navigation .nav-link { color: #fff !important; padding: 10px 6px; }
  #navigation .nav-item + .nav-item { border-top: 1px solid rgba(255, 255, 255, 0.15); }
}

/* Telefon */
@media (max-width: 767px) {
  .page-header .title.h2 { font-size: 2rem; }
  .page-header .category { font-size: 0.95rem; line-height: 1.5; }
  .cc-experience-header,
  .cc-education-header { text-align: center; }
  .section { padding-top: 45px; padding-bottom: 45px; }
  .cc-contact-information .card-body { padding: 1rem 1.1rem; }
  /* Deneyim kartlarında yeşil başlık bloğu ile içerik arasına nefes payı */
  .cc-experience .card .col-md-9,
  .cc-education .card .col-md-9 { padding-top: 6px; }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
  .page-header .title.h2 { font-size: 1.65rem; }
  .button-container .btn-icon { margin: 5px; }
  .card { border-radius: 14px; }
}

/* =====================================================================
   "Yukarı çık" butonu (scripts/custom.js tarafından eklenir)
   ===================================================================== */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* =====================================================================
   İletişim — WhatsApp / Telefon / E-posta butonları
   ===================================================================== */
.contact-cta .btn { font-weight: 600; letter-spacing: 0.2px; }
.contact-cta .btn i { margin-right: 8px; }
.contact-cta p strong { color: #33413a; }

/* WhatsApp markası yeşili */
.btn-whatsapp {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
  background-color: #1ebe5b !important;
  border-color: #1ebe5b !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.30);
}

/* E-posta — kurumsal yeşil çerçeveli (outline) buton */
.btn-ghost-green {
  background: transparent !important;
  border: 2px solid var(--brand) !important;
  color: var(--brand) !important;
}
.btn-ghost-green:hover,
.btn-ghost-green:focus,
.btn-ghost-green:active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* =====================================================================
   TASARIM İNCE AYARLARI — ana yapıyı bozmadan rafine dokunuşlar
   ===================================================================== */

/* Sabit menü için başlıkların altında nefes payı (bağlantıya tıklayınca) */
#about, #skill, #experience, #projects, #contact { scroll-margin-top: 88px; }

/* --- Bölüm başlıklarına zarif yeşil vurgu çizgisi --- */
.title.text-center {
  position: relative;
  padding-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.title.text-center::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3f9a48, var(--brand));
}

/* --- Kartlarda daha oturaklı, yumuşak duruş --- */
.card {
  border: 1px solid rgba(20, 40, 25, 0.06);
  box-shadow: 0 6px 22px rgba(20, 40, 25, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

/* --- Deneyim / eğitim: yeşil sütuna derinlik ve dikey ortalama --- */
.cc-experience .card .col-md-3.bg-primary,
.cc-education .card .col-md-3.bg-primary {
  background: linear-gradient(155deg, #43a24d 0%, #2c6f32 100%) !important;
}
.cc-experience-header,
.cc-education-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}
.cc-experience-header p:first-child,
.cc-education-header p:first-child {
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  color: #fff;
}
/* Kart içi rol/başlıklar */
.card-body .h5 { font-weight: 700; color: #22331f; letter-spacing: -0.2px; }

/* --- İlerleme çubukları: ince, yuvarlak, degrade dolgu --- */
.progress {
  height: 7px;
  border-radius: 999px;
  background: #e9efe9;
  box-shadow: none;
}
.progress-bar,
.progress-bar-primary {
  border-radius: 999px;
  background: linear-gradient(90deg, #43a24d, var(--brand)) !important;
}
.progress-badge { font-weight: 600; letter-spacing: 0.2px; }
.progress-value { font-weight: 600; color: var(--brand); }

/* --- Kahraman (hero) başlık alanı --- */
.page-header .title { font-weight: 700; letter-spacing: -0.6px; }
.page-header .category { opacity: 0.95; }
/* Profil görseline zarif beyaz halka */
.cc-profile-image img { border: 5px solid rgba(255, 255, 255, 0.92); }

/* --- Yuvarlak sosyal butonlar: üzerine gelince yeşil dolgu --- */
.button-container .btn-icon:hover,
.button-container .btn-icon:focus {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* --- Ana butonlar rafine --- */
.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  box-shadow: 0 10px 22px rgba(55, 140, 63, 0.28);
}

/* --- İletişim formu: modern giriş alanları --- */
.cc-contact-information .input-group-addon {
  color: var(--brand);
  background: #f2f7f2;
  border-color: #e4ece4;
}

/* --- Footer rötuşu --- */
.footer { border-top: 1px solid rgba(20, 40, 25, 0.07); }
.footer .btn-link { transition: transform 0.2s ease, color 0.2s ease; }
.footer .btn-link:hover { transform: translateY(-3px); color: var(--brand) !important; }
.footer .credit { color: var(--brand); font-weight: 600; }

/* Hareket hassasiyeti olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none !important; }
  .card, .btn, .cc-profile-image img, #toTop { transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
