﻿/* ==========================================================================
   1. GENEL AYARLAR (Global Styles)
   ========================================================================== */
html,
body,
#anaSayfa {
  margin: 0;
  padding: 0;
  min-height: 100vh; /* Sayfanın en az ekran boyutu kadar olmasını sağlar */
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden; /* Sağa doğru kaymayı önler */
  background-attachment: fixed; /* Sayfa kaydırıldığında gradient sabit kalır */
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -1px; /* Başlık karakterlerini biraz birbirine yaklaştırır */
}

/* ==========================================================================
   2. YERLEŞİM (Layout) DÜZENİ SINIFLARI
   ========================================================================== */

/* Eskiden .disDiv / #hakkimda idi. Boydan boya yayılan bölümler alanı */
.section-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(180deg, #83c9e2, #619ac5);
}

/* Ekranı ikiye bölen kolonlar için. */
.half-column {
  flex: 1; /* Esnek kutu, kalan alanı eşit paylaşır */
  display: flex;
  flex-direction: column;
  align-items: center; /* İçindekileri dikeyde ortalar */
  justify-content: center; /* İçindekileri yatayda ortalar */
  position: relative;
  text-align: center;
}

/* ==========================================================================
   3. ANA SAYFA - GİRİŞ BÖLÜMÜ (Hero Section)
   ========================================================================== */

/* SOL KOLON (Fotoğrafın olduğu alan, eskiden #div-1) */
#hero-left-col {
  background-color: #13b9b9;
  padding-top: 72px; /* Üstten boşluk bırakır */
  overflow: hidden; /* Dışarı taşan arka planı gizler */
  color: whitesmoke;
  text-shadow: 2px 2px #40605c; /* Yazılara gölge ekler */
}

/* Sol kolonun arka planındaki cam efekti ve filtreler */
#hero-left-col::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    url("../Pictures/fotograf.jpg") center left / cover no-repeat,
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 200, 200, 0.6) 0%,
      rgba(255, 180, 200, 0.45) 15%,
      rgba(255, 160, 200, 0.3) 30%,
      transparent 60%
    ),
    radial-gradient(
      circle at 40% 70%,
      rgba(200, 220, 255, 0.45) 0%,
      rgba(180, 200, 255, 0.25) 20%,
      transparent 50%
    );
  background-blend-mode: overlay, normal, normal;
  filter: blur(20px) saturate(1.05); /* Fotoğrafı bulanıklaştırıp renk doygunluğunu artırır */
  transform: scale(
    1.05
  ); /* Kenarlardaki bulanıklık taşmasını önlemek için biraz büyütür */
  z-index: 0;
  pointer-events: none; /* Tıklamaların alt katmana geçmesini engellemez */
}

/* Sol kolondaki içeriklerin arka planın üzerinde görünmesini sağlar */
#hero-left-col > * {
  position: relative;
  z-index: 1;
}

#hero-left-col > h3 {
  position: absolute;
  top: 16px;
  left: 20px;
  margin: 0;
  text-align: left;
}

#fotografim {
  width: 60%;
  max-width: 360px;
  height: auto;
  border-radius: 17px;
  display: block;
  margin: 0 auto;
}

/* SAĞ KOLON (Daktilo metni ve Sosyal Butonların olduğu alan, eskiden #div-2) */
#hero-right-col {
  background: linear-gradient(180deg, #a4f9ff, #83c9e2);
  padding-top: 60px;
  z-index: 500;
  color: whitesmoke;
  text-shadow: 2px 2px #40605c;
}

/* ==========================================================================
   4. SOSYAL MEDYA BUTONLARI
   ========================================================================== */

.social-btn-base {
  width: 100%;
  height: 50px;
  margin: 10px 0;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  background: #1e3a8a; /* Varsayılan koyu mavi */
  color: #000000;
}

.btn-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%); /* Tam dikey ortalama işlemi */
  width: 24px;
  height: 24px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: color 0.3s;
}

#LinkedIn_buton .btn-icon {
  color: #0077b5;
}
#GitHub_buton .btn-icon {
  color: #333;
}

.social-btn-base::before {
  content: " ";
  position: absolute;
  top: 0;
  left: -10%; /* Tam kaplaması için biraz dışarıdan başlatılır */
  width: 120%;
  height: 100%;
  background: #ffffff; /* Perdenin rengi beyaz */
  transform: skew(30deg); /* Eğiklik katar */
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.3, 1, 0.8, 1); /* Hızlı başlayıp yavaşlayan animasyon */
  z-index: 5;
}

.social-btn-base span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
}

.social-btn-base:hover::before {
  transform: translate3d(120%, 0, 0) skew(30deg); /* Perdeyi hızla sağa doğru kaydırıp kaldırır */
}
.social-btn-base:hover span {
  color: #ffffff; /* Yazı beyaz olur */
}
.social-btn-base:hover .btn-icon {
  color: #ffffff !important; /* İkonlar beyaz olur */
}
.social-btn-base:hover img.btn-icon {
  filter: brightness(0) invert(1); /* Resim olan logo (Kaggle) tersine çevrilerek beyaz yapılır */
}

/* ==========================================================================
   5. HAKKIMDA BÖLÜMÜ (About Section)
   ========================================================================== */

#about-glass-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 20px;
  position: relative;
  flex: 1; /* half column effect */
}

