:root {
  --bg: #424c55;
  --surface: #f7f8fa;
  --text: #424c55;
  --muted: #2f3942;
  --accent: #06bee1;
  --accent-dark: #0a8fa7;
  --border: #d8e4ff;
  --warm: #f7a278;
  --soft: #f6f5ae;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6, 190, 225, 0.14), transparent 30%),
    linear-gradient(180deg, #f8f9fb 0%, #e9edf3 45%, #d9dde2 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.dark-mode {
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #111827 100%);
  color: #f8fafc;
}

body.dark-mode .hero,
body.dark-mode .hero-card,
body.dark-mode .info-card,
body.dark-mode .card,
body.dark-mode .note-item,
body.dark-mode .award-item,
body.dark-mode .timeline-card,
body.dark-mode .post-card,
body.dark-mode .article-view,
body.dark-mode .share-panel {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

body.dark-mode .hero-card img {
  border-color: #1f2937;
}

body.dark-mode .btn-secondary,
body.dark-mode .article-back {
  background: #334155;
  color: #f8fafc;
}

body.dark-mode .post-card h3,
body.dark-mode .post-card .post-header p,
body.dark-mode .post-card .post-text,
body.dark-mode .post-card .post-read-more,
body.dark-mode .post-card .post-action-btn,
body.dark-mode .share-panel h3,
body.dark-mode .share-panel .share-option,
body.dark-mode .article-view h2,
body.dark-mode .article-view .article-meta,
body.dark-mode .article-view .article-body,
body.dark-mode .article-view .article-body p,
body.dark-mode .post-action-btn,
body.dark-mode .nav-links a,
body.dark-mode .nav-links,
body.dark-mode .post-header p,
body.dark-mode .post-text,
body.dark-mode .hero-text,
body.dark-mode .section p,
body.dark-mode .card p,
body.dark-mode .note-item p,
body.dark-mode .award-item p,
body.dark-mode .article-body,
body.dark-mode .article-meta {
  color: #cbd5e1;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .brand,
body.dark-mode .nav-links a {
  color: #f8fafc;
}

body.dark-mode .eyebrow {
  color: #7dd3fc;
}

body.dark-mode .timeline-year {
  background: rgba(6, 190, 225, 0.16);
  color: #7dd3fc;
}

body.dark-mode .toggle-btn {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.8);
  border-color: #475569;
}

body::before {
  content: "Liaqat Ali";
  position: fixed;
  inset: auto 0 0 auto;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  color: rgba(66, 76, 85, 0.08);
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
  user-select: none;
  filter: blur(0.3px);
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.daily-timer {
  position: fixed;
  top: 3rem;
  left: .5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.daily-timer.is-hidden {
  display: none;
}

.daily-timer.is-zero {
  border-color: rgba(6, 190, 225, 0.35);
  box-shadow: 0 18px 42px rgba(6, 190, 225, 0.18);
}

.daily-timer__content {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.daily-timer__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.daily-timer__time {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.daily-timer__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.daily-timer__close:hover {
  transform: scale(1.06);
  background: rgba(15, 23, 42, 0.16);
}

body.dark-mode .daily-timer {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.38);
}

body.dark-mode .daily-timer__label {
  color: #cbd5e1;
}

body.dark-mode .daily-timer__time {
  color: #7dd3fc;
}

body.dark-mode .daily-timer__close {
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}

.hero {
  background: linear-gradient(135deg, #424c55 0%, #4f5964 48%, #5c6872 100%);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 45%, rgba(220, 185, 88, 0.14));
  pointer-events: none;
  animation: shimmer 10s linear infinite;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.toggle-btn {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.16);
  color: white;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: #f2f5f8;
  font-weight: 500;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soft);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: #000000;
}

.post-card h3,
.note-item h3,
.award-item h3,
.section-heading h2,
.section-grid h2 {
  color: #000000;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.hero-text,
.section p,
.card p,
.note-item p,
.award-item p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: #f6f5ae;
  color: #424c55;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-card,
.info-card,
.card,
.note-item,
.award-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card {
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fb 0%, #e9edf3 100%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(232, 240, 240, 0.28);
  border-radius: 1rem;
  pointer-events: none;
}

.hero-card img {
  border-radius: 1rem;
  border: 7px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #d8e4ff 0%, #f6f5ae 100%);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(90deg, rgba(66, 76, 85, 0.06), rgba(246, 245, 174, 0.22));
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.info-card {
  padding: 1.5rem;
}

.info-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.blog-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 540px;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.blog-hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.2) 100%);
  pointer-events: none;
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
}

.blog-hero-copy .eyebrow,
.blog-hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.45);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7.2rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(6, 190, 225, 0.65), rgba(6, 190, 225, 0.1));
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 7.2rem;
  top: 1.05rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem rgba(6, 190, 225, 0.16);
  transform: translateX(-50%);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--accent-dark);
  background: rgba(6, 190, 225, 0.12);
  box-shadow: inset 0 0 0 1px rgba(6, 190, 225, 0.12);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.blog-feed {
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}

.blog-feed[hidden],
.article-view[hidden] {
  display: none;
}

.article-view {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1.2rem;
}

.article-back {
  justify-self: start;
  border: none;
  background: #f2f6ff;
  color: var(--accent-dark);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.article-hero {
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f8fbff;
}

.article-featured-image {
  height: 320px;
  object-fit: cover;
}

.article-content {
  display: grid;
  gap: 0.8rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body {
  display: grid;
  gap: 1rem;
  color: #334155;
  font-size: 1.02rem;
}

.article-body p {
  line-height: 1.8;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  animation: floatIn 0.7s ease both;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-read-more {
  margin: 0.6rem 0 0.2rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6aa7ff);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  cursor: pointer;
}

.avatar img:hover {
  transform: scale(1.04);
  transition: transform 0.25s ease;
}

.post-header h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.post-header p {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-text {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.post-image {
  border-radius: 0.95rem;
  margin-bottom: 0.9rem;
  height: 220px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.profile-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.profile-lightbox.active {
  display: flex;
}

.profile-lightbox img {
  max-width: min(92vw, 480px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1.2rem;
  border: 6px solid rgba(255,255,255,0.95);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.profile-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255,255,255,0.95);
  color: #111827;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.post-action-btn:hover {
  background: #f1f6ff;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.post-action-btn.is-active {
  background: #eaf2ff;
  color: var(--accent);
}

.like-count {
  font-weight: 700;
}

.share-panel {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.share-panel[hidden] {
  display: none;
}

.share-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.share-panel-close {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.share-option {
  border: 1px solid var(--border);
  background: #f9fbff;
  color: var(--text);
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.share-option:hover {
  background: #eef5ff;
}

.card,
.award-item,
.note-item {
  padding: 1.2rem;
}

.card img {
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  height: 180px;
  object-fit: cover;
}

.card h3,
.note-item h3,
.award-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card span {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.notes-list {
  display: grid;
  gap: 1rem;
}

.footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: 1.5rem;
  }

  .timeline-year {
    justify-self: start;
  }

  .blog-hero {
    min-height: 260px;
  }

  .blog-hero-copy {
    padding: 1.4rem;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

}
