/* ═══════════════════════════════════════════════════════════
   INTREPID CYBERSECURITY ENGINEERING — Portfolio
   Dark, minimal, state-of-the-art
   ═══════════════════════════════════════════════════════════ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --accent: #00A3FF;
  --accent-dim: rgba(0, 163, 255, 0.1);
  --accent-glow: rgba(0, 163, 255, 0.08);
  --text-primary: #E0E0E0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 163, 255, 0.15);
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1400px;
  --section-padding: 80px 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-padding);
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .fade-in { opacity: 1 !important; transform: none !important; }
  /* Collapse entire feed on mobile — just show a peek button */
  .feed { display: none !important; }
  .feed.show-feed { display: block !important; }
}

.feed-toggle-mobile {
  display: none;
  padding: 16px 20px;
  margin: 0 16px;
  background: var(--surface);
  border: 1px solid rgba(0, 163, 255, 0.15);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
@media (max-width: 768px) {
  .feed-toggle-mobile { display: flex; flex-direction: column; gap: 4px; align-items: center; }
}

.show-more-btn {
  display: none;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: rgba(0, 163, 255, 0.08);
  border: 1px solid rgba(0, 163, 255, 0.2);
  border-radius: 10px;
  color: var(--accent-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 768px) {
  .show-more-btn { display: block; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  opacity: 1;
}

.nav-contact {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent) !important;
  font-size: 0.8rem !important;
  transition: all 0.3s !important;
}

.nav-contact:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  opacity: 1 !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

/* Gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
}

.hero-bg .orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

.hero-bg .orb-3 {
  width: 400px;
  height: 400px;
  background: #0066AA;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
  opacity: 0.1;
  animation: float 25s ease-in-out infinite reverse;
}

/* Subtle grid */
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 8px;
}

.hero-title {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 16px;
}

/* Typing effect */
.typing-container {
  min-height: 32px;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 1rem;
}

.typing-text {
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 163, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   CARDS SECTION (What I Build)
   ═══════════════════════════════════════════════════════════ */

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  transition: all 0.4s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 163, 255, 0.04);
  transform: translateY(-2px);
}

.card h4 {
  margin-bottom: 16px;
}

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

/* ═══════════════════════════════════════════════════════════
   METHODOLOGY (4-step flow)
   ═══════════════════════════════════════════════════════════ */

.methodology {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}

.step h4 {
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
}

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

/* Arrow between steps */
.step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: -22px;
  top: 30px;
  color: var(--text-muted);
  font-size: 1.5rem;
  opacity: 0.3;
}

.methodology-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   STATS (By The Numbers) — Big & Flashy
   ═══════════════════════════════════════════════════════════ */

.stats-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stats-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 60px;
  margin-top: -40px;
}

/* Top 3 hero stats */
.stats-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.stat-hero {
  padding: 40px 20px;
  border-radius: 16px;
  background: rgba(0, 163, 255, 0.03);
  border: 1px solid rgba(0, 163, 255, 0.08);
  transition: all 0.4s ease;
}

.stat-hero:hover {
  border-color: rgba(0, 163, 255, 0.2);
  box-shadow: 0 0 60px rgba(0, 163, 255, 0.08);
  transform: translateY(-4px);
}

.stat-hero-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(0, 163, 255, 0.3);
}

.stat-hero-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.stat-hero-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Bottom 8 detail stats */
.stats-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-detail {
  padding: 20px 12px;
}

.stat-detail-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stat-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */

.cta {
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  margin-bottom: 16px;
}

.cta > .container > p {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  text-align: left;
}

.cta-left {
  flex: 1;
  max-width: 400px;
}

.cta-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-qr img {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.3s;
}

.cta-qr img:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

.qr-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-heading);
}

@media (max-width: 600px) {
  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .cta-left .btn-group {
    justify-content: center !important;
  }

  .cta-left .cta-details p {
    text-align: center;
  }

  .cta-qr img {
    width: 140px;
    height: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════
   WORK PAGE — Project Cards
   ═══════════════════════════════════════════════════════════ */

.page-header {
  padding: 140px 0 40px;
  text-align: center;
}

.page-header p {
  max-width: 600px;
  margin: 16px auto 0;
}

.projects {
  padding: 40px 0 120px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-glow);
}

.project-card h3 {
  margin-bottom: 16px;
}

.project-card .description {
  margin-bottom: 24px;
}

.project-card h4 {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.project-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.project-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.about-content strong {
  color: var(--text-primary);
}

.competencies {
  background: var(--surface);
  padding: 80px 0;
}

.competencies-list {
  max-width: 700px;
  margin: 40px auto 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.competencies-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.competencies-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.philosophy {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 0;
}

.philosophy p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   BLOG PAGE
   ═══════════════════════════════════════════════════════════ */

.blog-grid {
  display: grid;
  gap: 24px;
  padding: 40px 0 120px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  transition: all 0.4s ease;
}

.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-glow);
}

.blog-card h3 {
  margin-bottom: 8px;
}

.blog-card h3 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--accent);
  opacity: 1;
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Blog post page */
.post {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 120px;
}

.post h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.post .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
}

.post h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.post p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.post ul, .post ol {
  margin: 0 0 1.5em 24px;
}

.post li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-primary);
  font-style: italic;
}

.post code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   FEED — Twitter-style capability posts
   ═══════════════════════════════════════════════════════════ */

.feed {
  padding: var(--section-padding);
}

.feed-container {
  max-width: 640px;
  margin: 0 auto;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.feed-header h2 {
  font-size: 1.5rem;
}

.feed-tabs {
  display: flex;
  gap: 4px;
}

.feed-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feed-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.feed-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.tweet {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}

.tweet:last-child {
  border-bottom: none;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0066AA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.tweet-author {
  flex: 1;
}

.tweet-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.tweet-handle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tweet-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tweet-body {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tweet-body strong {
  color: var(--accent);
  font-weight: 500;
}

.tweet-body .hashtag {
  color: var(--accent);
  font-weight: 500;
}

/* Thread indicator */
.tweet-thread {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Attached card (like a link preview) */
.tweet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
  transition: border-color 0.3s;
}

.tweet-card:hover {
  border-color: var(--border-hover);
}

.tweet-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tweet-card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.tweet-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Metrics bar */
.tweet-metrics {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.tweet-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: default;
}

.tweet-metric svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.tweet-metric:hover {
  color: var(--accent);
}

/* Category pill on tweets */
.tweet-category {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Feed filter bar for the standalone page */
.feed-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Responsive feed */
@media (max-width: 600px) {
  .feed-container {
    padding: 0 4px;
  }

  .tweet {
    padding: 20px 0;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .feed-tabs {
    overflow-x: auto;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .stats-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-hero-number {
    font-size: 3.5rem;
  }

  .competencies-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 48px 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 90vh;
    padding: 100px 20px 60px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

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

  .stats-hero-grid {
    gap: 16px;
  }

  .stat-hero {
    padding: 28px 16px;
  }

  .stat-hero-number {
    font-size: 2.8rem;
  }

  .stats-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-detail-number {
    font-size: 1.8rem;
  }

  .project-card {
    padding: 32px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

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

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .post h1 {
    font-size: 1.75rem;
  }
}

/* Landing page responsive fixes */
@media (max-width: 768px) {
  .cta-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .cta-grid .btn-group { justify-content: center !important; }
  .cta-grid .cta-qr { text-align: center; }
  section > div > div[style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  section > div > div[style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}
