/*
Theme Name: Shakra Kazmi
Theme URI: https://shakrakazmi.com
Author: Shakra Kazmi
Description: A premium RTL Urdu literary theme for poet Shakra Kazmi. Features dark/light mode, 3D book animations, horizontal timeline, and full Urdu typography support.
Version: 1.0.0
Text Domain: shakrakazmi
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== CSS Custom Properties ========== */
:root {
  --parchment: #f4ecd8;
  --midnight: #0a1128;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --muted: #a8a29e;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e3;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --font-urdu: 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', 'Noto Nastaliq Urdu', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --transition-colors: color 0.5s, background-color 0.5s, border-color 0.5s;
}

.dark { --muted: #4b5563; }

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  transition: var(--transition-colors);
}

body {
  font-family: var(--font-urdu);
  background-color: var(--parchment);
  color: var(--stone-950);
  transition: var(--transition-colors);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.dark body {
  background-color: var(--midnight);
  color: var(--silver);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("https://images.unsplash.com/photo-1506806732259-39c2d4a68470?auto=format&fit=crop&q=80");
  background-size: 350px;
  background-repeat: repeat;
  opacity: 0.5;
  filter: sepia(0.3) contrast(1.2);
}

.dark body::after {
  opacity: 0.2;
  filter: invert(1) brightness(1.2) contrast(1.2);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ========== Typography ========== */
.font-urdu { font-family: var(--font-urdu); }
.font-sans { font-family: var(--font-sans); }

/* ========== Layout Utilities ========== */
.site-wrapper { position: relative; z-index: 10; min-height: 100vh; overflow-x: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.select-none { user-select: none; }
.hidden { display: none; }
.block { display: block; }

/* ========== Navbar ========== */
.site-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background: transparent;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-controls { display: flex; align-items: center; gap: 1rem; flex: 1; }

.btn-icon {
  padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(245, 245, 244, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  transition: transform 0.2s;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .btn-icon { background: rgba(41, 37, 36, 0.8); }
.btn-icon:hover { transform: scale(1.1); }
.btn-icon svg { width: 20px; height: 20px; }

.search-wrapper { position: relative; display: flex; align-items: center; }

.search-input {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.3s, opacity 0.3s;
  background: rgba(245, 245, 244, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-urdu);
  backdrop-filter: blur(8px);
  outline: none;
}

.search-input:focus { box-shadow: 0 0 0 1px var(--gold); }
.dark .search-input { background: rgba(41, 37, 36, 0.8); color: var(--silver); }
.search-input.active { width: 180px; opacity: 1; }

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-shrink: 0;
}

@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
  color: var(--stone-900);
  padding: 0.25rem 0;
}

.dark .nav-link { color: var(--silver); }
.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-toggle-wrap { display: flex; justify-content: flex-end; flex: 1; }

.btn-mobile-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--stone-900);
  background: rgba(245, 245, 244, 0.8);
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(8px);
}

.dark .btn-mobile-toggle { color: var(--silver); background: rgba(41, 37, 36, 0.8); }
@media (min-width: 768px) { .btn-mobile-toggle { display: none; } }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .mobile-nav-overlay { background: var(--midnight); }
.mobile-nav-overlay.open { transform: translateX(0); }
@media (min-width: 768px) { .mobile-nav-overlay { display: none !important; } }

.mobile-nav-link {
  font-size: 1.5rem;
  font-family: var(--font-urdu);
  color: var(--stone-950);
  transition: color 0.2s;
}

.dark .mobile-nav-link { color: var(--silver); }
.mobile-nav-link:hover { color: var(--gold); }

/* ========== Hero Section ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  background: var(--parchment);
  transition: var(--transition-colors);
}

.dark .hero-section { background: var(--midnight); }

.tehreer-watermark {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dark .tehreer-watermark { opacity: 0.05; }

.tehreer-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(12deg) scale(1.5);
  font-family: var(--font-urdu);
  font-size: 5rem;
  line-height: 1.8;
  color: var(--stone-900);
}

.dark .tehreer-inner { color: var(--silver); }

.hero-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease-out forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-family: var(--font-urdu);
  color: var(--stone-950);
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

.dark .hero-title { color: var(--silver); }

.hero-takhallus {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-urdu);
  color: var(--gold);
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  animation: springIn 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-takhallus .izafat {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.8;
}

.hero-tagline {
  margin-top: 2rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--stone-800);
  max-width: 42rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

.dark .hero-tagline { color: var(--stone-400); }

.hero-svg-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
}

.hero-svg-decoration path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s linear infinite alternate;
}

/* ========== Library Section ========== */
.library-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12rem 1rem 8rem;
  overflow: hidden;
  backdrop-filter: blur(4px);
  background: rgba(245, 245, 244, 0.2);
}

