/* ═══════════════════════════════════════════════════════
   BREZNEY VIEGAS — Portfolio Stylesheet
   Bold & Creative | Dark Theme | viegas.co.uk
═══════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────── */
:root {
  --bg:          #050512;
  --bg-2:        #0a0a1f;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --violet:      #8b5cf6;
  --violet-light:#a78bfa;
  --cyan:        #06b6d4;
  --cyan-light:  #67e8f9;
  --amber:       #f59e0b;

  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-subtle: #475569;

  --border:      rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);

  --radius:      16px;
  --radius-sm:   8px;
  --radius-lg:   24px;

  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:   'Space Grotesk', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 5, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dot { color: var(--cyan); }

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  transition: var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  top: -100px;
  left: -200px;
  animation: floatGlow 8s ease-in-out infinite;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -150px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet-light);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px #22c55e; }
  50%       { box-shadow: 0 0 16px #22c55e, 0 0 30px rgba(34,197,94,0.4); }
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.typewriter { color: var(--cyan); }

.cursor {
  color: var(--violet-light);
  animation: blink 1s step-end infinite;
}

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

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--violet-light);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Section Base ─────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ────────────────────────────────────────────── */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 280px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}

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

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(6,182,212,0.1) 100%);
}

.placeholder-svg { width: 140px; height: 140px; opacity: 0.7; }

.placeholder-text {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px dashed var(--border-glow);
  padding: 6px 14px;
  border-radius: 50px;
}

.photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--violet), var(--cyan)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: 0;
  animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
  to { filter: hue-rotate(360deg); }
}

.photo-glow-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  border-radius: 50%;
  bottom: -40px;
  right: -20px;
  filter: blur(30px);
  z-index: 0;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .about-lead {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.about-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg-card);
}

.contact-chip svg { width: 15px; height: 15px; flex-shrink: 0; }

.contact-chip:hover {
  border-color: var(--violet-light);
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

/* ── Skills ───────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.skill-category:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-cat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cat-icon { font-size: 1.1rem; }

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

.skill-tag {
  padding: 5px 12px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: default;
}

.skill-tag.primary {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--violet-light);
}

.skill-tag.secondary {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-light);
}

.skill-tag.tertiary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.skill-tag:hover { transform: scale(1.05); }

/* ── Experience / Timeline ────────────────────────────── */
.experience { background: var(--bg-2); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--cyan), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: var(--transition);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.timeline-card.featured {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(6,182,212,0.04) 100%);
}

.timeline-card.compact { padding: 20px 28px; }

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-type {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-date-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.current-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-bullets {
  padding-left: 0;
}

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.8rem;
  top: 6px;
}

.timeline-bullets li strong { color: var(--text); }

/* ── Certifications ───────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.cert-card.active {
  border-color: rgba(139, 92, 246, 0.25);
}

.cert-card.expired { opacity: 0.6; }

.cert-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  opacity: 1;
}

.cert-icon {
  font-size: 2rem;
  line-height: 1;
}

.cert-body { flex: 1; }

.cert-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cert-level {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cert-provider {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cert-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.active-badge {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.expired-badge {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-subtle);
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* ── Education ────────────────────────────────────────── */
.education { background: var(--bg-2); }

.edu-card {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.edu-icon { font-size: 2.5rem; flex-shrink: 0; }

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-institution {
  display: block;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.edu-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  pointer-events: none;
}

/* ── Personal ─────────────────────────────────────────── */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.personal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.personal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.personal-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.personal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.personal-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact ──────────────────────────────────────────── */
.contact { background: var(--bg-2); }

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-btn.primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.contact-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

.contact-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.contact-btn.secondary:hover {
  border-color: var(--violet-light);
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

/* ── Updates / Blog ──────────────────────────────────── */
.updates { background: var(--bg-2); }

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  flex-shrink: 0;
}

.post-card.featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber));
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.post-card-inner {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.post-featured-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan-light);
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

/* Loading state */
.posts-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 60px 0;
  grid-column: 1 / -1;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  animation: loadBounce 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; background: mix; background: var(--cyan); }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.4; }
  50%       { transform: translateY(-8px); opacity: 1; }
}

.posts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  transition: var(--transition);
}

.footer-domain:hover { color: var(--violet-light); }

.footer-sub {
  font-size: 0.78rem !important;
  color: var(--text-subtle) !important;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 99;
  }

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

  .nav-link { font-size: 1.2rem; padding: 12px 24px; }
  .nav-cta  { font-size: 1.1rem; padding: 12px 28px; margin: 0; }

  .nav-toggle { display: flex; z-index: 100; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { order: -1; }

  .timeline { padding-left: 24px; }
  .timeline-marker { left: -24px; }
  .timeline-card-header { flex-direction: column; gap: 8px; }
  .timeline-date-wrap { align-items: flex-start; }

  .edu-card { flex-direction: column; text-align: center; padding: 28px 24px; }
  .edu-card .edu-glow { display: none; }

  .hero-stats { gap: 16px; }
  .stat-divider { height: 30px; }
}

@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .timeline-card { padding: 20px; }
  .cert-grid { grid-template-columns: 1fr; }
}
