* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-gradient: linear-gradient(135deg,
      #111 0%,
      #2a2a2a 60%,
      #111 100%);
  --nav-h: 90px;
  --tri-h: 480px;
}
#home, #about, #skills, #contact{
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #e5e7eb;
  color: #1a1a1a;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 30px;
}

.site-header {
  position: relative;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 9999;
  background: var(--header-gradient);
  background-attachment: fixed;
  background-position: 0 0;
  background-size: 100% calc(var(--nav-h) + var(--tri-h));
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Herr Von Muellerhoff', cursive;
  font-size: 48px;
  font-weight: normal;
  letter-spacing: 1px;
  color: #fff;
  margin-top: 15px;
  margin-left: 70px;
  text-decoration: none;
}

.nav-links {
  margin-right: 70px;
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  position: relative;
  transition: transform .25s ease, color .25s ease;
}

.nav-links a:hover {
  transform: translateY(-4px) scale(1.05);
  color: #00bcd4;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00bcd4;
  transition: width .25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-right: 30px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 860px) {

  .logo {
    margin-left: 18px;
    font-size: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: 50vw;
    height: calc(100vh - var(--nav-h));
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 22px 0;
    overflow-y: auto;

    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
  }
}

.header-shape {
  display: block;
  margin-top: var(--nav-h);
  height: var(--tri-h);
  background: var(--header-gradient);
  background-attachment: fixed;
  background-position: 0 0;
  background-size: 100% calc(var(--nav-h) + var(--tri-h));

  -webkit-clip-path: polygon(0 0,
      100% 0,
      100% 89%,
      50% 74%,
      0 89%);
  clip-path: polygon(0 0,
      100% 0,
      100% 89%,
      50% 74%,
      0 89%);
}

.header-divider {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--nav-h) - 4px);
  width: 90%;
  height: 1.5px;
  z-index: 10000;
  pointer-events: none;

  background: linear-gradient(to right,
      transparent 0%,
      rgb(255, 255, 255, 0.7),
      transparent 100%);

  -webkit-clip-path: polygon(0 50%, 6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%);
  clip-path: polygon(0 50%, 6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%);

  filter: blur(0.2px);
  opacity: 0.9;
}

header .header-hero {
  position: absolute;
  height: calc(var(--tri-h) - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.header-hero {
  position: absolute;
  top: calc(var(--nav-h) + -20px);
  z-index: 5;
  width: 100%;
  color: #fff;
}

.header-hero h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.35);
  font-weight: 700;
  color: #f5f5f5;
}

.header-hero p {
  font-size: 25px;
  opacity: 0.85;
  color: #e0e0e0;
}

.hero-divider {
  margin: 1px auto 12px;
  width: 400px;
  height: 3px;

  background: linear-gradient(to right,
      transparent 0%,
      #00e1ff,
      transparent 100%);

  -webkit-clip-path: polygon(0 50%,
      7% 0,
      93% 0,
      100% 50%,
      93% 100%,
      7% 100%);
  clip-path: polygon(0 50%,
      7% 0,
      93% 0,
      100% 50%,
      93% 100%,
      7% 100%);

  opacity: 0.85;
}

.about-preview-inner {
  margin-top: 105px;
  text-align: center;
  font-size: 18px;
}

.about-divider {
  width: 170px;
  height: 5px;
  background-color: #000;
  margin-top: 2px;
  margin-left: auto;
  margin-right: auto;
}

.who_am_ı {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 30px;
}

.who_am_ı h2 {
  font-size: 26px;
  width: 98%;
}

.who-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 187px;
  max-width: 1300px;
  margin: 50px auto 0 auto;
}

.who-logo {
  will-change: transform;
}

.who-logo img {
  width: 300px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.text-box {
  max-width: 650px;
}

.who-text p {
  font-size: 17px;
  line-height: 1.6;
  color: #424242;
  text-align: left;
  margin-bottom: 20px;
}

.who-text .intro {
  text-indent: 32px;
}

@media (max-width: 900px) {
  .who-div {
    flex-direction: column;
    text-align: center;
  }

  .who-text p {
    text-align: center;
  }
}

.skills-section {
  text-align: center;
  font-size: 18px;
  margin-top: 180px;
}

.skills-divider {
  width: 100px;
  height: 5px;
  background-color: #000;
  margin: 2px auto 5px auto;
}

.skills-genel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 130px;
  flex-wrap: wrap;
}

.skills-container {
  width: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-top: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(0) scale(1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.skills-container:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-item {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 200px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.skill-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2);
}
 

.img-icon {
  width: 64px;
  height: 64px;
}

.icon-yazi {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.contact-section {
  margin-top: 200px;
  text-align: center;
  font-size: 18px;
}

.contact-divider {
  width: 195px;
  height: 5px;
  background-color: #000;
  margin: 2px auto 12px auto;
}

.contact-container {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-text {
  max-width: 500px;
  text-align: left;
}

.contact-text h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 17px;
  line-height: 1.6;
  color: #424242;
}

.form-box {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 400px;
  height: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(0, 153, 255, 0.35);
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #00bcd4;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0097a7;
}

.contact-link {
  margin-top: 50px;
  align-self: center;
  justify-content: center;
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease-in-out;
}

.contact-icon:hover {
  transform: scale(1.1);
}

.site-footer {
  text-align: center;
  padding: 20px 0;
  background-color: #202020;
  color: #777;
  margin-top: 40px;
}

.site-footer .footer-logo-text {
  font-family: 'Herr Von Muellerhoff', cursive;
  width: 100%;
  font-size: 48px;
  color: #fff;
  margin-bottom: 8px;
}

.reveal{
  opacity: 1;
  translate: 0 0;
  filter: none;
}

html.js .reveal {
  opacity: 0;
  translate: 0 28px;
  filter: brightness(0.75);
  transition-property: opacity, translate, filter;
  transition-duration: 0.38s, 0.38s, 0.38s;
  transition-timing-function: ease, ease, ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms);

  will-change: opacity, translate, filter;
}


html.js .reveal.is-visible{
  opacity: 1;
  translate: 0 0;
  filter: brightness(1);
}


html.js .contact-container.reveal,
html.js .contact-link.reveal,
html.js .site-footer.reveal{
  transition-duration: 0.26s;
}


@media (prefers-reduced-motion: reduce){
  .reveal,
  html.js .reveal,
  html.js .reveal.is-visible{
    transition: none !important;
    transition-delay: 0ms !important;
    opacity: 1 !important;
    translate: 0 0 !important;
    filter: none !important;
  }
}

.header-shape {
  will-change: opacity, translate, filter;
  animation: headerShapeIn 0.60s ease-out both;
  animation-delay: 80ms;

}

@keyframes headerShapeIn {
  from {
    opacity: 0;
    translate: 0 40px;
    filter: brightness(0.65);
  }

  to {
    opacity: 1;
    translate: 0 0;
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-shape {
    animation: none;
    opacity: 1;
    translate: 0 0;
    filter: none;
  }
}
html.js .skill-item.reveal{
  transition:
    opacity 0.38s ease var(--d, 0ms),
    translate 0.38s ease var(--d, 0ms),
    filter 0.38s ease var(--d, 0ms),
    transform 0.25s ease 0ms,
    box-shadow 0.25s ease 0ms !important;

  transition-delay:
    var(--d, 0ms),
    var(--d, 0ms),
    var(--d, 0ms),
    0ms,
    0ms !important;
}
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 25px;
  box-sizing: border-box;
  opacity: 0.75;
}
