/* Experience Section */
:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --dark-color: #2d3748;
  --medium-color: #4a5568;
  --light-color: #f9fafc;
}
#particles-js {
  height: 80vh; /* Reduced from 100vh to 80% of viewport */
  position: relative;
  background: #0f0f1a; /* Optional: Match your theme */
}
/* Experience Section */
.experience-section {
  padding: 80px 0;
  background-color: #f9fafc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #2d3748;
  position: relative;
}

.section-title span {
  color: #3a86ff;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #3a86ff, #8338ec);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

.timeline-date {
  position: absolute;
  top: 30px;
  width: 120px;
  text-align: center;
  padding: 8px 0;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  background: #3a86ff;
  box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -60px;
}

.timeline-content {
  padding: 30px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.timeline-content.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #2d3748;
}

.timeline-content h4 {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 20px;
  font-weight: 500;
}

.timeline-content ul {
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 12px;
  color: #4a5568;
  line-height: 1.6;
  position: relative;
  list-style-type: none;
  padding-left: 25px;
}

.timeline-content li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #3a86ff;
}

/* Experience Section Responsive */
@media (max-width: 992px) {
  .experience-section {
    padding: 60px 0;
  }

  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
    margin-bottom: 30px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 70px;
  }
  
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    left: -10px;
    right: auto;
    top: -40px;
    width: 140px;
  }

  .timeline-content {
    padding: 25px;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content h4 {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .experience-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .timeline-content h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .timeline-content li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .experience-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  
  .timeline::before {
    left: 20px;
    width: 3px;
  }
  
  .timeline-item {
    padding-left: 50px;
    padding-right: 15px;
    margin-bottom: 25px;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  
  .timeline-date {
    width: 120px;
    font-size: 0.8rem;
    padding: 6px 0;
    left: -15px !important;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content h4 {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .timeline-content li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 18px;
  }
}

/* Projects Section */
.projects-section {
  padding: 80px 0;
  background: white;
}

.project-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.category-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: #edf2f7;
  color: #4a5568;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn.active {
  background: linear-gradient(45deg, #3a86ff, #8338ec);
  color: white;
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

.category-btn:hover:not(.active) {
  background: #e2e8f0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #2d3748;
}

.project-info p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background: rgba(58, 134, 255, 0.1);
  color: #3a86ff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #3a86ff, #8338ec);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-link:hover {
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-date {
    width: 100px;
    left: -15px !important;
    right: auto !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

.project-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--medium-color);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.modal-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal-image:hover {
  transform: scale(1.05);
}

.modal-details {
  flex: 1;
}

.project-description {
  color: var(--medium-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-pill {
  background: rgba(58, 134, 255, 0.1);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-pill i {
  font-size: 0.9rem;
}

.features-list {
  padding-left: 20px;
  margin-bottom: 25px;
}

.features-list li {
  margin-bottom: 10px;
  color: var(--medium-color);
  line-height: 1.6;
  position: relative;
  padding-left: 25px;
}

.features-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.outcome {
  background: rgba(58, 134, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  border-left: 4px solid #3a86ff;
}

.outcome h4 {
  color: #3a86ff;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
  }
  
  .modal-content {
    flex-direction: column;
  }
  
  .modal-image-container {
    height: 200px;
  }
}