/* --- SEO & Accessibility Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Dark Theme Palette - Premium */
  --bg-color: #0d0d0d;
  /* Deeper black */
  --surface-color: rgba(30, 30, 30, 0.6);
  /* Translucent */
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;

  /* Vivid & Modern Accents */
  --accent-color: #00dc82;
  /* Vue-green style neon */
  --accent-glow: #36e4da;
  /* Cyan-ish glow */
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  --gold-color: #FDB931;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  --backdrop-blur: blur(12px);
  --border-color: rgba(255, 255, 255, 0.12);

  /* Spacing & Layout */
  --container-width: 1100px;
  --header-height: 70px;
  --border-radius: 16px;
  /* More rounded */

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-color: #f8f9fa;
  --surface-color: rgba(255, 255, 255, 0.8);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-color: #059669;
  /* Darker green */
  --accent-glow: #10b981;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --border-color: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-main);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  position: relative;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

/* Image Protection (Anti-Theft) */
img {
  pointer-events: none;
  /* Disables right-click context menu on images */
  -webkit-user-drag: none;
  /* Disables dragging */
  user-select: none;
  /* Disables highlighting */
}

/* Global Polish: Scrollbar & Selection */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

::selection {
  background: var(--accent-color);
  color: #000;
}

/* Network Canvas Background */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-color);
  opacity: 1;
  transition: opacity 1s ease;
}

main,
footer {
  position: relative;
  z-index: 2; /* içerik her zaman arka plan kanvasının üstünde kalsın */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Keyboard quality: visible focus */
:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
}

/* Skip link (only shows when focused) */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  z-index: 9999;
  font-weight: bold;
  backdrop-filter: blur(5px);
  text-decoration: none;
}

.skip:focus {
  left: 18px;
}

.noscript-warning {
  margin: 1rem auto 0;
  max-width: 640px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .btn:hover {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  :root {
    --glass-shadow: none;
    --backdrop-blur: none;
  }

  html[data-low-power="1"] #network-canvas {
    display: none !important;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(136, 214, 76, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-glow);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-glow);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-glow);
}

.nav-links a.active {
  color: var(--accent-glow);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent-glow);
  color: var(--accent-glow);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: var(--accent-glow);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}


.profile-img-container {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Spotlight Effect behind image */
.profile-img-container::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(40px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.9);
  }

  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.profile-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.03) rotate(-2deg);
  border-color: var(--accent-glow);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-content .highlight {
  background: linear-gradient(120deg, var(--accent-glow), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* text-shadow: 0 0 30px rgba(16, 185, 129, 0.3); Removed text-shadow for clean gradient text */
}

.hero-content p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(136, 214, 76, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--gold-color);
  margin-bottom: 2rem;
}

.hero-kicker {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 0.75rem;
}



/* Skills Section */
.skills {
  padding: 2rem 0 4rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(136, 214, 76, 0.2);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Modern Glass Cards */
.skill-category,
.project-card,
.book-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-category:hover,
.project-card:hover,
.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.skill-category {
  padding: 1.75rem;
}

.skill-category h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: rgba(136, 214, 76, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  border: 1px solid rgba(136, 214, 76, 0.2);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  /* Using shared glass styles defined above */
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--border-radius);
}

.project-card--muted {
  opacity: 0.9;
  border-color: var(--border-color);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px -10px rgba(136, 214, 76, 0.15);
  border-color: var(--accent-color);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gold-color);
}

.card-link--sm {
  font-size: 0.85rem;
}

.card-link:hover {
  text-decoration: underline;
  color: var(--accent-glow);
}

