/* Genel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0e0e0e;
  padding-left: 45px;
  padding-right: 45px;
  border-right: 2px solid #222;
  border-left:  2px solid #222;
  color: #f1f1f1;
}

.container {
  display: flex;
  align-items: flex-start; /* bu satır eklenecek */
  min-height: 100vh;
}


/* Sol Panel */
.sidebar {
  
  background-color: #111;
  width: 280px;
  padding: 10px 10px;
  border-right: 1px solid #222;
  border-left: 1px solid #222;
  border-bottom: 1px solid #222;
  text-align: center;
}


.sidebar h3
{
    padding: 30px;
}
.sidebar h3 + p 
{
    padding: 10px;
}
.sidebar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #00bcd4;
}

.sidebar h1 {
  color: #00bcd4;
   margin-bottom: 45px;
  font-size: 1.4rem;
}

.sidebar .title {
  color: #bbb;
  margin-bottom: 20px;
}

.sidebar hr {
  border: none;
  border-top: 1px solid #333;
  margin: 30px 0;
}

.sidebar h3 {
  color: #00bcd4;
  margin-bottom: 15px;
  font-size: 1rem;
}
.languages
{
  border-top: 1px solid #333;
  margin: 49px 0;
  padding: 10px;
}
.skills
{
  border-top: 1px solid #333;

}
.sidebar a {
  color: #00bcd4;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Sağ İçerik */
.content {
  flex: 1;
  color: #00bcd4;
  padding: 30px 8px;
  margin-top: -1240px; /* içeriği yukarı taşır */
  margin-left: 280px;
}
.content div
{
    padding: 30px;
    margin: 10px 0;
}
.content h2
{
    padding: 17px 0;
}
.Personel 
{
   border-top: 1px solid #333;
}
.about 
{
   border-top: 1px solid #333;
  
}
.education
{
    
   border-top: 1px solid #333;
  
}
.experience
{
    border-top: 1px solid #333;
   
}

.Sertifika
{
    margin-top: 50px;
    border-top: 1px solid #222;
    text-align: center;
   
}
.sertifika-grid  {
 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding-bottom: 15px;
  padding-top: 15px;
  padding-left: 280px;
  padding-right: 300px;
}
.sertifika-card {
  overflow: hidden;
  position: relative;
  display: block;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 5px solid #222;
  padding: 101px;
  transition: 0.3s;
  color: #f1f1f1;
  text-decoration: none;

  
}

/* SERTİFİKA ARKA PLAN LOGO EKLEMELERİ */
.sertifika-card::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -100%; /* başlangıçta tamamen aşağıda gizli */
  background-repeat: no-repeat;
  /*background-position: center;*/
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;

}
.sertifika-card:hover::before {
  opacity: 0.5;
  background-image: var(--bg-image); /* varsayılan */
  bottom: 1px;  /* logonun kutu içinde duracağı konum */
  background-size: 100%;
  opacity: 0.8;

}
.sertifika-card:hover h3,
.sertifika-card:hover p {
  opacity: 0;
  transition: 0.4s;
}

/* -----------------------------*/


.sertifika-card:hover {
  transform: translateY(-35px);
  /*border-color: #00bcd4;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
  */
  transition-duration: 0.5s;
  border-color: #00bcd4;
  animation: hazırserglow 1.5s infinite alternate;
}

@keyframes hazırserglow {
  0% {
    box-shadow: 
      0 0 5px #00bcd4,
      0 0 10px #00bcd4,
      0 0 15px #00bcd4;
  }
  100% {
    box-shadow: 
      0 0 20px #00bcd4,
      0 0 40px #00bcd4,
      0 0 60px #00bcd4;
  }
}
.sertifika-grid a 
{
  padding: 30px;
}
.Sertifika h2
{
    text-align: center;
    color: #00bcd4;
    padding: 10px;
}
.Sertifika h3
{
   text-align: center;
    color: #00bcd4;
    padding: 20px;

}

.skills h3 + p
{
    padding: 10px;
}
.projeckt {
    padding: 10px;
    
}
.project-card  {
  display: block;
   /* BUTON AKTİF DIŞI BIRAKMA */
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: 0.3s;
  color: #333;
  text-decoration: none;
  cursor: default;
}

