/* Apple.com inspired cards and buttons */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  margin-bottom: 80px;
  margin-top: 32px;
}
article {
  background: #fff;
  border-radius: 32px;
  padding: 40px 32px 32px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
  border: none;
  opacity: 0;
  animation: staggerFadeIn .7s ease-out forwards;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 340px;
}
article:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  transform: translateY(-6px) scale(1.02);
}
article h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
article p.meta {
  font-size: 1rem;
  color: #86868b;
  margin-bottom: 18px;
}
article p.content {
  font-size: 1.08rem;
  color: #424245;
  line-height: 1.6;
}
article a.read-more {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
  background: linear-gradient(90deg,#0071e3 60%,#2997ff 100%);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 12px 32px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
article a.read-more:hover {
  background: linear-gradient(90deg,#2997ff 60%,#0071e3 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,113,227,0.13);
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; gap: 32px; }
  article { padding: 32px 16px; min-height: 220px; }
}
@media (max-width: 600px) {
  .posts-grid { gap: 18px; }
  article { padding: 18px 6px; min-height: 120px; }
  article h2 { font-size: 1.2rem; }
  article p.content { font-size: 0.98rem; }
  article a.read-more { padding: 10px 18px; font-size: 1rem; }
}
/* Responsive floating back button for mobile */
@media (max-width: 600px) {
  .btn-back-top {
    position: fixed !important;
    top: auto !important;
    bottom: 18px;
    right: 18px;
    left: auto;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 30px;
    opacity: 0.95;
    background: #007aff;
    color: #fff;
    transition: background 0.2s, opacity 0.2s;
  }
  .btn-back-top:hover {
    background: #0056cc;
    opacity: 1;
  }
}
/* Consolidated CSS for H@CKERBOY Blog - Formatted for readability */

/* Base */
html {
  scroll-behavior: smooth;
}

/* the min page's corps/body */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #1d1d1f;
  line-height: 1.5;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--light);
}

/* Compact header on post pages */
body[data-post-slug] header {
  padding: 4px 0;
  border-bottom-width: 1px;
}
body[data-post-slug] header .container {
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body[data-post-slug] header h1 {
  font-size: 0.85rem !important;
  font-weight: 500;
  margin: 4px 0;
}
body[data-post-slug] header nav ul li a {
  padding: 6px 10px;
  font-size: 0.9rem;
}
body[data-post-slug] header .btn-back {
  padding: 8px 16px;
  font-size: 0.9rem;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid #d2d2d7;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 1s ease-out;
  transform: translateY(0);
  transition: transform .3s ease;
}

header h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0;
  animation: fadeInUp 1s ease-out .2s both;
}

header nav ul {
  list-style: none;
  padding: 5px 0 0 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

header nav ul li a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s ease;
  padding: 8px 16px;
  border-radius: 20px;
}

header nav ul li a:hover {
  color: #007aff;
  background-color: rgba(0, 122, 255, .1);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #fff;
  padding: 0;
  margin: 0;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.5rem;
  color: #424245;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out .3s both;
}

/* Sections */
section {
  padding: 80px 0;
  margin: 0;
}

.category-section:nth-child(odd) {
  background-color: #fff;
}

.category-section:nth-child(even) {
  background-color: #f5f5f7;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #1d1d1f;
  text-align: center;
}

section p,
section ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #424245;
}

section ul {
  list-style-type: disc;
  margin-left: 20px;
}

section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* Posts */
.posts {
  margin: 80px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 50px;
  margin-bottom: 80px;
}
/* articles posted */
article {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: all .3s ease;
  opacity: 0;
  animation: staggerFadeIn .6s ease-out forwards;
  transform: translateY(20px);
  border: 1px solid #d2d2d7;
}
/* articles comportements */
article:nth-child(1) { animation-delay: .1s; }
article:nth-child(2) { animation-delay: .2s; }
article:nth-child(3) { animation-delay: .3s; }
article:nth-child(4) { animation-delay: .4s; }
article:nth-child(5) { animation-delay: .5s; }
article:nth-child(6) { animation-delay: .6s; }

article:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  transform: translateY(-8px);
}

article h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
}

article p.meta {
  font-size: .875rem;
  color: #86868b;
  margin-bottom: 16px;
}

article p.content {
  font-size: 1rem;
  color: #424245;
  line-height: 1.5;
}

article a.read-more {
  display: inline-block;
  margin-top: 16px;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}

article a.read-more:hover {
  color: #0056cc;
}

/* return back button */

.btn-back {
  display: inline-block;
  background-color: #007aff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 40px;
  transition: background-color .2s ease;
}

/* return back button comportements  */
.btn-back:hover {
  background-color: #0056cc;
}

/* Footer */
footer {
  background-color: #f5f5f7;
  color: #424245;
  padding: 60px 0 40px;
  border-top: 1px solid #d2d2d7;
}

