/* =========================================================
   muzammilimtiaz.com — "laptop tabs" theme
   sections.css — content styling for each screen panel:
   hero, about, skills (accordion), experience (folders),
   projects (carousel), education, certifications, contact
   ========================================================= */

h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 22px; font-weight: 600; }
h2 .hash { color: var(--accent); font-family: var(--font-mono); }

/* ---------- hero ---------- */
.hero { max-width: 640px; }
.prompt-line {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}
.prompt { color: var(--accent-2); margin-right: 6px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pencil-caret {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 0.55em;
  display: inline-block;
  animation: writeWobble 2.4s ease-in-out infinite;
}
@keyframes writeWobble {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-3px); }
}
.headline-tagline {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.3vw, 14px);
  color: var(--ink-soft);
  margin: 8px 0 4px;
  letter-spacing: 0.2px;
}
.ai-highlight {
  color: var(--accent-2);
  font-weight: 600;
}
.typing-text {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 18px);
  margin: 10px 0 18px;
  min-height: 1.4em;
}
.typing-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.description { color: var(--ink-soft); line-height: 1.7; margin-bottom: 26px; font-size: 15px; }

.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.meta-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--paper-dark);
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  padding: 5px 12px;
}
.meta-chip.ai-chip { color: var(--accent-2); border-color: var(--accent-2); }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; position: relative; z-index: 5; }
.cta-button {
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}
.cta-button.primary { background: var(--accent); color: #fff8ee; }
.cta-button.secondary { border-color: var(--ink-faint); color: var(--ink); }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  animation: hintFloat 1.8s ease-in-out infinite;
}
@keyframes hintFloat { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(4px); opacity: 1; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.readme-pane {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
}
.readme-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.about-text { padding: 16px; }
.about-text p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; font-size: 15px; }
.about-stats-card {
  background: var(--paper-dark);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 18px;
}
.info-panel-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.stat-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.stat-item + .stat-item { border-top: 1px dashed var(--paper-line); }
.stat-icon { font-size: 22px; }
.stat-text h4 { font-size: 15px; margin-bottom: 2px; }
.stat-text p { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- finder list view (skills) — collapsible groups ---------- */
.finder-list { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px; overflow: hidden; }
.finder-list-head {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.finder-list-head .col-name { flex: 1; }
.finder-list-head .col-kind { width: 110px; flex: 0 0 auto; }
.finder-list-head .col-level { width: 90px; flex: 0 0 auto; text-align: right; }

.skill-group + .skill-group { border-top: 1px solid var(--paper-line); }
.finder-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--paper-dark);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.finder-group-header:hover { background: var(--paper-line); }
.group-caret {
  display: inline-block;
  font-size: 10px;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.skill-group.open > .finder-group-header .group-caret,
.finder-folder.open .finder-folder-header .folder-caret {
  transform: rotate(90deg);
}
.skill-group-rows {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(.2,.8,.3,1);
}
.skill-group.open .skill-group-rows { max-height: 2000px; }
.finder-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-line);
  transition: background 0.15s ease;
}
.finder-list-row:hover { background: var(--paper-dark); }
.file-icon {
  width: 9px; height: 9px;
  border-radius: 2.5px;
  flex: 0 0 auto;
}
.icon-front { background: var(--accent); }
.icon-back { background: var(--accent-2); }
.icon-tools { background: #4a7fb5; }
.icon-other { background: var(--ink-faint); }
.file-name { flex: 1; color: var(--ink); min-width: 0; }
.file-kind { width: 110px; flex: 0 0 auto; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; }
.file-level {
  width: 90px;
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.level-expert { color: var(--accent); }
.level-proficient { color: var(--accent-2); }

/* ---------- finder folders (experience) — collapsible roles ---------- */
.folder-list-head { border: 1px solid var(--paper-line); border-bottom: none; border-radius: 10px 10px 0 0; }
.folder-list-head .col-name { flex: 1; }
.folder-list-head .col-kind { width: 220px; flex: 0 0 auto; }
.folder-list-head .col-date { width: 140px; flex: 0 0 auto; text-align: right; }

.finder-folders { border: 1px solid var(--paper-line); border-radius: 0 0 10px 10px; overflow: hidden; }
.finder-folder + .finder-folder { border-top: 1px solid var(--paper-line); }

.finder-folder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--paper);
  transition: background 0.15s ease;
}
.finder-folder-header:hover { background: var(--paper-dark); }
.folder-caret { font-size: 10px; color: var(--ink-faint); transition: transform 0.2s ease; flex: 0 0 auto; }
.folder-icon { font-size: 14px; flex: 0 0 auto; }
.folder-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.folder-badge {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(47, 111, 79, 0.1);
  border: 1px solid var(--accent-2);
  border-radius: 10px;
  padding: 1px 8px;
  vertical-align: middle;
}
.folder-kind { width: 220px; flex: 0 0 auto; font-size: 12px; color: var(--ink-soft); }
.folder-date { width: 140px; flex: 0 0 auto; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

.finder-folder-contents {
  background: var(--paper-dark);
  padding: 0 0 0 40px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(.2,.8,.3,1);
}
.finder-folder.open .finder-folder-contents { padding: 4px 0 8px 40px; max-height: 2000px; }
.finder-file-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 12px 4px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.doc-icon { flex: 0 0 auto; font-size: 11px; margin-top: 1px; }

.external-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.external-link:hover { text-decoration: underline; }
.open-tab-icon { display: inline-block; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; margin-left: 3px; }

/* ---------- finder icon grid (projects, education, certifications) ---------- */
.finder-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* projects: left-to-right scroll instead of wrapping grid */
/* the project cards carry the most content of any panel, so claw back a
   little of the shared vertical padding/heading margin here specifically —
   keeps the tallest card inside the fixed-height panel instead of clipped */
#projects h2 { margin-bottom: 12px; }
#projects .panel-scroll { padding-top: 16px; padding-bottom: 14px; }

/* swipe affordance — desktop users see a scrollbar/trackpad cue naturally,
   so this stays hidden here and is switched on only in the mobile media
   query in responsive.css, where the carousel's only hint is a card peek */
.carousel-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: -6px 0 10px;
}
.carousel-hint .hint-arrow { display: inline-block; animation: hintSlide 1.3s ease-in-out infinite; }
@keyframes hintSlide { 0%, 100% { transform: translateX(0); opacity: .5; } 50% { transform: translateX(5px); opacity: 1; } }

