/* ============================================
   BRUTALIST THEME FOR 0XRAMA.DEV
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=JetBrains+Mono:wght@400;700&display=swap');

/* ============================================
   1. CORE VARIABLES
   ============================================ */
:root {
  /* Color System - Monochrome Brutalist */
  --background: #000000;
  --foreground: #ffffff;
  --accent: #e0e0e0;
  --accent-secondary: #b0b0b0;
  --border-color: #2a2a2a;
  --grid-line: #1a1a1a;
  --blockquote-bg: #0a0a0a;
  --table-stripe: #0f0f0f;
  --code-border: #e0e0e0;
  --highlight-bg: #1a1a1a;
  --hover-invert: #ffffff;
  --hover-invert-text: #000000;

  /* Typography */
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'JetBrains Mono', monospace;
  --font-code: 'JetBrains Mono', monospace;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
}

/* ============================================
   2. RESET & BASE OVERRIDES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: inherit;
  word-break: break-word;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

/* ============================================
   3. GRID OVERLAY
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  line-height: 1.2;
  margin: 40px 0 20px;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h4, h5, h6 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p, ul, ol, img, figure, video, table {
  margin: 25px 0;
}

/* ============================================
   5. LAYOUT COMPONENTS
   ============================================ */
.container {
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 1400px;
  min-height: 100vh;
  border: none;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container.full,
.container.center {
  border: none;
  margin: 0 auto;
}

.container.full {
  max-width: 100%;
  padding: 40px;
}

.content {
  display: flex;
  flex-direction: column;
}

/* ============================================
   6. HEADER & LOGO
   ============================================ */
.header__logo {
  margin: 0 0 40px;
}

.logo {
  background: var(--accent);
  color: var(--background);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 4px solid var(--accent);
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: all 0.15s ease;
}

.logo::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--foreground);
  z-index: -1;
  transition: all 0.15s ease;
}

.logo:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--foreground);
}

.logo:hover::before {
  top: -10px;
  left: -10px;
}

/* ============================================
   7. NAVIGATION MENU
   ============================================ */
.menu {
  margin: 30px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 20px 0;
}

.menu__inner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu__inner li {
  margin: 0;
  padding: 0;
}

.menu__inner li a {
  color: var(--foreground);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  display: inline-block;
}

.menu__inner li a:hover {
  background: var(--accent);
  color: var(--background);
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--foreground);
}

.menu__inner li.active a {
  background: var(--accent);
  color: var(--background);
  border-color: var(--accent);
}

