/* ================= BACKGROUND ================= */
#stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at top, #0b1020, #05060a);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* ================= BASE ================= */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
  color: #e5e7eb;
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 14px;
  background: rgba(10,10,20,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
}

/* ================= LAYOUT ================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 20px 70px;
}

.grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
}

/* PROFILE */
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #1f2937;
}

/* SOCIAL ICONS (RESTORED + FIXED) */
.socials {
  margin-top: 15px;
}

.icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px;

  border-radius: 10px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);

  color: #e5e7eb;
  font-size: 18px;

  text-decoration: none;

  transition: 0.2s ease;
}

.icon:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
}

/* LinkedIn */
.linkedin::before {
  content: "in";
  font-weight: 600;
}

/* GitHub */
.github::before {
  content: "Git";
  font-size: 16px;
}
/* HERO TEXT */
.name {
  font-size: 2.8rem;
  margin: 0 0 10px;
}

.intro {
  color: #cbd5e1;
}

/* ================= SECTIONS ================= */
h2 {
  margin-top: 60px;
}

/* CARDS */
.cards {
  display: grid;
  gap: 15px;
}

.card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================= EXPERIENCE ================= */
.side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  align-items: start; /* prevents equal-height stretching */
}

.frame {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* COLLAPSIBLE */
.collapsible {
  cursor: pointer;
}

.collapse-header {
  display: flex;
  justify-content: space-between;
}

.collapse-body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.collapsible.open .collapse-body {
  max-height: 300px;
  margin-top: 10px;
}

/* JOB */
.job {
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 12px;
  margin-top: 10px;
}

/* ================= CERTIFICATIONS ================= */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FIX: prevent blue link styling */
.cert {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;        /* <-- keeps text white */
  text-decoration: none; /* <-- removes blue underline */
  transition: 0.2s;
}

.cert:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
}

/* ================= ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .grid, .side-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    font-size: 0.85rem;
  }
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* top row: label + percent */
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* bar container */
.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

/* fill */
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #a78bfa);
  transition: width 0.6s ease;
}

/* spacing between companies */
.company {
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

/* nicer header layout */
.company .collapse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* roles */
.role {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.role-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

/* description */
.job-desc {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #9ca3af;
}

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

