/* ============================================================
   AMRULLAH S. PORTFOLIO — MAIN STYLESHEET
   Professional · Modern · Elegant
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b2a;
  --navy-light: #162336;
  --navy-mid:   #1e3a5f;
  --teal:       #1a7a6e;
  --teal-light: #22a090;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --cream:      #f8f5ef;
  --white:      #ffffff;
  --gray-100:   #f4f6f9;
  --gray-200:   #e8ecf2;
  --gray-400:   #94a3b8;
  --gray-600:   #64748b;
  --gray-800:   #1e293b;
  --text:       #1e293b;
  --text-muted: #64748b;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(13,27,42,.10);
  --shadow-lg:  0 12px 48px rgba(13,27,42,.16);
  --trans:      all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--trans); }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.4rem,5vw,4rem); }
h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); }
h3 { font-size: clamp(1.2rem,2vw,1.6rem); }
em { font-style: italic; color: var(--teal); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-label {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--teal);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::before {
  content:''; display: inline-block; width: 2rem; height: 1px; background: var(--teal);
}
.section-title { margin-bottom: 3rem; color: var(--navy); }
.section-title.centered { text-align: center; }
.sub-title {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); margin-bottom: 1.25rem;
}
.sub-title.centered { text-align: center; }
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.section-header-row .section-title { margin-bottom: 0; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: var(--white);
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: .95rem; border: none; cursor: pointer;
  transition: var(--trans);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,122,110,.3); color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--teal);
  padding: .8rem 1.8rem; border-radius: 50px;
  font-weight: 500; font-size: .95rem;
  border: 1.5px solid var(--teal); cursor: pointer; transition: var(--trans);
}
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.25rem 0;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(12px);
  padding: .8rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  color: var(--white); font-weight: 600;
}
.logo-initials {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); font-weight: 700;
}
.logo-text { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  color: rgba(255,255,255,.8); padding: .5rem .9rem;
  border-radius: 8px; font-size: .9rem; font-weight: 400;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: .55rem 1.3rem; border-radius: 50px; font-size: .9rem; font-weight: 500; margin-left: .5rem;
}
.nav-cta:hover { background: var(--teal-light); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--trans); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,122,110,.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 10% 80%, rgba(201,168,76,.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: linear-gradient(var(--gray-400) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gray-400) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 8rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(26,122,110,.15); border: 1px solid rgba(26,122,110,.3);
  color: var(--teal-light); padding: .45rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 500; letter-spacing: .05em; margin-bottom: 1.5rem;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-title { color: var(--white); margin-bottom: 1.5rem; }
.hero-name { display: block; font-size: clamp(3rem,6vw,5rem); font-weight: 700; }
.hero-role { display: block; font-size: clamp(1.3rem,2.5vw,2rem); color: var(--gold-light); font-weight: 300; margin-top: .25rem; }
.hero-desc { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; }
.hero-desc strong { color: var(--white); }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; width: 340px; height: 340px; }
.photo-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid rgba(26,122,110,.3);
  animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-photo-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 5rem; font-weight: 700;
  color: var(--teal-light); border: 3px solid rgba(26,122,110,.3);
  overflow: hidden;
}
.hero-photo-placeholder.has-photo {
  background: var(--navy-mid);
}
.hero-profile-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-badge {
  position: absolute; background: var(--white);
  padding: .5rem .9rem; border-radius: 30px;
  font-size: .75rem; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); white-space: nowrap;
}
.photo-badge i { color: var(--teal); }
.photo-badge--1 { top: 10%; right: -40px; }
.photo-badge--2 { bottom: 20%; right: -50px; }
.photo-badge--3 { bottom: 5%; left: -20px; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.4); font-size: .75rem; letter-spacing: .1em;
  animation: bounce 2.5s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; }
.about-text p { color: var(--text-muted); }
.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.info-item {
  display: flex; gap: .75rem; padding: 1rem;
  background: var(--gray-100); border-radius: var(--radius);
}
.info-item i { color: var(--teal); margin-top: .2rem; font-size: 1rem; }
.info-label { display: block; font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.info-val { display: block; font-size: .85rem; font-weight: 500; color: var(--navy); margin-top: .1rem; }
.about-education { background: var(--navy); color: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); }
.about-education .sub-title { color: var(--white); }
.edu-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.edu-item { position: relative; padding-left: 1.25rem; border-left: 2px solid rgba(26,122,110,.4); }
.edu-year { font-family: var(--font-mono); font-size: .75rem; color: var(--teal-light); letter-spacing: .08em; margin-bottom: .3rem; }
.edu-body h4 { font-size: 1rem; color: var(--white); margin-bottom: .25rem; }
.edu-body p { font-size: .85rem; color: rgba(255,255,255,.55); margin: 0; }
.edu-ipk {
  display: inline-block; margin-top: .4rem;
  background: rgba(201,168,76,.15); color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.3); padding: .2rem .6rem; border-radius: 4px;
  font-family: var(--font-mono); font-size: .72rem;
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise-section { background: var(--gray-100); }
.expertise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.exp-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: var(--trans);
  position: relative; overflow: hidden;
}
.exp-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0); transform-origin: left; transition: var(--trans);
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(26,122,110,.2); }
.exp-card:hover::before { transform: scaleX(1); }
.exp-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(26,122,110,.1); display: grid; place-items: center;
  margin-bottom: 1.25rem; color: var(--teal); font-size: 1.3rem;
}
.exp-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .75rem; }
.exp-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.tools-section { margin-top: 4rem; }
.tools-grid { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.tool-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1px solid var(--gray-200);
  padding: .55rem 1.1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 500; color: var(--navy);
  transition: var(--trans);
}
.tool-badge i { color: var(--teal); }
.tool-badge:hover { border-color: var(--teal); background: rgba(26,122,110,.05); }

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience-section { background: var(--white); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 100px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--teal), transparent);
}
.timeline-item {
  display: grid; grid-template-columns: 90px 20px 1fr; gap: 0 1.5rem;
  margin-bottom: 3rem; align-items: start;
}
.tl-period {
  font-family: var(--font-mono); font-size: .72rem; color: var(--teal);
  text-align: right; padding-top: 1.5rem; letter-spacing: .05em; line-height: 1.4;
}
.tl-marker {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal); margin-top: 1.7rem;
  align-self: start; justify-self: center;
}
.tl-card {
  background: var(--gray-100); padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: var(--trans);
}
.tl-card:hover { border-color: rgba(26,122,110,.3); background: var(--white); box-shadow: var(--shadow); }
.tl-company { font-family: var(--font-mono); font-size: .72rem; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.tl-role { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.tl-list { padding-left: 0; }
.tl-list li {
  font-size: .875rem; color: var(--text-muted); padding: .25rem 0;
  padding-left: 1rem; position: relative;
}
.tl-list li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.publications-section { background: var(--navy); }
.publications-section .section-label { color: var(--teal-light); }
.publications-section .section-title { color: var(--white); }
.pub-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem; align-items: start;
  padding: 2rem; background: rgba(255,255,255,.04); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.07); transition: var(--trans);
}
.pub-item:hover { background: rgba(255,255,255,.07); border-color: rgba(26,122,110,.3); }
.pub-num {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700;
  color: rgba(26,122,110,.3); line-height: 1; padding-top: .25rem;
}
.pub-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.pub-year {
  font-family: var(--font-mono); font-size: .72rem; color: var(--gold-light);
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  padding: .2rem .6rem; border-radius: 4px;
}
.pub-journal { font-size: .78rem; color: rgba(255,255,255,.4); }
.pub-body h3 { font-size: 1.05rem; color: var(--white); margin-bottom: .6rem; font-weight: 500; }
.pub-authors { font-size: .83rem; color: rgba(255,255,255,.5); margin-bottom: .6rem; }
.pub-authors strong { color: rgba(255,255,255,.8); }
.pub-doi { font-size: .78rem; color: var(--teal-light); display: inline-flex; align-items: center; gap: .3rem; }
.pub-doi:hover { color: var(--white); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-section { background: var(--gray-100); }
.certs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cert-item {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  font-size: .875rem; color: var(--navy); font-weight: 500; transition: var(--trans);
}
.cert-item i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.cert-item:hover { border-color: rgba(26,122,110,.3); box-shadow: var(--shadow); }

/* ============================================================
   BLOG PREVIEW (HOME)
   ============================================================ */
