@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f4f4f0;
  --bg2: #ffffff;
  --border: #e0dfd9;
  --blue: #1a56db;
  --blue-dark: #1245b5;
  --text: #111110;
  --mid: #555550;
  --dim: #999990;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 999;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 60px;
}
.nav-logo { font-weight: 800; font-size: .95rem; color: var(--text); text-decoration: none; letter-spacing: -.4px; }
.nav-logo span { color: var(--blue); }
.nav-center { display: flex; gap: 1.8rem; list-style: none; }
.nav-center a { font-size: .85rem; font-weight: 500; color: var(--mid); text-decoration: none; transition: color .15s; }
.nav-center a:hover, .nav-center a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; }
.lang-wrap { display: flex; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-btn { font-size: .68rem; font-weight: 700; letter-spacing: .5px; padding: .26rem .65rem; border: none; background: transparent; color: var(--dim); cursor: pointer; transition: all .15s; }
.lang-btn.active { background: var(--blue); color: #fff; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; background: var(--bg2); margin-top: 5rem; }
.footer-logo { font-weight: 800; font-size: .9rem; color: var(--text); text-decoration: none; }
.footer-logo span { color: var(--blue); }
.footer-copy { font-size: .78rem; color: var(--dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: var(--dim); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── BUTTONS ─── */
.btn-main { font-size: .875rem; font-weight: 600; padding: .7rem 1.5rem; background: var(--text); color: #fff; border: none; border-radius: 8px; text-decoration: none; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: .4rem; }
.btn-main:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost { font-size: .875rem; font-weight: 500; color: var(--mid); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: color .15s; padding: .7rem 0; }
.btn-ghost:hover { color: var(--text); }

/* ─── TAGS ─── */
.tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: .2rem .55rem; border-radius: 4px; display: inline-block; }
.t-cyber   { background: #fef3c7; color: #78350f; }
.t-infra   { background: #dbeafe; color: #1e3a8a; }
.t-cloud   { background: #ede9fe; color: #4c1d95; }
.t-network { background: #dcfce7; color: #14532d; }
.t-iam     { background: #fee2e2; color: #7f1d1d; }

/* ═══════════════════════════════════════
   HOME PAGE — HERO (split layout)
═══════════════════════════════════════ */
.home-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 4rem; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-left {}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.hero-kicker::before { content: '//'; opacity: .5; }
.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -2px; color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-name .line2 { color: var(--blue); }
.hero-bio {
  font-size: 1.05rem; color: var(--mid);
  line-height: 1.75; max-width: 480px; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1; }
.hero-stat-label { font-size: .72rem; color: var(--dim); margin-top: .15rem; }

.hero-right {}
.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.hero-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; border: 3px solid var(--border); }
.hero-card-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.hero-card-role { font-size: .78rem; color: var(--mid); margin-bottom: 1.2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.hero-chip { font-size: .68rem; font-weight: 500; padding: .22rem .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; color: var(--mid); }
.hero-links { display: flex; flex-direction: column; gap: .45rem; }
.hero-link { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--mid); text-decoration: none; padding: .5rem .75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; transition: all .15s; }
.hero-link:hover { border-color: var(--blue); color: var(--blue); }
.hero-link-icon { font-size: .95rem; }

/* ═══════════════════════════════════════
   HOME PAGE — BLOG GRID
═══════════════════════════════════════ */
.grid-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2.5rem; }
.grid-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2.5rem; }
.grid-title { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.4px; }
.grid-title span { color: var(--dim); font-weight: 400; font-size: .9rem; margin-left: .5rem; }
.view-all { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.view-all:hover { text-decoration: underline; }

/* Featured card — spans full width */
.card-featured {
  display: grid; grid-template-columns: 1fr 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all .22s;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.card-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.card-featured-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem;
}
.card-featured-label::before { content: '★'; font-size: .55rem; }
.card-featured-title { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -.5px; margin-bottom: .9rem; }
.card-featured-excerpt { font-size: .9rem; color: var(--mid); line-height: 1.75; margin-bottom: 1.5rem; flex: 1; }
.card-featured-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.card-featured-meta .arrow { color: var(--blue); font-weight: 700; margin-left: auto; font-size: .9rem; }
.card-featured-visual {
  background-size: cover;
  background-position: center;
  background-color: #0f3460;
  position: relative; overflow: hidden;
}
.card-featured-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,52,96,.7) 0%, rgba(26,86,219,.35) 100%);
  z-index: 1;
}

/* Regular blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all .22s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-card-top {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.blog-card-top::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}
.blog-card-top.bg-cyber   { background-color: #1a1a2e; }
.blog-card-top.bg-iam     { background-color: #1e1b4b; }
.blog-card-top.bg-infra   { background-color: #0c1a2e; }
.blog-card-top.bg-cloud   { background-color: #0d1117; }
.blog-card-top.bg-network { background-color: #022c22; }
.blog-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag { margin-bottom: .7rem; }
.blog-card-title { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: .6rem; flex: 1; }
.blog-card-excerpt { font-size: .8rem; color: var(--dim); line-height: 1.65; margin-bottom: 1rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.blog-card-meta { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--dim); }
.blog-card-arrow { font-size: .8rem; color: var(--blue); font-weight: 700; transition: transform .18s; }
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   BLOG INDEX PAGE
═══════════════════════════════════════ */
.blog-index-hero { max-width: 1100px; margin: 0 auto; padding: 4rem 2.5rem 3rem; border-bottom: 1px solid var(--border); }
.blog-index-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1.5px; color: var(--text); margin-bottom: .6rem; }
.blog-index-sub { font-size: .95rem; color: var(--mid); line-height: 1.7; }
.blog-index-grid { max-width: 1100px; margin: 0 auto; padding: 3rem 2.5rem 5rem; }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr;
  gap: 3rem; align-items: center;
}
.about-photo { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; border: 2px solid var(--border); display: block; box-shadow: var(--shadow); }
.about-name { font-size: 2.6rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -1.5px; margin-bottom: .4rem; }
.about-role { font-size: .9rem; color: var(--mid); margin-bottom: 1rem; font-weight: 500; }
.about-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.about-badge { font-size: .72rem; font-weight: 600; padding: .25rem .7rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--mid); }

.about-bio-section { max-width: 1100px; margin: 0 auto; padding: 3rem 2.5rem; border-bottom: 1px solid var(--border); }
.about-bio-text { font-size: 1rem; line-height: 1.9; color: var(--mid); max-width: 660px; }
.about-bio-text p { margin-bottom: 1.3rem; }
.about-bio-text p:last-child { margin-bottom: 0; }
.about-bio-text strong { color: var(--text); }
.about-bio-text .hl { color: var(--blue); font-weight: 600; }

.skills-section { max-width: 1100px; margin: 0 auto; padding: 3rem 2.5rem; border-bottom: 1px solid var(--border); }
.section-label { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 1.5rem; }
.skills-groups { display: flex; flex-direction: column; gap: 1rem; }
.skills-row { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.skills-row:last-child { border-bottom: none; }
.skills-row-label { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; padding-top: .25rem; }
.skills-row-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-pill { font-size: .78rem; font-weight: 500; padding: .25rem .7rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--mid); transition: all .15s; }
.skill-pill:hover { border-color: var(--blue); color: var(--blue); }

.exp-section { max-width: 1100px; margin: 0 auto; padding: 3rem 2.5rem; border-bottom: 1px solid var(--border); }
.exp-list { display: flex; flex-direction: column; }
.exp-row { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.exp-row:last-child { border-bottom: none; }
.exp-period { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--dim); margin-bottom: .35rem; }
.exp-co { font-size: .8rem; font-weight: 700; color: var(--blue); }
.exp-pos { font-size: .975rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }
.exp-pts { list-style: none; }
.exp-pts li { font-size: .84rem; color: var(--mid); padding-left: 1.1rem; position: relative; margin-bottom: .3rem; line-height: 1.65; }
.exp-pts li::before { content: '–'; position: absolute; left: 0; color: var(--blue); }

#contact { max-width: 1100px; margin: 0 auto; padding: 4rem 2.5rem; }
.contact-heading { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: .7rem; letter-spacing: -1px; }
.contact-heading .accent { color: var(--blue); }
.contact-sub { font-size: .95rem; color: var(--mid); line-height: 1.75; margin-bottom: 2.5rem; max-width: 480px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: .55rem; }
.contact-row { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--mid); font-size: .84rem; transition: all .18s; }
.contact-row:hover { border-color: var(--blue); color: var(--blue); }
.contact-row-icon { font-size: 1rem; flex-shrink: 0; }
.form-wrap { display: flex; flex-direction: column; gap: .8rem; }
.f-label { font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; color: var(--dim); margin-bottom: .25rem; display: block; letter-spacing: 1px; text-transform: uppercase; }
.f-inp, .f-txt { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; padding: .7rem .95rem; font-family: 'Inter', sans-serif; font-size: .875rem; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.f-inp::placeholder, .f-txt::placeholder { color: var(--dim); }
.f-inp:focus, .f-txt:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.f-txt { min-height: 110px; resize: vertical; }
.f-submit { font-family: 'Inter', sans-serif; font-weight: 700; font-size: .875rem; padding: .72rem 1.6rem; background: var(--text); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: all .18s; align-self: flex-start; }
.f-submit:hover { background: var(--blue); transform: translateY(-1px); }

/* ═══════════════════════════════════════
   BLOG POST PAGE
═══════════════════════════════════════ */
.post-wrap { max-width: 700px; margin: 0 auto; padding: 3.5rem 2.5rem 5rem; }
.post-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--dim); text-decoration: none; margin-bottom: 2.5rem; transition: color .15s; }
.post-back:hover { color: var(--blue); }
.post-tag-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.post-read-time { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--dim); }
.post-title { font-family: 'Lora', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.4px; color: var(--text); margin-bottom: .9rem; }
.post-subtitle { font-size: 1.05rem; color: var(--mid); line-height: 1.7; margin-bottom: 2rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2.8rem; }
.post-author-avatar-fallback { width: 40px; height: 40px; border-radius: 50%; background: #dbeafe; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.post-author-name { font-size: .875rem; font-weight: 700; color: var(--text); }
.post-author-date { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--dim); }
.post-body { font-family: 'Lora', serif; }
.post-body p { font-size: 1.05rem; line-height: 1.85; color: var(--mid); margin-bottom: 1.4rem; }
.post-body h2 { font-family: 'Inter', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 2.5rem 0 .9rem; letter-spacing: -.4px; }
.post-body h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 2rem 0 .7rem; }
.post-body ul, .post-body ol { margin: .8rem 0 1.4rem 1.4rem; }
.post-body li { font-size: 1.05rem; line-height: 1.8; color: var(--mid); margin-bottom: .4rem; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body .callout { background: #eff6ff; border-left: 3px solid var(--blue); padding: 1.1rem 1.4rem; border-radius: 0 10px 10px 0; margin: 1.6rem 0; }
.post-body .callout p { margin-bottom: 0; color: var(--mid); font-style: italic; font-size: 1rem; }
.post-body code { font-family: 'JetBrains Mono', monospace; font-size: .85rem; background: #f1f5f9; padding: .1rem .4rem; border-radius: 4px; color: var(--blue); border: 1px solid var(--border); }
.post-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-footer-title { font-size: .72rem; font-weight: 700; color: var(--dim); margin-bottom: 1.3rem; text-transform: uppercase; letter-spacing: 1.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-item { padding: 1.1rem 1.3rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: all .18s; }
.post-nav-item:hover { border-color: var(--blue); }
.post-nav-label { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: .4rem; }
.post-nav-title { font-size: .875rem; font-weight: 600; color: var(--text); line-height: 1.35; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { display: none; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured-visual { height: 180px; }
}
@media (max-width: 640px) {
  nav { padding: 0 1.2rem; }
  .nav-center { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .home-hero, .grid-section, .blog-index-hero, .blog-index-grid { padding-left: 1.2rem; padding-right: 1.2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-hero, .about-bio-section, .skills-section, .exp-section, #contact { padding-left: 1.2rem; padding-right: 1.2rem; }
  .about-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .skills-row { grid-template-columns: 1fr; gap: .4rem; }
  .exp-row { grid-template-columns: 1fr; gap: .5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .post-wrap { padding-left: 1.2rem; padding-right: 1.2rem; }
  .post-nav { grid-template-columns: 1fr; }
}