.glass-card-container {
  background: rgba(255, 255, 255, 0.353); /* Yarı şeffaf beyaz */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Hafif gölge */
  backdrop-filter: blur(10px); /* Cam efekti - arkaplanı flulaştırır */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 650px;
  width: 100%;
  padding: 50px;
  color: #333;
}

.glass-card-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #0a2951;
}

.glass-card-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Yetenekler Bölümü (Skils) */
.skills-container h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #051428;
  border-bottom: 2px solid rgba(5, 20, 40, 0.1);
  display: inline-block;
}

.tags {
  margin: 2%;
  display: flex;
  flex-wrap: wrap; /* Etiketler sığmazsa alt satıra geçer */
  gap: 10px;
}

.tag {
  background: #051428;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  transition:
    transform 0.3s ease,
    background 0.3s;
  cursor: default;
}

.tag:hover {
  transform: translateY(-5px); /* Yukarı zıplama efekti */
  background: #1e3a8a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. SERTİFİKALAR BÖLÜMÜ (Certificates Section)
   ========================================================================== */

.certificates-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  padding: 40px 20px;
}

.certificate-card {
  width: 230px;
  height: 380px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.certificate-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.certificate-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  margin-bottom: 15px;
}

.certificate-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-issuer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-link {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  color: #051428;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificate-link:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* Sağ kolon iletişim formu kartı */
.contact-card {
  width: 85%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.contact-card h2 {
  color: #051428;
  margin-bottom: 10px;
  font-size: 2rem;
}

.contact-card p {
  color: #4a5568;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* İletişim formu yazı kutuları */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #000;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: #051428;
  box-shadow: 0 0 15px rgba(5, 20, 40, 0.1);
}

.contact-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: #051428;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #1e3a8a;
  transform: translateY(-3px);
}

/* ==========================================================================
   8. MOBİL UYUMLULUK (Responsive Design)
   ========================================================================== */

/* Alt Bölümleri Ayarla */
#hakkimda.bottom-sections {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.bottom-section-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

#sertifikalar {
  min-height: 100vh;
  background: linear-gradient(180deg, #619ac5, #406aa7);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   8. ÖĞRENCİ KULÜBÜ BÖLÜMÜ (Club Section) - RENK DEĞİŞTİRME ALANI
   ========================================================================== */

#ogrenci-kulubu {
  min-height: auto;
  background: linear-gradient(
    180deg,
    #406aa7,
    #2d5a8c
  ); /* ← RENK AYARLA (satır 468) */
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 20px 40px 40px 40px;
  width: 100%;
  box-sizing: border-box;
}

.club-title {
  font-size: 3rem;
  text-align: center;
  color: white;
  margin-bottom: 15px;
  font-weight: 900;
  width: 100%;
}

/* 50/50 Layout - Sol ve Sağ */
.club-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.club-left {
  display: none;
}

.club-right {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ===== SAĞ TARAF - BİLGİLER (SADELEŞTIRILMIŞ) ===== */
.club-card-compact {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
  height: auto;
}

.club-card-compact:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.club-header-compact {
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 12px;
}

.club-name-compact {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
}

.club-period-compact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.club-content-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  margin-top: 0;
}

.club-content-compact p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  margin-bottom: 15px;
}

.club-social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.club-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.club-social-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.6);
}

.club-section-item-compact {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.club-section-item-compact h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: white;
  margin-top: 0;
}

.club-section-item-compact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.club-section-item-compact li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  padding-left: 15px;
  position: relative;
}

.club-section-item-compact li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.club-section-item-compact p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== MOBİL UYUMLULUK ===== */
@media (max-width: 1024px) {
  #ogrenci-kulubu {
    padding: 40px 20px;
  }

  .club-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }

  .club-card-compact {
    padding: 30px 25px;
  }
}

/* ==========================================================================
   9. PROJELERİM BÖLÜMÜ (Projects Section)
   ========================================================================== */

.projects-section {
  min-height: 100vh;
  background: linear-gradient(180deg, #2d5a8c, #1a347a);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1300px;
  width: 100%;
  margin-top: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  min-height: 480px;
}

.project-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
}

.project-header {
  padding: 25px 25px 15px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.project-title {
  margin: 0;
  font-size: 1.5rem;
  color: #a4f9ff;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.project-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.project-role {
  border-left: 3px solid #a4f9ff;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.project-role strong {
  color: #a4f9ff;
  display: block;
  margin-bottom: 5px;
}

.project-role p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-tech {
  margin-top: auto;
}

.project-tech strong {
  color: #a4f9ff;
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(164, 249, 255, 0.2);
  color: #a4f9ff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid rgba(164, 249, 255, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
}

.tech-tag:hover {
  background: rgba(164, 249, 255, 0.35);
  border-color: rgba(164, 249, 255, 0.7);
  transform: scale(1.05);
}

.project-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.project-link {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(164, 249, 255, 0.2);
  color: #a4f9ff;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid rgba(164, 249, 255, 0.4);
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-link:hover {
  background: #a4f9ff;
  color: #1e3a8a;
  border-color: #a4f9ff;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .section-wrapper,
  #hakkimda {
    flex-direction: column;
  }
  .half-column {
    width: 100%;
    min-height: auto;
  }
  .glass-card-container {
    padding: 30px 20px;
  }
  .glass-card-content h2 {
    font-size: 1.8rem;
  }
  #about-glass-wrapper {
    width: 100%;
  }

  /* Proje Kartları Mobil Uyumluluk */
  .projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    min-height: auto;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .certificate-card {
    width: 100%;
    max-width: 280px;
  }
}
