/* ==========================================================================
   RESUME.CSS // MODERN TECH EXECUTIVE STYLESHEET
   Mohd Akibuddin — Ruby on Rails Engineer
   ========================================================================== */

:root {
  --ruby: #f43f5e;
  --ruby-dark: #be123c;
  --cyan: #0891b2;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Print Top Action Bar */
.pbar {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pbar-name {
  font-size: 0.86rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pbar-name b {
  color: #f8fafc;
}

.pbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.18s ease;
  text-decoration: none;
}

.pbtn.print {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
}
.pbtn.print:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.5);
}

.pbtn.back {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.pbtn.back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Document Container */
.wrap {
  max-width: 860px;
  margin: 36px auto 60px;
  padding: 0 20px;
}

.doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px 52px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Document Header */
.rhead {
  padding-bottom: 22px;
  border-bottom: 2px solid var(--text-dark);
  margin-bottom: 24px;
}

.rname {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.rrole {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ruby);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.rcontacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rcontacts a, .rcontacts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.rcontacts a:hover {
  color: var(--ruby);
}
.rcontacts i {
  color: var(--ruby);
  font-size: 0.8rem;
}

/* Sections */
.rsec {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.rsec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rsec-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ruby);
  border-left: 3px solid var(--ruby);
  padding-left: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.rsec p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* Skills Table */
.sk {
  width: 100%;
  border-collapse: collapse;
}
.sk td {
  padding: 4px 0;
  font-size: 0.88rem;
  vertical-align: top;
}
.sk-k {
  width: 140px;
  font-weight: 700;
  color: var(--text-dark);
  padding-right: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.sk td:last-child {
  color: var(--text-muted);
}

/* Experience */
.rexp-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.rexp-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}
.rexp-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
}
.rexp-co {
  font-size: 0.88rem;
  color: var(--ruby);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

/* Bullets */
.rbullets {
  padding-left: 0;
  display: grid;
  gap: 6px;
}
.rbullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.58;
  list-style: none;
}
.rbullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ruby);
  font-size: 0.8rem;
  top: 1px;
}

/* Projects */
.rproj {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.rproj:last-child {
  margin-bottom: 0;
}
.rproj-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}
.rproj-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
}
.rproj-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.rproj-tech {
  display: block;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .pbar {
    display: none !important;
  }
  .wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .doc {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .rhead {
    border-bottom: 2px solid #000000 !important;
  }
  .rsec-title {
    border-left-color: #000000 !important;
    color: #000000 !important;
  }
  .rrole, .rexp-co, .rproj-tech {
    color: #000000 !important;
  }
  .rbullets li::before {
    color: #000000 !important;
  }
}

@media (max-width: 680px) {
  .doc {
    padding: 28px 20px;
  }
  .pbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}
