/* ================= CSS VARIABLES (Light Theme by default) ================= */
:root {
  --brand: #a05b66;
  --bg: #f7f7f8;
  --text: #161618;
  --muted: #5b5b5f;
  --border: #b78890;
  --divider: var(--brand);

  --radius: 16px;
  --radius-nav: 12px;
  --maxw: 1200px;

  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 20px;
  --s-5: 28px;
  --s-6: 36px;
  --s-7: 48px;
  --s-8: 64px;

  /* Frosted glass effect variables */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(176, 136, 144, 0.55);
  --glass-blur: 12px;

  --shadow: 0 8px 24px rgba(10, 10, 10, 0.10);
  --shadow-2: 0 16px 36px rgba(10, 10, 10, 0.16);

  --nav-txt: var(--text);
  --link: var(--text);
  --link-hover: #7f4450;

  --btn-txt: var(--text);
  --close-bg: #ffffff;
  --close-text: #1a1a1a;
}

/* ================= DARK THEME VARIABLES ================= */
html[data-theme="dark"] {
  --bg: #151517;
  --text: #f2f2f3;
  --muted: #bdbdc2;
  --border: #a05b66;
  --divider: #2f2f33;

  --glass-bg: rgba(30, 31, 34, 0.50);
  --glass-border: rgba(160, 91, 102, 0.55);
  --glass-blur: 14px;

  --shadow: 0 14px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 22px 50px rgba(0,0,0,0.45);

  --nav-txt: #f2f2f3;
  --link: #f2f2f3;
  --link-hover: #d59aa3;

  --btn-txt: #f2f2f3;
  --close-bg: #2a2a2d;
  --close-text: #f7f7f7;
}

/* ================= BASE STYLES ================= */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (max-width: 540px) {
  .container { padding: 0 var(--s-3); }
}
main {
  padding-block: var(--s-7);
}
main > * {
  margin-block: var(--s-7);
}

