/* ===============================
   GENEL AYARLAR
================================*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --accent-color: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.3);
  --bg-dark: #0a0a0a;
  --bg-card: #111;
  --border-color: #222;
  --text-primary: #f2f2f2;
  --text-secondary: #aaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0d0d 50%, #0a0a0a 100%);
  color: var(--text-primary);
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-color);
}

/* ===============================
   SIDEBAR
================================*/
.sidebar {
  width: 300px;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar-info {
  text-align: center;
}

.avatar-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.avatar-box img:hover {
  border-color: #fff;
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.info-content {
  margin-top: 1rem;
}

.info-content .name {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-content .title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 400;
}

.info_more-btn {
  background: none;
  border: none;
  color: #ccc;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.info_more-btn:hover {
  color: #fff;
  background: rgba(79, 70, 229, 0.1);
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
  margin: 1.5rem 0;
}

.contacts-list {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.contact-item:hover {
  background: rgba(79, 70, 229, 0.1);
}

.icon-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border-radius: 10px;
  padding: 0.6rem;
  margin-right: 0.8rem;
  transition: all 0.3s;
}

.contact-item:hover .icon-box {
  background: linear-gradient(135deg, var(--accent-color) 0%, #6366f1 100%);
  transform: scale(1.1);
}

.contact-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-info .contact-link {
  font-size: 0.9rem;
  color: #fff;
}

.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  background: rgba(79, 70, 229, 0.1);
  padding: 0.6rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.social-link ion-icon {
  font-size: 1.4rem;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.social-link:hover ion-icon {
  color: #fff;
  transform: scale(1.1);
}

/* ===============================
   ANA İÇERİK
================================*/
main {
  margin-left: 300px;
  padding: 2rem;
  width: calc(100% - 300px);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.navbar-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-link {
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-link:hover,
.navbar-link.active {
  color: #fff;
  background: rgba(79, 70, 229, 0.1);
}

/* Başlıklar */
.article-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
  border-image-slice: 1;
  padding-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Paragraflar */
.about-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #ddd;
  font-size: 1.05rem;
}

/* ===============================
   PROJELER
================================*/
.projects-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-item {
  background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.project-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.project-img img {
  width: 100%;
  display: block;
  filter: grayscale(30%);
  transition: all 0.4s;
}

.project-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.project-title {
  font-size: 1.2rem;
  margin: 0.8rem 1rem 0.2rem;
  font-weight: 600;
  color: #fff;
}

.project-category {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin: 0 1rem 1rem;
  font-weight: 500;
}

/* ===============================
   İLETİŞİM
================================*/
.contact-form {
  text-align: center;
}

.contact-form p {
  margin-bottom: 1rem;
  color: #ccc;
}

.btn {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background-color: #ccc;
  color: #000;
}

/* ===============================
   SİDEBAR AÇILIR PANEL ANİMASYONU
================================*/
.sidebar-info_more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.sidebar-info_more.active {
  max-height: 500px;
  opacity: 1;
}

/* Buton aktifken ikon dönüşü */
.info_more-btn ion-icon {
  transition: transform 0.3s ease;
}

.info_more-btn.active ion-icon {
  transform: rotate(180deg);
}

/* ===============================
   MOBİL UYUMLULUK
================================*/

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .sidebar {
    width: 260px;
  }

  main {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
}

/* Mobil (≤768px) */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  /* --- Sidebar --- */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  }

  /* Sidebar bilgi satırı yatay düzene geç */
  .sidebar-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 0.8rem;
  }

  .info-content {
    margin-top: 0;
    flex: 1;
  }

  .info-content .name {
    font-size: 1.15rem;
  }

  .info-content .title {
    font-size: 0.8rem;
  }

  /* Daha büyük dokunma hedefi */
  .info_more-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* --- Ana içerik --- */
  main {
    margin-left: 0;
    width: 100%;
    padding: 1.2rem 1rem;
  }

  /* --- Navbar --- */
  .navbar {
    margin-bottom: 1.5rem;
  }

  .navbar-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 15px;
  }

  .navbar-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    letter-spacing: 0.3px;
  }

  /* --- Başlıklar --- */
  .article-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  /* --- Projeler --- */
  .projects-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* --- İletişim --- */
  .contact-form p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
  }

  /* --- Sosyal linkler --- */
  .social-list {
    gap: 0.8rem;
  }
}

/* Küçük telefon (≤400px) */
@media (max-width: 400px) {
  .info-content .name {
    font-size: 1rem;
  }

  .navbar-list {
    gap: 0.3rem;
    padding: 0.5rem 0.7rem;
  }

  .navbar-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
  }

  .article-title {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .project-title {
    font-size: 1.05rem;
  }
}