@keyframes skillBounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-6px);
  }
}

.about-heading h1 {
  text-align: center;
  max-width: 900px;
  margin: 30px auto 15px;
  padding: 20px;
}

/* About Section Layout */
.about-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

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

.about-text h2 {
  margin-bottom: 20px;
  font-size: 26px;
  color: #0078ff;
  letter-spacing: 1px;
}

.about-text p {
  line-height: 1.8;
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.dark-mode .about-text p {
  color: #ccc;
}

/* Image Slider */
.about-image {
  flex: 0 0 auto;
}

.slider-wrapper {
  position: relative;
  max-width: 380px;
  margin: auto;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 120, 255, 0.2);
  border: 1px solid rgba(0, 120, 255, 0.1);
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  vertical-align: middle;
}

.dot-container {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: 0.6s ease;
}

.dot.active {
  background-color: #0078ff;
  width: 25px;
  border-radius: 10px;
}

.experience-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.experience-section h2 {
  font-size: 26px;
  color: #0078ff;
  margin-bottom: 30px;
}

.experience-header {
  margin-bottom: 25px;
}

.experience-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #333;
}

.experience-date {
  color: #666;
  font-weight: 500;
  font-size: 14px;
}

.achievements-heading {
  font-size: 22px;
  color: #333;
  margin: 25px 0 15px;
}

.experience-list {
  list-style: none;
  padding-left: 0;
}

.experience-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #555;
}

.experience-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #0078ff;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
}

.education-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.education-section h2 {
  font-size: 26px;
  color: #0078ff;
  margin-bottom: 30px;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.education-item {
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

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

.education-item h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #333;
}

.education-date {
  color: #666;
  font-weight: 500;
  font-size: 14px;
}

.skills-section {
  max-width: 1100px;
  margin: 80px auto 100px;
  padding: 0 20px;
}

.skills-section h2 {
  font-size: 26px;
  color: #0078ff;
  margin-bottom: 40px;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 25px;
}

.tech-item {
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 25px 15px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.tech-item:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: #0078ff !important;
  box-shadow: 0 15px 35px rgba(0, 120, 255, 0.2) !important;
  background: #ffffff;
}

.tech-item:hover .tech-icon img {
  animation: skillBounce 0.6s ease-in-out infinite alternate;
}

.tech-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #0078ff;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.tech-item:hover::after {
  width: 100%;
}

.tech-icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.tech-item span {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

/* Dark Mode Styles */
.dark-mode .about-text p,
.dark-mode .experience-list li {
  color: #ccc;
}

.dark-mode .experience-date,
.dark-mode .education-date {
  color: #aaa;
}

.dark-mode .education-item {
  border-color: #333;
}

.dark-mode .tech-item {
  background: #1a1a1a;
  border-color: #333;
}

.dark-mode .tech-item span {
  color: #fff;
}

.dark-mode .tech-item:hover {
  background: #222;
}

.dark-mode .experience-header h3,
.dark-mode .achievements-heading,
.dark-mode .education-item h3 {
  color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-heading h1 {
    margin: 30px auto 10px;
    padding: 10px;
  }

  .about-row {
    flex-direction: column-reverse;
    gap: 40px;
    margin: 30px auto 60px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .slider-wrapper {
    max-width: 300px;
  }

  .mySlides img {
    height: 350px;
  }

  .experience-section,
  .education-section,
  .skills-section {
    margin: 60px auto;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
  }

  .experience-section h2,
  .education-section h2,
  .skills-section h2 {
    text-align: center;
    font-size: 24px;
  }
}

@media (max-width: 480px) {

  .about-row {
    padding: 0 15px;
  }

  .slider-wrapper {
    max-width: 280px;
  }

  .mySlides img {
    height: 300px;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .tech-item {
    padding: 20px 10px;
  }

  .tech-icon img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 350px) {
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}