/* ===== CONSOLIDATED CSS - Flask ML Website ===== */
/* Merged: main.css + azbn-portfolio.css + style.css */

/* ===== CSS VARIABLES ===== */
:root {
  /* Professional Color Palette */
  --alpine-oat: #F5EBDC;      /* Background neutral */
  --dill-green: #8BA68A;      /* Main accent, growth/data - 50% lighter */
  --aura-indigo: #4B3F72;     /* Futuristic accent */
  --butter-yellow: #FFD95B;   /* Highlight, CTA hover */
  --dark-gray: #2E2E2E;       /* Text, contrast */
  --light-gray: #484a4f;      /* Secondary text */
  --white: #FFFFFF;           /* Pure white */
  
  /* Legacy color mappings for compatibility */
  --primary-color: var(--dill-green);
  --primary-light: #A8C4A7;
  --primary-dark: #6B8A6A;
  --secondary-color: var(--aura-indigo);
  --accent-color: var(--butter-yellow);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Background Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--alpine-oat);
  --bg-tertiary: #F0F4E8;
  --bg-alt: #F8FAF5;
  --bg-dark: var(--dark-gray);
  --bg-card: var(--white);
  
  /* Text Colors */
  --text-primary: var(--dark-gray);
  --text-secondary: var(--light-gray);
  --text-tertiary: #9CA3AF;
  --text-light: var(--white);
  
  /* Border Colors */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #64748b;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'Fira Code', 'Monaco', 'Cascadia Code', 'Segoe UI Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Layout */
  --container-max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.2;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--dill-green) 0%, var(--aura-indigo) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

p {
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--space-lg);
  color: var(--primary-color) !important;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--butter-yellow);
}

.footer-section p {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
  color: var(--text-light);
}

/* ===== CODE BLOCKS ===== */
.code-block {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-x: auto;
  margin: var(--space-lg) 0;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid #333;
}

.code-block pre,
.code-block code {
  color: #f8f8f2;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.code-block::before {
  content: "Code";
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7em;
}

code[class^="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 8px;
  right: 12px;
  background-color: #007acc;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
  font-family: sans-serif;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  right: var(--space-lg);
  z-index: 1001;
  max-width: 400px;
}

.alert {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease-out;
}

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

.alert-error {
  border-left: 4px solid var(--error-color);
}

.alert-warning {
  border-left: 4px solid var(--warning-color);
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--text-secondary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-search {
    display: none; /* Hide search on mobile for now */
  }
  
  .nav-menu,
  .azbn-menu,
  .azbn-links {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    flex-direction: column;
    background-color: var(--bg-card);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg) 0;
  }

  .nav-menu.active,
  .azbn-menu.active,
  .azbn-links.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }


  .hero-name,
  .azbn-hero-title,
  .azbn-hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .projects-grid,
  .skills-grid,
  .tutorials-grid,
  .azbn-tutorials-grid,
  .azbn-projects-grid,
  .azbn-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions,
  .hero-actions,
  .azbn-cta-buttons,
  .azbn-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .azbn-header .azbn-container {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .azbn-section h2,
  .section-title,
  .azbn-section-title {
    font-size: 2rem;
  }

  /* NLP Course Mobile */
  .nlp-course .container {
    padding: 15px;
  }
  
  .nlp-course .header h1 {
    font-size: 2em;
  }
  
  .nlp-course .course-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nlp-course .nav-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .nlp-course .pros-cons {
    grid-template-columns: 1fr;
  }
  
  .nlp-course .section {
    padding: 20px;
  }
  
  .nlp-course .demo-input {
    font-size: 16px;
  }

  .nlp-course .quiz-option {
    padding: 15px;
    font-size: 14px;
  }
  
  .nlp-course .quiz-question {
    font-size: 1em;
  }
  
  .nlp-course .quiz-container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .container,
  .azbn-container {
    padding: 0 var(--space-md);
  }

  .hero-name,
  .azbn-hero-title,
  .azbn-hero h1 {
    font-size: 2rem;
  }

  .section-title,
  .azbn-section-title,
  .azbn-section h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .azbn-cta-buttons,
  .azbn-buttons {
    flex-direction: column;
    align-items: center;
  }

  .projects-grid,
  .tutorials-grid,
  .azbn-tutorials-grid,
  .azbn-projects-grid,
  .azbn-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
.nlp-course .nav-btn:focus,
.nlp-course .demo-btn:focus,
.nlp-course .quiz-option:focus,
.btn:focus,
.azbn-btn:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .nlp-course,
  body {
    background: white !important;
  }
  
  .nlp-course .interactive-demo {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
  }
  
  .nlp-course .nav-btn {
    display: none !important;
  }
  
  .nlp-course .section {
    display: block !important;
    page-break-inside: avoid;
  }
}space-md);
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

