/* ==== CSS RESET (lightweight) ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827; /* slate-900 */
  background: #f9fafb; /* gray-50 */
}

/* ==== LAYOUT ==== */

body {
  display: flex;
  justify-content: center;
}

.main-wrapper {
  width: 100%;
  max-width: 960px;
  padding: 2.5rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .main-wrapper {
    padding: 3rem 2rem 4rem;
  }
}

/* Card-style container */
.resume {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 2.5rem 1.75rem 2.75rem;
}

@media (min-width: 768px) {
  .resume {
    padding: 3rem 3rem 3.25rem;
  }
}

/* ==== TYPOGRAPHY ==== */

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f172a; /* slate-900 */
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280; /* gray-500 */
}

h3 {
  font-size: 1rem;
}

p {
  font-size: 0.95rem;
  color: #4b5563; /* gray-600 */
}

/* Small muted text */
.muted {
  font-size: 0.8rem;
  color: #9ca3af; /* gray-400 */
}

/* Accent text (e.g., role/headline) */
.accent {
  color: #2563eb; /* blue-600 */
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.7);
}

/* ==== HEADER / BASICS ==== */

#basics {
  margin-bottom: 2.5rem;
}

.basics-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .basics-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Optional avatar if you add it later */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

/* Name + headline */
.basics-main {
  flex: 1;
}

.basics-main h1 {
  margin-bottom: 0.3rem;
}

.basics-main .headline {
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
}

/* Short summary */
.basics-summary {
  margin-top: 1.25rem;
  max-width: 70ch;
}

/* ==== SECTION SHELL ==== */

.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

/* Subtle section divider line */
.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.5),
    rgba(148, 163, 184, 0)
  );
}

/* ==== EXPERIENCE & EDUCATION LIST ==== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* One item (job or edu) */
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

/* Vertical line + bullet */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.3rem;
  bottom: -1.2rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(209, 213, 219, 0.9),
    rgba(229, 231, 235, 0.1)
  );
}

.timeline-item:last-child::before {
  bottom: 0.6rem;
}

.timeline-bullet {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.9);
}

/* Heading row: role / degree + dates */
.item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.1rem;
}

.item-title {
  font-weight: 500;
  color: #111827;
}

.item-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.item-organization {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.15rem;
}

/* Item body text */
.item-summary {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

/* Optional list of bullet highlights inside item */
.item-highlights {
  margin-top: 0.45rem;
  padding-left: 1rem;
  list-style: disc;
}

.item-highlights li {
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 0.15rem;
}

/* ==== CONTACT ==== */

#contact {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.contact-value {
  font-size: 0.9rem;
  color: #111827;
}

/* ==== UTILITIES ==== */

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  color: #4338ca;
  background-color: #eef2ff;
}

/* Small top/bottom spacing utility classes if needed */
.mt-xs { margin-top: 0.25rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }