@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --bg-color: #0d0f1a;
  --sidebar-bg: #1a1d2e;
  --text-color: #f4f4f4;
  --accent-color: #00d9ff; /* Daha canlı bir renk */
  --card-bg: #1f233a;
  --menu-hover: #00ffc8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2260%22%20height%3D%2260%22%20viewBox%3D%220%200%2060%2060%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Crect%20width%3D%2260%22%20height%3D%2260%22%20fill%3D%22%231f233a%22/%3E%3Cpath%20d%3D%22M0%2015H60%22%20stroke%3D%22%2300d9ff%22%20stroke-opacity%3D%220.2%22/%3E%3Cpath%20d%3D%22M0%2045H60%22%20stroke%3D%22%2300d9ff%22%20stroke-opacity%3D%220.2%22/%3E%3C/svg%3E");
}

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  padding: 30px 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  animation: slideIn 0.8s ease-in-out;
}

.sidebar h3 {
  color: var(--accent-color);
  font-size: 22px; /* Font boyutu artırıldı */
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.sidebar a {
  display: block;
  padding: 10px;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 10px;
  border-left: 4px solid transparent;
  transition: 0.3s;
  font-size: 16px; /* Font boyutu artırıldı */
}

.sidebar a:hover {
  background-color: #00d9ff22;
  border-left: 4px solid var(--accent-color);
  color: var(--accent-color);
  transform: translateX(5px);
}

.content {
  margin-left: 280px;
  padding: 50px 40px;
  animation: fadeIn 0.8s ease-in-out;
  width: calc(100% - 280px);
  max-width: 100%;
  overflow-x: hidden;
  flex: 1;
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.menu-bar a {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.menu-bar a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(120deg, transparent, var(--accent-color), transparent);
  transition: all 0.5s;
}

.menu-bar a:hover::after {
  left: 100%;
}

.menu-bar a:hover {
  background-color: var(--menu-hover);
  color: #000;
  transform: scale(1.05);
}

.box {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease; /* Animasyon */
}

.box:hover {
  transform: scale(1.03); /* Kutulara büyüme efekti */
}

.box h2 {
  color: var(--accent-color);
  font-size: 26px; /* Font boyutu artırıldı */
  margin-bottom: 15px;
}

ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--accent-color);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  width: 100%;
  position: relative;
}

.footer a {
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

.footer a img {
  vertical-align: middle;
  margin: 0 5px;
  transition: transform 0.3s ease;
}

.footer a:hover img {
  transform: rotate(15deg) scale(1.2);
}

.footer marquee {
  color: var(--accent-color);
  margin-top: 10px;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
  background-color: var(--accent-color);
  padding: 10px 15px;
  border-radius: 8px;
  color: black;
  font-weight: bold;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 220px;
    background: var(--sidebar-bg);
    padding: 30px 20px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }

  .sidebar.active {
    display: block;
    left: 0;
  }

  .content {
    margin-left: 0;
    padding: 20px;
    width: 100%;
  }

  .menu-bar {
    flex-direction: column;
    align-items: center;
  }

  .menu-bar a {
    width: 90%;
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: block;
  }

  footer {
    text-align: center;
    font-size: 14px;
  }
}

img[loading="lazy"],
video[loading="lazy"] {
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease-in-out;
}

img[loading="lazy"].loaded,
video[loading="lazy"].loaded {
  opacity: 1;
  transform: scale(1);
}

video, img {
  max-width: 100%;
  height: auto;
  display: block;
}