/* Community & Content Premium Hub */
.community-card {
  background: linear-gradient(135deg, hsla(0, 0%, 12%, 0.8), hsla(0, 0%, 7%, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

/* Shine effect on background */
.community-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.community-card>* {
  position: relative;
  z-index: 1;
}

.community-hero {
  min-height: 50vh;
  padding-top: 2.5rem;
}

.community-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.community-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.community-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-glow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.community-guide-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.community-guide-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.community-guide-list {
  list-style: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.community-guide-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.github-star {
  border: 0;
}

.community-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.community-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.community-panel h3 {
  margin-bottom: 0.5rem;
}

.community-panel p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.community-channel-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
}

.community-channel-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.community-channel-desc {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.channel-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mentor-card {
  border-left: 4px solid #c084fc;
}

.section-lead {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.chip--gold {
  background: rgba(227, 179, 77, 0.15);
  color: var(--gold-color);
  border-color: rgba(227, 179, 77, 0.3);
  margin-bottom: 1rem;
  display: inline-flex;
}

.chip--accent {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
  margin-bottom: 1rem;
  display: inline-flex;
}

.chip--danger {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
  border-color: rgba(255, 95, 86, 0.3);
  margin-bottom: 1rem;
  display: inline-flex;
}

.chip--success {
  background: rgba(136, 214, 76, 0.15);
  color: var(--accent-color);
  border-color: rgba(136, 214, 76, 0.3);
  margin-bottom: 1rem;
  display: inline-flex;
}

.project-card--alert {
  border-left: 4px solid #ff5f56;
}

.project-card--dashed {
  border: 2px dashed var(--text-secondary);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.submit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hall-of-fame {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--accent-glow);
  background: rgba(54, 228, 218, 0.05);
  border-radius: 12px;
}

.hall-of-fame h4 {
  margin: 0 0 0.25rem 0;
  color: #ffd700;
}

.hall-of-fame p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.notice-card {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-color);
  background: rgba(136, 214, 76, 0.05);
  border-radius: 0 8px 8px 0;
}

.notice-card h4 {
  color: var(--accent-glow);
  margin-bottom: 0.5rem;
}

.notice-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.giscus-wrapper {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-title-icon {
  color: #ff0000;
}

.community-meta {
  margin-top: 1rem;
  color: var(--text-secondary);
}

.community-link {
  color: var(--accent-glow);
  text-decoration: underline;
}

.community-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.community-logo {
  width: 140px;
  border-radius: 50%;
  border: 4px solid #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.chip-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.chip {
  background: rgba(136, 214, 76, 0.15);
  color: var(--accent-color);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(136, 214, 76, 0.2);
}

/* Footer / Contact */
footer {
  background: var(--surface-color);
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-cta {
  margin-bottom: 2rem;
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-bullets {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.cta-bullets span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.cta-bullets span:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 220, 130, 0.2);
}

.cta-bullets i {
  color: var(--accent-color);
  background: rgba(0, 220, 130, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

.email-copy-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Buttons & Inputs */
#email-address {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 260px;
  backdrop-filter: blur(5px);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#email-address:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-copy {
  background: var(--accent-color);
  color: #000;
  border: none;
  padding: 0 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 220, 130, 0.3);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.5);
  background: var(--accent-glow);
}

.btn-secondary {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  /* Glass dark */
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  /* Pill shape */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-secondary.is-muted {
  margin-top: 1rem;
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-glow);
  box-shadow: 0 0 20px rgba(54, 228, 218, 0.2);
  transform: translateY(-2px);
  color: var(--accent-glow) !important;
}

.social-pill {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.social-pill--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.2);
}

.social-pill--whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.social-pill--telegram {
  background: rgba(0, 136, 204, 0.1);
  color: #0088cc;
  border-color: rgba(0, 136, 204, 0.2);
}

.social-pill--telegram:hover {
  background: rgba(0, 136, 204, 0.2);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.socials a {
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.socials a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
  transform: scale(1.15) rotate(5deg);
}

.footer-meta {
  text-align: center;
  margin-top: 2rem;
  opacity: 0.3;
  font-size: 0.8rem;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.mini-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Library Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.book-card {
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.book-cover {
  height: 260px;
  background: linear-gradient(135deg, #232526, #414345);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0;
  /* No padding for images */
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.book-cover span {
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Fallback if image fails */
  z-index: 2;
}

.book-info {
  padding: 1rem;
}

.book-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.book-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}


/* Mobile Nav & Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Transform nav-links into a full-screen or slide-in menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    /* Space for close button if needed, or just padding */
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-actions {
    display: none;
    /* Optionally hide theme/lang toggle in header to save space, or move into menu */
  }

  /* Show Nav Actions inside the menu if we wanted, but for now let's keep it simple. 
     Actually, let's keep them visible in header or move them. 
     For this specific design, keeping them in header might crowd the logo and hamburger.
  */

  .cta-bullets {
    flex-direction: column;
    gap: 0.5rem;
  }

  .email-copy-wrapper {
    flex-direction: column;
    align-items: center;
  }

  /* Grid Adjustments for Mobile */
  .projects-grid,
  .library-grid {
    grid-template-columns: 1fr;
    /* Stack cards on mobile */
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Mobile Lite: reduce effects + visual objects */
  #network-canvas {
    display: none !important;
  }

  header {
    backdrop-filter: none;
    background: var(--bg-color);
  }

  .profile-img-container::before {
    display: none;
  }

  .profile-img {
    width: 120px;
    height: 120px;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .skill-category,
  .project-card,
  .book-card,
  .community-card,
  .community-panel,
  .community-guide-card,
  .community-channel-card,
  .hall-of-fame,
  .notice-card,
  .giscus-wrapper {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-color: var(--border-color);
  }

  .skill-category:hover,
  .project-card:hover,
  .book-card:hover,
  .cta-bullets span:hover,
  .btn-secondary:hover,
  .socials a:hover {
    transform: none;
    box-shadow: none;
  }

  .community-card::before {
    display: none;
  }

  .nav-links {
    backdrop-filter: none;
    box-shadow: none;
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
  }

  .nav-links a::after {
    display: none;
  }

  .community-logo {
    width: 90px;
    border-width: 2px;
    box-shadow: none;
    margin-bottom: 1rem;
  }

  .community-stats,
  .chip-group {
    display: none;
  }

  .github-star {
    display: none;
  }

  .book-cover {
    display: none;
  }

  .book-card {
    padding: 0.75rem 1rem;
  }

  .book-info {
    padding: 0;
  }

  .library-grid,
  .projects-grid,
  .skills-grid {
    gap: 1rem;
  }

  .community-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .community-hero {
    min-height: auto;
  }

  .skills {
    padding: 1.5rem 0 2.5rem;
  }

  .section-title {
    font-size: 1.4rem;
    gap: 0.75rem;
  }

  .location {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: var(--text-secondary);
  }

  .btn-secondary,
  .btn-copy,
  .social-pill {
    backdrop-filter: none;
    box-shadow: none;
  }

  .skills-grid .skill-category:nth-child(n + 3),
  .projects-grid .project-card:nth-child(n + 4),
  .library-grid .book-card:nth-child(n + 3) {
    display: none;
  }

  .community-panels .community-panel:nth-child(n + 3) {
    display: none;
  }

  footer {
    background: transparent;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  .skill-tags,
  .project-tags {
    gap: 0.35rem;
  }

  .tag,
  .chip {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0.85rem;
  }

  .cta-bullets span {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .socials a {
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
  }

  .terminal-fab,
  #terminal-overlay,
  #cmdk {
    display: none !important;
  }
}

/* --- Terminal / Geek Mode Styles --- */
.terminal-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #121212;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(136, 214, 76, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.terminal-fab:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: var(--accent-color);
  color: #121212;
  box-shadow: 0 0 25px var(--accent-glow);
}

.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  /* Dimmed background */
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.terminal-window {
  width: 90%;
  max-width: 800px;
  height: 60vh;
  background-color: #0e0e0e;
  border-radius: 8px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  position: relative;
}

/* CRT Scanline Effect */
.terminal-window::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.terminal-header {
  background: #2d2d2d;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.terminal-title {
  color: #999;
  font-size: 0.85rem;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.control-dot.red {
  background: #ff5f56;
}

.control-dot.yellow {
  background: #ffbd2e;
}

.control-dot.green {
  background: #27c93f;
}

.terminal-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  color: var(--accent-glow);
  /* Green-ish text */
  font-size: 1rem;
  line-height: 1.5;
}

.terminal-line {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.line-command {
  color: #fff;
  font-weight: bold;
  margin-top: 0.5rem;
}

.line-system {
  color: var(--gold-color);
}

.line-error {
  color: #ff5f56;
}

.line-success {
  color: var(--accent-color);
}

.terminal-input-line {
  display: flex;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  align-items: center;
}

.prompt {
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  caret-color: var(--accent-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TERMINAL 3.0 ENHANCEMENTS */
#terminal-overlay {
  background: rgba(10, 10, 15, 0.95) !important;
  backdrop-filter: blur(5px);
  font-family: 'Courier New', Courier, monospace !important;
}

.terminal-window {
  border: 1px solid #444 !important;
  box-shadow: 0 0 50px rgba(0, 255, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
}

/* CRT Scanline Effect Overlay */
.terminal-window::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 5;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.line-accent {
  color: #00ffff !important;
  font-weight: bold;
}

.line-command {
  color: #fff !important;
  font-weight: bold;
  margin-top: 8px;
}

.line-success {
  color: #00ff00 !important;
}

.line-error {
  color: #ff5555 !important;
}

#terminal-body::-webkit-scrollbar {
  width: 8px;
}

#terminal-body::-webkit-scrollbar-track {
  background: #111;
}

#terminal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   NETWORK LANGUAGE TOGGLE BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.network-lang-btn {
  background: rgba(10, 20, 30, 0.85);
  border: 1.5px solid #d946ef;
  color: #d946ef;
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
}

.network-lang-btn:hover {
  background: rgba(217, 70, 239, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

.network-lang-btn.active {
  background: linear-gradient(135deg, #d946ef 0%, #a21caf 100%);
  color: #000;
  border-color: #d946ef;
  text-shadow: none;
}

/* Command Palette Dialog Styles */
#cmdk {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}

#cmdk::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cmdk-container {
  width: min(560px, 92vw);
  background: rgba(16, 26, 51, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 14px;
}

.cmdk-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

#cmdkInput {
  flex: 1;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #e9eefc;
  outline: none;
  font-family: var(--font-main);
}

#cmdkInput:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

#cmdkClose {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: #e9eefc;
  font-weight: 800;
  cursor: pointer;
}

#cmdkClose:hover {
  background: rgba(255, 255, 255, 0.15);
}

#cmdkHint {
  margin-top: 10px;
  color: rgba(233, 238, 252, 0.70);
  font-size: 12px;
}

/* -----------------------------------------------------------
   FOCUS MODE (Zen)
   ----------------------------------------------------------- */
body.focus-mode #network-canvas,
body.focus-mode .terminal-overlay,
body.focus-mode .terminal-fab {
  display: none !important;
}

/* -----------------------------------------------------------
   PRINT STYLES (One-Page CV)
   ----------------------------------------------------------- */
@media print {

  /* Reset & Layout */
  @page {
    margin: 1cm;
    size: A4;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  /* Hide Non-Essentials */
  header,
  #network-canvas,
  #terminal-toggle-btn,
  #terminal-overlay,
  #cmdk,
  .terminal-fab,
  .lang-toggle,
  .theme-toggle,
  .socials,
  .footer-links,
  #contact,
  #community,
  #library,
  .nav-actions,
  button {
    display: none !important;
  }

  /* Adjust Hero for Print */
  .hero {
    padding: 0 !important;
    min-height: auto !important;
    text-align: left !important;
    margin-bottom: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .profile-img-container {
    width: 80px;
    height: 80px;
    border: none;
    box-shadow: none;
  }

  .hero h1 {
    font-size: 20pt;
    color: #000 !important;
    text-shadow: none !important;
    margin-bottom: 0.5rem;
  }

  .hero p {
    color: #333 !important;
    font-size: 10pt;
  }

  .highlight {
    color: #000 !important;
    font-weight: bold;
  }

  /* Skills Grid Optimization */
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .skill-category {
    background: none !important;
    border: 1px solid #ddd;
    box-shadow: none !important;
    padding: 0.8rem;
  }

  .skill-category h3 {
    font-size: 12pt;
    color: #000;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
  }

  .skill-tags {
    gap: 0.3rem;
  }

  .tag {
    background: #f0f0f0 !important;
    color: #000 !important;
    border: 1px solid #ccc;
    font-size: 8pt;
    padding: 2px 6px;
  }

  /* Projects Optimization */
  #projects {
    padding: 0 !important;
    margin-top: 1rem;
  }

  .section-title {
    font-size: 16pt;
    color: #000 !important;
    border-bottom: 2px solid #000;
    margin-bottom: 1rem;
    text-align: left;
  }

  .projects-grid {
    display: block;
  }

  .project-card {
    background: none !important;
    border: none !important;
    border-left: 3px solid #000 !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem;
    padding: 0 0 0 1rem;
    break-inside: avoid;
  }

  .project-card h3 {
    font-size: 12pt;
    color: #000;
    margin-bottom: 0.3rem;
  }

  .project-card p {
    font-size: 10pt;
    color: #444 !important;
    margin-bottom: 0.5rem;
  }

  .project-tags {
    margin-bottom: 0.5rem;
  }

  .card-link {
    display: none;
  }

  /* Links */
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
}
