/* GLOBAL SITE STYLE */
body {
  margin: 0;
  padding: 0;
  background: #faf8f6;
  color: #000;
  font-family: 'Inter', sans-serif;  
} 
 
h1, h2, h3 { 
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
 
/* Fix for navbar covering content */ 
#quarto-content {
  padding-top: 20px;
} 
   
.quarto-title-block {
  padding-top: 40px;
} 

/* NAVBAR */
.navbar {
  background: #faf8f6 !important; /* Changed from transparent to match page background */
  border: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; /* Optional: adds subtle shadow */
  position: fixed !important; /* Changed from absolute to fixed */
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000; /* Ensures navbar stays on top of content */
  padding: 10px 30px;
}
.navbar-nav .nav-link {
  color: #000 !important;
  font-size: 1.1rem;
  margin-left: 20px;
}
.navbar-nav .nav-link:hover {
  color: #2c3e50 !important;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 200px 20px 80px 20px;
}

.name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  font-size: 3rem;
  margin: 0 auto 10px auto;
  text-align: center;
  font-weight: bold;
}

.hero-underline {
  width: 120px;
  margin: auto;
  border: 1px solid #2c3e50; 
}

.social-icons {
  margin: 15px 0;
}
 
.icon { 
  width: 32px;   
  margin: 0 10px;
  opacity: 0.85;
}

.icon:hover {
  opacity: 1;
}
 
.hero-summary {
  max-width: 600px;
  margin: auto;
  color: #555;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 20px;
}

.btn {
  border: 1px solid #2c3e50;
  padding: 10px 18px;
  margin: 0 8px;
  text-decoration: none;
  color: #2c3e50;
  border-radius: 4px;
  transition: 0.2s;
}

.github-btn {
  border-color: #D3D3D3;
  color: #000;
}

.github-btn:hover {
  background: #faf8f6;
  color: #000;
}

.contact-btn {
  background: #2c3e50;
  color: #faf8f6;
}

.contact-btn:hover {
  opacity: 0.9;
}


/* INTRO SECTION */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 10%;
  background-color: #d8ece9;
}

.intro-pic {
  width: 180px;
  border-radius: 8px;
  margin-right: 40px;
}

.intro-text {
  max-width: 600px;
}


/* PORTFOLIO CARDS */
.portfolio-preview {
  padding: 60px 10%;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #faf8f6;
  padding: 20px;
  border-radius: 8px;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: #2c3e50;
}

/* NON-PROFITS PREVIEW SECTION */
.nonprofits-preview {
  background-color: #f0f3f5;  /* Light blue-gray (neutral) */
  padding: 80px 10%;
  text-align: center;
}

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

.nonprofits-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin: 20px auto 30px auto;
}

.nonprofits-btn {
  display: inline-block;
  background: #2c3e50;
  color: white;
  border: 2px solid #2c3e50;
  padding: 12px 30px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nonprofits-btn:hover {
  background: #1a252f;  /* Darker navy for hover */
  border-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);  /* Navy shadow */
}

/* SKILLS BUBBLES */
.skills-section {
  padding: 60px 10%;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.bubble-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  min-height: 400px;
}

.bubble {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: absolute;
  left: var(--x);
  top: var(--y);
}

