/* ============================================================
   JAHANZAIB KHAN — Portfolio CSS
   Theme: Dark Professional | Azure Blue Accents
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --bg:        #f5f3ef;
  --bg2:       #edeae4;
  --bg3:       #e6e2db;
  --surface:   #ddd9d1;
  --border:    #ccc8c0;
  --azure:     #0068c0;
  --azure-l:   #1a7fd4;
  --azure-ll:  #0057a8;
  --cyan:      #007fa3;
  --white:     #1e1e24;
  --muted:     #6b6a66;
  --text:      #3a3a3e;
  --font-h:    'Syne', sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --trans:     0.3s ease;
  --glow:      0 0 40px rgba(0,104,192,0.15);
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--azure); border-radius: 3px; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--azure);
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 20px;
  overflow: visible;
  padding-bottom: 0.1em;
}
.section-sub {
  font-size: 0.975rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 60px;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.btn-primary {
  background: var(--azure);
  color: #fff;
}
.btn-primary:hover {
  background: var(--azure-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,120,212,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--azure);
  color: var(--azure);
  transform: translateY(-2px);
}

/* ── 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='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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 18px 0;
  transition: background var(--trans), padding var(--trans), box-shadow var(--trans);
  isolation: isolate;
}
#navbar.scrolled {
  background: rgba(245,243,239,0.96);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--azure); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--trans);
  position: relative;
  z-index: 9999;
  cursor: pointer;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--azure);
  transition: width var(--trans);
  pointer-events: none;
}
.nav-links a:hover::after { width: 100%; }
.nav-hire {
  background: var(--azure);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-hire:hover { background: var(--azure-l); }
.nav-hire::after { display: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(0,104,192,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(0,127,163,0.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,104,192,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,104,192,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,104,192,0.08);
  border: 1px solid rgba(0,104,192,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--azure);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-name {
  font-family: var(--font-h);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  overflow: visible;
  padding-bottom: 0.1em;
}
.hero-name span { color: var(--azure); }
.hero-role-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  min-height: 40px;
}
.hero-role-prefix {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}
.hero-role {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azure);
  min-width: 300px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 44px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.hero-stat-num span { color: var(--azure); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.about-avatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.about-avatar-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 400px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,104,192,0.1);
}
.about-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) saturate(0.92) brightness(1.02);
  transition: transform 0.6s ease;
}
.about-avatar-box:hover img {
  transform: scale(1.03);
}
/* Subtle light gradient overlay at bottom for depth */
.about-avatar-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(245,243,239,0.45), transparent);
  pointer-events: none;
}
/* IT circuit/code decoration lines */
.about-avatar-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,120,212,0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,120,212,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,120,212,0.04) 40px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-avatar-box:hover::before { opacity: 1; }
.about-corner {
  position: absolute;
  bottom: 16px;
  right: -14px;
  background: linear-gradient(135deg, var(--azure), #005fa3);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--glow), 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
  min-width: 90px;
}
.about-corner-num {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}
.about-corner-label { font-size: 0.68rem; opacity: 0.9; margin-top: 3px; letter-spacing: 0.03em; }
/* Availability dot badge */
.about-available {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(245,243,239,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,180,80,0.3);
  color: #16a34a;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  letter-spacing: 0.04em;
}
.about-available-dot {
  width: 6px; height: 6px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  max-width: 400px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--trans);
}
.badge:hover { border-color: var(--azure); color: var(--azure-ll); }
.badge-icon { color: var(--azure); font-size: 0.85rem; }
.about-text p { color: var(--muted); margin-bottom: 20px; line-height: 1.85; }
.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.about-highlight-icon {
  color: var(--azure);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--trans);
}
.skill-card:hover {
  border-color: rgba(0,104,192,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), var(--glow);
}
.skill-card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.skill-card-title {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  overflow: visible;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  background: rgba(0,104,192,0.08);
  border: 1px solid rgba(0,104,192,0.18);
  color: var(--azure);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--trans);
}
.skill-tag:hover {
  background: rgba(0,104,192,0.16);
  border-color: var(--azure);
}

/* ══════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════ */
#certifications { background: var(--bg2); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--trans);
}
.cert-card:hover {
  border-color: var(--azure);
  transform: translateY(-3px);
}
.cert-icon {
  width: 44px; height: 44px;
  background: rgba(0,104,192,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cert-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: visible;
}
.cert-code {
  font-size: 0.75rem;
  color: var(--azure-ll);
  font-weight: 500;
}

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--azure), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(0,104,192,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  overflow: visible;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azure-ll);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--trans);
}
.service-card:hover .service-link { gap: 10px; }

