/* ─────────────────────────────────────────────────────────────────
   maazspace.com — Global Stylesheet
   Aesthetic: Editorial Minimal · Off-white · Warm Amber accent
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg:         #F8F6F1;
  --bg-card:    #FFFFFF;
  --text:       #1A1A18;
  --text-muted: #6B6B68;
  --text-light: #9B9B98;
  --accent:     #E8A020;
  --accent-dim: #F5DBA8;
  --border:     #E4E1DA;
  --radius:     12px;
  --radius-sm:  6px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:  1100px;
  --nav-h:  68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { color: var(--text-muted); font-size: 1rem; }

/* ── Layout ── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ── Bands (alternating bg strips) ── */
.band { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

/* ── Page hero block ── */
.page-hero { max-width: 640px; margin-bottom: 72px; }
.page-hero h1 { margin: 10px 0 16px; }
.page-hero-sub { font-size: 1.1rem; line-height: 1.8; }

/* ── Section header with row layout ── */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.section-title { margin-bottom: 16px; }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-dot { color: var(--accent); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-link {
  font-size: 0.9rem; color: var(--text-muted);
  position: relative; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.25s ease; transform-origin: left;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 1.05rem; line-height: 1.75; max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.avatar-wrap { position: relative; width: 340px; height: 340px; }
.avatar-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(232,160,32,0.4);
  animation: spin 30s linear infinite;
}
.avatar-ring::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #f0ece3 0%, #e8e3d8 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 5rem; color: var(--accent);
  border: 1px solid var(--border); overflow: hidden;
}
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.22s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-number { font-family: var(--font-display); font-size: 2.4rem; color: var(--text); display: block; margin-bottom: 4px; }
.stat-label  { font-size: 0.85rem; color: var(--text-light); }
.about-tools h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light);
  margin-bottom: 14px; margin-top: 28px;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: 0.82rem; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 56px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); border-color: transparent; }
.project-card:hover::before { transform: scaleX(1); }
.project-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.project-badge { position: absolute; top: 28px; right: 28px; font-size: 0.7rem; font-weight: 500; padding: 4px 10px; border-radius: 50px; background: #E8F5E9; color: #2E7D32; }
.project-badge.wip { background: #FFF3E0; color: #E65100; }
.project-name { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; }
.project-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; color: var(--text-muted); }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-pill { font-size: 0.75rem; padding: 3px 10px; border-radius: 50px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }

/* ── BLOG LIST ── */
.blog-list { margin-top: 48px; border-top: 1px solid var(--border); }
.blog-item {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer;
}
.blog-item:hover .blog-title { color: var(--accent); }
.blog-date    { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; }
.blog-title   { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; transition: color 0.2s; margin-bottom: 4px; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.blog-meta    { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.blog-tag-pill { font-size: 0.75rem; padding: 3px 12px; border-radius: 50px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.blog-mins    { font-size: 0.75rem; color: var(--text-light); }

/* ── TAG FILTER ── */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tag-btn {
  padding: 6px 16px; border-radius: 50px; font-size: 0.82rem;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
}
.tag-btn:hover, .tag-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── SINGLE POST ── */
.post-container { max-width: 720px; }
.post-header { margin-bottom: 36px; }
.back-link { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
.post-title { font-size: clamp(2rem, 4vw, 3rem); margin: 20px 0 12px; }
.post-meta { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.post-meta-sep { color: var(--border); }
.post-excerpt { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); font-style: italic; }
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--text-muted); }
.post-body h2 { font-size: 1.6rem; color: var(--text); margin: 48px 0 16px; }
.post-body h3 { font-size: 1.2rem; color: var(--text); margin: 36px 0 12px; }
.post-body p  { margin-bottom: 20px; }
.post-body a  { color: var(--accent); border-bottom: 1px solid var(--accent-dim); transition: border-color 0.2s; }
.post-body a:hover { border-color: var(--accent); }
.post-body pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin: 24px 0; font-size: 0.88rem; }
.post-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; font-style: italic; }
.post-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.post-author { display: flex; align-items: center; gap: 14px; }
.post-author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.post-author-name { font-weight: 500; font-size: 0.95rem; }
.post-author-bio  { font-size: 0.82rem; color: var(--text-light); }

/* ── SOCIAL LINKS GRID ── */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.22s; }
.social-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.social-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.social-name   { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.social-handle { font-size: 0.78rem; color: var(--text-light); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group   { display: flex; flex-direction: column; gap: 7px; }
.form-label   { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }
.form-input, .form-textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
.form-textarea { min-height: 140px; resize: vertical; }
.contact-info p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; transition: border-color 0.2s; }
.contact-detail:hover { border-color: var(--accent); }
.contact-detail-label { font-size: 0.78rem; color: var(--text-light); }
.contact-detail-value { font-size: 0.9rem; font-weight: 500; }
.response-note { margin-top: 24px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── FORM ALERT ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 4px; display: none; }
.alert.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; display: block; }
.alert.error   { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; display: block; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 52px 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 4px; }
.footer-link { font-size: 0.87rem; color: var(--text-muted); transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.78rem; color: var(--text-light); }
.footer-socials { display: flex; gap: 20px; }
.footer-social-link { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-social-link:hover { color: var(--accent); }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px; gap: 18px;
  }
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-visual   { order: -1; }
  .hero-desc     { margin: 0 auto 36px; }
  .hero-actions  { justify-content: center; }
  .avatar-wrap   { width: 200px; height: 200px; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .blog-item     { grid-template-columns: 1fr; gap: 8px; }
  .blog-date     { display: none; }
  .section       { padding: 64px 0; }
  .footer-top    { flex-direction: column; }
}
