/* === Genel Ayarlar === */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  
  min-height: 100vh;   /*  height yerine min-height */
background: linear-gradient(to bottom,
  #0f172a 5%,
  #000000 80%
);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Genel spacer class */
.spacer {
  height: 80px;
}

/* About bölümünden sonra ekstra boşluk */
#about .tech-icons {
  margin-bottom: 40px; /* ikonlarla taban arasında boşluk */
}

/* Projects bölümünde en alttaki projeden sonra boşluk */
#projects {
  margin-bottom: 100px;
}

/* Experiences bölümünde en alttaki karttan sonra boşluk */
#experiences {
  margin-bottom: 100px;
}



/* === Üst Blok (Header) === */
.top-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 58%;          
  max-width: 2000px;
  margin-top: 120px;
}

.name {
  margin: 0;
  font-size: 2.0rem;
  font-weight: bold;
  background: linear-gradient(90deg, #34d399, #60a5fa); /* yeşilden maviye parlama */
  background-clip: text;
  background-clip: text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.name:hover {
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.8), 
               0 0 20px rgba(96, 165, 250, 0.8); /* yeşil-mavi glZow */
  transform: scale(1.05); /* hafif büyür */
  cursor: pointer;
}


.title {
  font-size: 1.0rem;
  margin: 5px 0 0;
  font-weight: normal;
  color: #94a3b8;
}

/* Yazıya gradient efekt */
.typing {
  font-weight: bold;
  background: linear-gradient(90deg, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-right: 2px solid #60a5fa; /* yazma efekti için cursor */
  white-space: nowrap;
  overflow: hidden;
}

.name:hover {
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.8), 
               0 0 20px rgba(96, 165, 250, 0.8); /* yeşil-mavi glow */
  transform: scale(1.05); /* hafif büyür */
  cursor: pointer;
}

/* Menü sağda */
.right a {
   font-size: 1.0rem;   /* önceki default’tan daha büyük */
  margin-left: 20px;
  text-decoration: none;
  color: #94a3b8;
  font-weight: normal;
  transition: color 0.2s ease;
}

.right a.active,
.right a:hover {
  color: #34d399;
}

.header-divider {
  width: 58%;
  height: 0.2px;
  background: rgba(45, 40, 40, 0.267); /* technologies bölümündekiyle aynı */
  margin-top: 40px;  /* yazı ile çizgi arası */
  margin-bottom: 5px; /* çizgiden sonraki içerik arası */
}


/* === Alt Blok (Main Content) === */
.bottom-block {
  width: 58%;
  max-width: 2000px;
  margin-top: 30px;
  color: #94a3b8;
  font-weight: normal;
}

/* About Bölümü */
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* yazı+linkler ve resim alt hizalanır */
  gap: 100px;
  margin-top: 20px;
  color: #94a3b8;

}

/* Sol taraf (yazı + linkler) */
.about-left {
  flex: 1;
  display: flex;
  color: #94a3b8;
  flex-direction: column;
  justify-content: space-between; /* yazı yukarı, linkler aşağı */
}

.about-text p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #cbd5e1;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin: 0;
  color: #94a3b8;

}

.social-links {
  margin-top: 30px;
  line-height: 1.8;
}

.social-links h3 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.social-links a {
  display: inline-flex;     /* logo + yazı yan yana */
  align-items: center;      /* dikey ortalama */
  margin-right: 20px;       /* linkler arası boşluk */
  text-decoration: none;
  color: #94a3b8;
  font-weight: bold;
  transition: color 0.2s ease;
}

.social-links a img {
  width: 30px;              /* küçük logo boyutu */
  height: 30px;
  margin-right: 8px;        /* logo ile yazı arası boşluk */
}

.social-links a:hover {
  color: #34d399;
}

/* === CV Butonu === */
a.cv-button {
  display: block;              
  margin-top: 20px;            
  width: fit-content;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #5c8fcd;                  /* yazı rengi çerçeveyle aynı */
  text-decoration: none;
  text-align: center;
  background: transparent;         /* arka plan boş */
  border: 2px solid #5c8fcd;       /* çerçeve */
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

a.cv-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(249, 249, 249, 0.6); /* çerçeve renginde glow */
  color: #ffffff;   /* yazı sabit kalır */
}