.menu__sub-inner {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.menu__sub-inner li {
  margin: 5px 0;
}

.menu__sub-inner li a {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 5px 10px;
  border-left: 2px solid var(--accent);
  transition: all 0.15s ease;
}

.menu__sub-inner li a:hover {
  background: var(--highlight-bg);
  padding-left: 20px;
}

/* Mobile Menu */
.menu__btn {
  display: none;
  background: transparent;
  color: var(--foreground);
  border: 3px solid var(--accent);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin: 20px 0;
}

.menu__btn:hover {
  background: var(--accent);
  color: var(--background);
}

@media (max-width: 768px) {
  .menu__btn {
    display: block;
  }

  .menu__inner {
    display: none;
    flex-direction: column;
    gap: 5px;
  }

  .menu__inner.open {
    display: flex;
  }

  .menu__inner li a {
    display: block;
    width: 100%;
  }
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.hero-brutalist {
  padding: var(--spacing-2xl) 0;
  border-bottom: 4px solid var(--accent);
  margin-bottom: var(--spacing-xl);
}

.hero-frame {
  position: relative;
  padding: var(--spacing-lg);
  border: 3px solid var(--accent);
}

.hero-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--foreground);
  z-index: -1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  margin: 0 0 30px;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title.glitch-hover:hover {
  animation: glitch-skew 0.3s ease;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.hero-tag {
  background: var(--accent);
  color: var(--background);
  padding: 8px 16px;
  font-family: var(--font-code);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-divider {
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.hero-intro {
  margin: 30px 0;
}

.hero-intro p {
  font-size: 1.2rem;
  margin: 0;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  line-height: 1.6;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: var(--spacing-lg);
  padding: 20px;
  border: 2px solid var(--border-color);
  background: var(--blockquote-bg);
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-status span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   9. LINKS
   ============================================ */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

a:hover {
  color: var(--background);
  background: var(--accent);
  border-bottom-color: var(--accent);
}

/* Content links only */
.content a:not(.logo):not(.menu__inner li a) {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 0 4px;
}

.content a:not(.logo):not(.menu__inner li a):hover {
  background: var(--accent);
  color: var(--background);
}

/* ============================================
   10. BUTTONS
   ============================================ */
button,
.button,
a.button {
  border: 4px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

button::before,
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.15s ease;
  z-index: -1;
}

button:hover::before,
.button:hover::before {
  left: 0;
}

button:hover,
.button:hover {
  color: var(--background);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--foreground);
}

button:active,
.button:active {
  transform: translate(0, 0);
  box-shadow: none;
}

button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================
   11. POST CARDS (BLOG)
   ============================================ */
.post {
  border: 3px solid var(--border-color);
  padding: var(--spacing-lg);
  margin: 40px 0;
  position: relative;
  background: var(--background);
  transition: all 0.2s ease;
}

.post:hover {
  border-color: var(--accent);
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent);
}

.post::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--accent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.post:hover::before {
  opacity: 1;
}

.post__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin: 0 0 15px;
  line-height: 1.2;
  color: var(--foreground);
}

.post__title a {
  color: var(--foreground);
  border-bottom: none;
}

.post__title a:hover {
  background: transparent;
  color: var(--accent);
}

.post__meta {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 15px;
  display: block;
}

.post__content {
  margin-top: var(--spacing-md);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.post__tags span {
  background: var(--highlight-bg);
  color: var(--accent);
  padding: 6px 12px;
  border: 2px solid var(--accent);
  font-family: var(--font-code);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Post list styles */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list__item {
  border: 3px solid var(--border-color);
  padding: var(--spacing-md);
  margin: 20px 0;
  position: relative;
  background: var(--background);
  transition: all 0.2s ease;
}

.post-list__item:hover {
  border-color: var(--accent);
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent);
}

.post-list__item-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.post-list__item-title a {
  color: var(--foreground);
  border-bottom: none;
}

.post-list__item-title a:hover {
  color: var(--accent);
}

.post-list__item-meta {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 10px;
}

/* ============================================
   12. BLOCKQUOTE
   ============================================ */
blockquote {
  position: relative;
  border: 4px solid var(--accent);
  background: var(--blockquote-bg);
  padding: 30px;
  margin: 40px 0;
}

blockquote::before {
  content: '>';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   13. CODE BLOCKS
   ============================================ */
code,
kbd {
  font-family: var(--font-code) !important;
  font-feature-settings: normal;
  background: var(--highlight-bg);
  border: 1px solid var(--code-border);
  padding: 3px 8px;
  margin: 0 2px;
  font-size: 0.9em;
  color: var(--accent);
}

kbd {
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: 4px;
}

pre {
  tab-size: 4;
  background: var(--blockquote-bg) !important;
  color: var(--foreground);
  padding: 25px;
  font-size: 0.9em !important;
  overflow-x: auto;
  border-radius: 0;
  border: 3px solid var(--code-border);
  position: relative;
}

pre::before {
  content: '>';
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.8rem;
}

pre code {
  background: transparent !important;
  padding: 0;
  margin: 0;
  border: none;
  color: var(--foreground);
}

/* ============================================
   14. IMAGES
   ============================================ */
img {
  display: block;
  max-width: 100%;
  border: 4px solid var(--accent);
  padding: 0;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.2s ease, border-color 0.2s ease;
}

img:hover {
  filter: grayscale(0%) contrast(1);
  border-color: var(--foreground);
}

img.left {
  margin-right: auto;
}

img.center {
  margin-left: auto;
  margin-right: auto;
}

img.right {
  margin-left: auto;
}

figure {
  width: fit-content;
  margin: 40px 0;
}

figure.left {
  margin-right: auto;
}

figure.center {
  margin-left: auto;
  margin-right: auto;
}

figure.right {
  margin-left: auto;
}

figure figcaption {
  background: var(--accent);
  color: var(--background);
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: normal;
  margin-top: -4px;
  padding: 8px;
  border: 2px solid var(--foreground);
}

/* ============================================
   15. TABLES
   ============================================ */
table {
  table-layout: auto;
  border-collapse: collapse;
  width: 100%;
}

table,
th,
td {
  border: 2px solid var(--foreground);
  padding: 12px 16px;
}

th {
  background: var(--accent);
  color: var(--background);
  font-family: var(--font-display);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

tr:nth-child(even) {
  background: var(--table-stripe);
}

tr:hover {
  background: var(--highlight-bg);
}

/* ============================================
   16. LISTS
   ============================================ */
ul,
ol {
  margin-left: 2ch;
  padding: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0;
}

li::marker {
  color: var(--accent);
  font-weight: bold;
}

li {
  margin: 10px 0;
}

/* ============================================
   17. HORIZONTAL RULE
   ============================================ */
hr {
  width: 100%;
  border: none;
  background: var(--accent);
  height: 4px;
  margin: var(--spacing-xl) 0;
}

/* ============================================
   18. FORMS
   ============================================ */
input,
textarea,
select {
  background: var(--blockquote-bg);
  color: var(--foreground);
  border: 3px solid var(--foreground);
  padding: 12px 16px;
  font-family: var(--font-code);
  font-size: 1rem;
  width: 100%;
  transition: all 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 4px 4px 0 var(--accent);
  background: var(--highlight-bg);
}

input[type="checkbox"] {
  width: auto;
}

fieldset {
  display: inline-block;
  border: 3px solid var(--accent);
  padding: 20px;
}

legend {
  font-family: var(--font-display);
  text-transform: uppercase;
  padding: 0 10px;
  color: var(--accent);
}

label {
  display: inline-block;
  margin: 10px 0 5px;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   19. PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.pagination__title {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--accent);
}

.pagination__buttons {
  display: flex;
  gap: 15px;
}

.button.pagination__button {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ============================================
   20. FOOTER
   ============================================ */
.footer {
  border-top: 4px solid var(--accent);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-2xl);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer__social a {
  color: var(--foreground);
  border: 2px solid var(--foreground);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.15s ease;
}

.footer__social a:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.footer__copyright {
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
}

/* ============================================
   21. CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--spacing-xl) 0;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  margin: var(--spacing-xl) 0;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: var(--spacing-md) 0;
}

.contact-item {
  border: 3px solid var(--border-color);
  padding: var(--spacing-md);
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent);
  text-decoration: none;
}

.contact-item-label {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.contact-item-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--foreground);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: var(--spacing-lg);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border: 3px solid var(--accent);
  color: var(--foreground);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--background);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--foreground);
}

/* ============================================
   22. PROJECT CARDS
   ============================================ */
.project-card {
  border: 3px solid var(--border-color);
  padding: 0;
  margin: 30px 0;
  position: relative;
  background: var(--background);
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent);
}

.project-card-header {
  padding: var(--spacing-md);
  border-bottom: 3px solid var(--accent);
  background: var(--blockquote-bg);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.project-card-body {
  padding: var(--spacing-md);
}

.project-card-description {
  margin: 20px 0;
  line-height: 1.6;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.project-tech-item {
  background: var(--highlight-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.project-card-footer {
  padding: 20px var(--spacing-md);
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--background);
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.project-status.active {
  background: #e0e0e0;
  color: #000000;
}

.project-status.development {
  background: #b0b0b0;
  color: #000000;
}

.project-status.maintenance {
  background: #808080;
  color: #ffffff;
}

.project-status.complete {
  background: #e0e0e0;
  color: #000000;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  color: var(--foreground);
  font-family: var(--font-code);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid var(--foreground);
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-link:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* ============================================
   23. ANIMATIONS
   ============================================ */

/* Glitch Effect */
@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}

.glitch-hover:hover {
  animation: glitch-skew 0.3s ease;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Blink Animation */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* Slide In */
@keyframes slide-in {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slide-in 0.3s ease-out;
}

/* Stagger Animations */
.stagger-item {
  opacity: 0;
  animation: slide-in 0.3s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Loading Bar */
@keyframes loading-brutal {
  0% { width: 0; }
  100% { width: 100%; }
}

.loading-bar {
  height: 4px;
  background: var(--accent);
  animation: loading-brutal 2s ease-in-out infinite;
}

/* ============================================
   24. UTILITIES
   ============================================ */

/* Selection */
::selection {
  background: var(--accent);
  color: var(--background);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--background);
}

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

/* Focus Visible */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Hidden */
.hidden {
  display: none;
}

/* Text Align */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ============================================
   25. ACCESSIBILITY
   ============================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --accent: #00ff00;
    --border-color: #666666;
  }
}

/* ============================================
   26. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size: 0.9rem;
  }

  .container {
    padding: 20px;
  }

  body::before {
    background-size: 20px 20px;
    opacity: 0.2;
  }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 8vw, 2.5rem); }
  h3 { font-size: clamp(1.2rem, 6vw, 2rem); }

  .hero-brutalist {
    padding: var(--spacing-lg) 0;
  }

  .hero-frame {
    padding: var(--spacing-md);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-subtitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .post {
    padding: var(--spacing-md);
  }

  .project-card {
    margin: 20px 0;
  }

  .project-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  .pagination {
    flex-direction: column;
    gap: 20px;
  }

  .footer__social {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
    padding: 10px 16px;
  }

  .menu__inner li a {
    font-size: 1rem;
    padding: 8px 16px;
  }
}

/* ============================================
   27. PRINT STYLES
   ============================================ */
@media print {
  body::before {
    display: none;
  }

  .container {
    display: initial;
  }

  .content {
    display: initial;
  }

  .menu,
  .footer,
  .pagination {
    display: none;
  }

  a {
    color: var(--foreground);
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}