.dark .library-section { background: rgba(28, 25, 23, 0.2); }

.library-section h2 {
  font-size: 3rem;
  font-family: var(--font-urdu);
  color: var(--stone-950);
  margin-bottom: 4rem;
}

.dark .library-section h2 { color: var(--silver); }

.books-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  padding: 0 1rem;
}

@media (min-width: 768px) { .books-row { gap: 8rem; } }

/* 3D Book Card */
.book-card { width: 12rem; cursor: pointer; perspective: 1000px; }
@media (min-width: 768px) { .book-card { width: 16rem; } }

.book-inner {
  width: 100%;
  height: 18rem;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) { .book-inner { height: 24rem; } }
.book-card:hover .book-inner { transform: rotateY(-180deg); }

.book-front, .book-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

.book-front {
  z-index: 20;
  border-radius: 0 2px 2px 0;
  border-right: 4px solid rgba(0, 0, 0, 0.2);
}

.book-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.book-front-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.book-front-overlay h3 {
  font-size: 1.875rem;
  font-family: var(--font-urdu);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.book-back {
  z-index: 10;
  border-radius: 2px 0 0 2px;
  border-left: 4px solid rgba(0, 0, 0, 0.2);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.book-back-texture {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.book-back h3 { font-size: 1.5rem; font-family: var(--font-urdu); color: rgba(255, 255, 255, 0.9); margin-bottom: 1rem; }
.book-back p { font-size: 0.875rem; font-family: var(--font-urdu); color: rgba(255, 255, 255, 0.7); line-height: 1.8; }
.book-back-divider { margin-top: 1.5rem; width: 3rem; height: 4px; background: rgba(212, 175, 55, 0.5); }

.book-spine {
  position: absolute;
  top: 0;
  right: 100%;
  width: 3rem;
  height: 100%;
  transform-origin: right;
  transform: rotateY(-90deg);
  border-radius: 2px 0 0 2px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-family: var(--font-urdu);
}

.book-download-btn {
  margin-top: 2.5rem;
  text-align: center;
}

.book-download-btn a, .book-download-btn button {
  padding: 0.75rem 2rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 9999px;
  font-family: var(--font-urdu);
  font-size: 1.125rem;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.book-download-btn a:hover, .book-download-btn button:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2);
}

/* ========== Social Hub Section ========== */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16rem 1.5rem 8rem;
}

.social-section h2 { font-size: 3.75rem; font-family: var(--font-urdu); color: var(--stone-950); margin-bottom: 1rem; }
.dark .social-section h2 { color: var(--silver); }
.social-section .social-subtitle { font-size: 1.25rem; font-family: var(--font-urdu); color: var(--gold); margin-bottom: 2.5rem; }

.social-icons { display: flex; gap: 2rem; margin-bottom: 3rem; }

.social-icon-link {
  padding: 1rem;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--stone-800);
  transition: all 0.3s;
}

.dark .social-icon-link { background: var(--stone-900); color: var(--silver); }
.social-icon-link:hover { color: var(--gold); transform: scale(1.1) translateY(-5px); }
.social-icon-link svg { width: 28px; height: 28px; }

/* Social Carousel */
.social-carousel-wrap { position: relative; width: 100%; max-width: 1280px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
  display: none;
}

.dark .carousel-arrow { background: rgba(28, 25, 23, 0.8); }
.social-carousel-wrap:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { transform: translateY(-50%) scale(1.1); }
.carousel-arrow.arrow-left { left: 0; transform: translateY(-50%) translateX(-1.5rem); }
.carousel-arrow.arrow-right { right: 0; transform: translateY(-50%) translateX(1.5rem); }