/* --- Global link styles --- */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ================= NAVIGATION BAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border-bottom: 2px solid var(--glass-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px calc(var(--s-4) + env(safe-area-inset-right)) 12px calc(var(--s-4) + env(safe-area-inset-left));
  display: flex;
  align-items: center;
  /* On mobile, space between brand and actions (overridden in media query) */
}
.brand {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-ayaan {
  font-size: 1.1em;
  opacity: 1;
  font-weight: 700;
  margin-right: 0.3;
}
.brand-text {
  font-size: 1.2em;
  font-weight: 700;
  opacity: 0.79;
}
.nav-links-desktop {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-links-desktop a,
.nav-panel a {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-nav);
  text-decoration: none;
  font-weight: 600;
  color: var(--btn-txt);
  background: transparent;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-links-desktop a:hover,
.nav-panel a:hover {
  transform: translateY(-1px);
  border-color: var(--link-hover);
  color: var(--link-hover);
}
.nav-links-desktop a[aria-current="page"],
.nav-panel a[aria-current="page"] {
  /* “current page” indicator pill */
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .nav-links-desktop a[aria-current="page"],
html[data-theme="dark"] .nav-panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
}
.theme-toggle {
  padding: 10px 14px;
  min-height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: transparent;
  color: var(--btn-txt);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--link-hover);
  color: var(--link-hover);
}
.theme-toggle:focus { outline: none; }
.theme-toggle:active { transform: translateY(0); }
.menu-toggle {
  display: none;
  padding: 10px 16px;
  min-height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: transparent;
  color: var(--btn-txt);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
}
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--link-hover);
  color: var(--link-hover);
}
.menu-toggle:focus { outline: none; }
.menu-toggle:active { transform: none; }
/* Highlight the "Menu" toggle when expanded */
.menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Mobile menu (collapsible panel) --- */
@media (max-width: 760px) {
  .nav-inner {
    padding: 10px calc(var(--s-3) + env(safe-area-inset-right)) 10px calc(var(--s-3) + env(safe-area-inset-left));
    justify-content: space-between;
  }
  .nav-links-desktop { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-panel {
    display: block;
    overflow: hidden;
    max-height: 0;
    padding: 0 calc(var(--s-4) + env(safe-area-inset-right)) 0 calc(var(--s-4) + env(safe-area-inset-left));
    transition: max-height 0.22s ease, padding 0.22s ease;
  }
  .nav-panel.open {
    max-height: 300px;
    padding: 8px calc(var(--s-3) + env(safe-area-inset-right)) 12px calc(var(--s-3) + env(safe-area-inset-left));
  }
  .nav-panel a {
    display: block;
    margin-bottom: 8px;
  }
}
@media (min-width: 761px) {
  .nav-panel { display: none; }
}

/* ================= TYPOGRAPHY & GLASS CARD STYLES ================= */
.title {
  color: var(--brand);
  margin: 0 0 var(--s-3);
  font-size: clamp(28px, 5vw, 42px);
}
.title.spaced { margin-top: var(--s-6); }
.section-title {
  margin: 0 0 var(--s-3);
  color: var(--brand);
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 750;
}
.lead {
  max-width: 760px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
}
@media (max-width: 540px) {
  .card { padding: var(--s-4); }
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.2px;
  font-size: clamp(44px, 8vw, 84px);
}
@media (max-width: 760px) {
  .hero {
    min-height: 45vh;
    padding: 32px 0;
  }
}

/* ================= POST LIST & EXCERPTS ================= */
.list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.post {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: transform 0.18s, box-shadow 0.2s;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: var(--shadow);
}
.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.post-title {
  margin: 0 0 var(--s-2);
}
.post-title a {
  color: inherit;
  text-decoration: none;
}
.post-title a:hover {
  text-decoration: underline;
  color: inherit;
}
.excerpt {
  margin-top: var(--s-2);
}
@media (max-width: 760px) {
  .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.btn {
  display: inline-block;
  border: 2px solid var(--glass-border);
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  margin-top: var(--s-2);
  border-radius: 10px;
  background: transparent;
}
.btn:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
}

/* ================= FEATURED POSTS GRID ================= */
.featured-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 740px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1120px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post--featured {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post--featured .btn {
  margin-top: auto;
}

/* ================= PROMO SECTIONS ================= */
.promo-text {
  margin: 0 0 var(--s-3);
  color: var(--muted);
}
.promo-actions {
  margin-top: auto;
}

/* ================= IMAGE GALLERY GRID ================= */
.grid {
  display: grid;
  gap: 20px;
}
.gallery-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.photo {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.2s;
}
.photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.photo a {
  display: block;
}
.photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.photo:hover img {
  transform: scale(1.02);
}
@media (min-width: 600px) {
  .photo img { height: 320px; }
}
@media (min-width: 900px) {
  .photo img { height: 340px; }
}
@media (min-width: 1200px) {
  .photo img { height: 360px; }
}
.photo figcaption {
  padding: 12px 14px;
  color: var(--muted);
}

/* ================= LIGHTBOX (IMAGE MODAL) ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox .frame {
  position: relative;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  max-width: 92vw;
  max-height: 88vh;
  padding: 16px;
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: scale(0.96) translateY(6px);
  transition: transform 0.22s ease;
}
.lightbox.open .frame {
  transform: scale(1) translateY(0);
}
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox figcaption {
  margin-top: 8px;
  color: var(--muted);
}
.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  border: 2px solid var(--glass-border);
  background: var(--close-bg);
  color: var(--close-text);
  border-radius: 14px;
  padding: 6px 10px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.lb-close:hover {
  filter: brightness(1.05);
}

/* ================= FOOTER ================= */
footer {
  margin-top: var(--s-7);
  padding: var(--s-5) 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--divider);
}
footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ================= ACCESSIBILITY & OPTIMIZATION QUERIES ================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar,
  .card,
  .post,
  .photo,
  .lightbox .frame {
    background: rgba(255, 255, 255, 0.92);
  }
  html[data-theme="dark"] .navbar,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .post,
  html[data-theme="dark"] .photo,
  html[data-theme="dark"] .lightbox .frame {
    background: rgba(30, 31, 34, 0.92);
  }
}
@media (max-width: 420px) {
  :root {
    --glass-blur: 8px;
  }
}
@media (hover: none) {
  /* Remove hover effects on touch devices to prevent “stuck” active states */
  .theme-toggle:hover,
  .menu-toggle:hover,
  .nav-links-desktop a:hover,
  .nav-panel a:hover {
    transform: none;
    border-color: var(--glass-border);
    color: var(--btn-txt);
    background: transparent;
  }
}

