/* ═══════════════════════════════════════════════
   YASH JAGANI PORTFOLIO — styles.css
   ═══════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

/* ── ROOT VARIABLES ── */
:root {
  --bg:           #0a0a0b;
  --bg2:          #111113;
  --bg3:          #17171a;
  --bg4:          #1e1e22;
  --border:       rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.10);
  --border-bright:rgba(255,255,255,0.14);
  --accent:       #00e5a0;
  --accent-dim:   rgba(0,229,160,0.12);
  --accent2:      #00aaff;
  --accent2-dim:  rgba(0,170,255,0.12);
  --text:         #e8e8ec;
  --text-dim:     #b0b0b8;
  --muted:        #888890;
  --muted2:       #555560;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    10px;
  --max-width:    1100px;
  --nav-h:        56px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-mono); cursor: pointer; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; }

.nav-links a {
  display: block;
  padding: 0 14px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* ── LAYOUT ── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ── SECTION HEADER ── */
.sec-header { margin-bottom: 3rem; padding-top: 6rem; }

.sec-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-tag::before { content: '//'; color: var(--muted2); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { padding: 7px 14px; font-size: 11px; }

/* ── TERMINAL WIDGET ── */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal-bar {
  background: var(--bg3);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.d-red    { background: #ff5f57; }
.d-yellow { background: #febc2e; }
.d-green  { background: #28c840; }
.terminal-title { font-size: 11px; color: var(--muted2); margin-left: 8px; letter-spacing: 0.06em; }
.terminal-body  { padding: 20px; font-size: 12.5px; line-height: 1.9; }

/* Terminal text colours */
.t-dim    { color: var(--muted2); }
.t-green  { color: var(--accent); }
.t-blue   { color: var(--accent2); }
.t-white  { color: var(--text); }
.t-yellow { color: #f5c842; }
.t-red    { color: #ff6b6b; }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}
.card:hover { border-color: var(--border-bright); }

/* ── TAGS / PILLS ── */
.tag {
  padding: 3px 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag-blue {
  background: var(--accent2-dim);
  border-color: rgba(0,170,255,0.2);
  color: var(--accent2);
}
.tag-neutral {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--muted);
}

/* ── STATUS PILL ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 4rem 0;
  position: relative;
  z-index: 1;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 7px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #0a0a0b;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 6px;
}
.form-submit:hover { opacity: 0.85; }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 40px;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  margin-top: 6rem;
}
footer .footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
footer .footer-logo span { color: var(--accent); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── LOADING DOTS ── */
.loading::after {
  content: '...';
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* ══════════════════════════════════════════════
   INDEX.HTML — PAGE-SPECIFIC STYLES
   ══════════════════════════════════════════════ */

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
h1 .line2 { color: var(--muted2); }
.hero-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { color: var(--muted); line-height: 1.9; margin-bottom: 1rem; }
.about-text p strong { color: var(--text); font-weight: 500; }

/* CERTS */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 200px;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.badge-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.badge-card img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.badge-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.badge-version {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.badge-issuer {
  font-size: 11px;
  color: var(--muted2);
}

.badge-verify {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.badge-placeholder {
  border-style: dashed;
  cursor: default;
}
.badge-placeholder:hover { border-color: var(--border); transform: none; }

.badge-placeholder-icon {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--muted2);
  background: var(--bg3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .certs-row { justify-content: center; }
}

/* SKILLS */
.skills-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.skill-group-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
  cursor: default;
}
.skill-tag:hover  { border-color: rgba(0,229,160,0.4); color: var(--text); }
.skill-tag.hi     { border-color: rgba(0,229,160,0.3); color: var(--accent); }

/* PROJECT CARDS (index) */
.projects-grid { display: grid; gap: 20px; }
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}
.project-card:hover { border-color: var(--border-mid); }

.project-header {
  padding: 24px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.project-num      { font-size: 11px; color: var(--muted2); letter-spacing: 0.1em; margin-bottom: 5px; }
.project-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.project-tag-row  { display: flex; flex-wrap: wrap; gap: 6px; }
.project-actions  { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s;
}
.project-action-btn:hover { border-color: var(--accent); color: var(--accent); }

.project-desc {
  padding: 0 28px 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.project-bullets { margin-top: 10px; padding-left: 0; }
.project-bullets li { padding: 3px 0 3px 18px; position: relative; font-size: 12.5px; }
.project-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

/* DEMO EMBED */
.demo-container {
  border-top: 1px solid var(--border);
  background: var(--bg3);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.demo-container.open { max-height: 700px; }
.demo-inner    { padding: 20px 24px; }
.demo-toolbar  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted2);
  margin-bottom: 14px;
  gap: 1rem;
}
.demo-url {
  font-size: 11px;
  color: var(--muted2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  flex: 1;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* BLOG (index) */
.blog-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.blog-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 20px 24px;
  background: var(--bg2);
  transition: background 0.15s;
}
.blog-item:hover { background: var(--bg3); }
.blog-item-title   { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 5px; font-family: var(--font-display); }
.blog-item-excerpt { font-size: 12px; color: var(--muted2); line-height: 1.7; }
.blog-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted2);
  white-space: nowrap;
}
.blog-item-tag {
  padding: 2px 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CV (index) */
.cv-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cv-header-row {
  padding: 24px 32px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cv-name    { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cv-tagline { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cv-section { padding: 26px 32px; border-bottom: 1px solid var(--border); }
.cv-section:last-child { border-bottom: none; }
.cv-section-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.cv-entry { display: grid; grid-template-columns: 1fr auto; gap: 4px 2rem; margin-bottom: 20px; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-role   { font-size: 14px; font-weight: 500; color: var(--text); font-family: var(--font-display); }
.cv-org    { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cv-date   { font-size: 11px; color: var(--muted2); white-space: nowrap; text-align: right; padding-top: 2px; }
.cv-detail { grid-column: 1/-1; font-size: 12px; color: var(--muted2); line-height: 1.85; margin-top: 6px; padding-left: 14px; }
.cv-detail li { margin-bottom: 3px; position: relative; padding-left: 14px; }
.cv-detail li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.cv-skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; color: var(--muted2); }
.cv-skills-grid span { color: var(--muted); }

/* CONTACT (index) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--accent); }
.contact-link-icon {
  width: 38px; height: 38px;
  background: var(--bg3);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-link-label { font-size: 13px; color: var(--text); font-weight: 500; }
.contact-link-sub   { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.form-success { display: none; text-align: center; padding: 30px 20px; color: var(--accent); font-size: 13px; }

/* ══════════════════════════════════════════════
   PROJECTS.HTML — PAGE-SPECIFIC STYLES
   ══════════════════════════════════════════════ */

.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
}
.page-hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.page-hero-desc { font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.85; }

.project-full {
  margin-bottom: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pf-header {
  padding: 32px 36px 28px;
  border-bottom: 1px solid var(--border);
}
.pf-num { font-size: 11px; color: var(--muted2); letter-spacing: 0.1em; margin-bottom: 6px; }
.pf-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.pf-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pf-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pf-col  { padding: 28px 36px; }
.pf-col + .pf-col { border-left: 1px solid var(--border); }
.pf-col-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pf-col p    { font-size: 13px; color: var(--muted); line-height: 1.85; margin-bottom: 10px; }
.pf-col ul   { padding: 0; }
.pf-col li   { font-size: 13px; color: var(--muted); line-height: 1.8; padding: 3px 0 3px 16px; position: relative; }
.pf-col li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

.pf-arch {
  padding: 28px 36px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.arch-chip {
  padding: 5px 12px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.arch-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pf-demo { border-top: 1px solid var(--border); }
.demo-header {
  padding: 16px 24px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }

/* Weather forecast widget */
.weather-widget { padding: 24px; }
.weather-search  { display: flex; gap: 10px; margin-bottom: 20px; }
.weather-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.weather-input:focus { border-color: var(--accent); }
.weather-status { font-size: 12px; color: var(--muted2); min-height: 20px; margin-bottom: 14px; }
.weather-error  { color: #ff6b6b; }
.forecast-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.forecast-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s;
}
.forecast-card:hover { border-color: var(--border-bright); }
.fc-date     { font-size: 11px; color: var(--muted2); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.fc-icon     { font-size: 30px; margin-bottom: 6px; line-height: 1; }
.fc-temp     { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
.fc-feels    { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.fc-desc     { font-size: 11px; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.fc-humidity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--accent2);
  margin-top: 6px;
  background: var(--accent2-dim);
  border: 1px solid rgba(0,170,255,0.15);
  border-radius: 100px;
  padding: 2px 8px;
}

/* ══════════════════════════════════════════════
   BLOG.HTML — PAGE-SPECIFIC STYLES
   ══════════════════════════════════════════════ */

.blog-page-list { display: grid; gap: 20px; }

.blog-post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.blog-post-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.bp-header { padding: 26px 30px 26px; }
.bp-meta   { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bp-date   { font-size: 11px; color: var(--muted2); }
.bp-read   { font-size: 11px; color: var(--muted2); }
.bp-title  { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.bp-excerpt{ font-size: 13px; color: var(--muted); line-height: 1.8; }
.bp-footer { padding: 14px 30px; background: var(--bg3); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.bp-tags   { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-more   { font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }

/* Expanded post */
.post-body { display: none; padding: 0 30px 28px; font-size: 13.5px; line-height: 1.9; color: var(--muted); border-top: 1px solid var(--border); margin-top: 2px; }
.post-body.open { display: block; }
.post-body h3 { font-size: 15px; font-family: var(--font-display); font-weight: 600; color: var(--text); margin: 22px 0 8px; }
.post-body p  { margin-bottom: 14px; }
.post-body pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  color: var(--accent);
  margin: 14px 0;
  line-height: 1.7;
}
.post-body code { font-family: var(--font-mono); color: var(--accent2); font-size: 12.5px; }
.post-body ul  { padding-left: 0; margin-bottom: 14px; }
.post-body ul li { padding: 3px 0 3px 16px; position: relative; }
.post-body ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

/* ══════════════════════════════════════════════
   WEATHER.HTML — FULL PAGE DEMO
   ══════════════════════════════════════════════ */

.weather-page { padding: calc(var(--nav-h) + 3rem) 0 4rem; }

.wp-header { text-align: center; margin-bottom: 3rem; }
.wp-header h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 10px; }
.wp-header p  { color: var(--muted); font-size: 13px; }

.wp-search {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 10px;
}
.wp-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.wp-input:focus { border-color: var(--accent); }

.wp-result { max-width: 760px; margin: 0 auto; }
.wp-city-header {
  text-align: center;
  margin-bottom: 24px;
}
.wp-city-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.wp-city-country { font-size: 13px; color: var(--muted2); margin-top: 3px; }

.wp-forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wp-forecast-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.wp-forecast-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.wfc-date     { font-size: 11px; color: var(--muted2); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.wfc-icon     { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.wfc-temp     { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.wfc-unit     { font-size: 1.2rem; color: var(--muted2); }
.wfc-feels    { font-size: 12px; color: var(--muted2); margin-top: 5px; }
.wfc-desc     { font-size: 13px; color: var(--muted); margin-top: 10px; text-transform: capitalize; }
.wfc-humidity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent2);
  margin-top: 10px;
  background: var(--accent2-dim);
  border: 1px solid rgba(0,170,255,0.2);
  border-radius: 100px;
  padding: 3px 12px;
}

.wp-notice {
  text-align: center;
  padding: 2rem;
  font-size: 12px;
  color: var(--muted2);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root { --max-width: 100%; }
  .hero-grid        { grid-template-columns: 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
  .skills-groups    { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .pf-body          { grid-template-columns: 1fr; }
  .pf-col + .pf-col { border-left: none; border-top: 1px solid var(--border); }
  .project-header   { flex-direction: column; }
  .cv-entry         { grid-template-columns: 1fr; }
  .cv-skills-grid   { grid-template-columns: 1fr; }
  .wp-forecast-grid { grid-template-columns: 1fr; }
  .forecast-grid    { grid-template-columns: 1fr; }
  nav .nav-links    { display: none; }
  .cv-header-row    { flex-direction: column; align-items: flex-start; gap: 14px; }
}