@media (min-width: 1024px) { .carousel-arrow { display: block; } }

.social-feed-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.social-feed-scroll::-webkit-scrollbar { display: none; }

.social-feed-item {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--stone-200);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 8px solid var(--stone-300);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.dark .social-feed-item { background: var(--stone-800); border-color: var(--stone-700); }
.social-feed-item:hover { transform: scale(1.02); }

@media (min-width: 640px) { .social-feed-item { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .social-feed-item { width: calc(25% - 18px); } }

.social-feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s;
  pointer-events: none;
}

.social-feed-item:hover img { filter: grayscale(0); }

.social-feed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.social-feed-item:hover .social-feed-overlay { opacity: 1; }
.social-feed-overlay a, .social-feed-overlay span { color: #fff; margin-left: 1rem; transition: color 0.2s; cursor: pointer; }
.social-feed-overlay a:hover, .social-feed-overlay span:hover { color: var(--gold); }
.social-feed-overlay svg { width: 20px; height: 20px; }

/* ========== Shayari Page ========== */
.shayari-page { min-height: 100vh; padding: 6rem 1.5rem 3rem; transition: var(--transition-colors); }
.shayari-page h1 { font-size: 3.75rem; font-family: var(--font-urdu); text-align: center; color: var(--stone-950); margin-bottom: 4rem; }
.dark .shayari-page h1 { color: var(--silver); }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .bento-span-2c { grid-column: span 2; }
  .bento-span-2r { grid-row: span 2; }
}

@media (min-width: 1024px) { .bento-grid { grid-template-columns: repeat(4, 1fr); } }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--stone-100);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dark .bento-card { border-color: var(--stone-800); background: rgba(28, 25, 23, 0.6) !important; }
.bento-card:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

.bento-card-name {
  font-size: 2rem;
  font-family: var(--font-urdu);
  color: var(--stone-950);
  transition: color 0.3s;
}

.dark .bento-card-name { color: var(--silver); }
.bento-card:hover .bento-card-name { color: var(--gold); }

.bento-card-count {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-top: 0.75rem;
}

.dark .bento-card-count { color: var(--stone-400); }
.bento-card-divider { height: 1px; width: 3rem; background: rgba(212, 175, 55, 0.3); margin-bottom: 0.75rem; }

.bento-card-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  transition: opacity 0.3s;
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.bento-card:hover .bento-card-texture { opacity: 0.05; }

.bento-corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-card:hover .bento-corner { opacity: 1; }
.bento-corner-tr { top: 1rem; right: 1rem; border-top: 1px solid rgba(212, 175, 55, 0.2); border-right: 1px solid rgba(212, 175, 55, 0.2); border-radius: 0 0.75rem 0 0; }
.bento-corner-bl { bottom: 1rem; left: 1rem; border-bottom: 1px solid rgba(212, 175, 55, 0.2); border-left: 1px solid rgba(212, 175, 55, 0.2); border-radius: 0 0 0 0.75rem; }

/* ========== Pedagogy Page ========== */
.pedagogy-page { min-height: 100vh; padding: 6rem 1.5rem 3rem; transition: var(--transition-colors); }
.pedagogy-page h1 { font-size: 3.75rem; font-family: var(--font-urdu); text-align: center; color: var(--stone-950); margin-bottom: 4rem; }
.dark .pedagogy-page h1 { color: var(--silver); }

.accordion-list { max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--stone-800);
  color: var(--silver);
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid var(--stone-700);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.accordion-header:hover { background: var(--stone-700); }

.accordion-header-content { display: flex; align-items: center; gap: 1rem; }

.accordion-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  background: rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.accordion-header-title { font-size: 1.5rem; font-family: var(--font-urdu); }

.accordion-chevron { transition: transform 0.3s; }
.accordion-chevron.open { transform: rotate(180deg); }

.accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s;
  background: rgba(244, 236, 216, 0.8);
  border-radius: 0 0 0.5rem 0.5rem;
  backdrop-filter: blur(4px);
}

.dark .accordion-body { background: rgba(28, 25, 23, 0.8); }
.accordion-body.open { max-height: 600px; opacity: 1; }

.accordion-body-inner { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.accordion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--stone-200);
  transition: background 0.2s;
  cursor: pointer;
}

