/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: 	#758e6e	;
  --secondary-color: 	#acbba8;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #acbba8;
  --secondary-color: #28533b;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 100px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

.about-container {
  display: flex; /* Flexbox ile hizalama yap */
  align-items: center; /* Dikey hizalama */
  justify-content: space-evenly; /* Yazıyı sola, fotoğrafı sağa hizala */
  max-width: 900px; /* İçeriği sınırla */
  margin: 50px auto; /* Sayfa ortalaması */
  gap: 20px; /* Yazı ile fotoğraf arasına boşluk bırak */
  flex-wrap: wrap; /* Mobil uyumluluk için satır kaymasını sağla */
}

.about-container h2 {
  font-size: 2.5rem;
  font-weight: 200;
  text-align: left;
  width: 50%; /* Başlığı tam genişlikte yap */
}

.about-container p {
  font-size: 1.1rem;
  max-width: 50%; /* Yazıyı sol tarafa al */
}

.fotografim {
  width: 250px; /* Resmin boyutunu ayarla */
  height: auto;
  border-radius: 10px; /* Köşeleri yuvarla */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* Hafif gölge */
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 1.5rem;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  /* margin: 2rem auto 5rem; */
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

/* Yetenekler Başlığı */
.skills-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-box {
  background: #ffffff;
  border: 2px solid rgb(123, 121, 121);
  border-radius: 10px;
  padding: 20px;
  width: 350px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(69, 68, 68, 0.1);
  margin-bottom: 15px;
}

.skills-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* Progress Bar */
.skill {
  text-align: left;
  margin-bottom: 10px;
}

.skill p {
  margin: 0 0 5px;
  font-size: 1.2rem;
  font-weight: bold;
}
/* Dark Mode İçin */
[data-theme="dark"] .skills-box {
  background: black; /* Arka plan siyah */
  color: white; /* Yazılar beyaz */
  border: 2px solid white; /* Çerçeve beyaz */
}

/* Dark Mode İçin Başlıklar */
[data-theme="dark"] .skills-box h3 {
  color: white;
}

/* Dark Mode İçin Yetenek Metinleri */
[data-theme="dark"] .skill p {
  color: white;
}

/* Dark Mode İçin Progress Bar */
[data-theme="dark"] .progress-bar {
  background-color: #333; /* Koyu gri arka plan */
}

[data-theme="dark"] .progress {
  background-color: 	#f1e8dd; /* Sarı tonunda dolum çubuğu */
}


.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 6px;
}

.progress {
  height: 100%;
  background: #52634d	;
  border-radius: 6px;
}

/* Hover efekti */
.skills-box:hover {
  background-color: rgba(200, 200, 200, 0.2);
  transition: 0.3s;
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Varsayılan tema (light mode) */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid black; /* Light mode çerçeve siyah */
  border-radius: 10px;
  width: fit-content;
  margin: 0 auto;
  background-color: white;
}

.social-link a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black; /* Light mode yazılar siyah */
  gap: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.social-link img {
  width: 24px;
  height: 24px;
}

/* Dark mode aktif olduğunda */
[data-theme="dark"] .social-link {
  background-color: black; /* Arka planı siyah yap */
  border-color: white; /* Çerçeveyi beyaz yap */
}

[data-theme="dark"] .social-link a {
  color: white; /* Yazıları beyaz yap */
}

/* Hover efekti */
.social-link a:hover {
  background-color: rgba(200, 200, 200, 0.5);
}


/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-container p {
    max-width: 80%;
  }

  .fotografim {
    width: 200px; /* Küçük ekranlarda resmi küçült */
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .about-container h2 {
    font-size: 2rem; /* Başlığı küçült */
    text-align: center;
  }

  .about-container p {
    font-size: 1rem;
    max-width: 100%;
    text-align: center;
  }

  .fotografim {
    width: 150px;
  }
  .social-link {
    flex-direction: column; /* Mobilde dikey hizalama */
  }
  .social-link a {
    width: 100%;
    justify-content: center;
  }
}


/* 768px'den küçük ekranlar için */
@media (max-width: 768px) {
  .about-container {
    text-align: center;
  }

  .about-container p {
    max-width: 90%;
  }

  .fotografim {
    width: 180px;
  }
}
