:root {
  --primary: #4f8cff;
  --secondary: #ffb347;
  --background: #f4f6fb;
  --text: #222;
  --muted-text: #667085;
  --card-bg: #fff;
  --card-shadow: 0 6px 20px rgba(79, 140, 255, 0.10);
  --border: rgba(20, 20, 20, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Orbitron:wght@700;900&display=swap');

[data-theme="dark"] {
  --primary: #4f8cff;
  --secondary: #ffb347;
  --background: #121622;
  --text: #f4f6fb;
  --muted-text: #a0a8c0;
  --card-bg: #1b2032;
  --card-shadow: 0 8px 24px rgba(79, 140, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

/* Header */
header {
  background: linear-gradient(90deg, var(--primary), #7ab8f2);
  color: #fff;
  padding: 1rem 2rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.logo-animated {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
  display: inline-flex;
  gap: 2px;
  font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.logo-animated span {
  display: inline-block;
  transform: translateY(12px) scale(0.98) rotate(-2deg);
  opacity: 0;
  animation: logoRise 650ms cubic-bezier(.2,.8,.2,1) forwards, 
             logoFloat 3s ease-in-out infinite,
             logoGlow 2s ease-in-out infinite alternate;
}
.logo-animated span:nth-child(1) { animation-delay: 0ms, 0ms, 0ms; }
.logo-animated span:nth-child(2) { animation-delay: 40ms, 0.2s, 0.2s; }
.logo-animated span:nth-child(3) { animation-delay: 80ms, 0.4s, 0.4s; }
.logo-animated span:nth-child(4) { animation-delay: 120ms, 0.6s, 0.6s; }
.logo-animated span:nth-child(5) { animation-delay: 160ms, 0.8s, 0.8s; }
.logo-animated span:nth-child(6) { animation-delay: 200ms, 1s, 1s; }
.logo-animated span:nth-child(7) { animation-delay: 240ms, 1.2s, 1.2s; }
.logo-animated span:nth-child(8) { animation-delay: 280ms, 1.4s, 1.4s; }
.logo-animated span:nth-child(9) { animation-delay: 320ms, 1.6s, 1.6s; }
.logo-animated span:nth-child(10) { animation-delay: 360ms, 1.8s, 1.8s; }
.logo-animated span:nth-child(11) { animation-delay: 400ms, 2s, 2s; }
.logo-animated span:nth-child(12) { animation-delay: 440ms, 2.2s, 2.2s; }
.logo-animated span:nth-child(13) { animation-delay: 480ms, 2.4s, 2.4s; }
.page-title {
  margin: 0.25rem auto 0.25rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.35rem;
}

@keyframes logoRise {
  to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-3px) scale(1.05) rotate(1deg); }
}

@keyframes logoGlow {
  0% { 
    text-shadow: 0 0 5px rgba(255,255,255,0.5), 
                 0 0 10px rgba(255,255,255,0.3),
                 0 0 15px rgba(255,255,255,0.2);
  }
  100% { 
    text-shadow: 0 0 8px rgba(255,255,255,0.8), 
                 0 0 15px rgba(255,255,255,0.6),
                 0 0 20px rgba(255,255,255,0.4),
                 0 0 25px rgba(255,255,255,0.2);
  }
}





#dark-mode-toggle,
#language-toggle {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  margin: 0 0.25rem;
}
#dark-mode-toggle:hover,
#language-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,0.22); }

/* Place theme toggle to the right while header content is centered */
.header-top #dark-mode-toggle {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Place language toggle next to theme toggle */
.header-top #language-toggle {
  position: absolute;
  right: 5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Nav */
nav { margin-top: 0.75rem; }
.main-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.main-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  position: relative;
}
.main-menu a:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.main-menu a[aria-current="page"] { background: rgba(0,0,0,0.22); }

/* Hide contact link globally */
.main-menu a[href="iletisim.html"] { display: none !important; }

/* Nav underline animation */
.main-menu a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.main-menu a:hover::after,
.main-menu a:focus-visible::after,
.main-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Nav focus style */
.main-menu a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}




/* Search */
.search-container {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  justify-content: center;
}
.search-container input {
  width: 260px;
  max-width: 70vw;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
}
.search-container input::placeholder { color: rgba(255,255,255,0.85); }
.search-container button {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(520px, 90vw);
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: none;
  overflow: hidden;
  z-index: 60;
}
.search-result a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: inherit;
  text-decoration: none;
}
.search-result a:hover { background: rgba(79, 140, 255, 0.08); }

/* Notification */
.notification {
  margin: 1rem auto 0;
  max-width: 1200px;
  background: linear-gradient(90deg, #e9f2ff, #fff);
  color: #0b3b8f;
  padding: 0.9rem 1.1rem;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
[data-theme="dark"] .notification {
  background: linear-gradient(90deg, rgba(79,140,255,0.18), rgba(79,140,255,0.08));
  color: #d9e6ff;
  border-color: rgba(79,140,255,0.35);
}
.close-notification {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 0.75rem auto 0;
  padding: 0 1rem;
  color: var(--muted-text);
  font-size: 0.95rem;
  text-align: center;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Layout */
main.container {
  max-width: 1200px;
  margin: 1.25rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}

/* Projeler sayfası için özel container */
main.container.full-width {
  max-width: 100%;
  padding: 0 2rem;
  display: block;
  grid-template-columns: 1fr;
}

.content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.25rem;
}

/* Projeler sayfası için özel content */
.content.full-width-content {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Improved spacing for content elements */
.content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  position: relative;
  padding: 1.5rem 0;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(79, 140, 255, 0.1);
}

.content h2:first-child {
  margin-top: 0;
}

.content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.3);
}

.content h3 {
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 5px solid var(--primary);
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.08), transparent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  position: relative;
}