.dark .accordion-item { border-bottom-color: var(--stone-800); }
.accordion-item:hover { background: rgba(212, 175, 55, 0.05); }
.accordion-item:last-child { border-bottom: none; }
.accordion-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--gold); flex-shrink: 0; }
.accordion-item span { font-size: 1.25rem; font-family: var(--font-urdu); color: var(--stone-900); }
.dark .accordion-item span { color: var(--stone-300); }

/* ========== Reviews Page ========== */
.reviews-page { min-height: 100vh; padding: 6rem 1.5rem 3rem; }
.reviews-page h1 { font-size: 3.75rem; font-family: var(--font-urdu); text-align: center; color: var(--stone-950); margin-bottom: 4rem; }
.dark .reviews-page h1 { color: var(--silver); }

.parchment-scroll {
  background: linear-gradient(to bottom, rgba(244, 236, 216, 0.8) 0%, rgba(232, 223, 196, 0.8) 50%, rgba(244, 236, 216, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  backdrop-filter: blur(4px);
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
}

@media (min-width: 768px) { .parchment-scroll { padding: 3rem; } }

.dark .parchment-scroll {
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8) 0%, rgba(10, 17, 40, 0.8) 50%, rgba(26, 26, 26, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-left-color: var(--silver);
  border-right-color: var(--silver);
}

.scroll-roller {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 2rem;
  background: var(--stone-800);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--gold);
}

.scroll-roller-top { top: 0; transform: translateX(-50%) translateY(-50%); }
.scroll-roller-bottom { bottom: 0; transform: translateX(-50%) translateY(50%); }

.review-card { position: relative; margin-bottom: 4rem; }
.review-card:last-child { margin-bottom: 0; }

.review-quote-icon {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  color: rgba(212, 175, 55, 0.2);
  transform: rotate(180deg);
}

.review-quote-icon svg { width: 64px; height: 64px; }

.review-text {
  font-size: 1.5rem;
  font-family: var(--font-urdu);
  color: var(--stone-950);
  font-style: italic;
  line-height: 2;
  margin-bottom: 1rem;
}

.dark .review-text { color: var(--silver); }

.review-author { text-align: left; }
.review-author span { color: var(--gold); font-family: var(--font-urdu); font-size: 1.25rem; }

/* ========== Publications Page ========== */
.publications-page { min-height: 100vh; padding: 6rem 1.5rem 3rem; transition: var(--transition-colors); }
.publications-page h1 { font-size: 3.75rem; font-family: var(--font-urdu); text-align: center; color: var(--stone-950); margin-bottom: 4rem; }
.dark .publications-page h1 { color: var(--silver); }

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pub-grid { grid-template-columns: repeat(3, 1fr); } }

.pub-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--stone-200);
  position: relative;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.pub-card.in-view { opacity: 1; transform: translateY(0); }
.dark .pub-card { background: rgba(28, 25, 23, 0.8); border-color: var(--stone-800); }

.pub-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  transform: rotate(12deg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
}

.pub-image-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--stone-100);
}

.dark .pub-image-wrap { border-color: var(--stone-800); }

.pub-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s;
}

.pub-card:hover .pub-image-wrap img { filter: grayscale(0); }

.pub-info { text-align: center; }
.pub-info h3 { font-size: 1.5rem; font-family: var(--font-urdu); color: var(--stone-950); }
.dark .pub-info h3 { color: var(--silver); }
.pub-info .pub-date { color: var(--gold); font-family: var(--font-urdu); margin-top: 0.5rem; }

.pub-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-100);
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--stone-600);
}

.dark .pub-footer { border-top-color: var(--stone-800); color: var(--stone-400); }

/* ========== About Page ========== */
.about-page {
  position: fixed;
  inset: 0;
  background: var(--parchment);
  transition: var(--transition-colors);
  overflow: hidden;
}

.dark .about-page { background: var(--midnight); }