/* === Fix desktop nav alignment: put links + theme on the right === */
@media (min-width: 761px){
  .nav-inner{ justify-content:flex-start; }     /* left brand, right everything else */
  .nav-links-desktop{ margin-left:auto; }       /* push links to the right */
  .nav-actions{ margin-left:12px; }             /* keep a small gap before the theme button */
}

/* Social Pills */
.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.pill {
  padding: 0.4rem 1rem;
  border-radius: 999px; /* pill shape */
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
  color: white !important;
}

.pill-instagram {
  background: linear-gradient(
    135deg,
    #5a2b2b,
    #6a2e3a,
    #5b2f4a
  );
  border: 1px solid rgba(240, 148, 51, 0.3);
}

.pill-spotify {
  background: #1a3d2b;
  border: 1px solid rgba(29, 185, 84, 0.4);
}

.pill:hover {
  opacity: 0.85;
}

.social-pills .email {
  font-size: 0.9rem;
}

.pill-music {
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

html[data-theme="light"] .pill-music {
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: #6a2e3a;
}

html[data-theme="light"] .pill-music:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .pill-music {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d0a0b0;
}

html[data-theme="dark"] .pill-music:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pill-music:hover {
  transform: translateY(-1px);
}

/* Base */
.pill-theme {
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

/* Light mode */
html[data-theme="light"] .pill-theme {
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: #6a2e3a;
}

/* Dark mode */
html[data-theme="dark"] .pill-theme {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d0a0b0;
}

.pill-theme:hover {
  transform: translateY(-1px);
}

/* Pill text alignment & spacing */
.pill-music,
.pill-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  /* Reduce visual dominance on mobile */
  .nav-actions {
    gap: 6px;
  }

  .pill-music,
  .pill-theme {
    font-size: 0.7rem;
    padding: 6px 10px;
    letter-spacing: 0.1em;
    opacity: 0.85;
  }

  .pill-music:hover,
  .pill-theme:hover {
    transform: none;
    opacity: 1;
  }

  /* Make Menu feel primary */
  .menu-toggle {
    font-weight: 800;
    padding: 10px 16px;
  }
}

/* Prevent header collapse on small screens */
.nav-actions {
  flex-shrink: 0;
}

/* ====== Mobile menu pill copy + small safety rules ====== */

/* Hide header pills on small screens (CSS only) */
@media (max-width: 760px) {
  .nav-actions .pill-music,
  .nav-actions .pill-theme {
    display: none;
  }
}

/* Keep the copied pills inside the menu together */
.nav-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* Make the pills inside the nav-panel touch-friendly and one-piece */
@media (max-width: 760px) {
  .nav-panel .pill-music,
  .nav-panel .pill-theme {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.82rem;
    letter-spacing: 0.10em;
    border-radius: var(--radius-nav);
    border: 2px solid var(--glass-border);
    background: transparent;
    color: var(--btn-txt);
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel .pill-music:hover,
  .nav-panel .pill-theme:hover {
    border-color: var(--link-hover);
    color: var(--link-hover);
    transform: none;
    opacity: 1;
  }

  /* Ensure the menu button looks primary on mobile */
  .menu-toggle {
    font-weight: 800;
    padding: 10px 16px;
  }
}

/* Layout safety: prevent header items from squashing/wrapping on tiny widths */
.nav-actions {
  flex-shrink: 0;
}

/* MY CREDITTT :D */

.mycreditwoohoo {
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 20px;
}

/* Light mode */
[data-theme="light"] .mycreditwoohoo {
  color: #666;
  text-shadow: 0 0.5px 0.75px rgba(0, 0, 0, 0.12);
}

/* Dark mode */
[data-theme="dark"] .mycreditwoohoo {
  color: #999;
  text-shadow: 0 0.5px 0.75px rgba(255, 255, 255, 0.07);
}















