/* Clean Cloud Engineer Portfolio CSS - Simi Ops Edition */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a3a;
  --bg-tertiary: #252547;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --text-muted: #8b8ba7;
  --accent-cyan: #00d9ff;
  --accent-green: #64ffda;
  --accent-purple: #bb86fc;
  --accent-orange: #ff9800;
  --kenya-green: #006633;
  --kenya-red: #cc0000;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== GLOBAL BACKGROUND ELEMENTS ===== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  pointer-events: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.brand-icon {
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(100, 255, 218, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
  animation: statusGlow 3s ease-in-out infinite alternate;
}

@keyframes statusGlow {
  from { 
    box-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
  }
  to { 
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
    border-color: rgba(100, 255, 218, 0.5);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--accent-green);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

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

.section {
  min-height: 100vh;
  padding: var(--spacing-2xl) 0;
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(15, 15, 35, 0.3);
  backdrop-filter: blur(15px);
  margin: 2rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(0, 217, 255, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* Reduced from 2-3rem */
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  font-size: 1rem; /* Reduced from 1.125rem */
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  margin: 0;
  border: none;
  padding-top: 80px; /* Account for navbar */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.title-line {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.title-line.accent {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-metrics {
  display: flex;
  gap: var(--spacing-lg);
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-dashboard {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  max-width: 350px;
}

.hero-dashboard h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.status-grid {
  display: grid;
  gap: 0.75rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.status-item .status-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
}

.highlight-icon {
  font-size: 1.5rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.skill-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.skill-card h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.skill-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
}

.skill-level {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 10px;
  transition: width 2s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
}

.project-card h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
  color: var(--text-secondary);
}

.contact-icon {
  font-size: 1.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .section {
    margin: 1rem 0;
    padding: var(--spacing-lg) 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .highlights {
    grid-template-columns: 1fr;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  margin: 0;
  border: none;
  padding: 120px 0 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Reduced from 3-5rem */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.title-line {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.2em;
}

.title-line.accent {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 8px var(--accent-cyan)); }
  to { filter: drop-shadow(0 0 25px var(--accent-green)); }
}

.hero-description {
  font-size: 1.1rem; /* Reduced from 1.4rem */
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  max-width: 600px;
}

.hero-metrics {
  display: flex;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-lg);
}

.metric {
  text-align: center;
  transition: transform 0.3s ease;
  padding: var(--spacing-sm);
}

.metric:hover {
  transform: translateY(-8px) scale(1.05);
}

.metric-value {
  display: block;
  font-size: 1.8rem; /* Reduced from 2.5rem */
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
}

.metric-label {
  display: block;
  font-size: 0.85rem; /* Reduced from 1rem */
  color: var(--text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

.hero-dashboard {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 1rem;
  padding: var(--spacing-lg);
  backdrop-filter: blur(15px);
  max-width: 400px;
  min-height: 280px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hero-dashboard:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.1);
}

.hero-dashboard h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem; /* Reduced from 1.3rem */
  text-align: center;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.status-grid {
  display: grid;
  gap: var(--spacing-md);
  flex-grow: 1;
  align-content: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.9rem; /* Reduced from 1rem */
  transition: all 0.3s ease;
  padding: var(--spacing-xs);
  border-radius: 0.5rem;
}

.status-item:hover {
  color: var(--accent-green);
  background: rgba(100, 255, 218, 0.1);
  transform: translateX(5px);
}

.status-item .status-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 15px var(--accent-green);
  width: 10px;
  height: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.3rem; /* Reduced from 1.5rem */
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
}

.about-text p {
  font-size: 1rem; /* Reduced from 1.1rem */
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

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

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.highlight:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 217, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
}

.highlight-icon {
  font-size: 1.5rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.1);
}

.skill-icon {
  font-size: 2rem; /* Reduced from 2.5rem */
  margin-bottom: var(--spacing-xs);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.skill-card h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-xs);
  font-size: 1rem; /* Reduced from 1.1rem */
}

.skill-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 0.75rem; /* Reduced from 0.8rem */
  line-height: 1.4;
  flex-grow: 1;
}

.skill-card small {
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--spacing-xs);
  display: block;
  font-size: 0.7rem; /* Reduced from 0.75rem */
}

.skill-level {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 8px;
  transition: width 2s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
}

.project-card h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem; /* Reduced from 1.25rem */
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  font-size: 0.9rem; /* Added explicit smaller size */
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: scale(1.05);
}

