@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap");

:root {
  --primary-element: #000000ff;
  --secondary-element: #0a0a0aff;
  --navbar: #0b0a0c90;
  --interaction-element: hsl(245, 50%, 50%);
  --interaction-element-desaturated: hwb(248 4% 89%);
  --interaction-secondary-element: #101010;
  --important-text: #b3acfc;
  --important-text-variated: #887ef2ff;
  --theme-primary-text: #ffffff;
  --theme-secondary-text: #ccc;
  --theme-third-text: #888;
}

hr {
  border: 2px solid #222;
  width: 90%;
}

p,
pre,
input,
textarea {
  color: var(--theme-third-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
i,
label,
span {
  color: var(--theme-primary-text);
  text-align: center;
  width: fit-content;
}

b {
  font-weight: 500;
  color: var(--important-text-variated);
}

a {
  text-decoration: none;
}

body {
  font-family: "League Spartan", sans-serif;
  background-color: var(--primary-element);
}

html,
#scroller {
  scroll-behavior: smooth;
}

.navbar,
.sidebar {
  list-style-type: none;
  transition: opacity 0.3s;
  display: flex;
  z-index: 10000;
  border-radius: 10px;
  background-color: var(--navbar);
  backdrop-filter: blur(10px);
  /* opacity içeriğin saydamlığını verir, backdrop-filter'ın çalışması için background-color'ın transparan olması lazım*/
  padding: 20px;
  box-shadow: 0 0 10px #00000075;
  align-items: center;
  justify-content: center;
  width: fit-content;
  position: fixed;
  gap: 40px;
}

@media (max-width: 400px) {
  .navbar {
    width: calc(100% - 50px);
  }
}

.sidebar {
  flex-direction: column;
  top: calc(50vh - 96px);
  left: 10px;
  opacity: 0;
  padding: 15px 10px;
  gap: 25px;
  border-radius: 100px;
}

.sidebar li a i {
  color: var(--important-text) !important;
  padding: 3px;
}

.navbar li a,
.sidebar li a i {
  text-decoration: none;
  color: var(--theme-primary-text);
  font-size: calc(1rem + 0.2vw);
  transition: text-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.navbar li a:hover,
.sidebar li a:hover i {
  text-shadow: 0 0 10px #fff;
  transform: scale(1.1);
}

.sidebar li a:hover i {
  text-shadow: 0 0 10px var(--important-text);
}

.hover-border {
  position: relative;
}

.hover-border::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--interaction-element);
  transition: transform 0.3s ease-out;
}

