/* ---------- GLOBAL ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%);
  color: #333;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero .glow {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  margin: 0;
}

.hero h3 {
  color: #e2e6f0;
  margin-top: 5px;
}

.hero p {
  color: #f0f2f7;
  margin-top: 8px;
  font-size: 1.05rem;
}

.hero .links {
  margin-top: 18px;
}

.hero .links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
  font-weight: 500;
}

.hero .links a:hover {
  text-decoration: underline;
}

/* ---------- ABOUT ---------- */
.about, .skills {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.about p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

/* ---------- JOURNEY SECTION ---------- */
.journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e0e6ef;
  border-bottom: 1px solid #e0e6ef;
}

.journey h2 {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 60px;
  text-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
  letter-spacing: 1px;
  font-weight: 600;
}

.spacer {
  min-width: 80px;
}

/* ---------- EDUCATION ---------- */
.education {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: left;
}

.education h2 {
  text-align: center;
  color: #007bff;
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-shadow: 0 0 6px rgba(0, 123, 255, 0.15);
}

.edu-card {
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0, 123, 255, 0.15);
}

.edu-card h3 {
  color: #007bff;
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.edu-card p {
  margin: 5px 0;
  color: #333;
  line-height: 1.5;
}

.edu-duration {
  color: #555;
  font-style: italic;
}

.edu-card ul {
  margin-top: 10px;
  padding-left: 20px;
  color: #444;
}

.edu-card ul li {
  margin-bottom: 6px;
}



/* ---------- TIMELINE CONTAINER ---------- */
.timeline-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  padding: 10px 0 -20px; /* reduced bottom padding */
}


/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 80px 80px;
  gap: 120px;
  min-height: 380px;
}

/* base line (road) */
.timeline::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #d7e3f3;
}

/* glowing animated overlay */
.timeline::after {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  width: 0%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  transition: width 1s ease-out;
}

.timeline.draw::after {
  width: 100%;
}

/* ---------- MILESTONES ---------- */
.milestone {
  width: 280px;
  scroll-snap-align: center;
  text-align: center;
  position: static;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  margin: 0 auto 140px;
  border: 1px solid #d9e4ef;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 123, 255, 0.1);
}

.card h3 {
  color: #007bff;
  margin: 0 0 5px;
  font-size: 1rem;
}

.card h4 {
  margin: 0 0 8px;
  color: #222;
  font-weight: 600;
}

.card p {
  color: #555;
  font-size: 0.95rem;
}

/* ---------- DOTS ---------- */
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #007bff;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.2s;
}

.dot.active {
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ---------- DESTINATION ---------- */
.destination {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  margin-left: 30px;
  color: #007bff;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d9e4ef;
  background: #f5f9ff;
}

/* ---------- SKILLS ---------- */
/* ---------- SKILLS WITH PROGRESS BARS ---------- */
.skills {
  max-width: 800px;
  margin: 100px auto;
  text-align: left;
  padding: 0 20px;
}

.skills h2 {
  text-align: center;
  color: #007bff;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.skill {
  margin-bottom: 22px;
}

.skill span {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 1rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e8f2ff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  transition: width 1s ease;
}


/* ---------- CUSTOM SCROLLBAR ---------- */
.timeline-container::-webkit-scrollbar {
  height: 10px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #e0e6ef;
  border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #006ae0, #009ee0);
}


/* ---------- DOWNLOAD BUTTON ---------- */
.download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: linear-gradient(90deg, #006ae0, #00aaff);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  margin-bottom: 18px;
}


/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: #fff;
  color: #333;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 80%;
  max-width: 700px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-out;
}

.close-btn {
  float: right;
  font-size: 1.6rem;
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
}

.close-btn:hover {
  color: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 30px;
  background: #f3f5f8;
  color: #777;
  font-size: 0.9rem;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .timeline {
    gap: 60px;
    padding: 60px 36px;
    min-height: 340px;
  }

  .card {
    width: 230px;
    margin-bottom: 120px;
  }

  .milestone {
    width: 230px;
  }

  .journey h2 {
    font-size: 1.6rem;
  }
}
