/* Genel sayfa ayarları */
body {
  background-color: #151b30;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 30px;
}

/* Başlıklar */
h1 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

/* Navigasyon çubuğu */
nav {
  margin: 20px 0;
  text-align: center;
}

/* Menü bağlantılarını buton gibi yap */
nav a {
  text-decoration: none;
  color: #242a47;
  background-color: rgb(234, 238, 251);
  padding: 12px 20px;
  margin: 0 8px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
}

/* Üzerine gelince rengi değişsin */
nav a:hover {
  background-color: #aac4ec;
  text-align: center;
}

/* Aktif olan sayfa bağlantısı (tıklanamaz) */
nav a.active {
  background-color: #aac4ec;
  color: 172232;
  pointer-events: none;
  cursor: default;
  text-align: center;
}

.subtitle {
  font-size: 2rem;         
  font-style: italic;      
  color: #b0b8c4;          
  margin-top: -0.5rem;     
  margin-bottom: 1.2rem;   
  letter-spacing: 0.5px;   
  text-align: left;    
}

.subtitle2 {
  text-align: left;
  font-weight: bold;    
  background-color: #93C5FD;  
  color: #ffffff;             
  padding: 0.25rem 0.6rem;   
  border-radius: 6px;        
  display: inline-block;      
  margin: 1.5rem auto 0.5rem; 
  font-size: 0.9rem;
}

/* Liste stili */
ul {
  list-style-type: disc;        
  list-style-position: inside; 
  margin: 0.4rem;
  padding: 0.4rem;
}


li {
  font-size: 18px;
  color: #becfe1;
  margin: 4px 0;
}

.subtitle {
  font-size: 14px;
  color: #e6ebf1;
  margin-top: -6px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.welcome-text {
  font-size: 24px;
  font-weight: bold;
  color: #cad7f4; 
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e1323;
  color: #fff;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  color: #000;
}

.code-box {
  background-color: #1e1e1e;
  color: #dcdcdc;
  padding: 10px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  overflow-x: auto;
  white-space: pre; 
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  text-align: left;
  tab-size: 4;
  line-height: 1.4;
}

.code-box pre,
.code-box code {
  display: block;
  margin: 0;
  padding: 0;
  white-space: pre;  
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 2em 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  text-align: left;
}

.project-list li a {
  display: block;
  padding: 0.5em 1em;
  margin: 0.4em auto;
  width: fit-content;
  color: #d078ff !important; 
  background-color: transparent;
  border-left: 4px solid #cccccc;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

/* Hover effect - pastel orange */
.project-list li a:hover,
.project-list li a:focus {
  color: #f78c6b;
  border-left-color: #f78c6b;
  background-color: rgba(247, 140, 107, 0.1);
}

/* Prevent "stuck" look */
.project-list li a:active {
  transform: translateX(2px);
  background-color: #2e2e2e;
}

/* ✅ Force visited links to look exactly like normal */
.project-list li a:visited {
  color: #d078ff !important;
}

.project-list li a:focus {
  outline: none;
}

.main-content {
  margin-left: 240px;
  padding: 20px;
}

.course-link {
  color: #d078ff;   /* pick your color */
  display: block;   /* makes indent cleaner */
  margin-left: 2em; /* acts like a "tab" */
  text-decoration: none; /* remove underline if you want */
}

.course-link:hover {
  color: #f78c6b; /* hover color */
}
