/* ===========================
   Genel Stil Ayarları
   =========================== */
body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: linear-gradient(to bottom, #1a1c1e, #0f1115);
  color: #dce2f0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================
     Header
     =========================== */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 150px;
  background-color: #16181d;
  border-bottom: 2px solid #2fb6e1;
}

#logo {
  width: 190px;
  height: auto;
  max-width: 100%;
}

/* ===========================
     Hakkımda Toggle
     =========================== */
.aboutme-toggle {
  display: flex;
  justify-content: center;
  cursor: pointer;
  background-color: #1d1f24;
  padding: 8px 0;
}

.chevron {
  font-size: 24px;
  color: #dce2f0;
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
}

.aboutme {
  background-color: #1d1f24;
  font-family: "Inter", sans-serif;
  padding: 40px 100px;
  text-align: center;
  color: #dce2f0;
  font-size: 18px;
  font-weight: 400;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.aboutme ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 90px;
  padding: 0;
  margin: 20px 0 0 0;
  list-style: none;
}

.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.about-link {
  list-style-type: none;
  margin: 0;
}

.aboutme-logo {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.about-link a {
  color: #dce2f0;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s;
}

.about-link a:hover {
  color: #2fb6e1;
}

/* ===========================
     Ana Düzen
     =========================== */
main {
  display: flex;
  align-items: flex-start;
  padding: 40px 20px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===========================
     Sidebar
     =========================== */
aside {
  position: sticky;
  top: 20px;
  width: 200px;
  min-width: 200px;
  background-color: #191b20;
  padding: 30px 20px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  border-right: 1px solid #2a2d33;
  border-radius: 12px;
  margin-right: 30px;
  height: fit-content;
}

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

aside li {
  margin-bottom: 20px;
}

aside a {
  display: block;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: #ff4444;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

aside a:hover {
  background-color: #2fb6e133;
  color: #ffffff;
  border-left-color: #2fb6e1;
  transform: translateX(5px);
}

/* ===========================
     İçerik Alanı
     =========================== */
article {
  flex: 1;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

article img {
  width: clamp(300px, 80%, 700px);
  height: auto;
  border-radius: 12px;
  margin: 20px 0 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
p img {
  display: block;
  margin: 20px auto;
  width: clamp(300px, 80%, 700px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

article h1:first-of-type {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #2fb6e1;
  margin-bottom: 30px;
}

article h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
  color: #2fb6e1;
}

article h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 15px;
  color: #2fb6e1;
}

article p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  text-indent: 2em;
}

article section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

/* ===========================
     İçerik Başlıkları ve Puan
     =========================== */
section h1 {
  color: #2fb6e1;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2fb6e1;
}

.puan {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  color: #ff4444;
  margin: 30px auto;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
  display: block;
  width: 100%;
  position: relative;
  border-bottom: 0;
}

/* ===========================
     Footer
     =========================== */
footer {
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  color: #a0a5b9;
  font-size: 14px;
  font-weight: 300;
  font-family: "Roboto", sans-serif;
  text-align: center;
  margin-top: 60px;
}

/* ===========================
     Animasyonlar
     =========================== */
@keyframes fadeInSub {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
         Responsive: Tablet
         =========================== */
@media (max-width: 1024px) {
  main {
    padding: 30px 15px;
  }

  aside {
    width: 180px;
    min-width: 180px;
    margin-right: 25px;
    padding: 25px 15px;
  }

  aside a {
    font-size: 1rem;
    padding: 8px 12px;
  }

  article {
    padding: 0 15px;
  }

  .aboutme {
    padding: 30px 50px;
  }

  .aboutme ul {
    gap: 40px;
  }
}

/* ===========================
         Responsive: Mobil Büyük
         =========================== */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    padding: 20px 10px;
  }

  aside {
    position: static;
    width: 100%;
    min-width: auto;
    margin: 0 0 30px 0;
    padding: 20px;
    border-right: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  aside ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  aside li {
    margin: 0;
  }

  aside a {
    font-size: 0.9rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

  article {
    margin: 0;
    padding: 0 10px;
  }

  article img {
    width: 90%;
  }

  .aboutme {
    padding: 25px 30px;
    font-size: 16px;
  }

  .aboutme ul {
    gap: 30px;
  }

  header {
    height: 120px;
    padding: 15px;
  }

  #logo {
    width: 150px;
  }
}

/* ===========================
         Responsive: Mobil Orta
         =========================== */
@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 10px;
  }

  #logo {
    width: 120px;
  }

  main {
    padding: 15px 8px;
  }

  aside {
    padding: 15px;
    margin-bottom: 20px;
  }

  aside ul {
    gap: 8px;
  }

  aside a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  article {
    padding: 0 8px;
  }

  article img {
    width: 95%;
    margin: 15px 0 20px;
  }

  article h1:first-of-type {
    margin-bottom: 20px;
  }

  article p {
    text-indent: 1.5em;
    margin-bottom: 20px;
  }

  article section {
    margin-bottom: 30px;
  }

  .aboutme {
    padding: 20px;
    font-size: 15px;
  }

  .aboutme ul {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .about-link a {
    font-size: 18px;
  }

  footer {
    font-size: 12px;
    padding: 15px;
    line-height: 1.4;
  }
}

/* ===========================
         Responsive: Mobil Küçük
         =========================== */
@media (max-width: 480px) {
  header {
    height: 80px;
    padding: 8px;
  }

  #logo {
    width: 100px;
  }

  .aboutme {
    padding: 15px;
    font-size: 14px;
  }

  .aboutme ul {
    gap: 15px;
  }

  .about-link a {
    font-size: 16px;
  }

  .aboutme-logo {
    width: 20px;
    height: 20px;
  }

  main {
    padding: 10px 5px;
  }

  aside {
    padding: 12px;
    margin-bottom: 15px;
  }

  aside ul {
    gap: 6px;
  }

  aside a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  article {
    padding: 0 5px;
  }

  article img {
    width: 100%;
    margin: 10px 0 15px;
  }

  article p {
    text-indent: 1em;
    margin-bottom: 18px;
  }

  article section {
    margin-bottom: 25px;
  }

  footer {
    font-size: 11px;
    padding: 12px 8px;
  }

  .chevron {
    font-size: 20px;
  }
}

/* ===========================
         Responsive: Mobil Çok Küçük
         =========================== */
@media (max-width: 360px) {
  header {
    height: 70px;
    padding: 5px;
  }

  #logo {
    width: 80px;
  }

  .aboutme {
    padding: 10px;
    font-size: 13px;
  }

  main {
    padding: 8px 3px;
  }

  aside {
    padding: 10px;
    margin-bottom: 12px;
  }

  aside ul {
    gap: 4px;
  }

  aside a {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  article {
    padding: 0 3px;
  }

  article img {
    margin: 8px 0 12px;
  }

  article p {
    text-indent: 0.8em;
    margin-bottom: 15px;
  }

  article section {
    margin-bottom: 20px;
  }

  .puan {
    margin: 20px 0;
  }
}