/* ===== CONTACT SECTION - REMOVED OLD STYLES ===== */
/* Contact styles are now in the compact grid section above */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .section {
    margin: 1rem 0;
    padding: var(--spacing-lg) 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .highlights {
    grid-template-columns: 1fr;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== ROADMAP/TIMELINE SECTION - COMPACT GRID ===== */
.roadmap-content {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  padding: 2rem 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  position: relative;
  height: fit-content;
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid;
  position: relative;
  z-index: 2;
  animation: pulse-dot 2s infinite;
}

.timeline-dot.completed {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
}

.timeline-dot.current {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: pulse-current 1.5s infinite;
}

.timeline-dot.future {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pulse-current {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 15px var(--accent-cyan);
  }
  50% { 
    transform: scale(1.2); 
    box-shadow: 0 0 25px var(--accent-cyan);
  }
}

.timeline-line {
  display: none; /* Remove connecting lines in grid layout */
}

.timeline-content {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  min-height: 280px;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.1);
}

.timeline-content::before {
  display: none; /* Remove arrow in grid layout */
}

.timeline-year {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.timeline-achievements {
  margin-bottom: var(--spacing-sm);
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  padding: 0.3rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.achievement-item:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateX(3px);
}

.achievement-item.completed {
  color: var(--accent-green);
}

.achievement-item.in-progress {
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.05);
}

.achievement-item.planned {
  color: var(--text-secondary);
}

.achievement-item.future {
  color: var(--text-muted);
}

.achievement-item .check {
  font-size: 1rem;
  min-width: 16px;
}

.timeline-description {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  font-size: 0.85rem;
}

/* ===== CONTACT SECTION - COMPACT GRID ===== */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: var(--spacing-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.contact-item:hover {
  transform: translateX(5px);
  border-color: rgba(0, 217, 255, 0.4);
  color: var(--accent-cyan);
}

.contact-icon {
  font-size: 1.2rem;
}

.fun-facts {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  height: fit-content;
}

.fun-facts h3 {
  color: var(--accent-green);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.fun-facts ul {
  list-style: none;
  display: grid;
  gap: var(--spacing-xs);
}

.fun-facts li {
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
  font-size: 0.8rem;
  line-height: 1.4;
}

.fun-facts li:hover {
  color: var(--accent-green);
}

.fun-facts li:last-child {
  border-bottom: none;
}

/* Timeline and Contact responsive design */
@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .timeline-content {
    min-height: auto;
  }
}
/* ===== FONT SIZE REDUCTIONS FOR TIMELINE ===== */
.timeline-content h3 {
  font-size: 1.1rem !important;
}

.timeline-year {
  font-size: 0.8rem !important;
}

.achievement-item {
  font-size: 0.85rem !important;
}

.timeline-description {
  font-size: 0.9rem !important;
}

/* ===== CONTACT SECTION FONT REDUCTIONS ===== */
.contact-item {
  font-size: 0.9rem !important;
}

.fun-facts h3 {
  font-size: 1.1rem !important;
}

.fun-facts li {
  font-size: 0.85rem !important;
}
/* ===== MOBILE MENU & NAVIGATION IMPROVEMENTS ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ===== HERO ACTIONS (CTA BUTTONS) ===== */
.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.cta-button.secondary {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  border: 1px solid rgba(0, 217, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.cta-icon {
  font-size: 1.1rem;
}

/* ===== GITHUB STATS IN HERO DASHBOARD ===== */
.github-stats {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.github-stats h4 {
  color: var(--accent-green);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 217, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== PROJECT DETAILS & CODE SNIPPETS ===== */
.project-details {
  margin: var(--spacing-sm) 0;
}

.details-toggle {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.details-toggle:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-1px);
}

.project-architecture,
.project-code {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.project-architecture.hidden,
.project-code.hidden {
  display: none;
}

.architecture-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arch-node {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.arch-arrow {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  font-weight: bold;
}

.project-code pre {
  margin: 0;
  overflow-x: auto;
}

.project-code code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ===== SKILL BAR ANIMATIONS ===== */
.skill-bar {
  width: 0%;
  transition: width 2s ease-in-out;
}

.skill-card.animate .skill-bar {
  width: var(--skill-level);
}

/* ===== MICRO-ANIMATIONS ===== */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  transition: left 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.metric {
  position: relative;
}

.metric::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-cyan), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
}

.metric:hover::after {
  width: 100px;
  height: 100px;
  opacity: 0.1;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE MOBILE MENU ===== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-status {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .architecture-diagram {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .arch-arrow {
    transform: rotate(90deg);
  }
}
/* ===== NOTIFICATION ANIMATIONS ===== */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification {
  animation: slideInRight 0.3s ease;
}

/* ===== DESIGN SYSTEM CONSISTENCY ===== */
:root {
  /* Consistent spacing scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Consistent border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Consistent shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ===== KENYAN CULTURAL ELEMENTS ===== */
.brand-icon {
  position: relative;
}

.brand-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--kenya-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Subtle Kenyan flag colors in accents */
.timeline-dot.completed {
  box-shadow: 0 0 15px var(--kenya-green);
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--kenya-green));
}

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

/* Focus indicators */
.nav-link:focus,
.cta-button:focus,
.details-toggle:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-cyan: #00ffff;
    --accent-green: #00ff00;
  }
}
/* ===== COFFEE TO CODE ANIMATION ===== */
.coffee-to-code-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOutAnimation 1s ease 11s forwards; /* Extended from 7s to 11s */
}

.coffee-cup {
  position: relative;
  font-size: 4rem;
  margin-bottom: 2rem;
  animation: coffeeEntrance 2s ease;
}

.cup-body {
  position: relative;
  z-index: 2;
  animation: coffeeShake 0.5s ease 1.5s;
}

.steam {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.steam-particle {
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: steamRise 2s ease infinite;
  opacity: 0;
}

.steam-particle:nth-child(1) { animation-delay: 0s; }
.steam-particle:nth-child(2) { animation-delay: 0.3s; }
.steam-particle:nth-child(3) { animation-delay: 0.6s; }

.coffee-liquid {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: #8B4513;
  border-radius: 0 0 15px 15px;
  animation: coffeeLevel 2s ease 1s forwards;
}

.floating-code {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  opacity: 0;
  animation: codeFloat 3s ease 2s forwards;
}

.code-char {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-cyan);
  animation: floatUp 2s ease infinite;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.code-char:nth-child(1) { animation-delay: 0s; }
.code-char:nth-child(2) { animation-delay: 0.1s; }
.code-char:nth-child(3) { animation-delay: 0.2s; }
.code-char:nth-child(4) { animation-delay: 0.3s; }
.code-char:nth-child(5) { animation-delay: 0.4s; }
.code-char:nth-child(6) { animation-delay: 0.5s; }
.code-char:nth-child(7) { animation-delay: 0.6s; }
.code-char:nth-child(8) { animation-delay: 0.7s; }

.code-terminal {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--accent-cyan);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 2rem;
  min-width: 500px;
  opacity: 0;
  animation: terminalAppear 1s ease 5s forwards;
}

.terminal-header {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 0.5rem;
  margin: -1rem -1rem 1rem -1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.terminal-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: typeWriter 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 5.5s; }
.code-line:nth-child(2) { animation-delay: 6s; }
.code-line:nth-child(3) { animation-delay: 6.5s; }
.code-line:nth-child(4) { animation-delay: 7s; }
.code-line:nth-child(5) { animation-delay: 7.5s; }
.code-line:nth-child(6) { animation-delay: 8s; }
.code-line:nth-child(7) { animation-delay: 8.5s; }

/* Add reading pause - code stays visible for 3 more seconds */
.terminal-content::after {
  content: '';
  display: block;
  height: 1rem;
  animation: readingPause 3s ease 9s forwards;
}

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

.coffee-comment {
  color: var(--accent-green) !important;
  font-style: italic;
}

/* ===== COFFEE ANIMATION KEYFRAMES ===== */
@keyframes coffeeEntrance {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes coffeeShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(0px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes coffeeLevel {
  0% { height: 20px; }
  100% { height: 5px; }
}

@keyframes codeFloat {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes terminalAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typeWriter {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutAnimation {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Hide hero content initially */
.hero-content {
  opacity: 0;
  animation: heroContentAppear 1s ease 12s forwards; /* Extended from 8s to 12s */
}

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

/* ===== MOBILE COFFEE ANIMATION ===== */
@media (max-width: 768px) {
  .coffee-cup {
    font-size: 3rem;
  }
  
  .code-terminal {
    min-width: 90vw;
    margin: 1rem;
  }
  
  .terminal-content {
    font-size: 0.8rem;
  }
  
  .floating-code {
    gap: 1rem;
  }
  
  .code-char {
    font-size: 1.5rem;
  }
}
/* ===== BLOG SECTION ===== */
.blog-content {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
}

.blog-intro h3 {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.blog-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.blog-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.blog-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.blog-card.featured {
  border-color: rgba(100, 255, 218, 0.3);
  background: rgba(100, 255, 218, 0.05);
}

.blog-card.featured:hover {
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.blog-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.blog-card h4 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.blog-card.featured h4 {
  color: var(--accent-green);
}

.blog-topics {
  list-style: none;
  text-align: left;
}

.blog-topics li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease;
}

.blog-topics li:hover {
  color: var(--accent-cyan);
}

.blog-topics li:last-child {
  border-bottom: none;
}

.blog-cta {
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(15px);
}

.blog-cta h3 {
  color: var(--accent-green);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
}

.blog-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.blog-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-button.primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.blog-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

.blog-button.secondary {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  border: 1px solid rgba(100, 255, 218, 0.3);
  backdrop-filter: blur(10px);
}

.blog-button.secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: rgba(100, 255, 218, 0.5);
  transform: translateY(-2px);
}

.blog-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-stats .stat-item {
  text-align: center;
  padding: var(--spacing-sm);
}

.blog-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-stats .stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== BLOG RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .blog-highlights {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .blog-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .blog-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .blog-stats .stat-item {
    padding: var(--spacing-xs);
  }
}
/* ===== COFFEE BEAN PHYSICS SYSTEM ===== */
#coffee-beans-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.coffee-bean {
  position: absolute;
  font-size: 1.2rem;
  pointer-events: none;
  user-select: none;
  z-index: 5;
  transition: none;
  will-change: transform;
  opacity: 0.4; /* Reduced from default 1.0 to 0.4 */
}

.coffee-bean.premium {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px gold);
  animation: sparkle 2s infinite;
  opacity: 0.6; /* Slightly more visible for premium beans */
}

@keyframes sparkle {
  0%, 100% { filter: drop-shadow(0 0 5px gold) brightness(1); }
  50% { filter: drop-shadow(0 0 10px gold) brightness(1.3); }
}

.coffee-bean.bouncing {
  animation: beanBounce 0.3s ease-out;
}

@keyframes beanBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.steam-puff {
  position: absolute;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3); /* Reduced from 0.6 to 0.3 */
  pointer-events: none;
  animation: steamRise 1s ease-out forwards;
}

@keyframes steamRise {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.5);
  }
}

/* ===== COFFEE METER ===== */
.coffee-meter {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  z-index: 1000;
  min-width: 150px;
  font-family: var(--font-mono);
}

.coffee-meter-label {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.coffee-meter-bar {
  background: rgba(139, 69, 19, 0.3);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(139, 69, 19, 0.5);
}

.coffee-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coffee-meter-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.coffee-meter-count {
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-align: center;
}

/* ===== COFFEE BEAN VARIATIONS ===== */
.coffee-bean.raw {
  color: #90EE90;
  filter: brightness(0.8);
  opacity: 0.3; /* Even more subtle for raw beans */
}

.coffee-bean.roasted {
  color: #8B4513;
  opacity: 0.4; /* Consistent with regular beans */
}

.coffee-bean.premium {
  color: #FFD700;
  opacity: 0.6; /* More visible for premium beans */
}

/* ===== INTERACTIVE ZONES ===== */
.navbar:hover ~ #coffee-beans-container .coffee-bean {
  animation: energeticBounce 0.5s infinite;
}

@keyframes energeticBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== MOBILE COFFEE BEANS ===== */
@media (max-width: 768px) {
  .coffee-bean {
    font-size: 1rem;
  }
  
  .coffee-meter {
    top: 70px;
    right: 10px;
    min-width: 120px;
    padding: 0.5rem;
  }
  
  .coffee-meter-label {
    font-size: 0.7rem;
  }
  
  .coffee-meter-count {
    font-size: 0.6rem;
  }
}

/* ===== COFFEE BEAN SOUND EFFECTS (Visual) ===== */
.coffee-bean.landing {
  animation: landingEffect 0.5s ease-out;
}

@keyframes landingEffect {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ===== SPECIAL COFFEE FORMATIONS ===== */
.coffee-formation {
  position: absolute;
  pointer-events: none;
  z-index: 6;
}

.coffee-formation.heart {
  animation: heartPulse 2s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== COFFEE TRIVIA TOOLTIP ===== */
.coffee-trivia {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  max-width: 200px;
  border: 1px solid var(--accent-cyan);
  z-index: 1001;
  pointer-events: none;
  animation: fadeInTrivia 0.3s ease;
}

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

.coffee-trivia::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--accent-cyan);
}