/* Footer comprotements */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.footer-brand { flex: 1; }

.footer-brand h3 {
  color: #1d1d1f;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: #424245;
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s ease;
}

.footer-links a:hover { color: #007aff; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-link { color: #007aff; text-decoration: none; font-size: 1.25rem; transition: color .2s ease; }
.social-link:hover { color: #0056cc; }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #d2d2d7;
  font-size: .875rem;
  color: #86868b;
}


/* Secondary palette */
:root {
  --primary: #007aff;
  --accent: #ff5722;
  --bg: #ffffff;
  --light: #1d1d1f;
}

h1, h2, h3 { font-family: 'Orbitron', sans-serif; }


.neon { color: var(--primary); }
.glow-border {
  border: 2px solid #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

.cyber-btn {
  background: none;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 10px 20px;
  font-family: 'Orbitron';
  cursor: pointer;
  transition: all .2s ease-in-out;
}

.cyber-btn:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 10px #0ff;
}

/* Assistant widget styles */
.assistant-container {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #0f0f0f;
  border: 2px solid #0ff;
  border-radius: 10px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  color: #fff;
}

.assistant-chat { max-height: 300px; overflow-y: auto; margin-bottom: 1rem; padding-right: .5rem; }
.msg { margin-bottom: .5rem; padding: .5rem; border-radius: 5px; }
.msg.bot { background-color: #022c22; color: #00ffcc; }
.msg.user { background-color: #1f1f1f; color: #ffffff; text-align: right; }

.assistant-inputs { display: flex; gap: .5rem; }
.assistant-input {
  flex-grow: 1;
  padding: .5rem;
  background-color: #1a1a1a;
  border: 1px solid #0ff;
  color: white;
  border-radius: 5px;
}

.assistant-btn { padding: .5rem 1rem; background-color: #00ffff; color: #000; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; }
.assistant-btn:hover { background-color: #00dddd; }

#matrix-bg { position: fixed; top:0; left:0; width:100%; height:100%; z-index:-1; background: black; }

#assistant-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00ffff;
  color: black;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 10px #0ff;
  transition: transform .2s ease;
}

#assistant-toggle:hover { transform: scale(1.1); }

#assistant-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: #0f0f0f;
  border: 2px solid #0ff;
  border-radius: 10px;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 0 20px #00ffff55;
}

/* Decorative / header effects */
header { text-align: center; padding: 12px 0; position: relative; }
.header-content { animation: fadeIn 2s ease-in; }

.gang {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,255,255,.8);
  animation: glitch 1s infinite;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glitch {
  0%   { text-shadow: 2px 2px red, -2px -2px blue; }
  20%  { text-shadow: -2px 2px lime, 2px -2px purple; }
  40%  { text-shadow: 2px -2px orange, -2px 2px cyan; }
  60%  { text-shadow: -1px -1px white, 1px 1px gray; }
  80%  { text-shadow: 3px 0 red, -3px 0 blue; }
  100% { text-shadow: 0 0 2px #0ff; }
}

@keyframes slideIn {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Small screens */
@media (max-width: 900px) {
  header { padding: 12px 16px; }
  header .container { display: flex; align-items: center; justify-content: space-between; }
  header h1 { font-size: 1rem; }
  .nav-toggle-label { display: flex; }
  header nav { position: absolute; left: 0; right: 0; top: 64px; background: rgba(255,255,255,.98); padding: 12px 16px; border-bottom: 1px solid #e6e6ea; display: none; }
  header nav ul { flex-direction: column; gap: 8px; align-items: center; }
  header nav ul li a { padding: 10px 14px; }
  #nav-toggle:checked ~ nav { display: block; }
}

/* Dropdown menu adjustments for post pages (smaller, inset, rounded) */
@media (max-width: 900px) {
  body[data-post-slug] header nav {
    top: 48px;
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    margin: 0 auto;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
  }
  body[data-post-slug] header nav ul { gap: .5rem; align-items: stretch; }
  body[data-post-slug] header nav ul li a { display:block; padding:8px 10px; font-size:.95rem; border-radius:6px; text-align:left; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  header { padding: 8px 0; }
  header h1 { font-size: 1rem; }
  header nav ul { flex-direction: column; gap: .75rem; }
  .hero { min-height: 80vh; padding: 20px 0; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.25rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
  section h2 { font-size: 2rem; }
  .dark-mode-toggle { bottom: 10px; right: 10px; width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .posts-grid { gap: 24px; }
  article { padding: 24px; }
  .hero h1 { font-size: 2.5rem; }
}

/* End of file */

/* Fix: ensure all headings use the site's Orbitron font (override monospace) */
h1, h2, h3, .post-article h2, .post-content h2, .post-content h3, .footer-brand h3 {
  font-family: 'Orbitron', sans-serif !important;
}