/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  font-size: 1.4rem; /* Slightly reduced from 1.5rem */
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.skill-category h3::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  bottom: -5px;
  left: 0;
  border-radius: 2px;
}

.skill-category p {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  flex: 1;
}

/* Resume Section */
.resume-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  left: 0;
  top: 0;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  left: -6.5px;
  top: 5px;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

/* Education Section */
.education-container {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
  font-size: 1.4rem; /* Slightly reduced from 1.5rem */
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 600;
}

.education-item .institution {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.education-item .date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.education-item .description {
  color: rgba(255, 255, 255, 0.8);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.4rem; /* Slightly reduced from 1.5rem */
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.3;
}

.project-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-card .btn {
  align-self: flex-start;
  padding: 0.6rem 1.6rem; /* Even smaller for project buttons */
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  background: var(--dark-alt);
  padding: 3rem 5% 3rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: translateY(-3px);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .skills-container,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .project-card .btn {
    align-self: center;
    width: 100%;
    max-width: 250px;
    margin-top: 0.5rem;
  }
}
