/* ===== PARTICLE CANVAS ===== */
#page-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== AVAILABILITY BANNER ===== */
.availability-banner {
  max-width: 600px;
  margin: 1rem auto;
  padding: 12px 24px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #28a745;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ff9f00;
  margin-bottom: 1.2rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #dcdcdc;
  margin-bottom: 1.2rem;
  max-width: 850px;
}

.about-content p strong {
  color: #ff9f00;
}

.about-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #ff9f00;
  font-weight: 600;
  border-left: 4px solid #ff9f00;
  padding-left: 10px;
}

/* ===== COMPETENCY GRID ===== */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.competency-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #e6e6e6;
  border-left: 3px solid #ff9f00;
  transition: transform 0.3s ease, background 0.3s ease;
}

.competency-item:hover {
  transform: translateX(5px);
  background: rgba(255, 159, 0, 0.1);
}

.competency-item i {
  color: #ff9f00;
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

/* ===== SKILLS / ACHIEVEMENTS SECTION ===== */
.skills-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skills-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ff9f00;
  margin-bottom: 2rem;
}

/* Achievement Stats Grid (replaces skill bars) */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.achievement-stat {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #ff9f00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 159, 0, 0.15);
}

.achievement-icon {
  margin-bottom: 0.8rem;
}

.achievement-icon i {
  font-size: 1.8rem;
  color: #ff9f00;
}

.achievement-stat h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.achievement-stat p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.5;
}

/* Legacy skill bar support (kept for backwards compat) */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-bar {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e6e6e6;
}

.bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9f00, #ff6b6b);
  border-radius: 10px;
  transition: width 1.5s ease-out;
}

/* ===== INTERACTIVE TIMELINE ===== */
.timeline-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
}

.timeline-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ff9f00;
  margin-bottom: 2.5rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ff9f00, rgba(255, 159, 0, 0.1));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(255, 159, 0, 0.2);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid #ff9f00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(255, 159, 0, 0.1);
}

.timeline-date {
  display: inline-block;
  background: rgba(255, 159, 0, 0.15);
  color: #ff9f00;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0.5rem 0 0.3rem;
  font-weight: 700;
}

.timeline-org {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 0.8rem;
}

.timeline-org i {
  margin-right: 6px;
  color: #ff9f00;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #dcdcdc;
  margin-bottom: 0.5rem;
}

.timeline-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-content ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: #dcdcdc;
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.timeline-content ul li::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ff9f00;
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.65rem;
}

/* ===== CURRENTLY LEARNING ===== */
.learning-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.learning-section h2 {
  font-size: 2rem;
  color: #ff9f00;
  margin-bottom: 0.5rem;
}

.learning-section .section-subtitle {
  color: #999;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.learning-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 159, 0, 0.1);
}

.learning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 159, 0, 0.15);
  border-color: rgba(255, 159, 0, 0.3);
}

.learning-card i {
  font-size: 2rem;
  color: #ff9f00;
}

.learning-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e6e6e6;
  text-align: center;
}

/* ===== ACHIEVEMENTS ===== */
.achievements {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
}

.achievements h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff9f00;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-card i {
  font-size: 2rem;
  color: #ff9f00;
  margin-bottom: 0.8rem;
}

.achievement-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.achievement-card p {
  font-size: 0.9rem;
  color: #dcdcdc;
  line-height: 1.4;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 159, 0, 0.15);
}

/* ===== RESUME CTA ===== */
.resume-cta {
  max-width: 600px;
  margin: 2rem auto 3rem;
  padding: 3rem;
  text-align: center;
  background: rgba(255, 159, 0, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 159, 0, 0.15);
}

