
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
  transition: background 0.6s ease, color 0.6s ease;
}

header {
  background: #0d6efd;
  color: white;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.6s ease;
}

header h1 {
  font-size: 1.5rem;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.6s ease;
}

nav a:hover {
  text-decoration: underline;
}

/* ----------------------
   dark mod ayarlama burada
------------------------*/
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-right: 10px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #f39c12;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.slider.round {
  border-radius: 34px;
}

.hero {
  text-align: center;
  padding: 80px 10%;
  background: linear-gradient(to right, #0d6efd, #00c6ff);
  color: white;
  transition: background 0.6s ease;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: #f39c12;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #d35400;
}

/* 
   sectionlar burada
*/
.section {
  padding: 60px 10%;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d6efd;
  transition: color 0.6s ease;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.6s ease, box-shadow 0.6s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.about {
  text-align: center;
}

.socials a {
  margin: 0 10px;
  color: #0d6efd;
  font-size: 1.5rem;
  transition: 0.3s;
}

.socials a:hover {
  color: #d35400;
}


footer {
  text-align: center;
  padding: 20px;
  background: #0d6efd;
  color: white;
  margin-top: 40px;
  transition: background 0.6s ease;
}

/*
   dark mode 
*/
body.dark {
  background: #121212;
  color: #f5f5f5;
}

body.dark header {
  background: #1e1e1e;
}

body.dark nav a {
  color: #f5f5f5;
}

body.dark .hero {
  background: linear-gradient(to right, #1e1e1e, #333);
}

body.dark footer {
  background: #1e1e1e;
}

body.dark .card {
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

/* 
   yukarı cıkısbutonu
-*/
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

#scrollTopBtn:hover {
  background-color: #f39c12;
  transform: translateY(-3px);
}
/* 
   yukarı cıkıs ve dark mode
*/
body.dark #scrollTopBtn {
  background-color: #f39c12; 
  color: #121212; 
}

body.dark #scrollTopBtn:hover {
  background-color: #e67e22; 
}
.tech-stack {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-stack span {
  background: var(--accent-color, #007bff);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
}

.card:hover .tech-stack span {
  background: var(--hover-color, #0056b3);
}

.card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
/* Kod blokları  */
pre {
  white-space: pre-wrap; 
  word-wrap: break-word; 
  background-color: #f5f5f5; 
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto; 
}

/* Kod yazıları */
code {
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}