.about-cursor-hint {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: rgba(212, 175, 55, 0.6);
  font-size: 0.75rem;
  font-family: var(--font-urdu);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (min-width: 1024px) { .about-cursor-hint { display: flex; } }

.about-viewport {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.about-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.about-slide {
  min-width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-top: 5rem;
  position: relative;
}

@media (min-width: 1024px) { .about-slide { padding: 0 6rem; padding-top: 5rem; } }

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) { .about-intro-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.about-intro-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-intro-portrait {
  position: relative;
  z-index: 10;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 240px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.2);
  border: 6px solid #fff;
}

.dark .about-intro-portrait { border-color: var(--stone-800); }

@media (min-width: 1024px) {
  .about-intro-portrait { max-width: 320px; border-width: 10px; }
}

.about-intro-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) sepia(0.2);
}

.dark .about-intro-portrait img { filter: sepia(0) brightness(0.9); }

.about-intro-glow {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 9999px;
  filter: blur(30px);
  z-index: -1;
}

.about-intro-text { text-align: right; }

.about-year-big {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-family: var(--font-urdu);
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
  display: block;
}

.dark .about-year-big { color: rgba(212, 175, 55, 0.1); }

.about-heading { font-size: clamp(2.5rem, 5vw, 4.5rem); font-family: var(--font-urdu); color: var(--stone-900); line-height: 1.2; }
.dark .about-heading { color: var(--silver); }
.about-heading .text-gold { color: var(--gold); }

.about-intro-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-family: var(--font-urdu);
  color: var(--stone-600);
  max-width: 32rem;
  line-height: 2;
  margin-top: 1rem;
}

.dark .about-intro-desc { color: var(--stone-400); }

.about-scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(212, 175, 55, 0.4);
  padding-top: 1rem;
}

.about-scroll-hint .hint-line { height: 1px; width: 5rem; background: currentColor; }
.about-scroll-hint .hint-text { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--font-sans); }

/* Milestone Cards */
.milestone-connect-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--stone-300);
  z-index: -1;
}

.dark .milestone-connect-line { background: var(--stone-800); }
@media (min-width: 1024px) { .milestone-connect-line { display: block; } }

.milestone-card {
  max-width: 64rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  position: relative;
  overflow: hidden;
  white-space: normal;
}

.dark .milestone-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .milestone-card { grid-template-columns: 1fr 1fr; gap: 5rem; padding: 3rem; }
}

.milestone-card-texture {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  background-image: url('https://www.transparenttextures.com/patterns/vintage-wallpaper.png');
  z-index: -1;
}

.dark .milestone-card-texture { opacity: 0.01; }

.milestone-year {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-family: var(--font-urdu);
  color: rgba(212, 175, 55, 0.2);
}

.dark .milestone-year { color: rgba(212, 175, 55, 0.1); }

.milestone-title { font-size: clamp(1.25rem, 2vw, 1.875rem); font-family: var(--font-urdu); color: var(--stone-800); }
.dark .milestone-title { color: var(--silver); }

.milestone-desc {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-family: var(--font-urdu);
  color: var(--stone-600);
  line-height: 2;
  max-width: 32rem;
  white-space: normal;
}

.dark .milestone-desc { color: var(--stone-400); }
.milestone-divider { width: 3.5rem; height: 2px; background: rgba(212, 175, 55, 0.3); margin-top: 1rem; }

.milestone-image-wrap { position: relative; display: flex; justify-content: center; }

.milestone-image {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 320px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
  position: relative;
  transition: transform 0.5s;
}

.dark .milestone-image { border-color: var(--stone-800); }
@media (min-width: 1024px) { .milestone-image { max-width: 28rem; border-width: 4px; } }
.milestone-image-wrap:hover .milestone-image { transform: scale(1.02); }

.milestone-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) sepia(0.1);
}

.dark .milestone-image img { filter: sepia(0) brightness(0.9); }
.milestone-image-overlay { position: absolute; inset: 0; background: rgba(212, 175, 55, 0.05); mix-blend-mode: overlay; }

.milestone-corner {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 1024px) { .milestone-corner { width: 2.5rem; height: 2.5rem; } }
.milestone-corner-tr { top: -0.5rem; right: -0.5rem; border-top: 2px solid rgba(212, 175, 55, 0.4); border-right: 2px solid rgba(212, 175, 55, 0.4); }
.milestone-corner-bl { bottom: -0.5rem; left: -0.5rem; border-bottom: 2px solid rgba(212, 175, 55, 0.4); border-left: 2px solid rgba(212, 175, 55, 0.4); }