.blog-preview-section { background: var(--white); }
.blog-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--trans);
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(26,122,110,.2); }
.blog-card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.blog-cat {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--teal); background: rgba(26,122,110,.08); padding: .25rem .65rem; border-radius: 4px;
}
.blog-date { font-size: .75rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .75rem; line-height: 1.4; }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 500; color: var(--teal);
}
.blog-read-more:hover { gap: .7rem; color: var(--teal-light); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-mid) 100%);
  padding: 5rem 0;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-inner .btn-primary { background: var(--white); color: var(--teal); }
.cta-inner .btn-primary:hover { background: var(--cream); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy); padding: 9rem 0 5rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26,122,110,.2) 0%, transparent 70%);
}
.page-hero-inner { position: relative; max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero .section-label { justify-content: center; }
.page-hero .section-label::before { display: none; }
.page-hero-title { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.05rem; }

.page-hero--post { text-align: left; padding: 9rem 0 4rem; }
.post-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.5); font-size: .875rem; }
.back-link:hover { color: var(--teal-light); }
.post-title { color: var(--white); margin: 1rem 0; font-size: clamp(1.7rem,3.5vw,2.8rem); }
.post-excerpt { color: rgba(255,255,255,.6); font-size: 1.05rem; }
.post-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid; place-items: center; font-family: var(--font-serif);
  font-size: .95rem; color: var(--white); font-weight: 700; flex-shrink: 0;
}
.author-avatar--lg { width: 60px; height: 60px; font-size: 1.2rem; }
.author-name { display: block; color: var(--white); font-weight: 500; font-size: .9rem; }
.author-role { display: block; color: rgba(255,255,255,.45); font-size: .78rem; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-section { background: var(--gray-100); }
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.cat-btn {
  background: var(--white); border: 1px solid var(--gray-200); color: var(--text-muted);
  padding: .45rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 500; cursor: pointer; transition: var(--trans);
}
.cat-btn.active, .cat-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card--full { justify-content: space-between; }
.blog-card--full h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: .75rem; line-height: 1.4; }
.blog-card--full h2 a:hover { color: var(--teal); }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.empty-state { text-align: center; padding: 5rem 0; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--gray-400); }