.projects-scroll {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: visible;
  gap: 16px;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.projects-scroll .finder-file-tile {
  /* wider cards = fewer wrapped bullet lines = shorter cards, so the
     tallest card still fits inside the fixed-height panel (no internal
     scroll by design — see .panel-scroll) instead of getting clipped */
  flex: 0 0 min(560px, 84vw);
  scroll-snap-align: start;
  padding: 12px;
}
.projects-scroll::-webkit-scrollbar { height: 8px; }
.projects-scroll::-webkit-scrollbar-thumb { background: var(--paper-line); border-radius: 8px; }
.finder-file-tile {
  display: block;
  background: var(--paper-dark);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 13px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.finder-file-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.file-badge {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff8ee;
  margin-bottom: 6px;
}
.badge-1 { background: linear-gradient(155deg, var(--accent-soft), var(--accent)); }
.badge-2 { background: linear-gradient(155deg, #4a9d78, var(--accent-2)); }
.badge-3 { background: linear-gradient(155deg, #6c95c9, #4a7fb5); }
.badge-4 { background: linear-gradient(155deg, #c9a35a, var(--gold)); }
.badge-5 { background: linear-gradient(155deg, #8f8a80, var(--graphite-light)); }
.project-title { font-size: 14.5px; margin-bottom: 4px; }
.project-type { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.terminal-window {
  background: linear-gradient(160deg, #26241f, #100f0d);
  border-radius: 8px;
  overflow: hidden;
  margin: 6px 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 18px rgba(0,0,0,0.22);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #e05d5d; } .dot-yellow { background: #e0c15d; } .dot-green { background: #5dbf6f; }
.term-title { color: #8c8880; font-size: 11px; margin-left: 4px; }

.terminal-content {
  padding: 7px 11px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
}
.terminal-content div {
  opacity: 0;
  transform: translateX(-6px);
  animation: termLineIn 0.4s ease forwards;
}
.panel:not(.active) .terminal-content div { opacity: 0; animation: none; }
.terminal-content div:nth-child(1) { animation-delay: 0.05s; }
.terminal-content div:nth-child(2) { animation-delay: 0.22s; }
.terminal-content div:nth-child(3) { animation-delay: 0.39s; }
.terminal-content div:nth-child(4) { animation-delay: 0.56s; }
@keyframes termLineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.terminal-content div:first-child {
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.terminal-content div:not(:first-child) { color: #7fd99a; }
.terminal-content::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 2px;
  background: var(--accent-soft);
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--ink-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tech-tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
.tech-tag.ai-tag {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(47, 111, 79, 0.08);
  font-weight: 600;
}
.tech-tag.ai-tag:hover { color: var(--accent-2); border-color: var(--accent-2); }
.project-features { padding-left: 15px; }
.project-features li { font-size: 11px; color: var(--ink-soft); line-height: 1.34; margin-bottom: 2px; }

/* education / certs use the shared .finder-file-tile styling above */
.edu-grid { grid-template-columns: minmax(230px, 340px); }
.edu-tile h3 { font-size: 14.5px; margin-bottom: 4px; }
.edu-year { display: block; margin-top: 8px; }
.cert-tile h3 { font-size: 13.5px; margin-bottom: 4px; line-height: 1.4; }

/* ---------- contact — presented as a Finder "Get Info" vCard panel ---------- */
.vcard-panel {
  max-width: 420px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.vcard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--paper-line);
}
.vcard-header .file-badge { margin-bottom: 0; font-size: 16px; }
.vcard-name { font-size: 14.5px; margin-bottom: 2px; }
.vcard-fields { padding: 6px 16px 14px; }
.vcard-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px dashed var(--paper-line);
}
.vcard-row:first-child { border-top: none; }
.vcard-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.vcard-value { color: var(--accent); text-decoration: none; font-size: 13.5px; }
.vcard-value:hover { text-decoration: underline; }
.footer { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-align: center; margin-top: 20px; }
