/* =========================================================
   Junaid Peters Resume — Stylesheet
   Theme: Luxury Dark / Gold Accent (mirrors original PDF)
   Fonts: Playfair Display (headings) + DM Sans (body)
   ========================================================= */

/* --- CSS VARIABLES --- */
:root {
  --bg-dark:       #1e1e1e;
  --bg-sidebar:    #2a2a2a;
  --bg-content:    #f7f5f0;
  --gold:          #c9a84c;
  --gold-light:    #e0bf6e;
  --gold-muted:    #a0804a;
  --text-dark:     #1a1a1a;
  --text-light:    #e8e0d0;
  --text-muted:    #9e8f7a;
  --accent-bar:    #c9a84c;
  --cert-bg:       #2f2515;
  --cert-text:     #f0d990;
  --radius:        4px;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: #111;
  font-family: var(--font-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  word-break: break-word;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --- PAGE WRAPPER --- */
.page {
  max-width: 1020px;
  margin: 40px auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-content);
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- HEADER --- */
.header {
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 48px;
  border-bottom: 3px solid var(--gold);
}

.header-monogram {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  letter-spacing: 2px;
}

.header-name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.header-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* --- MAIN GRID --- */
.main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 700px;
}

/* --- SIDEBAR --- */
.sidebar {
  background: var(--bg-sidebar);
  padding: 36px 28px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar .section-title {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-muted);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

/* Contact */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-light);
}

.contact-icon {
  color: var(--gold);
  font-style: normal;
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Education */
.edu-institution {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.4;
}

.edu-degree {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}

.edu-years {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 500;
}

/* Bullet lists (sidebar) */
.sidebar .bullet-list li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sidebar .bullet-list li::before {
  content: '▸';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

/* --- CONTENT --- */
.content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--bg-content);
}

/* Section title (content) */
.content .section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
  margin-bottom: 14px;
}

/* Summary */
.summary-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #3a3530;
  text-align: justify;
}

/* Skill list */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-list li {
  font-size: 0.845rem;
  line-height: 1.6;
  color: #3a3530;
  padding-left: 14px;
  position: relative;
}

.skill-list li::before {
  content: '▸';
  color: var(--gold-muted);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  line-height: 1.8;
}

.skill-label {
  font-weight: 600;
  color: var(--text-dark);
}

/* Experience bullet list (content) */
.content .bullet-list li {
  font-size: 0.845rem;
  color: #3a3530;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.65;
}

.content .bullet-list li::before {
  content: '▸';
  color: var(--gold-muted);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  line-height: 1.8;
}

/* --- CERTIFICATIONS --- */
.certifications-section {
  background: var(--cert-bg);
  border-radius: var(--radius);
  padding: 22px 26px 24px;
  margin-top: 4px;
}

.certifications-title {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-muted) !important;
  font-style: italic;
}

.cert-note {
  font-size: 0.78rem;
  color: var(--gold-muted);
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-style: italic;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cert-badge {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--gold-muted);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cert-text);
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: background 0.2s;
}

.cert-badge:hover {
  background: rgba(201, 168, 76, 0.22);
}

/* --- RESPONSIVE --- */
@media (max-width: 720px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }

  .page {
    margin: 0;
    border-radius: 0;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 28px 24px;
  }

  .sidebar {
    padding: 28px 24px;
  }
}