/* Pagination */
.pagination-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.pagination-nav ul { display: flex; list-style: none; gap: .35rem; }
.pagination-nav li a, .pagination-nav li span {
  display: inline-block; min-width: 38px; height: 38px; border-radius: 8px; line-height: 38px; text-align: center;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--text-muted);
  font-size: .85rem; transition: var(--trans);
}
.pagination-nav li a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.pagination-nav li.active a { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ============================================================
   BLOG POST (SINGLE)
   ============================================================ */
.post-section { background: var(--gray-100); }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.post-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
.post-content h2 { font-size: 1.6rem; color: var(--navy); margin: 2rem 0 .75rem; font-weight: 700; }
.post-content h3 { font-size: 1.3rem; color: var(--navy); margin: 1.5rem 0 .6rem; font-weight: 600; }
.post-content p { color: var(--text); margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-content li { color: var(--text); margin-bottom: .5rem; }
.post-content strong { color: var(--navy); font-weight: 700; }
.post-content em { color: var(--teal); font-style: italic; }
.post-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--gray-100);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { color: var(--text); }
.post-content a { color: var(--teal); }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 100px; }
.sidebar-card {
  background: var(--white); padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.sidebar-card h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.sidebar-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; }
.sidebar-author p { font-size: .875rem; color: var(--text-muted); margin: 0; }
.related-list { display: flex; flex-direction: column; gap: .75rem; }
.related-item {
  display: flex; flex-direction: column; gap: .2rem; padding: .75rem; border-radius: 8px;
  background: var(--gray-100); transition: var(--trans);
}
.related-item:hover { background: rgba(26,122,110,.08); }
.rel-cat { font-size: .68rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.rel-title { font-size: .85rem; font-weight: 500; color: var(--navy); line-height: 1.3; }
.rel-date { font-size: .73rem; color: var(--text-muted); }
.share-btns { display: flex; flex-direction: column; gap: .6rem; }
.share-btn {
  display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem;
  border-radius: 8px; font-size: .85rem; font-weight: 500; transition: var(--trans);
}
.share-btn--li { background: #EFF3F8; color: #0A66C2; }
.share-btn--li:hover { background: #0A66C2; color: var(--white); }
.share-btn--tw { background: #f5f5f5; color: #000; }
.share-btn--tw:hover { background: #000; color: var(--white); }
.share-btn--wa { background: #e8f5e9; color: #25D366; }
.share-btn--wa:hover { background: #25D366; color: var(--white); }
.share-btn--fb { background: #e3f2fd; color: #1877F2; }
.share-btn--fb:hover { background: #1877F2; color: var(--white); }
.share-btn--copy { background: var(--gray-100); color: var(--navy); cursor: pointer; border: none; width: 100%; justify-content: center; font-family: inherit; font-size: .85rem; }
.share-btn--copy:hover { background: var(--navy); color: var(--white); }
.share-btn--copy.copied { background: var(--teal); color: var(--white); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex; gap: 1rem; padding: 1.25rem; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--gray-200);
}
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: rgba(26,122,110,.1); display: grid; place-items: center; color: var(--teal); font-size: 1rem;
}
.ci-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .2rem; }
.ci-val { display: block; font-weight: 500; color: var(--navy); font-size: .9rem; }
a.ci-val:hover { color: var(--teal); }
.ref-list li { font-size: .875rem; color: var(--text-muted); padding: .4rem 0; border-bottom: 1px solid var(--gray-200); }
.ref-list li:last-child { border: none; }

.contact-form-wrap {
  background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .82rem; font-weight: 500; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .9rem; color: var(--text);
  background: var(--gray-100); transition: var(--trans); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(26,122,110,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 3rem 1rem; }
.form-success i { font-size: 3rem; color: var(--teal); display: block; margin-bottom: 1rem; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin-bottom: .5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.6); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-name { color: var(--white); font-weight: 600; font-size: .95rem; }
.footer-sub { color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.45); font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.footer-col ul li a i { width: 14px; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); margin: 0; }
.footer-tech { font-family: var(--font-mono); font-size: .72rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: #f0f4f8; font-family: var(--font-sans); }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: var(--navy);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: var(--trans); overflow-y: auto;
}
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-logo { display: flex; align-items: center; gap: .75rem; }
.admin-logo-text { font-family: var(--font-serif); font-size: 1rem; color: rgba(255,255,255,.9); line-height: 1.2; }
.admin-logo-sub { font-size: .7rem; color: rgba(255,255,255,.35); display: block; font-family: var(--font-sans); }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section { padding: .5rem 1rem .25rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.25); font-weight: 600; }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem;
  color: rgba(255,255,255,.55); font-size: .875rem; transition: var(--trans);
  border-left: 3px solid transparent; margin: .1rem 0;
}
.admin-nav a i { width: 18px; text-align: center; font-size: .95rem; }
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav a.active { color: var(--white); background: rgba(26,122,110,.2); border-left-color: var(--teal); }
.admin-sidebar-footer { padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.07); }
.admin-sidebar-footer a { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.35); font-size: .8rem; }
.admin-sidebar-footer a:hover { color: var(--white); }

/* Main content */
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--white); padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50;
}
.admin-topbar-left { display: flex; align-items: center; gap: 1rem; }
.admin-topbar-left h1 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); }
.admin-breadcrumb { font-size: .78rem; color: var(--text-muted); }
.admin-topbar-right { display: flex; align-items: center; gap: 1rem; }
.admin-user { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-muted); }
.admin-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid; place-items: center; color: var(--white);
  font-size: .75rem; font-weight: 700; font-family: var(--font-serif);
}
.admin-content { padding: 2rem; flex: 1; }

