/* ============================================
   NOBLE ANTWI - CUSTOM PROFESSIONAL PORTFOLIO
   Cloud Security Professional Theme
   ============================================ */

:root {
  /* Primary Colors - Professional Blue */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-lighter: #334155;
  
  /* Accent Colors - Cyan/Security Blue */
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #22d3ee;
  
  /* Secondary Colors - Deep Blue */
  --secondary: #1e40af;
  --secondary-light: #3b82f6;
  
  /* Backgrounds */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Accents */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Aliases — referenced in page inline HTML */
  --accent-color: var(--accent);
  --success-color: var(--success);
  --warning-color: var(--warning);
  --bg-light: var(--bg-card);
  --text-light: var(--text-primary);
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(6, 182, 212, 0.1);
  --shadow-xl: 0 20px 25px rgba(6, 182, 212, 0.15);
  --glow: 0 0 20px rgba(6, 182, 212, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e40af 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
  --gradient-text: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

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

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-light);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ============================================
   SITE NAV (hamburger + active states)
   ============================================ */

.site-nav {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: var(--gradient-primary);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 1.05rem;
}

.btn:hover {
  background: var(--accent-light);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-primary {
  /* Uses .btn base styles */
}

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

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ============================================
   PROFILE SECTION
   ============================================ */

.profile-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 3rem 2rem;
}

.profile-img {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  object-fit: cover;
  aspect-ratio: 1;
}

.profile-img:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow);
}

.profile-section h1 {
  font-size: 2.8rem;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.profile-section h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
  line-height: 1.8;
  max-width: 800px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.card {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h2 i {
  color: var(--accent);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

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

.skill-category {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
}

.skill-category h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-name {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.skill-level {
  display: flex;
  gap: 0.3rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.skill-dot.filled {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.project-case-study {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.project-case-study:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(6, 182, 212, 0.2);
  padding-bottom: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title i {
  color: var(--accent);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.project-section h5 {
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.challenge-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.challenge,
.solution {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.05);
}

.challenge {
  border-left: 4px solid var(--danger);
}

.solution {
  border-left: 4px solid var(--success);
}

.challenge h5,
.solution h5 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.challenge p,
.solution p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.cert-card {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.cert-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.cert-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cert-count {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .profile-section {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .profile-section h1 {
    font-size: 2.2rem;
  }
  
  .profile-section h3 {
    font-size: 1rem;
  }
  
  .profile-img {
    max-width: 220px;
    margin-bottom: 1.5rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .challenge-solution {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 0;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Hamburger menu */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 2rem 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
  }

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

  .nav-container {
    justify-content: space-between;
  }

  .card {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

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

.card,
.skill-category,
.project-case-study,
.cert-card {
  animation: slideInUp 0.6s ease-out backwards;
}

/* Stagger animation for multiple items */
.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-light {
  color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   BLOG POST STYLES
   ============================================ */

.post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  margin-bottom: 2.5rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.82rem;
  border: 1px solid rgba(6, 182, 212, 0.4);
  text-decoration: none;
}

.post-category-badge {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-body {
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text-primary);
  max-width: 780px;
}

.post-body h2 {
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  padding-bottom: 0.5rem;
}

.post-body h3 {
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
  font-size: 1.2rem;
}

.post-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: #ffffff;
}

.post-body code {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.post-body pre {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 2;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.post-body table th {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.post-body table td {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--text-primary);
  vertical-align: top;
}

.post-body table tr:nth-child(even) td {
  background: rgba(6, 182, 212, 0.03);
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(6, 182, 212, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.post-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.post-nav a:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* ============================================================
   IMMERSIVE UI EFFECTS — added layer
   ============================================================ */

/* Particle canvas — fixed behind everything */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Ensure content sits above canvas */
.site-nav,
header,
main.main-content,
footer {
  position: relative;
  z-index: 2;
}

/* Subtle tech grid on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #020617;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  user-select: none;
}

.loader-name {
  display: flex;
  gap: 0.05em;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.loader-letter {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loader-letter.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.loader-subtitle {
  color: rgba(6, 182, 212, 0.55);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
}

.loader-bar-wrap {
  width: 180px;
  height: 2px;
  background: rgba(6, 182, 212, 0.12);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #06b6d4, #22d3ee, #06b6d4);
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) {
  body { cursor: none; }
  input, textarea, select { cursor: text; }
  a, button, .btn, .social-link, label { cursor: none; }
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

#cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: #06b6d4;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.9), 0 0 4px rgba(6, 182, 212, 1);
  transition: opacity 0.3s ease;
}

#cursor-dot.clicking {
  transform: scale(2.5) !important;
  background: #22d3ee;
}

#cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(6, 182, 212, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition:
    width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

#cursor-ring.hover {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  background: rgba(6, 182, 212, 0.07);
  border-color: rgba(6, 182, 212, 0.85);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #22d3ee, #06b6d4);
  background-size: 200% 100%;
  z-index: 9997;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  animation: shimmer 2s linear infinite;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TYPEWRITER
   ============================================================ */
.typewriter-target::after {
  content: '|';
  color: #06b6d4;
  margin-left: 2px;
  animation: blink 0.75s step-end infinite;
}

.typewriter-target.typing-done::after {
  display: none;
}

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

/* ============================================================
   GLITCH on header name
   ============================================================ */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
}

.glitch-text.glitching::before {
  opacity: 0.85;
  clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
  animation: glitch-top 0.38s steps(2) forwards;
}

.glitch-text.glitching::after {
  opacity: 0.85;
  clip-path: polygon(0 62%, 100% 62%, 100% 82%, 0 82%);
  animation: glitch-bot 0.38s steps(2) forwards;
}

@keyframes glitch-top {
  0%   { transform: translate(-3px,  0); }
  25%  { transform: translate( 3px,  0); }
  50%  { transform: translate(-2px,  0); }
  75%  { transform: translate( 2px,  0); }
  100% { transform: translate( 0,    0); opacity: 0; }
}

@keyframes glitch-bot {
  0%   { transform: translate( 3px, 0); }
  25%  { transform: translate(-3px, 0); }
  50%  { transform: translate( 2px, 0); }
  75%  { transform: translate(-2px, 0); }
  100% { transform: translate( 0,   0); opacity: 0; }
}

/* ============================================================
   CARD SPOTLIGHT  (cursor-tracking glow)
   ============================================================ */
.card,
.skill-category,
.cert-card,
.project-case-study {
  --sx: 50%;
  --sy: 50%;
  overflow: hidden;
}

.card::after,
.skill-category::after,
.cert-card::after,
.project-case-study::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--sx) var(--sy),
    rgba(6, 182, 212, 0.07),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}

.card.spotlight-active::after,
.skill-category.spotlight-active::after,
.cert-card.spotlight-active::after,
.project-case-study.spotlight-active::after {
  opacity: 1;
}

/* ============================================================
   MAGNETIC BUTTON — smooth reset
   ============================================================ */
.btn,
.social-link {
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease !important;
}

/* ============================================================
   MOBILE — hide heavy effects
   ============================================================ */
@media (max-width: 480px) {
  #particle-canvas { opacity: 0.4; }
  body::before { display: none; }
}
