/* style-dark.css
   Dark mode stylesheet for the minimalist two-column resume.
   Replace your existing style.css with this (or include it as an alternate file).
*/

/* --- Color variables --- */
:root {
  --bg: #0b0b0c;
  --panel: #0f1113;
  --muted: #9aa0a6;
  --text: #e6e9eb;
  --subtle: #bfc6cc;
  --border: rgba(255,255,255,0.06);
  --accent-line: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.6);
}

/* If user prefers system dark mode, these vars will apply automatically.
   If you'd rather load this only when toggled, load this file conditionally. */
@media (prefers-color-scheme: dark) {
  /* keep same vars for clarity; browsers will already match */
}

/* --- Reset / base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #050506 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 30px 20px;
}

/* --- Layout container --- */
.resume {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1000px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  margin: 20px auto;
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- Sidebar --- */
.sidebar {
  background: linear-gradient(180deg, #0f1113 0%, #0d0f11 100%);
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.profile {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
}

.name {
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

.title {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Sidebar headings */
.sidebar h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  color: var(--subtle);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  letter-spacing: 0.6px;
}

.sidebar p,
.sidebar li {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.sidebar ul {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

.sidebar li::before {
  content: "• ";
  color: rgba(255,255,255,0.35);
  margin-right: 4px;
}

/* --- Main content --- */
.main-content {
  padding: 2rem 3rem;
  background: transparent;
}

.main-content section {
  margin-bottom: 2rem;
}

/* Section headings with subtle left rule */
.main-content h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding-left: 0.6rem;
  color: var(--text);
  position: relative;
}

.main-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 22px;
  width: 3px;
  background: #d8d3d3;
  border-radius: 2px;
  opacity: 0.9;
}

/* Job / project / education items */
.job, .edu-item, .project {
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.4rem;
  border-radius: 6px;
  transition: background .12s ease;
}

.job:hover, .project:hover {
  background: rgba(255, 255, 255, 0.01);
}

.job h3, .edu-item h3, .project h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.company, .school {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

/* Lists */
ul { padding-left: 1.2rem; }
ul li { margin-bottom: 0.45rem; color: var(--subtle); }

/* Paragraphs */
p { margin-bottom: 0.6rem; color: var(--subtle); }

/* subtle section delimiters */
.main-content section + section {
  border-top: 1px dashed rgba(255,255,255,0.03);
  padding-top: 1.1rem;
}

/* --- Utility tweaks --- */
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.06); }
a:hover { text-decoration-color: rgba(255,255,255,0.12); }

/* footer (if present) */
footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .resume { grid-template-columns: 1fr; margin: 12px; border-radius: 6px; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); text-align: center; padding: 1.5rem; }
  .main-content { padding: 1.2rem; }
  .profile-pic { width: 100px; height: 100px; }
}

/* --- Print --- */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .resume { box-shadow: none; border: none; max-width: 100%; }
  .sidebar { background: #f6f6f6; color: #000; border-right: 1px solid #ddd; }
  .main-content h2::before { background: #000; }
}