@media (min-width: 1024px) {
  .milestone-corner-tr { top: -0.75rem; right: -0.75rem; }
  .milestone-corner-bl { bottom: -0.75rem; left: -0.75rem; }
}

/* About Bottom Nav */
.about-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--stone-200);
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 0 3rem;
}

.dark .about-bottom-nav {
  background: rgba(10, 17, 40, 0.8);
  border-top-color: var(--stone-800);
}

.year-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) { .year-dots { gap: 4rem; } }

.year-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.year-dot-label {
  font-size: 1.125rem;
  font-family: var(--font-urdu);
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}

.year-dot.active .year-dot-label { color: #C5A059; transform: scale(1.2); }

.year-dot-ring {
  position: absolute;
  inset: -1rem;
  border: 2px solid var(--gold);
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}

.year-dot.active .year-dot-ring { opacity: 1; transform: scale(1); }

.about-tip {
  display: none;
  align-items: center;
  gap: 1rem;
  color: var(--stone-400);
  border-right: 1px solid var(--stone-200);
  padding-right: 2rem;
  margin-right: 2rem;
}

.dark .about-tip { color: var(--stone-500); border-right-color: var(--stone-800); }
@media (min-width: 1024px) { .about-tip { display: flex; } }

.tip-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--stone-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .tip-icon { border-color: var(--stone-700); }
.tip-icon svg { width: 16px; height: 16px; animation: bounce 1s infinite; }
.tip-text { font-size: 0.75rem; font-family: var(--font-urdu); }
.tip-text strong { display: block; color: var(--stone-600); }
.dark .tip-text strong { color: var(--stone-400); }

/* ========== Footer ========== */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  border-top: 8px double rgba(212, 175, 55, 0.3);
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
}

.dark .site-footer { background: var(--midnight); }

.footer-bg-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(-90deg) scale(2.5);
  transform-origin: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

.dark .footer-overlay { background: rgba(0, 0, 0, 0.6); }

.guldasta-corner {
  position: absolute;
  width: 6rem;
  height: 6rem;
  opacity: 0.2;
  pointer-events: none;
  background-image: url("https://images.unsplash.com/photo-1597601031475-b04690497545?auto=format&fit=crop&q=80");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

.guldasta-tr { top: 1rem; right: 1rem; }
.guldasta-tl { top: 1rem; left: 1rem; transform: rotate(90deg); }

.footer-content { position: relative; z-index: 10; text-align: center; }
.footer-content h3 { font-size: 2.5rem; font-family: var(--font-urdu); color: var(--stone-950); margin-bottom: 1.5rem; }
.dark .footer-content h3 { color: var(--silver); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 1.125rem;
  font-family: var(--font-urdu);
  color: var(--stone-800);
}

.dark .footer-links { color: var(--stone-400); }
.footer-links a:hover { color: var(--gold); }

.footer-copyright {
  max-width: 48rem;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-200);
}

.dark .footer-copyright { border-top-color: rgba(41, 37, 36, 0.5); }

.footer-copyright p {
  font-size: 0.6875rem;
  line-height: 1.8;
  color: var(--stone-500);
  font-family: var(--font-sans);
}

.dark .footer-copyright p { color: var(--stone-600); }

/* ========== Scroll Arrow ========== */
.scroll-arrow {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  cursor: pointer;
  animation: fadeSlideUp 1s 1.5s both;
}

.scroll-arrow-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background: rgba(250, 250, 249, 0.05);
  animation: arrowBounce 2.5s ease-in-out infinite;
}

.dark .scroll-arrow-circle { background: rgba(12, 10, 9, 0.05); }
.scroll-arrow-circle svg { color: var(--gold); }

/* ========== Animations ========== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px) translateX(-50%); }
  to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes springIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { transform: translateY(8px); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* IntersectionObserver triggered */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.animate-slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-right.in-view { opacity: 1; transform: translateX(0); }

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.dark ::-webkit-scrollbar-track { background: var(--midnight); }
.dark ::-webkit-scrollbar-thumb { background: var(--silver); }

/* ========== WordPress Menu Classes ========== */
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu li a { display: block; padding: 0.25rem 0; }