strong, b {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== UTILITY CLASSES ===== */
.container,
.azbn-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.text-red { color: var(--error-color); }
.text-green { color: var(--success-color); }
.text-blue { color: var(--primary-color); }

/* ===== BUTTONS ===== */
.btn,
.azbn-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.btn-primary,
.azbn-btn.azbn-primary {
  background-color: var(--dill-green);
  color: var(--white);
  border-color: var(--dill-green);
}

.btn-primary:hover,
.azbn-btn.azbn-primary:hover {
  background-color: var(--butter-yellow);
  border-color: var(--butter-yellow);
  color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 91, 0.3);
}

.btn-outline,
.btn-secondary,
.azbn-btn-secondary,
.azbn-secondary,
.azbn-btn.azbn-secondary {
  background-color: var(--white);
  color: var(--dark-gray);
  border-color: var(--dill-green);
  border-width: 2px;
}

.btn-outline:hover,
.btn-secondary:hover,
.azbn-btn-secondary:hover,
.azbn-secondary:hover,
.azbn-btn.azbn-secondary:hover {
  background-color: var(--butter-yellow);
  color: var(--dark-gray);
  border-color: var(--butter-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 91, 0.3);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar,
.azbn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-container,
.azbn-header .azbn-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo a,
.azbn-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.logo-text {
  color: var(--primary-color);
}

.logo-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-left: var(--space-xs);
}

