/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colors =====*/
  --hue-color: 224;
  --first-color: #15aa29;
  --second-color: white;
  /*===== Font and typography =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margins =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  background-color: rgb(44, 43, 43);
}

h1, h2, p {
  margin: 0;
}

/* Skill Chart Animation */
.skillChart-container {
  overflow: hidden;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(21, 170, 41, 0.3);
  background: rgba(55, 55, 55, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 170, 41, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skillChart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(21, 170, 41, 0.4);
}

@keyframes growFromBottom {
  0% {
    height: 0;
  }
  100% {
    height: var(--bar-height);
  }
}

.skills__categories {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.skills__category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.skills__category:hover {
  background-color: rgba(21, 170, 41, 0.2);
}

.skills__category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.image {
  border-radius: 10px;
  width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1200px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: rgb(27, 27, 27);
    transition: 0.5s;
  }
}

.image-container {
  width: 200px;
  height: 200px;
  position: relative;
  perspective: 1000px;
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(21, 170, 41, 0.5);
}

.image-container:hover img {
  transform: perspective(1000px) rotateY(45deg);
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__link1 {
  position: relative;
  color: #359907;
}

.nav__link1:hover {
  position: relative;
}

.nav__link1:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: white;
}

.nav__logo {
  color: var(--second-color);
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.easeInOutQuart {
  transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}

.home__title-color {
  color: var(--first-color);
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: var(--first-color);
}

.home__img {
  width: 100%; /* Esnek yapıldı */
  max-width: 300px; /* Mobilde sınırlandı */
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 10px;
}


.home__blob {
  fill: var(--first-color);
}

.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
  border: 2px solid var(--first-color);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.5s;
  z-index: -1;
}

.button:hover:before {
  width: 100%;
}

.button:hover {
  box-shadow: 0 0 20px rgba(21, 170, 41, 0.7);
  transform: translateY(-3px);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 200px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(21, 170, 41, 0.5);
  transition: transform 0.3s ease;
}

.about__img img:hover {
  transform: scale(1.05);
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
  align-items: center;
  text-align: center;
}

.skills__text {
  margin-bottom: var(--mb-4);
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PROJECTS =====*/
.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-card {
  background: rgba(55, 55, 55, 0.7);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(21, 170, 41, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 170, 41, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(21, 170, 41, 0.4);
}

.project-card__image {
  height: 200px;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.1);
}

.project-card__info {
  padding: 1.5rem;
}

.project-card__info h3 {
  margin: 0 0 0.5rem;
  color: var(--first-color);
}

.project-card__info p {
  margin: 0 0 1.5rem;
  color: #ccc;
}

.project-card__button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--first-color);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--first-color);
}

.project-card__button:hover {
  background-color: transparent;
  color: var(--first-color);
}

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem;
}

.project-modal__content {
  background: rgba(40, 40, 40, 0.95);
  border-radius: 15px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 30px rgba(21, 170, 41, 0.7);
  border: 1px solid rgba(21, 170, 41, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.5s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 170, 41, 0.5) rgba(40, 40, 40, 0.3);
}

.project-modal__content::-webkit-scrollbar {
  width: 8px;
}

.project-modal__content::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.3);
  border-radius: 10px;
}

.project-modal__content::-webkit-scrollbar-thumb {
  background-color: rgba(21, 170, 41, 0.5);
  border-radius: 10px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(21, 170, 41, 0.3);
  transition: all 0.3s ease;
}

.project-modal__close:hover {
  background: rgba(21, 170, 41, 0.7);
  transform: rotate(90deg);
}

.project-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(21, 170, 41, 0.3);
}

.project-modal__header h2 {
  margin: 0;
  color: var(--first-color);
  font-size: 2rem;
}

.project-modal__body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.project-modal__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-modal__description h3,
.project-modal__technologies h3 {
  color: var(--first-color);
  margin-bottom: 1rem;
}

.project-modal__technologies ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-modal__technologies li {
  padding: 0.3rem 0.8rem;
  background: rgba(21, 170, 41, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
}

.project-modal__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-modal__3d-container {
  width: 100%;
  height: 300px;
  background: rgba(30, 30, 30, 0.7);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.project-modal__gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-modal__gallery img:hover {
  transform: scale(1.05);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.element {
  width: 75%;
  height: 75%;
  min-width: 300px;
  min-height: 300px;
}

/* ===== FOOTER =====*/
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
  color: var(--first-color);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
  transition: color 0.3s ease;
}

.footer__icon:hover {
  color: var(--first-color);
}

.footer__copy {
  font-size: var(--smaller-font-size);
}

/* Media Queries */
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}