/* Dashboard Cards */
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.dash-stat-card {
  background: var(--white); padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: .5rem;
}
.dash-stat-card .dsc-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.1rem; margin-bottom: .5rem;
}
.dsc-teal { background: rgba(26,122,110,.12); color: var(--teal); }
.dsc-gold { background: rgba(201,168,76,.12); color: var(--gold); }
.dsc-navy { background: rgba(13,27,42,.1); color: var(--navy); }
.dsc-green { background: rgba(34,160,144,.12); color: var(--teal-light); }
.dsc-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.dsc-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--navy); }

/* Admin tables */
.admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 1.5rem;
}
.admin-card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: .85rem 1.5rem; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
  background: var(--gray-100); font-weight: 600; border-bottom: 1px solid var(--gray-200);
}
.admin-table td { padding: 1rem 1.5rem; font-size: .875rem; color: var(--text); border-bottom: 1px solid var(--gray-200); }
.admin-table tr:last-child td { border: none; }
.admin-table tr:hover td { background: var(--gray-100); }
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 4px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
}
.badge-success { background: rgba(26,122,110,.1); color: var(--teal); }
.badge-warning { background: rgba(201,168,76,.15); color: #8a6d00; }
.badge-gray { background: var(--gray-200); color: var(--text-muted); }

/* Admin forms */
.admin-form-page { max-width: 860px; }
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy);
  margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--gray-200);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group.full { grid-column: 1/-1; }
