/* ============================================================
   Inner pages shared styles (About, Portfolio, Certificates,
   Services, Contact)
   ============================================================ */

.muted { color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.portrait-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 28px var(--shadow);
  position: sticky;
  top: 100px;
}
.portrait-avatar {
  width: 110px; height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--hero-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem; font-weight: 800;
}
.portrait-frame h3 { font-size: 1.3rem; }
.portrait-frame .muted { font-size: 0.92rem; }
.portrait-meta { margin-top: 1.25rem; text-align: left; }
.portrait-meta p { font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }

.about-story h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.about-story p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0; }

/* Pillars detailed */
.pillar-cards { margin-top: 0.5rem; }
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  border-top: 4px solid var(--accent);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px var(--shadow); }
.pillar-num {
  font-size: 1.8rem; font-weight: 800;
  background: var(--hero-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pillar-card h3 { font-size: 1.05rem; margin: 0.5rem 0; }
.pillar-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Tools */
.tool-set h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.tool-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tool-list span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--heading);
}

/* ---------- Portfolio ---------- */
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px var(--shadow); }
.proj-cover {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.cover-sm { background: linear-gradient(135deg, #C4C2E5, #9DA1F9); }
.cover-tech { background: linear-gradient(135deg, #353150, #6E73E0); }
.cover-edu { background: linear-gradient(135deg, #B0B2EF, #9DA1F9); }
.proj-body { padding: 1.4rem; }
.proj-body .badge { margin-bottom: 0.6rem; }
.proj-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.proj-body p { color: var(--text-muted); font-size: 0.92rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.proj-tags span {
  font-size: 0.75rem; color: var(--accent-deep);
  background: var(--surface); padding: 0.2rem 0.6rem; border-radius: 6px;
}

/* Timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 1.8rem; }
.tl-dot {
  position: absolute; left: -2rem; top: 24px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--hero-grad);
  border: 3px solid var(--bg);
}
.tl-content { margin-left: 0; }
.tl-period {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--accent-deep); background: var(--surface);
  padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.5rem;
}
.tl-content h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.tl-org { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.7rem; }
.tl-content ul { padding-left: 1.2rem; color: var(--text-muted); }
.tl-content ul li { font-size: 0.92rem; margin-bottom: 0.4rem; }

/* Achievements */
.ach-card { display: flex; align-items: flex-start; gap: 1rem; }
.ach-icon {
  font-size: 1.8rem; width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 12px;
}
.ach-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.ach-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Certificates ---------- */
.cert-stats { margin-bottom: 0; }
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1rem;
  text-align: center;
}
.stat-box strong { display: block; font-size: 2.2rem; color: var(--accent-deep); line-height: 1; }
.stat-box span { font-size: 0.85rem; color: var(--text-muted); }

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--hero-grad);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px var(--shadow); }
.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.cert-icon {
  font-size: 1.6rem; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 10px;
}
.cert-date { font-size: 0.78rem; color: var(--accent-deep); font-weight: 600; }
.cert-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 0.4rem; }
.cert-issuer { color: var(--text-muted); font-size: 0.88rem; }

/* Education */
.edu-card { position: relative; padding-top: 2.2rem; }
.edu-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--surface); color: var(--accent-deep);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 50px;
}
.edu-done { background: var(--accent); color: #fff; }
.edu-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.edu-school { color: var(--heading); font-weight: 500; }

/* ---------- Services ---------- */
.svc-icon {
  font-size: 1.7rem; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 12px; margin-bottom: 0.8rem;
}
.svc-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.svc-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Pricing */
.pricing-grid { align-items: stretch; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px var(--shadow); }
.price-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 36px var(--shadow);
}
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--hero-grad); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 1rem; border-radius: 50px;
  white-space: nowrap;
}
.price-name { font-size: 1.2rem; margin-bottom: 0.5rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--heading); line-height: 1; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0.8rem 0 1.2rem; }
.price-features { list-style: none; text-align: left; margin-bottom: 1.5rem; flex-grow: 1; }
.price-features li { padding: 0.5rem 0; font-size: 0.92rem; color: var(--text); border-bottom: 1px dashed var(--border); }
.price-btn { width: 100%; justify-content: center; }

/* ---------- Contact ---------- */
.ci-card { text-align: center; }
.ci-icon {
  font-size: 1.8rem; width: 56px; height: 56px; margin: 0 auto 0.7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 14px;
}
.ci-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.ci-card p { color: var(--text-muted); font-size: 0.88rem; word-break: break-word; }

.contact-main { align-items: start; }
.calendly-wrap h3, .form-wrap h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.calendly-inline-widget {
  margin-top: 1rem; border-radius: 12px; overflow: hidden;
  background: var(--surface);
}

/* Form */
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--heading); }
.form-row input, .form-row textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--shadow);
}
.form-note { font-size: 0.8rem; margin-top: 0.7rem; }

/* Social */
.social-block { margin-top: 1rem; }
.social-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 820px; margin: 0 auto;
}
.social-link {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.2rem;
  color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.social-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px var(--shadow); color: var(--text); }
.social-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: var(--hero-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.social-name { font-weight: 600; font-size: 0.95rem; display: block; color: var(--heading); }
.social-handle { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* ---------- Responsive for inner pages ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait-frame { position: static; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .social-grid { grid-template-columns: 1fr; }
}