.nav-menu,
.azbn-menu,
.azbn-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.azbn-link,
.azbn-links a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active,
.azbn-link:hover,
.azbn-link.azbn-active,
.azbn-links a:hover {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

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

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== SEARCH ===== */
.nav-search {
  flex: 1;
  max-width: 400px;
  margin: 0 var(--space-lg);
}

.search-form {
  width: 100%;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.search-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 400;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-button {
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: var(--primary-dark);
}

.search-button i {
  font-size: 0.9rem;
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-results-page {
  padding: 2rem 0;
  min-height: calc(100vh - var(--nav-height));
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-form-large {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input-group-large {
  display: flex;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.search-input-group-large:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input-large {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 400;
}

.search-input-large::placeholder {
  color: var(--text-tertiary);
}

/* ===== SEARCH TAGS ===== */
.search-tags {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

.search-tags::before {
  content: "🏷️ ";
  margin-right: 0.25rem;
}

/* ===== SEARCH MODAL ENHANCEMENTS ===== */
.search-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.search-item:hover {
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 0 -1rem;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item h5 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

.search-item p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.search-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.search-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.search-section:first-child h4 {
  margin-top: 0;
}

/* ===== SEARCH RESULTS TAGS ===== */
.result-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
}

.tag:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  transition: all var(--transition-fast);
}

.result-read-time {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-style: italic;
}

.search-button-large {
  padding: var(--space-md) var(--space-xl);
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.search-button-large:hover {
  background: var(--primary-dark);
}

.search-summary {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

.search-results {
  max-width: 1000px;
  margin: 0 auto;
}

.search-section {
  margin-bottom: 3rem;
}

.search-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.result-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.result-title a {
  color: var(--dark-gray) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 600;
}

.result-title a:hover {
  color: var(--dill-green) !important;
}

/* More specific selector to ensure search result titles are dark on white cards */
.search-results .result-title a,
.search-result-card .result-title a,
.search-results-grid .result-title a {
  color: var(--dark-gray) !important;
}

.search-results .result-title a:hover,
.search-result-card .result-title a:hover,
.search-results-grid .result-title a:hover {
  color: var(--dill-green) !important;
}

.result-type {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.result-type.tutorial {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.result-type.project {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.result-type.blog {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.result-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.result-category,
.result-difficulty,
.result-duration,
.result-date {
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.result-difficulty.beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.result-difficulty.intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.result-difficulty.advanced {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.result-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tech-tag {
  padding: 0.2rem 0.5rem;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 4rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.search-suggestions {
  text-align: left;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.search-suggestions h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.search-suggestions li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.search-tips {
  max-width: 800px;
  margin: 0 auto;
}

.search-tips h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

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

.tip-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tip-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tip-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tip-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* ===== HERO SECTION ===== */
.hero,
.azbn-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-container,
.azbn-hero .azbn-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}


.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  min-height: 80vh;
  padding: 2rem 0;
  max-width: 1600px;
  margin: 0 auto;
}  

.hero-text {
  z-index: 2;
  max-width: 100%;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-color), var(--butter-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 90%;
  width: 100%;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 100%;
  width: 100%;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  flex: 1;
  text-align: center;
  min-width: 160px;
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-greeting {
  display: block;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.hero-name,
.azbn-hero-title,
.azbn-hero h1 {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-subtitle,
.azbn-hero-subtitle,
.azbn-hero h2 {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-description,
.azbn-hero-description,
.azbn-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions,
.azbn-cta-buttons,
.azbn-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* ===== HERO DEMO SECTION ===== */
.hero-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 1120px;
  width: 100%;
}

.demo-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.demo-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
}

.demo-controls {
  margin-bottom: 1rem;
  text-align: center;
}

.demo-controls select {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
}

.demo-controls select:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-demo-run {
  background: var(--butter-yellow);
  color: var(--dark-gray);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 200px;
}

.btn-demo-run:hover {
  background: #ffcc33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 217, 91, 0.3);
}

.btn-demo-run:active {
  transform: translateY(0);
}

.btn-demo-reset {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  width: 100%;
  max-width: 120px;
}

.btn-demo-reset:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-demo-reset:active {
  transform: translateY(0);
}

.btn-demo-reset:disabled {
  background: #adb5bd;
  cursor: not-allowed;
  transform: none;
}

.btn-demo-step {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  width: 100%;
  max-width: 120px;
}

.btn-demo-step:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 166, 138, 0.3);
}

.btn-demo-step:active {
  transform: translateY(0);
}

.btn-demo-step:disabled {
  background: #adb5bd;
  cursor: not-allowed;
  transform: none;
}

#matrixDemoCanvas {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: #1a1a1a;
  cursor: crosshair;
  display: block;
  margin: 0 auto 1rem auto;
  transition: all 0.3s ease;
}

#matrixDemoCanvas:hover,
#matrixDemoCanvas:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

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

.demo-explanation {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.transformation-explanation {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--butter-yellow);
}

.step-indicator {
  background: var(--butter-yellow);
  color: var(--dark-gray);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

#transformationText {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.matrix-display,
.vector-display {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

/* Mobile responsiveness for hero demo */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-text {
    text-align: center;
    order: 1;
    width: 100%;
  }
  
  .hero-demo {
    order: 2;
    width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .demo-container {
    max-width: 90%;
    padding: 1rem;
  }
  
  #matrixDemoCanvas {
    width: 500px;
    height: 500px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .demo-title {
    font-size: 1.1rem;
  }
  
  .demo-controls select {
    max-width: 180px;
    font-size: 0.8rem;
  }
  
  .matrix-display {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .demo-container {
    max-width: 95%;
    padding: 0.8rem;
  }
  
  #matrixDemoCanvas {
    width: 400px;
    height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .demo-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .demo-explanation {
    font-size: 0.8rem;
  }
}

/* Deployment Status */
.azbn-deployment-status {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.azbn-deployment-status p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== SECTIONS ===== */
section,
.azbn-section {
  padding: var(--space-3xl) 0;
}

.azbn-bg-alt,
.azbn-section:nth-child(even) {
  background: var(--bg-alt);
}

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

.section-title,
.azbn-section-title,
.azbn-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* Intro Section */
.azbn-intro {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== GRID LAYOUTS ===== */
.azbn-grid,
.projects-grid,
.skills-grid,
.tutorials-grid,
.azbn-tutorials-grid,
.azbn-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

/* ===== CARDS ===== */
.card,
.azbn-card,
.project-card,
.tutorial-card,
.skill-category,
.azbn-tutorial-card,
.azbn-project-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-md) 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  line-height: 1.6;
  min-height: 300px;
  color: var(--text-primary);
}

.card:hover,
.azbn-card:hover,
.project-card:hover,
.tutorial-card:hover,
.skill-category:hover,
.azbn-tutorial-card:hover,
.azbn-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card h3,
.azbn-card h3,
.project-card h3,
.tutorial-card h3,
.azbn-tutorial-card h3,
.azbn-project-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  flex-shrink: 0;
}

.card p,
.azbn-card p,
.project-card p,
.tutorial-card p,
.azbn-tutorial-card p,
.azbn-project-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  text-align: center;
  flex-shrink: 0;
}

.card a,
.azbn-card a,
.azbn-tutorial-link,
.azbn-project-link {
  margin-top: auto;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding-top: var(--space-md);
  display: inline-block;
  transition: all var(--transition-fast);
}

.card a:hover,
.azbn-card a:hover,
.azbn-tutorial-link:hover,
.azbn-project-link:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== PROJECT SPECIFIC STYLES ===== */
.featured-projects {
  background-color: var(--bg-secondary);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

img.profile-image {
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 50%; /* Optional: makes it circular */
  object-fit: cover;  
}

.project-image img {
  width: 100%;
  height: 100%;
  align-items: center;
  transition: transform var(--transition-slow);
}

.tech-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 2.5rem;
  color: var(--text-light);
}

.tech-icons i {
  transition: transform 0.2s ease, color 0.2s ease;
}

.tech-icons i:hover {
  transform: scale(1.3);
  color: var(--accent-color);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-actions {
  display: flex;
  gap: var(--space-md);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.project-category {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-tag {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.tech-tag.more {
  background-color: var(--warning-color);
  color: var(--text-light);
}

/* ===== SKILLS SECTION ===== */
.azbn-skills,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  justify-content: center;
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.skill-tags span {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* ===== TUTORIALS SECTION ===== */
.recent-tutorials {
  background-color: var(--bg-secondary);
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-lg) 0;
}

.tutorial-meta {
  display: flex;
  gap: var(--space-sm);
}

.tutorial-category {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.tutorial-difficulty {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.difficulty-beginner { background-color: var(--success-color); color: var(--text-light); }
.difficulty-intermediate { background-color: var(--warning-color); color: var(--text-light); }
.difficulty-advanced { background-color: var(--error-color); color: var(--text-light); }

.tutorial-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.tutorial-content {
  padding: var(--space-lg);
}

.tutorial-title a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.tutorial-title a:hover {
  color: var(--primary-color);
}

.tutorial-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.tutorial-tags,
.azbn-tutorial-tags,
.azbn-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.tag,
.azbn-tag,
.badge {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.tag-container span {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Badge Variants */
.badge-success { background: var(--success-color); color: var(--text-light); }
.badge-warning { background: var(--warning-color); color: var(--text-light); }
.badge-secondary { background: var(--text-secondary); color: var(--text-light); }
.badge-primary { background: var(--primary-color); color: var(--text-light); }

.tutorial-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.tutorial-link {
  color: var(--primary-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: gap var(--transition-fast);
}

.tutorial-link:hover {
  gap: var(--space-md);
}

/* ===== CONTACT SECTION ===== */
.azbn-contact-content,
#contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.azbn-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.azbn-contact-item {
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

#contact p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
}

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

.cta-title {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TUTORIAL DETAIL STYLES (Add to main.css) ===== */

.back-to-tutorials {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.back-to-tutorials a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.back-to-tutorials a:hover {
  gap: var(--space-md);
}

.tutorial-header {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.tutorial-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.tutorial-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tutorial-category {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.tutorial-difficulty {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.difficulty-beginner { 
  background-color: var(--success-color); 
  color: var(--text-light); 
}

.difficulty-intermediate { 
  background-color: var(--warning-color); 
  color: var(--text-light); 
}

.difficulty-advanced { 
  background-color: var(--error-color); 
  color: var(--text-light); 
}

.tutorial-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.tutorial-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.tutorial-info {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tutorial-tags-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tutorial-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.tutorial-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.tutorial-content h2 {
  font-size: 2rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-sm);
}

.tutorial-duration span {
  font-size: 1 rem;
}

.tutorial-content h3 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.tutorial-content p {
  margin-bottom: var(--space-lg);
}

.tutorial-content ul,
.tutorial-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.tutorial-content li {
  margin-bottom: var(--space-sm);
}

/* Responsive tutorial styles */
@media (max-width: 768px) {
  .tutorial-header h1 {
      font-size: 2rem;
  }
  
  .tutorial-info {
      flex-direction: column;
      gap: var(--space-md);
  }
  
  .tutorial-content-wrapper {
      padding: var(--space-2xl) var(--space-md);
  }
  
  .tutorial-content {
      font-size: 1rem;
  }
}

/* ===== FOOTER ===== */
.footer,
.azbn-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-3xl) 0 var(--space-lg);
  text-align: center;
}

.footer * {
  color: var(--text-light) !important;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--space-lg);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--butter-yellow);
}

.footer-section p {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
  color: var(--text-light);
}

/* ===== TUTORIAL DETAIL STYLES ===== */
.back-to-tutorials {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.back-to-tutorials a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.back-to-tutorials a:hover {
  gap: var(--space-md);
}

.tutorial-header {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.tutorial-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.tutorial-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tutorial-category {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.tutorial-difficulty {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.difficulty-beginner { 
  background-color: var(--success-color); 
  color: var(--text-light); 
}

.difficulty-intermediate { 
  background-color: var(--warning-color); 
  color: var(--text-light); 
}

.difficulty-advanced { 
  background-color: var(--error-color); 
  color: var(--text-light); 
}

.tutorial-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.tutorial-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.tutorial-info {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tutorial-tags-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tutorial-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.tutorial-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.tutorial-content h2 {
  font-size: 2rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-sm);
}

.tutorial-content h3 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.tutorial-content p {
  margin-bottom: var(--space-lg);
}

.tutorial-content ul,
.tutorial-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.tutorial-content li {
  margin-bottom: var(--space-sm);
}

/* Responsive tutorial styles */
@media (max-width: 768px) {
  .tutorial-header h1 {
      font-size: 2rem;
  }
  
  .tutorial-info {
      flex-direction: column;
      gap: var(--space-md);
  }
  
  .tutorial-content-wrapper {
      padding: var(--space-2xl) var(--space-md);
  }
  
  .tutorial-content {
      font-size: 1rem;
  }
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--error-color);
}

.modal-body {
  padding: var(--space-lg);
}

#search-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

#search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(157, 153, 241, 0.1);
}

#search-results {
  margin-top: var(--space-lg);
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background-color: var(--bg-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.search-result-item:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.search-result-item h4 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.search-result-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.search-error {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-lg);
}

/* Project Card Overlay Styles */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay .btn {
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay .btn {
  transform: translateY(0);
}

/* Technology Tags - Fixed Display */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: var(--primary-color, #6c63ff);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.tech-tag.more {
  background: var(--secondary-color, #64748b);
  opacity: 0.8;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-actions .btn {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f59e0b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-actions {
      flex-direction: column;
  }
  
  .project-actions .btn {
      flex: none;
  }
  
  .project-overlay {
      opacity: 1; /* Always show on mobile */
      background: rgba(0, 0, 0, 0.5);
  }
}