/* Google Fonts - Poppins (KULLANILAN FONT İLE GÜNCELLENDİ) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    background-color: #161a3f;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: grid;
    place-items: center;
}

.social-container {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.social-buttons {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 20px;
  border-radius: 10px;
}

.social-buttons a,
.social-buttons a:hover,
.social-buttons a:focus,
.social-buttons a:active {
  text-decoration: none;
}

.social-buttons .social-icon {
  box-sizing: border-box;
  -moz-border-radius: 138px;
  -webkit-border-radius: 138px;
  border-radius: 138px;
  border: 5px solid;
  text-align: center;
  width: 50px;
  height: 50px;
  display: inline-block;
  line-height: 1px;
  padding-top: 11px;
  transition: all 0.5s;
}

.social-buttons .social-icon:hover {
  transform: rotate(360deg) scale(1.3);
}

.social-buttons .social-icon.facebook {
  font-size: 22px;
  padding-top: 9px;
  border-color: #3b5998;
  background-color: #3b5998;
  color: #ffffff;
}

.social-buttons .social-icon.facebook:hover {
  background-color: #ffffff;
  color: #3b5998;
}

.social-buttons .social-icon.linkedin {
  font-size: 24px;
  padding-top: 8px;
  padding-left: 1px;
  background-color: #0976b4;
  color: #ffffff;
  border-color: #0976b4;
}

.social-buttons .social-icon.linkedin:hover {
  background-color: #ffffff;
  color: #0976b4;
}

.social-buttons .social-icon.pinterest {
  font-size: 22px;
  padding-top: 9px;
  background-color: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.social-buttons .social-icon.pinterest:hover {
  background-color: #ffffff;
  color: #25D366;
}

.social-buttons .social-icon.github {
  font-size: 22px;
  padding-top: 9px;
  background-color: #4183c4;
  color: #ffffff;
  border-color: #4183c4;
}

.social-buttons .social-icon.github:hover {
  background-color: #ffffff;
  color: #4183c4;
}

.social-buttons .social-icon.youtube {
  font-size: 22px;
  padding-top: 9px;
  padding-left: 0px;
  background-color: #bb0000;
  color: #ffffff;
  border-color: #bb0000;
}

.social-buttons .social-icon.youtube:hover {
  background-color: #ffffff;
  color: #bb0000;
}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container-sm, .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-md, .container-sm, .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px;
    }
}

.head__section img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    padding: 10px 20px;
    border-radius: 0;
}

.head__section p {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5em;
    color: rgb(255, 255, 255);
}

.social__links {
    margin-bottom: 50px;
}

.social__links ul {
    display: grid;
    gap: 1rem;
}

.social__links ul li {
    width: 100%;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    border-radius: 5px;
    transform-style: preserve-3d;
    perspective: 500px;
    box-shadow: 0 0 0.8rem rgba(255, 255, 255, .12);
}

.js-tilt-glare {
    border-radius: 5px;
}

.social__links ul li a {
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
    color: #ffff;
    font-size: 1rem;
}

.social__links ul li a i {
    text-align: center;
    line-height: 4rem;
    padding: 10px 20px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.4) translateZ(50px);
    transition: 0.25s;
}

.social__links ul li a span {
    line-height: 1.4rem;
}

.social__links ul .instagram:hover {
    background: #37b44b;
}

.social__links ul .youtube:hover {
    background: #FF0000;
}

.social__links ul .github:hover {
    background: #333;
}

/* ================================== */
/* PNG VE MODAL STİLLERİ */
/* ================================== */

.zoom-prompt {
    color: #ffffff;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.zoom-prompt i {
    margin-right: 8px;
}

.image-container {
    width: 100%;
    padding: 20px 0.75rem 0 0.75rem;
    margin: 0 auto;
    max-width: 1140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#myImg {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    border-radius: 8px;
    cursor: zoom-in;
    transition: 0.3s;
}

#myImg:hover {
    opacity: 0.8;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  /* DÜZELTME: Başlangıçta ortalamak için */
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: justify-content 0.1s, align-items 0.1s;
}

/* YENİ VE ÖNEMLİ DÜZELTME: Modal, içindeki görselin ".zoomed" sınıfına sahip olup olmadığını algılar. */
/* Eğer görsel yakınlaştırılmışsa, modal hizalamayı sol üste alarak kaydırmaya olanak tanır. */
.modal:has(.modal-content.zoomed) {
  justify-content: flex-start;
  align-items: flex-start;
}


.modal.show {
  display: flex;
}

.modal-content {
  margin: 0; /* Margin'i sıfırla, hizalama tamamen parent'a ait */
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transition: max-width 0.3s ease-in-out, max-height 0.3s ease-in-out;
  cursor: zoom-in;
}

.modal-content.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

.close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.close:hover,
.close:focus {
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* MOBİL RESPONSIVE AYARLAR */
@media (max-width: 768px) {
  .head__section img {
    max-width: 200px;
    padding: 10px;
  }

  .head__section p {
    font-size: 1.2em;
  }

  .social__links ul li a {
    gap: 20px;
  }

  .social__links ul li a i {
    font-size: 1.5rem;
    line-height: 3rem;
    padding: 8px 15px;
  }

  .zoom-prompt {
    font-size: 0.95em;
    margin-top: 30px;
  }

  .image-container {
    padding: 15px 0.5rem 0 0.5rem;
  }

  #myImg {
    max-width: 100%;
  }

  .modal {
    padding: 15px;
  }

  .modal-content {
    max-width: 90vw;
    max-height: 90vh;
  }

  .close {
    top: 15px;
    right: 20px;
    font-size: 32px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .head__section img {
    max-width: 150px;
    padding: 8px;
  }

  .head__section p {
    font-size: 1em;
    margin: 15px 0;
  }

  .social-buttons {
    gap: 0.5rem;
    padding: 15px;
  }

  .social-buttons .social-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
    padding-top: 10px;
  }

  .social__links ul li a {
    gap: 15px;
    font-size: 0.9rem;
  }

  .social__links ul li a i {
    font-size: 1.3rem;
    line-height: 2.5rem;
    padding: 6px 10px;
  }

  .zoom-prompt {
    font-size: 0.85em;
    margin-top: 25px;
  }

  .image-container {
    padding: 10px 0.5rem 0 0.5rem;
  }

  #myImg {
    max-width: 100%;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

