/*==================== GOOGLE FONTS =====================*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/*==================== CSS VARIABLES =====================*/
:root {
  --header-height: 3.5rem;
  --primary-color: #4a4a4a;
  --secondary-color: #575757;
  --accent-color: #0088ff;
  --linear-gradient: linear-gradient(54deg, rgba(45,45,45,0.8) 34%, rgba(45,45,45,0.8));
  --title-color: #e2dfdf;
  --text-color: #9d9c9c;
  --text-color-alt: #777; /* Slightly darker for better contrast */
  --bg-color: #ffffff;
  --bg-color-alt: #f8f8f8;
  --border-color: #f1f1f1;

  /* Typography */
  --roboto-font: 'Roboto', sans-serif;
  --mono-font: 'Roboto Mono', monospace;
  --fs-h1: 2.75rem;
  --fs-h2: 2.25rem;
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --medium: 500;
  --semi-bold: 600;
  --bold: 700;
}

/*==================== BASE STYLES =====================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body, button, input, textarea {
  font-family: var(--roboto-font);
  font-size: var(--fs-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
}
h1, h2, h3 {
  font-family: var(--roboto-font);
  font-weight: var(--bold);
  color: var(--title-color);
  line-height: 1.2;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
}
input, textarea {
  background: none;
  border: none;
  outline: none;
}

/*==================== REUSABLE CLASSES =====================*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
}
.section {
  padding: 4rem 0;
}
.section__title {
  font-size: var(--fs-h2);
  font-weight: var(--medium);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
}

/* Typography Helpers */
.text-lg {
  font-size: var(--fs-lg);
  line-height: 1.67;
  color: var(--text-color-alt);
}
.test-sm {
  font-size: var(--fs-sm);
  line-height: 1.43;
}
.text-xs {
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/*==================== HEADER =====================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  align-items: center;
}
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--semi-bold);
  font-family: var(--mono-font);
  text-transform: uppercase;
  position: relative;
  color: var(--primary-color);
  transition: color 0.3s;
}
.nav__link:hover {
  color: var(--accent-color);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}
.nav__link:hover::after,
.active-link::after {
  width: 100%;
}
.nav__toggle, .nav__close {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: none;
  cursor: pointer;
}
/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  .nav__list {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 200px;
    height: calc(100% - var(--header-height));
    background-color: var(--bg-color);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
  }
  .nav__list.show-menu {
    right: 0;
  }
  .nav__close {
    display: block;
    align-self: flex-end;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}
.active-link {
  color: var(--accent-color);
}
/* Ensure main content is not hidden behind header */
.main {
  margin-top: calc(var(--header-height) + 2rem);
}

/*==================== HOME SECTION =====================*/
.home {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 2.5rem;
}
.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--linear-gradient);
  opacity: 0.6;
  z-index: 1;
}
.home__container {
  grid-template-columns: 4fr 8fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.home__img {
  width: 90%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.3rem;
  box-shadow: 0 0 27px rgba(96,96,96,0.34);
  transform: translateY(2rem);
}
.home__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home__name,
.home__work,
.home__list,
.home__social-link {
  color: #fff;
  font-family: var(--mono-font);
}
.home__name {
  font-size: var(--fs-h1);
  margin-bottom: 0.3rem;
}
.home__work {
  margin-bottom: 2rem;
  color: #eee;
}
.home__list dt {
  float: left;
  font-weight: var(--bold);
  opacity: 0.8;
}
.home__list dd {
  padding-left: 6.25em;
  margin-bottom: 0.5rem;
}
.home__socials {
  margin-top: 2rem;
}
.home__social-link {
  font-size: 1.5rem;
  margin-right: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.home__social-link:hover {
  opacity: 1;
}
@media screen and (max-width: 768px) {
  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home__img {
    margin: 0 auto 1.5rem;
    transform: translateY(0);
  }
  .home__data {
    align-items: center;
  }
}

/*==================== HELLO SECTION =====================*/
.hello__details {
  margin-top: 1.67rem;
  text-align: justify;
}

/*==================== BUTTONS =====================*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  font-weight: var(--semi-bold);
  transition: background-color 0.3s;
}
.button:hover {
  background-color: var(--accent-color);
}
.button--flex {
  gap: 0.3rem;
}

/*==================== SERVICES SECTION =====================*/
.services__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.services__item {
  padding: 1.25rem;
  background-color: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0 10px rgba(96,96,96,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.services__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(96,96,96,0.2);
}
.icon__box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.3rem;
  margin-bottom: 1.25rem;
  background-color: var(--bg-color-alt);
  color: var(--accent-color);
  font-size: 1.5rem;
}

/*==================== RESUME SECTION =====================*/
.resume__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.resume__title {
  color: var(--primary-color);
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
  font-size: var(--fs-sm);
  text-transform: uppercase;
}
.resume__item {
  border-left: 2px solid var(--primary-color);
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 2rem;
}
.resume__item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  position: absolute;
  left: -7px;
  top: 0;
  background-color: var(--bg-color);
}
.resume__subtitle {
  color: var(--primary-color);
  margin-bottom: 0.36em;
  font-size: var(--fs-base);
  font-weight: var(--semi-bold);
}
.resume__date {
  color: var(--text-color-alt);
  margin-bottom: 0.7em;
  font-size: var(--fs-sm);
}
.resume__description {
  text-align: justify;
  color: var(--secondary-color);
  font-size: var(--fs-sm);
}

/*==================== SKILLS SECTION =====================*/
.skills__container {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.skills__list {
  display: grid;
  gap: 1.8rem;
}
.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.skills__bar {
  background-color: #f5deb3;
  height: 5px;
  border-radius: 0.25rem;
}
.skills__percentage {
  display: block;
  background-color: #000;
  height: 5px;
  border-radius: 0.25rem;
}

/*==================== PROJECTS SECTION =====================*/

  
  .project__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .category__btn {
    font-size: var(--fs-xs);
    font-weight: var(--bold);
    font-family: var(--mono-font);
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid var(--accent-color);
    transition: all 0.3s var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .category__btn:hover,
  .active-work {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
  }
  
  .projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    padding: 0 1rem;
    background-color: transparent; /* Gri arka plan kaldırıldı */
  }
  
  .project__item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
  }
  
  .project__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  
  .project__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .project__title::after {
    content: '';
    position: absollute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
  }
  
  .project__description {
    color: var(--text-color);
    margin-bottom: auto;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .tags li {
    background: var(--accent-color);
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /*==================== BLOG SECTION =====================*/
  .blog {
    padding: 6rem 0;
    background-color: var(--bg-color);
  }
  
  .blog__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .blog__item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .blog__item:hover {
    transform: translateY(-5px);
  }
  
  .blog__title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .blog__link {
    display: inline-flex;
    align-items: Left;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: color 0.3s ease;
  }
  
  .blog__link:hover {
    color: var(--primary-color);
  }
  
  .blog__link i {
    transition: transform 0.3s ease;
  }
  
  .blog__link:hover i {
    transform: translateX(3px);
  }
  
  /* Modern Tasarım İyileştirmeleri */
  .section__title {
    text-align: Left;
    margin-bottom: 4rem;
    position: relative;
    font-size: 2.5rem;
  }
  
  .section__title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 4%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
  }
  
  /* Genel İyileştirmeler */
  .container {
    max-width: 1280px;
    padding: 1 2rem;
  }
  
  .button {
    background: linear-gradient(135deg, var(--accent-color), #0066cc);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }
  
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
  }
  
  /* Genel Container Düzenlemesi */
.container {
    max-width: 1280px;
    padding: 2rem 2rem; /* Standart genişlikte sağ-sol boşluk */
  }
  
  /* Responsive Düzenlemeler */
  @media (max-width: 768px) {
    .container {
      padding: 0 1.5rem; /* Mobilde kenarlarda boşluk */
    }
    
    /* Mobil görünümde başlıkların üst kısmına padding ekleniyor */
    .section__title {
      font-size: 2rem;
      padding-top: 1.5rem;
    }
    
    /* Proje ve blog konteynerlerine de kenar boşluğu ekleniyor */
    .projects__container,
    .blog__container {
      padding: 0 1.5rem;
      grid-template-columns: 1fr; /* Tek kolon düzeni */
    }
    
    .project__categories {
      gap: 0.5rem;
    }
    
    .category__btn {
      padding: 0.6rem 1rem;
      font-size: 0.7rem;
    }
    
    /* Başlık altındaki mavi çizgi sola hizalanıyor */
    .section__title::after {
      content: '';
      position: absolute;
      bottom: -1rem;
      left: 4%; /* Soldan biraz boşluk bırakılır */
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: var(--accent-color);
    }
  }
  
  @media (max-width: 480px) {
    .section__title {
      font-size: 1.75rem;
    }
    
    .project__item {
      min-height: auto;
    }
  }
  
  