/* Category colors - vibrant and coordinated with #3ea291 */
.bubble[data-category="programming"] { background: linear-gradient(135deg, #3ea291, #2a7d6b); }
.bubble[data-category="vis"]         { background: linear-gradient(135deg, #4a90e2, #2e5f9e); }
.bubble[data-category="ml"]          { background: linear-gradient(135deg, #9b59b6, #7d3c98); }
.bubble[data-category="comm"]        { background: linear-gradient(135deg, #f39c12, #d68910); }
.bubble[data-category="research"]    { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 10;
} 
   
/* NON-PROFITS PAGE STYLES */
 
/* Non-Profits Hero */
.nonprofit-hero {
  text-align: center;
  padding: 80px 10% 40px 10%;
  /*background: linear-gradient(135deg, #d8ece9 0%, #faf8f6 100%); green accent*/
  background: linear-gradient(135deg, #dceefb 0%, #faf8f6 100%);
}

.hero-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}   

.nonprofit-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Search and Filter */
.search-filter-section {
  padding: 40px 10%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-box {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.search-box input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #2c3e50;
  border-radius: 8px;
  outline: none;
}

.search-box input:focus {
  border-color: #2c3e50;  /* Navy border */
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);  /* Navy shadow */
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #2c3e50;
  background: white;
  color: #2c3e50;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2c3e50;
  color: white;
}

/* Start Here Section */
.start-here-section {
  padding: 60px 10%;
  background: #f5f5f5;
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Start Here section -  */
.start-here-section .section-header h2 {
  color: #8e44ad;
}

/* All Modules section -  */
.all-modules-section .section-header h2 {
  color: #2c3e50;  
}
 
.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Module Cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.module-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #2c3e50;
}

.module-card.start-here {
  border-left-color: #8e44ad;
  background: #fff9f9;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.module-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.module-card.start-here h3 {
  color: #8e44ad;
}
 
.module-tag {
  display: inline-block;
  background: #2c3e50;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.module-card.start-here .module-tag {
  background: #8e44ad;
}

.module-card.start-here .module-link {
  color: #8e44ad;
}

.module-description {
  color: #555;
  line-height: 1.6;
  margin: 15px 0;
}

.module-link {
  display: inline-block;
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

.module-link:hover {
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.2rem;
  display: none;
}

.no-results.show {
  display: block;
}

/* All Modules Section */
.all-modules-section {
  padding: 60px 10%;
}

/* Upcoming Modules Section */
.upcoming-modules-section {
  padding: 60px 10%;
  background: #faf8f6;
}

.module-card.upcoming {
  opacity: 0.65;
  cursor: default;
  border-left-color: #bbb;
  background: #f9f9f9;
}

.module-card.upcoming:hover {
  transform: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.module-card.upcoming h3 {
  color: #777;
}

.module-card.upcoming .module-tag {
  background: #999;
}

.module-card.upcoming .module-tag.upcoming-tag {
  background: #2a7d6b; /*#e67e22;*/
  color: white;
}

.module-card.upcoming .module-description {
  color: #888;
}
 
/* Self-Assessment Styling */ 
.self-assessment { 
  background: #f9f9f9;
  border: 2px solid #2c3e50;
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}  

.assessment-question {
  background: white;
  border-left: 4px solid #2c3e50;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.question-text {
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.rating-scale {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.rating-scale label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: white;
}

.rating-scale label:hover {
  border-color: #2c3e50;
  background: #f0f9f7;
}

.rating-scale input[type="radio"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #2c3e50;
}

.rating-scale input[type="radio"]:checked + label,
.rating-scale label:has(input[type="radio"]:checked) {
  border-color: #2c3e50;
  background: #e8f5f2;
  font-weight: 600;
}

.calculate-btn {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.calculate-btn:hover {
  background: #2a7d6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.result-box {
  background: white;
  border: 3px solid #2c3e50;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  animation: fadeIn 0.5s ease;
}

.result-box h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.result-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

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

/* Table of Contents Styling */
.sidebar nav[role="doc-toc"] {
  padding-top: 100px !important; /* Pushes TOC down below navbar */
}

#TOC {
  padding-top: 100px !important;
}

.sidebar nav[role="doc-toc"] ul li a {
  color: #2c3e50 !important; /* TOC link color */
}

.sidebar nav[role="doc-toc"] ul li a:hover {
  color: #2a7d6b !important; /* TOC hover color */
}

.sidebar nav[role="doc-toc"] ul li a.active {
  color: #2a7d6b !important; /* Active section color */
  font-weight: 600;
}