.linkedin-card {
  margin: 32px 0 0 0;
  display: flex;
  justify-content: center;
}
.linkedhtml, body { 
  height: 100%; 
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Modern glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow);
}

.linkedin-card-inner {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid var(--border);
  padding: 24px 32px;
  gap: 24px;
  min-width: 320px;
  max-width: 450px;
}
.linkedin-profile-card {
  background: var(--card) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 2px 12px 0 rgba(56,189,248,0.07) !important;
  padding: 24px 24px 20px 24px !important;
}
.linkedin-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #0077b5;
  box-shadow: 0 2px 8px 0 rgba(0,119,181,0.10);
  background: #fff;
}
.linkedin-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.linkedin-link {
  color: #0077b5;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.linkedin-link:hover {
  color: var(--accent);
}

/* media thumbnail + link button */
.media-thumb { 
  width: 100%; 
  height: 180px; 
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); 
  border-bottom: 1px solid var(--border); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.media-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-repos .card:hover .media-thumb::before {
  opacity: 1;
}

.media-thumb.small { height: 140px; }
.media-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease;
}

.profile-repos .card:hover .media-thumb img {
  transform: scale(1.05);
}

.media-thumb svg {
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.profile-repos .card:hover .media-thumb svg {
  transform: scale(1.1);
}

/* Modern purple link button */
.link-btn { 
  display: inline-block; 
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%); 
  color: #fff; 
  text-decoration: none; 
  padding: 12px 20px; 
  border-radius: 12px; 
  font-weight: 700; 
  font-size: 14px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.link-btn:hover:before {
  opacity: 1;
}

.link-btn span {
  position: relative;
  z-index: 1;
}
/* Modern Purple Theme Design */
:root {
  --bg: #faf8ff;
  --panel: #f3f0ff;
  --text: #2d1b69;
  --muted: #6b46c1;
  --brand: #8b5cf6;
  --accent: #a855f7;
  --card: #ffffff;
  --border: #e9d5ff;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: rgba(139, 92, 246, 0.08);
}

/* Karanlık tema */
[data-theme="dark"] {
  --bg: #0c0a12;
  --panel: #1a1625;
  --text: #e9d5ff;
  --muted: #c4b5fd;
  --brand: #a855f7;
  --accent: #c084fc;
  --card: #1e1b29;
  --border: #3c366b;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: rgba(168, 85, 247, 0.12);
}

/* Tema geçişi animasyonu */
* {
  box-sizing: border-box;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 16px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 12px 0 32px 0;
  border: 1px solid var(--border);
  padding: 16px 28px;
  box-shadow: 0 4px 20px var(--shadow);
}

.brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.links a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.links a:hover:before {
  opacity: 1;
}

.links a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.links a span {
  position: relative;
  z-index: 1;
}

/* Modern tema toggle butonu */
.theme-toggle {
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 44px;
  height: 44px;
  backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  border-color: var(--brand);
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.theme-toggle svg {
  color: var(--brand);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}

/* Güneş ikonu - aydınlık temada göster */
.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

/* Ay ikonu - karanlık temada göster */
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Minimal Language Toggle Button */
.lang-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--muted);
  width: 28px;
  height: 28px;
  margin: 0;
}

.lang-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brand);
  transform: scale(1.1);
}

.lang-toggle-btn:active {
  transform: scale(0.95);
}


.profile-repos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.profile-repos .card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.profile-repos .card:hover {
  box-shadow: 0 8px 32px 0 rgba(56,189,248,0.13);
  border: 1.5px solid var(--accent);
  transform: translateY(-4px) scale(1.04);
  z-index: 2;
}
.profile-repos .card h3 {
  margin: 0 0 10px 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--brand);
}
.profile-repos .card a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
.profile-repos .card a:hover {
  color: var(--accent);
}
.profile-repos .desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}
.profile-repos .lang {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 2px 10px;
  margin-top: 2px;
}
.hero {
  padding: 40px 32px 32px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--card) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.hero h1 { 
  margin-top: 0; 
  margin-bottom: 16px;
  font-size: 32px; 
  font-weight: 800; 
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { 
  color: var(--muted); 
  margin-bottom: 0; 
  font-size: 18px; 
  line-height: 1.6;
  max-width: 700px;
}

.card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px 0 rgba(56,189,248,0.07);
}

.list {
  padding-left: 18px;
}

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  background: rgba(139, 92, 246, 0.02);
  backdrop-filter: blur(8px);
  border-radius: 20px 20px 0 0;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(12px);
}

.social-icon.github {
  background: rgba(24, 23, 23, 0.8);
}
.social-icon.twitter {
  background: rgba(29, 161, 242, 0.8);
}
.social-icon.linkedin {
  background: rgba(0, 119, 181, 0.8);
}

.social-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 2;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
  border-color: var(--accent);
}