.hero {
  width: 100%;
  height: calc(95vh - 96px);
  gap: 60px;
  padding: 30px;
  /* box-shadow: 0 0 10px #111111; */
  background-image: linear-gradient(
    to bottom,
    var(--primary-element),
    var(--secondary-element),
    var(--primary-element)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.technologies {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  gap: 40px;
  padding: 20px;
}

.tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.tech-card {
  border-radius: 15px;
  padding: 20px;
  display: flex;
  background-color: var(--secondary-element);
  box-shadow: 0 0 20px #0f0f0f;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 300px;
  height: 100px;
}

.tech-card i {
  font-size: calc(3rem + 0.2vw);
}

.svg-holder {
  height: calc(3rem + 0.2vw);
  width: calc(3rem + 0.2vw);
}

.works {
  display: flex;
  gap: 50px;
  justify-content: center;
  padding: 50px;
  flex-wrap: wrap;
}

.work-card-header {
  border-radius: 15px;
  aspect-ratio: 1.5;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--interaction-element-desaturated);
}

.work-card-body {
  align-items: start;
  padding-top: 10px;
  border-radius: 15px;
}

.work-card-body p {
  margin: 0;
  font-size: 17px;
}

.work-card-footer {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-direction: column;
}

.work-card-body h2 {
  text-align: start;
}

.work-card {
  border-radius: 35px;
  padding: 20px;
  background-color: var(--secondary-element);
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  gap: 10px;
  width: 30%;
}

.project-type {
  border-radius: 15px;
  padding: 10px 15px;
  color: white;
  max-width: 135px;
  background-color: var(--interaction-secondary-element);
}

@media (max-width: 1700px) {
  .works {
    justify-content: space-around;
    column-gap: 0;
  }

  .work-card {
    width: 45%;
  }
}

@media (max-width: 850px) {
  .works {
    flex-direction: column;
  }

  .work-card {
    width: 100%;
  }
}

@media (max-width: 550px) {
  .works {
    padding: 20px;
  }

  .works-header h1 {
    /* w-100 text-center */
    width: fit-content !important;
  }
}

@media only screen and (max-width: 750px) {
  .fixed-button.gotop {
    bottom: 20px !important;
    right: 20px !important;
  }
}

@media (min-width: 751px) and (max-width: 1200px) {
  .fixed-button.gotop {
    bottom: 32px !important;
    right: 30px !important;
  }
}

@media only screen and (min-width: 1201px) {
  .fixed-button.gotop {
    bottom: 40px !important;
    right: 40px !important;
  }
}

.theme-icon {
  padding: 10px;
  width: 45px;
  aspect-ratio: 1;
  color: #fff;
  transition: color 0.3s;
}

.fixed-button {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: fixed;
  z-index: 999;
  padding: 0 !important;
  background-color: #887ef275;
  transition: opacity 0.3s, background-color 0.3s;
}

.fixed-button.gotop {
  opacity: 0;
}

.fixed-button:hover {
  background-color: var(--important-text);
}

.fixed-button:hover .theme-icon {
  color: black;
}

.pp-holder {
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  max-width: 200px;
  min-width: 150px;
}

.ppholder img {
  width: 100%;
  object-fit: cover;
}

.about {
  margin-top: 5vh;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-bottom: 100px;
}

.wrapper {
  padding-top: 60px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.steps {
  max-width: 350px;
  margin: 0 auto;
}

.step {
  display: flex;
  position: relative;
}

.step:after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  height: 0;
  width: 2px;
  background-color: var(--interaction-element);
}

.step .info {
  margin-bottom: 50px;
}

.info h3 {
  text-align: start;
  margin-bottom: 10px;
}

.step:not(:last-child):after {
  height: 85%;
}

.number {
  width: 32px;
  height: 32px;
  background-color: transparent;
  border-radius: 50%;
  border: 2px solid var(--interaction-element);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-right: 14px;
}

.number.completed {
  background-color: var(--interaction-element);
}

.number svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.number svg path {
  fill: white;
}

.text {
  max-width: 500px;
}

@media (min-width: 750px) {
  .step:nth-child(even) .info {
    position: relative;
    right: 355px;
  }

  .wrapper {
    left: 125px;
  }
}

.social {
  width: 30px;
  border-radius: 50%;
  padding: 10px;
  background-color: #00000075;
}

.social-media {
  display: flex;
  margin-top: 5px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-account {
  border-radius: 50%;
  padding: 10px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #33333375;
  aspect-ratio: 1;
}

.social-account i {
  font-size: 18px;
}

.about-me {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.about-me p {
  max-width: 75vw;
}

.container-about-me {
  display: flex;
  max-width: 40vw;
  padding: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1380px) {
  .container-about-me {
    max-width: 70vw;
  }

  .about-me p {
    max-width: 90vw;
  }
}

@media (max-width: 675px) {
  .container-about-me {
    flex-direction: column;
    max-width: 90vw;
  }

  .about-me {
    align-items: center;
  }

  .about-me h1 {
    text-align: center !important;
  }

  .social-container {
    justify-content: center !important;
  }
}

.about-me h1,
p {
  text-align: start;
}

.contact {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.social-container {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  justify-content: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 50px 20px;
  background-color: var(--secondary-element);
  border-radius: 15px 15px 0 0;
}

footer .social-account {
  background-color: transparent;
}

.footer-nav {
  max-width: 400px;
  min-width: 250px;
  gap: 40px;
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.footer-nav li a {
  font-size: 18px;
  color: #999;
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
  /* başta gizle */
}

.see-all {
  position: absolute;
  top: 17px;
  height: 40px;
  right: 5%;
}

.works-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 25px;
  position: relative;
}

.works-header h1 {
  width: 100%;
  text-align: center;
}

.source-code {
  margin-top: 15px;
  align-self: flex-start;
  height: 40px;
  transition: box-shadow 0.3s;
}

.source-code:hover {
  box-shadow: 0 0 10px var(--interaction-element);
}
