/* ==========================================================================
   Sheikh Asiya Noor — Flat Engineering Portfolio Stylesheet
   Pure Flat Design, Zero Gradients, Zero Glow, Zero Icon Clutter
   Information-Dense, Minimalist, High Contrast
   ========================================================================== */

:root {
  /* Flat Dark Palette (Default) */
  --bg-page: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-alt: #1c2128;
  --bg-tag: #21262d;

  --border-light: #21262d;
  --border-subtle: #30363d;
  --border-emphasis: #484f58;

  /* Typography Colors */
  --text-main: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-dim: #6e7681;

  /* Restrained Flat Accent */
  --accent-blue: #58a6ff;
  --accent-blue-hover: #79c0ff;
  --accent-green: #3fb950;
  --accent-amber: #d29922;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

  --container-width: 960px;
}

[data-theme="light"] {
  /* Soft Warm Neutral Palette (Gentle on the eyes, zero glare) */
  --bg-page: #f4f1ea;
  --bg-surface: #eae5d9;
  --bg-surface-alt: #dfd9cb;
  --bg-tag: #d5cebf;

  --border-light: #dfd9cc;
  --border-subtle: #cfc8b8;
  --border-emphasis: #b2ab9a;

  --text-main: #20201d;
  --text-secondary: #3c3a34;
  --text-muted: #615e55;
  --text-dim: #848074;

  --accent-blue: #1d5fb0;
  --accent-blue-hover: #14498c;
  --accent-green: #1b7339;
  --accent-amber: #8a5e0b;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Container */
.site-container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.1s ease;
}

.site-nav a:hover {
  color: var(--text-main);
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-emphasis);
  background: var(--bg-surface-alt);
}

/* Sections */
.main-content {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* About / Intro Section */
.about-section {
  padding-top: 1.5rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: stretch;
  margin-bottom: 2.25rem;
}

.profile-photo-wrapper {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.intro-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.role-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.bio-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.contact-links-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0;
}

.contact-links-bar a {
  color: var(--accent-blue);
  text-decoration: none;
}

.contact-links-bar a:hover {
  text-decoration: underline;
}

.sep {
  color: var(--border-emphasis);
  user-select: none;
}

/* Quantitative Highlights Grid */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.metric-cell {
  background-color: var(--bg-surface);
  padding: 1rem 1.25rem;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.filter-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0;
  text-decoration: none;
}

.filter-link:hover {
  color: var(--text-main);
}

.filter-link.active {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-entry {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.project-top-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-title a {
  color: var(--text-main);
  text-decoration: none;
}

.project-title a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.project-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-category {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.role-separator {
  margin-inline: 0.35rem;
  color: var(--text-dim);
}

.project-role-tag {
  color: var(--accent-green);
  font-weight: 500;
}

.project-bullets {
  list-style-type: square;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.project-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.project-bullets strong {
  color: var(--text-main);
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
}

.project-tech-text {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-tech-text strong {
  color: var(--text-secondary);
}

.project-repo-link {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  text-decoration: none;
}

.project-repo-link:hover {
  text-decoration: underline;
}

/* Experience List */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-entry {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.experience-top-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.experience-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.experience-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.experience-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.experience-bullets {
  list-style-type: square;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.experience-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.experience-bullets strong {
  color: var(--text-main);
}

.experience-tech {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.experience-tech strong {
  color: var(--text-secondary);
}

/* Education List */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.education-entry {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.education-top-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.education-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.education-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.education-institution {
  font-size: 0.9375rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.education-score {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.education-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-category {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.skill-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.4rem;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-row {
  font-size: 0.875rem;
}

.skill-row strong {
  color: var(--text-main);
  display: block;
  font-size: 0.85rem;
}

.skill-row span {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  display: block;
}

/* Certifications List */
.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cert-entry {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.cert-top-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.cert-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.cert-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cert-issuer {
  font-size: 0.875rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.cert-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.cert-link {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
}

/* Contact Box */
.contact-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

.contact-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.method-item {
  font-size: 0.9rem;
}

.method-item strong {
  color: var(--text-muted);
  display: inline-block;
  min-width: 70px;
}

.method-item a {
  color: var(--accent-blue);
  text-decoration: none;
}

.method-item a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.back-to-top {
  color: var(--text-muted);
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .profile-photo-wrapper {
    width: 140px;
    height: 140px;
  }
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-controls {
    flex-wrap: wrap;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
}
