/* about.css - Updated to work with your theme variables */
.about .container {
  padding-top: 60px;
  padding-bottom: 20px;
}

.section-title {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 35px;
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
  padding-top: 20px;
  text-align: center;
}

.section-title h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.section-title h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
}

.about .about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about .about-content .about-text {
  flex: 1 1 60%;
  min-width: 300px;
}

.about .about-content .about-text h3 {
  font-size: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-black-900);
  line-height: 1.3;
}

.about .about-content .about-text h3 span {
  color: var(--skin-color);
}

.about .about-content .about-text p {
  font-size: 22px;
  line-height: 1.8;
  color: var(--text-black-700);
  margin-bottom: 15px;
}

.personal-info {
  flex: 1 1 35%;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.my_image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 5px solid var(--bg-black-100);
  transition: transform 0.3s ease;
}

.my_image:hover {
  transform: translateY(-5px);
}

/* Tech Stack Section */
.tech-stack {
  flex: 0 0 100%;
  margin-top: 50px;
  position: relative; /* Add position for z-index */
  z-index: 1; /* Add z-index to ensure proper stacking */
}

.tech-stack .title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-black-900);
  text-align: center;
  position: relative;
}

.tech-stack .title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--skin-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.tech-item {
  background: var(--bg-black-100);
  color: var(--text-black-900);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--bg-black-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tech-item i {
  font-size: 24px;
  color: var(--skin-color);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--skin-color);
}

/* Education Timeline */
.education {
  flex: 0 0 100%;
  margin-top: 120px;
  position: relative;
  z-index: 1;
}

.education .title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-black-900);
  text-align: center;
  position: relative;
}

.education .title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--skin-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 15px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--skin-color),
    rgba(236, 24, 57, 0.3)
  );
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 18px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--skin-color);
  border: 3px solid var(--bg-black-100);
  box-shadow: 0 0 0 2px var(--skin-color);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-black-100);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 3px solid var(--skin-color);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-date {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--skin-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-date i {
  font-size: 14px;
}

.timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-black-900);
}

.timeline-location,
.timeline-grade {
  font-size: 14px;
  color: var(--text-black-700);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-location i,
.timeline-grade i {
  color: var(--skin-color);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about .about-content {
    flex-direction: column;
  }

  /* Force education to appear after tech stack */
  .education {
    margin-top: 350px; /* Increase this value to create more space - adjust as needed */
    clear: both;
    position: relative;
    z-index: 1;
  }

  /* Make sure tech-stack is above */
  .tech-stack {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
  }

  /* Reduce the tech grid's vertical size */
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .tech-item {
    padding: 8px;
  }

  .tech-item i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 24px;
  }

  .about .about-content .about-text h3 {
    font-size: 20px;
  }

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

  .timeline-content {
    padding: 20px;
  }
}

.code-editor {
  width: 100%;
  max-width: 400px;
  background: var(--bg-black-100);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.editor-header {
  padding: 10px 15px;
  background: var(--bg-black-50);
  display: flex;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.editor-title {
  margin-left: 10px;
  color: var(--text-black-700);
  font-size: 14px;
}

.editor-content {
  padding: 15px;
}

.language-javascript {
  color: var(--text-black-900);
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.typing-animation {
  border-right: 2px solid var(--skin-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40) 1s 1 normal both,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--skin-color);
  }
}

/* Font Awesome for icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