/* Sağ taraf (resim) */
.about-image img {
  width: 225px;      
  height: auto;
  border-radius: 10px; 
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* Hover efekti */
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.6),
              0 0 15px rgba(52, 211, 153, 0.8);
  filter: brightness(1.1);
}


.technologies-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}



.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tech-item {
  width: 60px;   /* biraz büyütüldü */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;  /* içi boş */
  border: 2px solid rgba(255, 255, 255, 0.3); /* sadece çerçeve */
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite; /* sürekli hareket */
}

.tech-item img {
  width: 45px;   /* ikonları büyüttük */
  height: auto;
}

/* Hover efekti (daha belirgin parlasın) */
.tech-item:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.6),
              0 0 30px rgba(96, 165, 250, 0.6);
}

/* Sürekli aşağı-yukarı hareket */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* yukarı kay */
  }
}




.project-block {
  margin-bottom: 80px;
}



.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.project-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  margin: 0 auto;
  max-width: 770px;
}



.project-block:nth-of-type(even) .project-card {
  flex-direction: row-reverse;
}


.project-images img {
  width: 220px;
  border-radius: 20px;
    margin-bottom: 7px; /* resimlerin arasına boşluk */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

/* Hover efekti */
.project-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7),
              0 0 22px rgba(92, 143, 205, 0.6);
}


.project-info {
  flex: 0.8;
}

.project-info h4 {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #e2e8f0;
}

.project-info p {
  font-size: 0.7rem;
  line-height: 1.5;
  color: #86898f;
  margin-bottom: 10px;
}

.tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(18, 7, 49, 0.053);
  border-radius: 8px;
  padding: 2px 5px;
  margin-right: 4px;
  font-size: 0.6rem;
  color: #94a3b8;
}

.project-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 5px 10px;
  font-size: 0.6rem;
  font-weight: bold;
  color: #5c8fcd;
  border: 2px solid #5c8fcd;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-btn:hover {
  color: #fff;
  transform: scale(1.05);
}





/* === Section Genel Ayarları === */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* === Responsive Ayarlar === */

/* Tablet ve daha küçük ekranlar */
@media (max-width: 1024px) {
  .top-block {
    width: 80%; /* genişliği küçült */
  }

  .bottom-block {
    width: 80%;
  }

  .about-content {
    gap: 50px; /* aradaki boşluğu azalt */
  }
}

/* Telefon ekranları */
@media (max-width: 768px) {
  .top-block {
    flex-direction: column; /* üst kısımdaki isim + menü alt alta gelsin */
    align-items: center;
    text-align: center;
  }

  .right {
    margin-top: 15px;
  }

  .bottom-block {
    width: 90%;
  }

  .about-content {
    flex-direction: column; /* yazılar ve resim üst üste */
    align-items: center;
    gap: 20px;
  }

  .about-image img {
    width: 180px; /* resim küçülsün */
  }

  .about-text p {
    font-size: 0.9rem; /* yazılar küçülsün */
    text-align: center;
  }

  .social-links {
    text-align: center;
  }

  a.cv-button {
    margin-left: auto;
    margin-right: auto; /* buton ortalansın */
  }

  .tech-icons {
    gap: 15px;
  }

  .tech-item {
    width: 65px;
    height: 65px;
  }

  .tech-item img {
    width: 35px;
  }
}



.experience-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 12px; /*  alt boşluk */
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.experience-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.experience-card .exp-date {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.experience-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  
}

.exp-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}


.exp-date {
  font-size: 0.8rem;
  color: #94a3b8;
}



/* Scrollbar'ı tamamen gizle */
html, body {
  margin: 0;
  padding: 0;
  overflow-y: scroll;       /* içerik kayabilsin */
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* IE/Edge eski */
}

/* Chrome, Safari, Edge (webkit) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* mobil uyum , Safari, Edge (webkit) */

@media (max-width: 768px) {
  .project-card {
    flex-direction: column !important; /* her zaman üstte resim, altta yazı */
    text-align: center;
  }

  .project-images img {
    margin: 0 auto 10px auto;
  }
}