.content h3::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 9px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
  opacity: 0.7;
}

/* Info card styling */
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 140, 255, 0.15);
}

.info-card h4 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 0.8rem 0;
  border-bottom: 2px solid rgba(79, 140, 255, 0.2);
  position: relative;
}

.info-card h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.info-card p {
  margin: 0.8rem 0;
  line-height: 1.6;
  color: var(--text);
}

.info-card ul {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}

.info-card li {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: var(--text);
}

/* Process steps styling */
.process-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 140, 255, 0.15);
}

.step h4 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(79, 140, 255, 0.2);
  position: relative;
}

.step h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.step p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content ul, .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.content li:last-child {
  margin-bottom: 0;
}

/* Special styling for robotics page content */
.content strong {
  color: var(--primary);
  font-weight: 600;
}

.content code {
  background: rgba(79, 140, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid rgba(79, 140, 255, 0.2);
}

.content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.content a:hover {
  border-bottom-color: var(--primary);
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1rem 1.1rem;
  position: sticky;
  top: 92px;
  height: fit-content;
}

@media (max-width: 950px) {
  main.container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Quick links */
.quick-links {
  margin: 1rem 0 1.25rem;
  display: flex;
  gap: 0.1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-card {
  display: block;
  background: linear-gradient(180deg, var(--secondary), #ffd38a);
  color: #222;
  text-decoration: none;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 179, 71, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="dark"] .quick-card { color: #181c25; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(255,179,71,0.35); }

/* Lists */
.recent-posts, .faq, .announcements { 
  padding-left: 1.25rem; 
  margin: 1.5rem 0;
}

.recent-posts li + li, .faq li + li, .announcements li + li { 
  margin-top: 0.8rem; 
}

/* FAQ styling */
.faq li {
  background: rgba(79, 140, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
}

.faq strong {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Announcements styling */
.announcements li {
  background: rgba(255, 179, 71, 0.08);
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Share buttons */
.share-buttons { 
  margin-top: 1.25rem; 
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.share-buttons h3 { margin: 0 0 0.6rem; }
.share-buttons button {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 0.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.share-buttons button:hover { transform: translateY(-2px); background: rgba(79,140,255,0.08); }

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--card-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 70;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Project detail cards */
.project-detail-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  margin: 0.75rem 0;
}
.toggle-details-btn {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.project-details.open { max-height: 300px; }

/* Code block */
.code-block pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
}
[data-theme="dark"] .code-block pre { background: #0b1222; }

/* Sidebar */
.sidebar h3 { 
  margin-top: 1.5rem; 
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.sidebar h3:first-child {
  margin-top: 0;
}

.sidebar ul { 
  padding-left: 1.1rem; 
  margin-bottom: 1rem;
}

.sidebar li + li { 
  margin-top: 0.5rem; 
}

.sidebar a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.sidebar a:hover {
  color: var(--primary);
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--background);
  margin: 0.6rem 0;
}
.project-card a { color: var(--primary); text-decoration: none; }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted-text);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Home-only centering */
/* Only header title centered; main layout unchanged globally */
header { text-align: center; }
main.container { max-width: 1200px; }

/* Homepage specific center and modern links */
/* Center only homepage content area, not the whole layout */
.home .content { 
  text-align: justify; 
  margin-left: auto; 
  margin-right: auto; 
  max-width: 900px; 
  width: 100%; 
}
.home main.container { 
  grid-template-columns: 1fr; 
  justify-items: center;
}


.home .content p a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  margin: 0 0.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  background-image: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.home .content p a:hover {
  transform: translateY(-2px);
  background: rgba(79,140,255,0.06);
  border-color: rgba(79,140,255,0.35);
}
.home .recent-posts {
  list-style: none;
  padding-left: 0;
}
.home .recent-posts li { margin: 0.35rem 0; }
.home .recent-posts a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  background-image: none;
}
.home .recent-posts a:hover { background: rgba(79,140,255,0.06); }

/* Humanoid Walking Robot */
.humanoid-robot {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 65px;
  animation: robotWalk 15s linear infinite;
}

.robot-body {
  position: relative;
  width: 100%;
  height: 100%;
}

.head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border-radius: 8px;
  border: 1px solid #1a252f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  animation: headBob 1s ease-in-out infinite;
}

.head::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: #95a5a6;
  border-radius: 1px;
}

.eyes {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.eye {
  width: 3px;
  height: 3px;
  background: #3498db;
  border-radius: 50%;
  animation: eyeBlink 3s ease-in-out infinite;
  box-shadow: 0 0 4px #3498db;
}

.eye.left-eye { animation-delay: 0s; }
.eye.right-eye { animation-delay: 0.5s; }

.mouth {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 1px;
  background: #e74c3c;
  border-radius: 1px;
}

.torso {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 22px;
  background: linear-gradient(145deg, #34495e, #2c3e50);
  border-radius: 8px;
  border: 1px solid #1a252f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.torso::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 1px;
  background: #95a5a6;
  border-radius: 0.5px;
}

.chest-light {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #e74c3c;
  border-radius: 50%;
  animation: chestPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px #e74c3c;
}

.arms {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 100%;
}

.arm {
  position: absolute;
  top: 0;
  width: 3px;
  height: 16px;
  background: linear-gradient(145deg, #34495e, #2c3e50);
  border-radius: 2px;
  transform-origin: top center;
}

.arm.left-arm {
  left: -6px;
  animation: leftArmSwing 1s ease-in-out infinite;
}

.arm.right-arm {
  right: -6px;
  animation: rightArmSwing 1s ease-in-out infinite;
}

.upper-arm {
  width: 100%;
  height: 10px;
  background: inherit;
  border-radius: inherit;
}

.lower-arm {
  width: 100%;
  height: 6px;
  background: inherit;
  border-radius: inherit;
  position: absolute;
  bottom: 0;
}

.hand {
  width: 4px;
  height: 4px;
  background: #95a5a6;
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.legs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.leg {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 20px;
  background: linear-gradient(145deg, #34495e, #2c3e50);
  border-radius: 2px;
  transform-origin: top center;
}

.leg.left-leg {
  left: 6px;
  animation: leftLegWalk 1s ease-in-out infinite;
}

.leg.right-leg {
  right: 6px;
  animation: rightLegWalk 1s ease-in-out infinite;
}

.upper-leg {
  width: 100%;
  height: 12px;
  background: inherit;
  border-radius: inherit;
}

.lower-leg {
  width: 100%;
  height: 8px;
  background: inherit;
  border-radius: inherit;
  position: absolute;
  bottom: 0;
}

.foot {
  width: 6px;
  height: 3px;
  background: #7f8c8d;
  border-radius: 2px;
  position: absolute;
  bottom: -1.5px;
  left: 50%;
  transform: translateX(-50%);
}

.robot-shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 25px;
  height: 4px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
  transform: translateX(-50%);
  animation: shadowWalk 1s ease-in-out infinite;
}


/* Humanoid Robot Keyframe Animations */
@keyframes robotWalk {
  0% { transform: translateY(-50%) translateX(0); }
  25% { transform: translateY(-50%) translateX(calc(100vw - 8rem)); }
  50% { transform: translateY(-50%) translateX(calc(100vw - 8rem)); }
  75% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(0); }
}

@keyframes headBob {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-2px); }
}

@keyframes eyeBlink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

@keyframes chestPulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 10px #ff6b6b; }
  50% { transform: translateX(-50%) scale(1.2); box-shadow: 0 0 15px #ff6b6b; }
}

@keyframes leftArmSwing {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

@keyframes rightArmSwing {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes leftLegWalk {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
}

@keyframes rightLegWalk {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes shadowWalk {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scaleX(0.8); opacity: 0.1; }
}



/* Enhanced link styles (content + sidebar) */
.content a:not(.quick-card),
.sidebar a {
  color: var(--primary);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.2s ease, background-size 0.2s ease;
}
.content a:hover:not(.quick-card),
.sidebar a:hover {
  background-size: 100% 2px;
}
.content a:focus-visible:not(.quick-card),
.sidebar a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.content a[target="_blank"]::after,
.sidebar a[target="_blank"]::after {
  content: " \2197"; /* ↗ */
  font-size: 0.9em;
  opacity: 0.7;
}

/* Globally disable contact links (until page is ready) */
a[href="iletisim.html"] {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.2);
}

/* Recent posts subtle hover */
.recent-posts a {
  padding: 0.05rem 0.25rem;
  border-radius: 6px;
}
.recent-posts a:hover {
  background: rgba(79, 140, 255, 0.08);
}

/* Language-specific styling */
[data-language="en"] [data-tr] {
  display: none;
}

[data-language="tr"] [data-en] {
  display: none;
}

/* Show appropriate language content */
[data-language="en"] [data-en] {
  display: block;
}

[data-language="tr"] [data-tr] {
  display: block;
}

/* Projeler sayfası stilleri */
.project-categories {
  margin: 2rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.15);
}

.category-card h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.category-card p {
  margin: 0 0 1.5rem 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.category-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: #3a7cff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 140, 255, 0.3);
}

.featured-projects {
  margin: 3rem 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.15);
}

.project-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 0 1.5rem 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-meta span {
  background: rgba(79, 140, 255, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  background: var(--secondary);
  color: #181c25;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #ffa726;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 179, 71, 0.3);
}

.project-resources {
  margin: 3rem 0;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.resource-list strong {
  color: var(--primary);
  font-weight: 600;
}

.resource-list a {
  color: var(--text);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.resource-list a:hover {
  color: var(--primary);
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .category-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Kod örnekleri için stiller */
.code-example {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-example h5 {
  margin: 0;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-example pre {
  margin: 0;
  padding: 1.5rem;
  background: var(--card-bg);
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.code-example code {
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Kod bloğu içindeki syntax highlighting */
.code-example .keyword { color: #ff6b6b; }
.code-example .string { color: #51cf66; }
.code-example .comment { color: #868e96; font-style: italic; }
.code-example .function { color: #339af0; }
.code-example .number { color: #ffd43b; }

/* Process steps için ek stiller */
.process-steps .step {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.process-steps .step::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.process-steps .step h4 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.process-steps .step p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.7;
}

/* Proje bölümleri için stiller */
.project-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.project-section h2 {
  color: var(--primary);
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.project-section p {
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-examples {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-example {
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.project-example:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.15);
}

.project-example h3 {
  color: var(--text);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.project-example p {
  color: var(--muted-text);
  margin: 0 0 1.5rem 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

/* Proje link container için stil */
.project-link-container {
  text-align: center;
  margin-top: 1.5rem;
}

/* Responsive tasarım için ek stiller */
@media (max-width: 768px) {
  .project-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .project-example {
    padding: 1rem;
  }
  
  .project-section h2 {
    font-size: 1.5rem;
  }
}

/* Tam genişlik için stiller - artık gerekli değil */

/* Projeler sayfası için özel düzenlemeler */
.project-section {
  margin: 3rem auto;
  max-width: 1200px;
  width: 100%;
  display: block;
}

.project-examples {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: block;
}

/* Proje kategorileri için ortalama */
.project-categories {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: block;
}

.category-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

/* Öne çıkan projeler için ortalama */
.featured-projects {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: block;
}

.project-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

.code-example {
  max-width: 100%;
  overflow-x: auto;
}

.code-example pre {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Breadcrumb için tam genişlik */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0;
  width: 100%;
  display: block;
}

/* Ana başlık için tam genişlik */
.content > h1 {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  text-align: center;
  width: 100%;
  display: block;
}

.content > p {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  text-align: center;
  width: 100%;
  display: block;
}

/* Proje kaynakları için ortalama */
.project-resources {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: block;
}

.resource-list {
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

/* Hızlı navigasyon için stiller */
.quick-navigation {
  margin: 3rem auto;
  max-width: 1000px;
  text-align: center;
  display: block;
}

.quick-navigation h3 {
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.nav-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  min-width: 180px;
  box-shadow: var(--card-shadow);
}

.nav-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.2);
  border-color: var(--primary);
}

.nav-btn .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.nav-btn .text {
  font-weight: 600;
  font-size: 1rem;
}

/* Navigasyon butonları için özel renkler */
.robotik-btn:hover {
  border-color: #ff6b6b;
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.2);
}

.goruntu-btn:hover {
  border-color: #4ecdc4;
  box-shadow: 0 12px 28px rgba(78, 205, 196, 0.2);
}

.featured-btn:hover {
  border-color: #ffd93d;
  box-shadow: 0 12px 28px rgba(255, 217, 61, 0.2);
}

/* Responsive navigasyon */
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-btn {
    min-width: 200px;
    padding: 1.2rem 1.5rem;
  }
}