.resume {
  padding: 5.5rem 2rem 3rem 2rem; /* More top padding for space below navbar */
  text-align: center;
  background: #ffffff;
}

.resume h1 {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: #065f46;
  margin-bottom: 2.5rem;
  border: none;
  padding-bottom: 0;
  letter-spacing: -2px;
  text-align: center;
}

.resume p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.resume-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.resume-left,
.resume-right {
  flex: 1;
  min-width: 250px;
}

.resume-section {
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
  padding-left: 2.5rem;
}

.resume-section::before {
  content: "";
  position: absolute;
  left: 17px; /* Centered under the dot */
  top: 0;
  width: 3px;
  height: 100%;
  background: #34d399;
  z-index: 0;
  border-radius: 2px;
}

.resume-section:first-child::before {
  top: 2.2rem;
}

.resume-section .dot {
  position: absolute;
  left: 8px; /* Center dot over the line */
  top: 18px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #34d399;
  border-radius: 50%;
  z-index: 1;
}

.bullet-point {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.circle {
  width: 10px;
  height: 10px;
  background-color: #34d399;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.resume-section p {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.project-entry + .project-entry {
  margin-top: 1.6rem;
}

.certificate-links {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.certificate-links-static {
  width: 100%;
  margin-bottom: 0;
}

.certificate-link-static {
  display: block;
  width: 100%;
  font-size: 1rem;
  color: #1f2937;
  margin: 0 0 0.2rem 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  text-align: left !important;
  text-justify: auto !important;
  line-height: 1.45;
}

.certificate-link {
  width: 100%;
  border: none;
  background: transparent;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.certificate-link:hover,
.certificate-link.active {
  color: #2563eb;
  transform: translateX(4px);
}

.certificate-link-disabled {
  color: #6b7280;
  cursor: default;
}

.certificate-link-disabled:hover {
  color: #6b7280;
  transform: none;
}

.certificate-viewer {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 16px;
  background: #f3f7ff;
  border: 1px solid #dbeafe;
}

.certificate-viewer-head h3 {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.certificate-viewer-head p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.certificate-frame {
  display: none;
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.certificate-viewer.has-selection .certificate-frame {
  display: block;
}

.resume-section ul {
  list-style-type: none;
  padding-left: 1rem;
}

.resume-section ul li {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  position: relative;
}

.resume-section ul li:before {
  content: "•";
  color: #34d399;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.experience-section .timeline {
  position: relative;
  margin-left: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid #222;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -1.1rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: #222;
  border-radius: 50%;
  border: 2px solid #fff;
}
.timeline-content {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}
.timeline-content h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 0.2rem;
}
.exp-org {
  color: #10b981;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.exp-meta {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/* Fix social icons to top-right corner */
.social-icons {
  position: fixed;
  top: 5px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  align-items: center;
  pointer-events: auto;
}
.social-icons a {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.social-icons a:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .resume h1 {
    font-size: 2rem;
  }
  .resume-container {
    flex-direction: column;
    gap: 1rem;
  }
  .resume-left,
  .resume-right {
    width: 100%;
  }

  .resume {
    padding: 5.5rem 1rem 2rem;
  }

  .resume-section {
    padding-left: 2rem;
  }

  .certificate-frame {
    height: 320px;
  }
}