.resume-cta h2 {
  color: #ff9f00;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.resume-cta p {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 159, 0, 0.3);
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 159, 0, 0.5);
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark-mode .about-section {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

body.dark-mode .about-content h2,
body.dark-mode .about-content h3 {
  color: #ff9f00;
}

body.dark-mode .about-content p {
  color: #dcdcdc;
}

body.dark-mode .skills-section {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .timeline-content {
  background: rgba(255, 255, 255, 0.07);
}

body.dark-mode .timeline-content h4 {
  color: #fff;
}

/* ========================================
   LIGHT MODE
   ======================================== */

/* About Section */
body.light-mode .about-section {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6e6e6;
}

body.light-mode .about-content p {
  color: #444;
}

body.light-mode .about-content p strong {
  color: #e68a00;
}

/* Competency Grid */
body.light-mode .competency-item {
  background: #f8f8f8;
  color: #333;
  border-left: 3px solid #ff9f00;
}

body.light-mode .competency-item:hover {
  background: rgba(255, 159, 0, 0.08);
}

/* Skills / Achievements Section */
body.light-mode .skills-section {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6e6e6;
}

body.light-mode .achievement-stat {
  background: #f8f8f8;
  border-left: 4px solid #ff9f00;
}

body.light-mode .achievement-stat h4 {
  color: #333;
}

body.light-mode .achievement-stat p {
  color: #666;
}

body.light-mode .skill-info {
  color: #333;
}

body.light-mode .bar-bg {
  background: #e9e9e9;
}

/* Timeline */
body.light-mode .timeline-content {
  background: #fafafa;
  border-left: 3px solid #ff9f00;
  border: 1px solid #e3e3e3;
  border-left: 3px solid #ff9f00;
}

body.light-mode .timeline-content h4 {
  color: #333;
}

body.light-mode .timeline-content p,
body.light-mode .timeline-content li {
  color: #555;
}

body.light-mode .timeline-org {
  color: #777;
}

body.light-mode .timeline-dot {
  box-shadow: 0 0 0 4px rgba(255, 159, 0, 0.15);
}

/* Learning Section */
body.light-mode .learning-card {
  background: #ffffff;
  border-color: #e6e6e6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.light-mode .learning-card span {
  color: #333;
}

body.light-mode .learning-card:hover {
  border-color: rgba(255, 159, 0, 0.3);
}

body.light-mode .learning-section .section-subtitle {
  color: #777;
}

/* Achievements */
body.light-mode .achievements h2 {
  color: #ff9f00;
}

body.light-mode .achievement-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .achievement-card h3 {
  color: #333;
}

body.light-mode .achievement-card p {
  color: #555;
}

/* Resume CTA */
body.light-mode .resume-cta {
  background: rgba(255, 159, 0, 0.03);
  border-color: #e6e6e6;
}

body.light-mode .resume-cta p {
  color: #666;
}

/* Availability Banner */
body.light-mode .availability-banner {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .competency-grid {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }

  .learning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    padding-left: 35px;
  }

  .timeline-dot {
    left: -30px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .availability-banner {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .resume-cta {
    padding: 2rem 1.5rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content {
    padding: 1.5rem;
  }

  #radar-chart {
    max-width: 280px;
  }
}

/* ===== RADAR CHART ===== */
.radar-chart-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#radar-chart {
  max-width: 400px;
  width: 100%;
}

/* ===== GITHUB ACTIVITY HEATMAP ===== */
.github-activity {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.github-activity h2 {
  font-size: 2rem;
  color: #ff9f00;
  margin-bottom: 1.5rem;
}

.github-heatmap {
  display: inline-flex;
  gap: 0;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
}

.heatmap-day-labels {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 6px;
}

.heatmap-day-labels span {
  height: 13px;
  line-height: 13px;
  font-size: 9px;
  color: #888;
  text-align: right;
}

.heatmap-grid {
  display: flex;
  gap: 3px;
}

.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.heatmap-cell.empty {
  background: transparent;
}

.heatmap-cell[data-level="1"] { background: rgba(255, 159, 0, 0.25); }
.heatmap-cell[data-level="2"] { background: rgba(255, 159, 0, 0.45); }
.heatmap-cell[data-level="3"] { background: rgba(255, 159, 0, 0.7); }
.heatmap-cell[data-level="4"] { background: #ff9f00; }

body.light-mode .heatmap-cell { background: #ebedf0; }
body.light-mode .heatmap-cell[data-level="1"] { background: rgba(255, 159, 0, 0.3); }
body.light-mode .heatmap-cell[data-level="2"] { background: rgba(255, 159, 0, 0.5); }
body.light-mode .heatmap-cell[data-level="3"] { background: rgba(255, 159, 0, 0.75); }
body.light-mode .heatmap-cell[data-level="4"] { background: #ff9f00; }

.github-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  color: #ff9f00;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.github-profile-link:hover {
  transform: translateY(-2px);
}