/* Mobil optimizasyonu - Küçük ekranlar (480px ve altı) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .nav {
    gap: 8px;
    padding: 12px 16px;
    margin: 6px 0 20px 0;
    flex-wrap: wrap;
  }
  
  .brand {
    font-size: 18px;
    order: 1;
  }
  
  .links {
    gap: 6px;
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  
  .lang-toggle-btn {
    width: 32px;
    height: 32px;
    padding: 8px;
  }
  
  .links a {
    padding: 6px 10px;
    font-size: 13px;
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
    order: 3;
    margin-left: auto;
  }
  
  .hero {
    padding: 24px 20px 20px 20px;
    margin-bottom: 24px;
  }
  
  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 16px;
    line-height: 1.5;
  }
  
  section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  section h2::after {
    width: 40px;
    height: 2px;
  }
  
  .profile-repos {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  
  .profile-repos .card {
    padding: 16px;
  }
  
  .profile-repos .card h3 {
    font-size: 18px;
  }
  
  .media-thumb {
    height: 100px !important;
  }
  
  .media-thumb.small {
    height: 80px !important;
  }
  
  .media-thumb svg {
    width: 40px !important;
    height: 40px !important;
  }
  
  .link-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px; /* Dokunmatik erişilebilirlik için */
  }
  
  .linkedin-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }
  
  .linkedin-avatar {
    width: 60px;
    height: 60px;
  }
  
  .linkedin-link {
    font-size: 14px;
  }
  
  .footer {
    margin-top: 40px;
    padding: 24px 0;
  }
  
  .footer-social {
    gap: 12px;
  }
  
  .social-icon {
    width: 44px;
    height: 44px;
    min-height: 44px; /* Dokunmatik erişilebilirlik için */
  }
  
  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Tablet ve orta boyut ekranlar (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .nav {
    gap: 12px;
    padding: 16px 20px;
    margin: 8px 0 24px 0;
  }
  
  .links {
    gap: 8px;
  }
  
  .links a {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .brand {
    font-size: 20px;
  }
  
  .profile-repos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-repos .card {
    padding: 24px;
  }
  
  .hero {
    padding: 28px 20px 20px 20px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .linkedin-card-inner {
    padding: 22px 28px;
  }
  
  .media-thumb {
    height: 140px;
  }
  
  .media-thumb.small {
    height: 100px;
  }
}

/* Büyük mobil ekranlar (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .profile-repos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .linkedin-card-inner {
    flex-direction: row;
    max-width: 400px;
  }
}

/* Dokunmatik cihazlar için optimizasyon */
@media (hover: none) and (pointer: coarse) {
  .link-btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .social-icon {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Hover efektlerini devre dışı bırak */
  .link-btn:hover {
    transform: none;
  }
  
  .links a:hover {
    transform: none;
  }
  
  .theme-toggle:hover {
    transform: none;
  }
  
  .social-icon:hover {
    transform: none;
  }
  
  .profile-repos .card:hover {
    transform: none;
  }
}

/* Section başlıkları */
section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 24px 0;
  position: relative;
  padding-bottom: 12px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: 2px;
}

/* Proje kartları için özel stiller */
.project-content {
  padding: 20px 24px 24px 24px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.project-title {
  margin: 0;
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.project-description {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-language {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Blog kartları için özel stiller */
.blog-content {
  padding: 16px 18px 18px 18px;
}

.blog-title {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.blog-excerpt {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Mobil için proje ve blog kartları optimizasyonu */
@media (max-width: 480px) {
  .project-content {
    padding: 14px 16px 16px 16px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }
  
  .project-title {
    font-size: 16px;
  }
  
  .project-stars {
    font-size: 11px;
  }
  
  .project-description {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .project-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .project-language {
    align-self: flex-start;
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .blog-content {
    padding: 14px 16px 16px 16px;
  }
  
  .blog-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .blog-excerpt {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .project-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .project-language {
    align-self: flex-start;
  }
}

/* About ve Profile sayfaları için mobil optimizasyonu */
@media (max-width: 480px) {
  /* About sayfası mobil optimizasyonu */
  .about-hero h1 {
    font-size: 1.8em !important;
    margin-bottom: 16px !important;
  }
  
  .about-hero p {
    font-size: 16px !important;
    padding: 0 16px !important;
  }
  
  .profile-image {
    width: 120px !important;
    height: 120px !important;
  }
  
  .pulse-ring {
    width: 140px !important;
    height: 140px !important;
    top: -10px !important;
    left: -10px !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
  }
  
  .stat-card {
    padding: 20px !important;
  }
  
  .stat-number {
    font-size: 2em !important;
  }
  
  .timeline-line {
    left: 16px !important;
  }
  
  .timeline-content {
    width: calc(100% - 50px) !important;
    margin-left: 36px !important;
    margin-right: 0 !important;
    padding: 16px !important;
  }
  
  .timeline-dot {
    left: 16px !important;
    width: 12px !important;
    height: 12px !important;
  }
  
  .philosophy-section .card {
    padding: 20px !important;
    margin: 0 16px !important;
  }
  
  .philosophy-section h2 {
    font-size: 1.5em !important;
  }
  
  .philosophy-section blockquote {
    font-size: 1em !important;
    padding-left: 16px !important;
  }
  
  /* Profile sayfası mobil optimizasyonu */
  .profile-content .card {
    padding: 16px !important;
    margin-bottom: 16px !important;
  }
  
  .profile-content .card h3 {
    font-size: 1.2em !important;
    margin-bottom: 12px !important;
  }
  
  .skill-item {
    margin-bottom: 16px !important;
  }
  
  .skill-bar {
    height: 6px !important;
  }
  
  .skill-item > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  
  .profile-content .card:last-child div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .profile-content .card:last-child span {
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  /* About sayfası tablet optimizasyonu */
  .about-hero h1 {
    font-size: 2.2em !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .timeline-content {
    width: calc(50% - 20px) !important;
  }
  
  /* Profile sayfası tablet optimizasyonu */
  .skill-item > div:first-child {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
}