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

:root {
  --bg: #faf9f7;
  --bg2: #f4f3f0;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --gold: #c8922a;
  --gold-light: #e8b84b;
  --border: #e5e3df;
  --white: #ffffff;
  --dark: #111111;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
/* Dropdown parent needs relative positioning */
.nav-links li { position: relative; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Blog dropdown (homepage nav) ── */
.nav-links li:has(.nav-dropdown) > a::after { display: none; }
.nav-links li:has(.nav-dropdown) > a {
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-links li:has(.nav-dropdown) > a::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: 0.45;
  transition: transform 0.2s;
  order: 2;
}
.nav-links li:has(.nav-dropdown):hover > a::before { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 190px;
  padding: 6px 0;
  list-style: none;
  z-index: 9999;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 6px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-links li:has(.nav-dropdown):hover .nav-dropdown {
  display: block;
  animation: ddFadeIn 0.15s ease;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown li { position: static; }
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 0.84rem;
  color: var(--text) !important;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a::after { display: none !important; }
.nav-dropdown li a::before { display: none !important; }
.nav-dropdown li a:hover { background: var(--bg); color: var(--gold) !important; }
.dd-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.dot-life    { background: #66bb6a; }
.dot-reading { background: #ec407a; }
.dot-photo   { background: #ffa726; }
.dot-ml      { background: #42a5f5; }
.dot-cpp     { background: #7e57c2; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: 'DM Sans', sans-serif;
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover { background: #333; border-color: #333; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

/* ===== SECTION COMMON ===== */
section { padding: 5rem 0; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.center { text-align: center; }
.center.section-sub { margin-left: auto; margin-right: auto; }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/DSC02180.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) brightness(0.72);
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  max-width: 860px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}
#hero.loaded .hero-content { opacity: 1; transform: none; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}
.hero-quote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.4;
  color: var(--white);
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.hero-attribution {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}
.hero-scroll span {
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  margin: 0 auto;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 0.8; height: 50px; }
}

/* ===== ABOUT ===== */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-slider-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 540px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.about-slider { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: white; }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots {
  position: absolute;
  bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.dot.active { background: white; transform: scale(1.3); }
.currently-working {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(17,17,17,0.88);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.cw-label { display: block; color: rgba(255,255,255,0.55); font-size: 0.68rem; margin-bottom: 2px; }
.cw-value { font-weight: 500; }
.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.about-subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.gold { color: var(--gold); }
.about-body {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.about-body strong { color: var(--text); }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--text); color: var(--text); }
.about-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== PHOTOGRAPHY ===== */
#photography { background: var(--bg); }
.insta-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.insta-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.insta-profile div { display: flex; flex-direction: column; }
.insta-profile strong { font-size: 0.95rem; }
.insta-profile span { font-size: 0.82rem; color: var(--text-muted); }

/* ── Scroll Gallery ── */
.gallery-outer {
  position: relative;
  margin: 0 -0.5rem;
}
.gallery-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: grab;
  user-select: none;
}
.gallery-track-wrap:active { cursor: grabbing; }
.gallery-track {
  display: flex;
  gap: 10px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-card {
  flex: 0 0 calc(25% - 8px);
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg2);
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  display: block;
}
.gallery-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.04);
}
.gallery-card .gc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  pointer-events: none;
}
.gallery-card:hover .gc-overlay { opacity: 1; }
.gc-caption {
  color: rgba(255,255,255,0.9);
  font-size: 0.74rem;
  line-height: 1.35;
}

/* Nav arrows */
.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.93);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}
.gallery-nav:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transform: translateY(-50%) scale(1.06);
}
.gallery-prev { left: -18px; }
.gallery-next { right: -18px; }

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}
.gallery-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* Skeleton */
.gallery-skeleton {
  flex: 0 0 calc(25% - 8px);
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.gallery-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%);  }
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-card { flex: 0 0 calc(33.33% - 7px); }
}
@media (max-width: 600px) {
  .gallery-card { flex: 0 0 calc(50% - 6px); }
  .gallery-prev { left: -12px; }
  .gallery-next { right: -12px; }
}