.project-card:hover {
  /*transform: translateX(-22px); AKTİF OLMAYAN ÇALIŞMA OLDUĞU İÇİN DEVRE DIŞI ANİMASYON*/
  
  border-color: #ff0000;
  animation: glow 1.5s infinite alternate;
  transform: scale(1.09);

  /*border-color: red;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
  transition-duration: 0.5;
  */


}

@keyframes glow {
  0% {
    box-shadow: 
      0 0 5px #ff0000,
      0 0 10px #ff0000,
      0 0 15px #ff0000;
  }
  100% {
    box-shadow: 
      0 0 20px #ff0000,
      0 0 40px #ff0000,
      0 0 60px #ff0000;
  }
}

/* sadece tıklamayı iptal ediyoruz */
.project-card:active,
.project-card:focus {
  pointer-events: none;
}
/* ------------------------------- */


.project-card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
  
}
.hazır-project-card  {
  overflow: hidden; /* Logo Animasyon Taşması için */
  display: block;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: 0.3s;
  color: #f1f1f1;
  text-decoration: none;
}
.hazır-project-card:hover {
  
  transform: translateX(-22px);

  /*border-color: #00bcd4;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
   ESKİ IŞIK EFEKTİ */ 

  transition-duration: 0.5;
  border-color: #00bcd4;
  animation: hazırglow 1.5s infinite alternate;
  
}

@keyframes hazırglow {
  0% {
    box-shadow: 
      0 0 5px #00bcd4,
      0 0 10px #00bcd4,
      0 0 15px #00bcd4;
  }
  100% {
    box-shadow: 
      0 0 20px #00bcd4,
      0 0 40px #00bcd4,
      0 0 60px #00bcd4;
  }
}


/* ARKA PLAN LOGO EKLEMELERİ */
.hazır-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -100%; /* başlangıçta tamamen aşağıda gizli */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}
.hazır-project-card:hover::before {
  opacity: 0.5;
  background-image: url('pfsens-logo.png'); /* varsayılan */
  background-color: white;
  bottom: 1px;  /* logonun kutu içinde duracağı konum */
  background-size: 100%;
  opacity: 0.8;
}
.hazır-project-card:hover h3,
.hazır-project-card:hover p {
  opacity: 0;
  transition: 0.4s;
}

/* -----------------------------*/

.hazır-project-card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}
.project-grid  {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding-bottom: 15px;
  padding-top: 15px;
  padding-left: 280px;
  padding-right: 300px;
}

.project-grid a 
{
  padding: 30px;
  padding-left: 20px;
  padding-right: 20px;
}


.projeckt h2
{
   text-align: center;
    color: #00bcd4;
    padding: 20px;
}
.projeckt h4
{
   color: red;
}
.content p, .content ul {
  margin-bottom: 20px;
  color: #ddd;
  line-height: 1.6;
  margin-left: 50px;
}

ul li {
  list-style: square;
  margin-left: 20px;
}



/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #111;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #222;
}
.top-buttons {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #222;
  z-index: 1000; /* üste kalır */
}

.btn {
  color: #00bcd4;
  text-decoration: none;
  background-color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 6px;
  transition: 0.3s;
  font-weight: bold;
}

.btn:hover {
  background-color: #00bcd4;
  color: #000;
  transform: translateX(-22px);
  border-color: #00bcd4;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
  transition-duration: 0.5;
}
html {
  scroll-behavior: smooth;
}
/* === Mobil Görünüm Düzeltmeleri === */
@media (max-width: 900px) {
  .container {
    flex-direction: column; /* sidebar ve content alt alta */
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .content {
    padding: 30px 20px;
  }

  .top-buttons {
    flex-wrap: wrap; /* butonlar taşarsa alta iner */
    gap: 10px;
  }
}
/* mobil için görünüş ayarları */
@media (max-width: 600px) {
  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.9rem;
  }

  .project-grid {
    grid-template-columns: 1fr; /* projeler tek sütun */
  }
}
