/*
Theme Name: Ammad Dev Resume
Theme URI: https://ammad.dev
Author: Ammad Amir
Author URI: https://www.ammad.dev
Description: Minimal academic-style resume theme inspired by keirp.com. Single-page CV/portfolio layout with dynamic content.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ammad-dev-resume
*/

:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-soft: #ecfdf3;
  --border: #e5e7eb;
  --code: #111827;
  --link: #0f766e;
  --link-hover: #115e59;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --max-width: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  margin-left: 1.2rem;
  color: inherit;
}

.nav-links a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

/* Layout */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

section {
  margin-bottom: 3rem;
}

.section-inner {
  width: 100%;
}

/* Hero */
.hero-title {
  font-size: clamp(2.3rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.3rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-meta span + span::before {
  content: "•";
  margin: 0 0.5rem;
  color: var(--border);
}

.hero-contact {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.9rem;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Section headings */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

/* Timeline / entries */
.entry {
  margin-bottom: 1.15rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.96rem;
}

.entry-org {
  font-weight: 600;
}

.entry-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-role {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.entry-body {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.entry-body ul {
  margin: 0.25rem 0 0.25rem 1.1rem;
  padding: 0;
}

.entry-body li {
  margin-bottom: 0.1rem;
}

/* Skills / coursework columns */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0;
  margin: 0.2rem 0 0;
  list-style: none;
}

.badge {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: #fff;
}

/* Projects */
.project-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.project-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-body ul {
  margin: 0.3rem 0 0.25rem 1.1rem;
  padding: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .nav-inner {
    flex-direction: row;
  }

  .nav-links {
    display: none;
  }

  .hero-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