/* ===== TRAVEL ===== */
#travel { background: var(--bg2); }
.map-container {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
#worldMap {
  width: 100%;
  height: auto;
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.legend-dot.visited { background: var(--gold); }
.travel-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.country-chip {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
}
.country-chip.visited {
  background: rgba(200, 146, 42, 0.1);
  border-color: rgba(200, 146, 42, 0.3);
  color: var(--gold);
}

/* ===== BOOKSHELF ===== */
#bookshelf { background: var(--white); }
.bookshelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.bookshelf-header .section-title { margin-bottom: 0; }
.book-filters {
  display: flex;
  gap: 0.4rem;
  background: var(--bg2);
  padding: 4px;
  border-radius: 8px;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.84rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.filter-btn.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.book-card {
  cursor: pointer;
  transition: transform var(--transition);
}
.book-card:hover { transform: translateY(-4px); }
.book-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.book-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.book-status::before {
  content: '✓';
  color: var(--gold);
}
.book-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.book-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.book-card[data-status="reading"] .book-status::before { content: '▶'; color: #3b82f6; }
.book-card[data-status="want"] .book-status::before { content: '○'; color: #9ca3af; }
.book-card.hidden { display: none; }

/* ===== CHANNELS ===== */
#channels { background: var(--bg); }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.channel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.channel-card:hover {
  border-color: #ccc;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}
.channel-card.highlight { border-color: #d4c4a8; }
.channel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.channel-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.channel-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 9px;
}
.channel-icon svg { width: 100%; height: 100%; }
.channel-icon.instagram { background: #fce4ec; color: #e91e63; }
.channel-icon.youtube { background: #ffebee; color: #f44336; }
.channel-icon.podcast { background: #fff3e0; color: #ff9800; }
.channel-icon.medium { background: #e8f5e9; color: #4caf50; }
.channel-icon.linkedin { background: #e3f2fd; color: #1976d2; }
.channel-icon.github { background: #f3e5f5; color: #7b1fa2; }
.channel-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.channel-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.channel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.channel-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: letter-spacing var(--transition);
}
.channel-link:hover { letter-spacing: 0.02em; }

/* ===== BLOG ===== */
#blog { background: var(--bg2); }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.blog-featured-link { display: block; }
.blog-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
}
.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-featured-link:hover .blog-featured-img img { transform: scale(1.03); }
.blog-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.blog-tag.life { background: #e8f5e9; color: #2e7d32; }
.blog-tag.ml { background: #e3f2fd; color: #1565c0; }
.blog-tag.blog-tag-overlay {
  position: absolute;
  bottom: 1rem; left: 1rem;
}
.blog-featured-img .blog-tag {
  position: absolute;
  bottom: 1rem; left: 1rem;
}
.blog-featured-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.blog-featured-link:hover h3 { color: var(--gold); }
.blog-meta { font-size: 0.82rem; color: var(--text-muted); }
.blog-list { display: flex; flex-direction: column; gap: 1.25rem; }
.blog-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.blog-item:first-child { padding-top: 0; }
.blog-item .blog-tag { margin-bottom: 0.4rem; }
.blog-item h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
  line-height: 1.4;
}
.blog-item:hover h4 { color: var(--gold); }
.blog-medium-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
}
.on-medium {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.blog-medium-card h4 { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.blog-medium-quote { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ===== CONTACT ===== */
#contact { background: var(--white); }
.contact-wrap { max-width: 680px; margin: 0 auto; }
.contact-form { margin-top: 2.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}
.form-group textarea { margin-bottom: 1.25rem; }
.form-submit { text-align: center; }
.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  min-height: 1.4em;
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* ===== FOOTER ===== */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}
.footer-brand strong { color: white; font-size: 0.95rem; display: block; }
.footer-brand span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: white; }
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.55);
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: translateY(-2px);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(4, 1fr); }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  section { padding: 3.5rem 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; color: var(--text); }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-slider-wrap { max-height: 380px; }
    .blog-layout { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .bookshelf-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-quote { font-size: 1.4rem; }
}



/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 8, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

#lbImgWrap {
  position: relative;
  max-width: 90vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lbImg {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: block;
}
#lbImg.loaded { opacity: 1; }

#lbSpinner {
  position: absolute;
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#lbSpinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

#lbCaption {
  margin-top: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
#lbCaptionText {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.5;
}
#lbInstaLink {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
  display: none;
}
#lbInstaLink.visible { display: inline; }
#lbInstaLink:hover   { text-decoration: underline; }

#lbCounter {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

#lbClose {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
}
#lbClose:hover { color: white; }

#lbPrev, #lbNext {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
#lbPrev { left: 1.25rem; }
#lbNext { right: 1.25rem; }
#lbPrev:hover, #lbNext:hover {
  background: rgba(255,255,255,0.16);
  color: white;
}


@media (max-width: 600px) {
  #lbPrev { left: 0.4rem; }
  #lbNext { right: 0.4rem; }
  #lbImg  { max-height: 65vh; }
}