/* ══════════════════════════════════════
   EXPERIENCE TIMELINE
══════════════════════════════════════ */
#experience { background: var(--bg2); }
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--azure), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-dot {
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  background: var(--azure);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.25);
}
.timeline-current .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,180,216,0.3), 0 0 16px var(--cyan);
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 4px rgba(0,180,216,0.3), 0 0 16px var(--cyan); }
  50% { box-shadow: 0 0 0 8px rgba(0,180,216,0.15), 0 0 24px var(--cyan); }
}
.timeline-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: var(--trans);
}
.timeline-card:hover {
  border-color: rgba(0,104,192,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.timeline-role {
  font-family: var(--font-h);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--white);
  overflow: visible;
}
.timeline-period {
  background: rgba(0,104,192,0.08);
  border: 1px solid rgba(0,104,192,0.2);
  color: var(--azure);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.timeline-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azure-ll);
  margin-bottom: 10px;
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ══════════════════════════════════════
   BLOG PREVIEW (homepage)
══════════════════════════════════════ */
#blog-preview { background: var(--bg); }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}
.blog-card:hover {
  border-color: rgba(0,104,192,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.blog-tag {
  background: rgba(0,104,192,0.08);
  color: var(--azure);
  border: 1px solid rgba(0,104,192,0.18);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.blog-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 12px;
  padding-bottom: 2px;
  overflow: visible;
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.blog-date { font-size: 0.78rem; color: var(--muted); }
.blog-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azure-ll);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--trans);
}
.blog-card:hover .blog-read-more { gap: 8px; }
.blog-preview-cta { text-align: center; }
#blog-preview-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
#testimonials { background: var(--bg2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--trans);
}
.testimonial-card:hover {
  border-color: rgba(0,104,192,0.35);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--azure);
  font-family: Georgia, serif;
  line-height: 0.5;
  margin-bottom: 20px;
  opacity: 0.6;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}
.testimonial-role { font-size: 0.78rem; color: var(--muted); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact { background: var(--bg); position: relative; overflow: hidden; }
#contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,104,192,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-info p { color: var(--muted); margin-bottom: 36px; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(0,104,192,0.08);
  border: 1px solid rgba(0,104,192,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-label { font-size: 0.75rem; color: var(--muted); }
.contact-item-val { color: var(--white); font-weight: 500; }
.trust-badges { display: flex; flex-direction: column; gap: 10px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.trust-badge-check {
  color: var(--cyan);
  font-weight: 700;
}

/* Form */
.contact-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.9rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ba8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--bg); color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(0,104,192,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-submit { width: 100%; padding: 15px; font-size: 0.95rem; justify-content: center; }
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;
}
.form-message.success {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  color: #15803d;
  display: block;
}
.form-message.error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: #dc2626;
  display: block;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--azure); }
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--trans);
  color: var(--muted);
}
.footer-link:hover {
  border-color: var(--azure);
  color: var(--azure-ll);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════ */
.blog-page-hero {
  padding: 140px 0 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.blog-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--azure);
  border-color: var(--azure);
  color: #fff;
}
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
#blog-list-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ══════════════════════════════════════
   BLOG POST PAGE
══════════════════════════════════════ */
.post-hero {
  padding: 140px 0 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color var(--trans);
}
.post-back:hover { color: var(--azure-ll); }
.post-title {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  max-width: 800px;
  margin-bottom: 24px;
  overflow: visible;
  padding-bottom: 0.1em;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-date { font-size: 0.85rem; color: var(--muted); }
.post-content-wrap { padding: 60px 0 100px; }
.post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}
.post-content h2 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin: 48px 0 20px;
  line-height: 1.4;
  overflow: visible;
}
.post-content h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 14px;
  line-height: 1.4;
  overflow: visible;
}
.post-content p { margin-bottom: 22px; color: var(--muted); }
.post-content ul, .post-content ol {
  margin: 0 0 22px 24px;
  color: var(--muted);
}
.post-content li { margin-bottom: 8px; }
.post-content code {
  background: var(--surface);
  color: var(--azure);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.875em;
}
.post-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.post-content blockquote {
  border-left: 3px solid var(--azure);
  padding-left: 20px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
}
.post-not-found {
  text-align: center;
  padding: 100px 0;
  color: var(--muted);
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-avatar-box { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; position: fixed;
    top: 0; right: 0; bottom: 0; width: 260px;
    background: var(--bg); border-left: 1px solid var(--border);
    padding: 80px 32px 40px; gap: 24px; justify-content: flex-start; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 1001; }
  .hero-stats { gap: 28px; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}