.admin-form .form-group input, .admin-form .form-group textarea, .admin-form .form-group select {
  background: var(--white);
}
.admin-actions { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.btn-danger { background: #fee2e2; color: #dc2626; border: none; border-radius: var(--radius); padding: .7rem 1.5rem; font-size: .875rem; font-weight: 500; cursor: pointer; transition: var(--trans); }
.btn-danger:hover { background: #dc2626; color: var(--white); }
.btn-secondary { background: var(--gray-100); color: var(--text); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .7rem 1.5rem; font-size: .875rem; font-weight: 500; cursor: pointer; transition: var(--trans); }
.btn-secondary:hover { background: var(--gray-200); }

/* Login page */
.admin-login-wrap {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  background-image: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26,122,110,.2) 0%, transparent 70%);
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 3rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-card .login-logo { text-align: center; margin-bottom: 2rem; }
.login-card .logo-initials { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; margin: 0 auto .75rem; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-light)); font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.login-card h2 { font-family: var(--font-serif); color: var(--navy); margin-bottom: .25rem; }
.login-card p { color: var(--text-muted); font-size: .875rem; margin: 0; }
.alert { padding: .85rem 1rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1.25rem; }
.alert-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ============================================================
   ANIMATIONS (AOS-like)
   ============================================================ */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos].aos-animate { opacity: 1 !important; transform: none !important; }

/* Fallback untuk post-content - pastikan selalu terlihat */
.post-content { opacity: 1 !important; visibility: visible !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2,1fr); }
  .certs-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions, .hero-stats { justify-content: center; }
  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 20px 1fr; gap: 0 1rem; }
  .tl-period { display: none; }
  .blog-preview-grid, .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--navy); padding: 5rem 1.5rem 2rem; gap: .25rem; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-num { font-size: 1.5rem; }
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-preview-section { background: var(--white); }
.gallery-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.gallery-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--trans);
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,42,.9), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  opacity: 0; transition: var(--trans);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-size: 1rem; margin-bottom: .25rem; }
.gallery-overlay p { color: rgba(255,255,255,.7); font-size: .8rem; }

.gallery-section { background: var(--gray-100); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.gallery-card--full {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden; transition: var(--trans);
}
.gallery-card--full:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: rgba(26,122,110,.2);
}
.gallery-image-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.gallery-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--trans);
}
.gallery-card--full:hover .gallery-image-wrap img { transform: scale(1.05); }
.gallery-cat-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--teal); color: var(--white);
  padding: .25rem .75rem; border-radius: 50px;
  font-size: .7rem; font-weight: 500;
}

/* Overlay info di atas gambar - selalu terlihat */
.gallery-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13,27,42,.95) 0%, rgba(13,27,42,.7) 50%, transparent 100%);
  padding: 2rem 1.25rem 1.25rem;
  color: white;
  transform: translateY(30%);
  transition: transform 0.3s ease;
}
.gallery-card--full:hover .gallery-info-overlay {
  transform: translateY(0);
}
.gallery-info-overlay h3 {
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.gallery-info-overlay p {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-actions {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: .5rem; background: rgba(13,27,42,.5); opacity: 0; transition: var(--trans);
}
.gallery-card--full:hover .gallery-actions { opacity: 1; }
.gallery-action-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: grid; place-items: center; transition: var(--trans);
}
.gallery-action-btn:hover { background: var(--teal); color: var(--white); }
.gallery-info { padding: 1.25rem; }
.gallery-info h3 { font-size: 1rem; color: var(--navy); margin-bottom: .5rem; }
.gallery-info p { font-size: .8rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .gallery-preview-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-preview-grid, .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: .75rem; }
  .stat-divider { display: none; }
  .cta-section { padding: 3.5rem 0; }
}
