:root {
  --hue-primary: 218;
  --color-primary: hsl(var(--hue-primary), 90%, 60%);
  --color-primary-dark: hsl(var(--hue-primary), 90%, 52%);
  --color-bg: #04040f;
  --color-surface: rgba(14, 18, 42, 0.75);
  --color-surface-strong: rgba(18, 22, 52, 0.95);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: rgba(255, 255, 255, 0.88);
  --color-muted: rgba(255, 255, 255, 0.62);
  --color-meta: rgba(111, 146, 255, 0.75);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-xl: 0 30px 60px rgba(15, 20, 55, 0.35);
  --shadow-md: 0 20px 40px rgba(10, 15, 40, 0.3);
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(18, 36, 91, 0.7), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(40, 20, 70, 0.7), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(18, 36, 91, 0.5), transparent 60%),
    var(--color-bg);
  background-attachment: fixed;
  line-height: 1.65;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(4, 4, 15, 0.85);
  border-bottom: 1px solid rgba(111, 146, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.nav {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover,
.logo:focus {
  opacity: 0.8;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--color-border);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 4px 0;
  transition: transform 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-menu a {
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-muted);
  position: relative;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 146, 255, 0.2), rgba(111, 146, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(111, 146, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
  opacity: 1;
}

/* ========================================
   IMMERSIVE HERO SECTION WITH GLASSMORPHISM
   ======================================== */

.hero-immersive {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background Image Layers */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 0.1s ease-out;
  will-change: opacity, transform;
}

.hero-background__layer.active {
  opacity: 1;
}

.hero-background__layer--1 {
  background-image: url('../images/20250920_1628_Corrupted%20Eden%20Vision_remix_01k5mgak5hf0y9nqz8g0b557m7.png');
}

.hero-background__layer--2 {
  background-image: url('../images/20250916_2300_Neon%20Apocalypse_simple_compose_01k5ax6h4fejqttx4cvgrrdyg3.png');
}

.hero-background__layer--3 {
  background-image: url('../images/20250920_0034_Celestial%20Battle%20Over%20Earth_remix_01k5jsqdxne65sx90b3b8hd39v.png');
}

.hero-background__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(4, 4, 15, 0.3) 0%, rgba(4, 4, 15, 0.75) 100%);
  z-index: 1;
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(111, 146, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(111, 146, 255, 0.8);
  animation: float-particle 20s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 60%; top: 30%; animation-delay: 1s; animation-duration: 24s; }
.particle:nth-child(5) { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 80%; top: 50%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 50%; top: 80%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(8) { left: 40%; top: 10%; animation-delay: 4.5s; animation-duration: 17s; }

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* Glassmorphism Content Card */
.hero-glass-card {
  /* Fallback for browsers that don't support backdrop-filter */
  background: rgba(14, 18, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fade-in-up 1s ease-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Modern glassmorphism for supported browsers */
@supports (backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px)) {
  .hero-glass-card {
    background: rgba(14, 18, 42, 0.25);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(111, 146, 255, 0.5) 50%,
    transparent
  );
  opacity: 0.6;
}

.hero-glass-card h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 18px 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-glass-card .meta {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--color-meta);
  font-weight: 600;
}

.hero-glass-card .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Preview Cards */
.hero-image-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  animation: fade-in-up 1s ease-out 0.3s both;
}

.preview-card {
  aspect-ratio: 1;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(0px);
}

.preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(111, 146, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preview-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(111, 146, 255, 0.6);
  box-shadow: 0 16px 40px rgba(111, 146, 255, 0.3);
}

.preview-card:hover::before {
  opacity: 1;
}

.preview-card--1 {
  background-image: url('../images/20250920_1628_Corrupted%20Eden%20Vision_remix_01k5mgak5hf0y9nqz8g0b557m7.png');
}

.preview-card--2 {
  background-image: url('../images/20250916_2300_Neon%20Apocalypse_simple_compose_01k5ax6h4fejqttx4cvgrrdyg3.png');
}

.preview-card--3 {
  background-image: url('../images/20250920_0034_Celestial%20Battle%20Over%20Earth_remix_01k5jsqdxne65sx90b3b8hd39v.png');
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-in 1s ease-out 1s both;
  transition: opacity 0.3s ease;
}

.scroll-indicator__text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.scroll-indicator__line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(111, 146, 255, 0.8), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   HERO FOR INTERNAL PAGES
   ======================================== */

.hero-page {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 100px;
}

.hero-page__background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(111, 146, 255, 0.15), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(168, 63, 255, 0.1), transparent 50%);
  z-index: 0;
}

.hero-page__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-page .hero-glass-card {
  text-align: center;
}

.hero-page .hero-glass-card .meta {
  justify-content: center;
  margin: 0 auto 16px;
}

.hero-page .hero-glass-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-page .hero-glass-card .lead {
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-page {
    min-height: auto;
    padding: 100px 20px 80px;
  }

  .hero-page .hero-glass-card {
    padding: 40px 32px;
  }
}

@media (max-width: 480px) {
  .hero-page {
    padding: 80px 16px 60px;
  }

  .hero-page .hero-glass-card {
    padding: 32px 24px;
  }
}

/* Mobile First Responsive Design */
@media (min-width: 768px) {
  .hero-content-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    padding: 120px 48px 80px;
  }

  .hero-glass-card {
    padding: 64px 56px;
  }

  .hero-image-previews {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-card {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1200px) {
  .hero-content-wrapper {
    padding: 140px 64px 100px;
  }
}

@media (max-width: 767px) {
  .hero-immersive {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .hero-glass-card {
    padding: 36px 28px;
    border-radius: 24px;
  }

  .hero-glass-card h1 {
    font-size: 1.9rem;
  }

  .hero-glass-card .meta {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }

  .hero-glass-card .lead {
    font-size: 1rem;
  }

  .hero-image-previews {
    gap: 12px;
  }

  .preview-card {
    border-radius: 16px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .particle {
    width: 3px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .hero-content-wrapper {
    padding: 80px 16px 50px;
  }

  .hero-glass-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .hero-glass-card h1 {
    font-size: 1.7rem;
  }

  .hero-image-previews {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .preview-card {
    aspect-ratio: 16 / 10;
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 360px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.hero-card .author {
  font-style: italic;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  gap: 48px;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 146, 255, 0.3) 50%, transparent);
}

.content-section.balanced {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 48px;
}

.section-text h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-text p {
  color: var(--color-muted);
}

.section-highlights {
  display: grid;
  gap: 18px;
}

.highlight-card {
  background: rgba(16, 20, 45, 0.9);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.highlight-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.highlight-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease-out;
}

.section-header .meta {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(111, 146, 255, 0.12);
  border: 1px solid rgba(111, 146, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-meta);
  font-weight: 600;
}

.section-header h2 {
  margin: 12px 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.trio {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Staggered animation for cards */
.card-grid .card:nth-child(1),
.card-grid .media-card:nth-child(1) {
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.card-grid .card:nth-child(2),
.card-grid .media-card:nth-child(2) {
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.card-grid .card:nth-child(3),
.card-grid .media-card:nth-child(3) {
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.card-grid .card:nth-child(4),
.card-grid .media-card:nth-child(4) {
  animation: fade-in-up 0.6s ease-out 0.4s both;
}

.card,
.media-card {
  /* Fallback */
  background: rgba(18, 22, 52, 0.85);
  border: 1px solid rgba(111, 146, 255, 0.2);
  border-radius: 24px;
  padding: 36px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism for cards */
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .card,
  .media-card {
    background: rgba(18, 22, 52, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
}

.card::before,
.media-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(111, 146, 255, 0.4) 50%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover,
.media-card:hover {
  transform: translateY(-8px);
  border-color: rgba(111, 146, 255, 0.5);
  box-shadow:
    0 16px 48px rgba(111, 146, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card:hover::before,
.media-card:hover::before {
  opacity: 1;
}

.card .category {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(111, 146, 255, 0.15);
  border: 1px solid rgba(111, 146, 255, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-meta);
  font-weight: 600;
  width: fit-content;
}

.card h3,
.media-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p,
.media-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.7;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-primary), hsl(var(--hue-primary), 85%, 55%));
  color: #060612;
  box-shadow: 0 8px 24px rgba(28, 77, 255, 0.4);
  border: 1px solid rgba(111, 146, 255, 0.3);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 77, 255, 0.5);
}

.btn.ghost {
  border: 1px solid rgba(111, 146, 255, 0.4);
  color: #fff;
  background: rgba(111, 146, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 146, 255, 0.2);
}

.btn.link {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.link:hover,
.btn.link:focus {
  background: rgba(255, 255, 255, 0.14);
}

.btn.subtle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
}

.btn.subtle:hover,
.btn.subtle:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.download-list {
  display: grid;
  gap: 18px;
}

.download-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(16, 20, 45, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-item:hover,
.download-item:focus {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.download-title {
  font-weight: 600;
}

.download-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.donation-card {
  background: linear-gradient(160deg, rgba(18, 37, 85, 0.9), rgba(62, 27, 92, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donation-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
  line-height: 1.7;
}

.contact {
  padding-bottom: 120px;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  /* Fallback */
  background: rgba(18, 22, 52, 0.85);
  border-radius: 32px;
  padding: 64px 48px;
  border: 1px solid rgba(111, 146, 255, 0.25);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
  animation: fade-in-up 0.8s ease-out;
}

/* Glassmorphism for contact card */
@supports (backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px)) {
  .contact-card {
    background: rgba(18, 22, 52, 0.3);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(111, 146, 255, 0.6) 50%,
    transparent
  );
}

.contact-card h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 15, 36, 0.9);
  color: #fff;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 154, 255, 0.2);
}

.contact-meta {
  color: var(--color-muted);
}

.contact-meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(111, 146, 255, 0.1);
  border: 1px solid rgba(111, 146, 255, 0.3);
  color: var(--color-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(111, 146, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon:hover::before,
.social-icon:focus::before {
  opacity: 1;
}

.social-icon:hover,
.social-icon:focus {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.6);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(111, 146, 255, 0.3);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(10, 14, 35, 0.9);
  border: 1px solid rgba(111, 146, 255, 0.25);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fade-in-up 0.8s ease-out;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
}

.book-text-section {
  background: transparent;
  padding: 60px 0;
}

.book-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  background: rgba(18, 22, 52, 0.6);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #e6ebff;
}

.book-text__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(111, 146, 255, 0.3);
  color: #a8bdff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-text__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(111, 146, 255, 0.4);
  background: rgba(111, 146, 255, 0.15);
  color: #c8d7ff;
  font-weight: 600;
}

.book-text__body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e6ebff;
  font-size: 0.95rem;
  line-height: 1.8;
}

.download-section {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
  padding: 48px 40px;
  background: rgba(18, 22, 52, 0.6);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-section h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #fff;
}

.download-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.download-section .btn {
  font-size: 1rem;
  padding: 16px 32px;
}

.site-footer {
  text-align: center;
  padding: 80px 24px 60px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
  margin-top: 80px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 146, 255, 0.3) 50%, transparent);
}

.site-footer p {
  margin: 8px 0;
  transition: color 0.3s ease;
}

.site-footer p:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Tablet breakpoint */
@media (max-width: 880px) {
  .hero {
    padding-top: 96px;
  }

  .hero-card {
    max-width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.trio {
    grid-template-columns: 1fr;
  }
}

/* Mobile breakpoint - matching realityrevolt.com at 768px */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    inset: 64px 16px auto;
    background: rgba(8, 12, 32, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: 20px;
    display: none;
    gap: 12px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }

  .hero {
    padding: 80px 20px 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content {
    max-width: 100%;
  }

  .meta {
    font-size: 0.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .content-section {
    padding: 80px 20px;
  }

  .content-section.balanced {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .section-header {
    text-align: center;
  }

  .section-header p {
    margin: 0 auto;
  }

  .section-text h2 {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-grid.trio {
    grid-template-columns: 1fr;
  }

  .card,
  .media-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .contact-card {
    padding: 48px 32px;
    text-align: center;
    border-radius: 24px;
  }

  .social-links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .social-icon {
    width: 52px;
    height: 52px;
  }

  .book-text {
    padding: 32px 24px;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  .book-text__meta {
    gap: 10px;
    font-size: 0.7rem;
    margin-bottom: 24px;
  }

  .book-text__meta-item {
    padding: 6px 10px;
  }

  .book-text__body pre {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .video-container {
    border-radius: var(--radius-md);
  }

  .download-section {
    padding: 24px;
    margin: 32px auto 0;
  }

  .download-section h3 {
    font-size: 1.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero {
    padding: 70px 16px 50px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .meta {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }

  .lead {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 60px 16px;
  }

  .section-header h2,
  .section-text h2 {
    font-size: 1.7rem;
  }

  .card,
  .media-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .card h3,
  .media-card h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .contact-card {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .site-footer {
    padding: 32px 16px 48px;
    font-size: 0.85rem;
  }

  .book-text {
    padding: 28px 20px;
    font-size: 0.87rem;
    border-radius: 18px;
  }

  .book-text__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }

  .book-text__meta-item {
    width: 100%;
  }

  .book-text__body pre {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .download-section {
    padding: 36px 28px;
    margin: 32px auto 0;
  }

  .download-section h3 {
    font-size: 1.5rem;
  }

  .video-container {
    border-radius: var(--radius-sm);
  }

  .download-section {
    padding: 20px;
    margin: 24px auto 0;
  }

  .download-section h3 {
    font-size: 1.3rem;
  }

  .download-section .btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* ========================================
   VISUAL GALLERY SYSTEM
   ======================================== */

.gallery-section {
  padding-top: 60px;
  padding-bottom: 120px;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(111, 146, 255, 0.08);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(111, 146, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover {
  background: rgba(111, 146, 255, 0.15);
  border-color: rgba(111, 146, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 146, 255, 0.15);
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(111, 146, 255, 0.3), rgba(111, 146, 255, 0.2));
  border-color: rgba(111, 146, 255, 0.6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(111, 146, 255, 0.25);
}

/* Visual Gallery Grid */
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
  animation: fade-in 0.8s ease-out 0.4s both;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(18, 22, 52, 0.6);
  border: 1px solid rgba(111, 146, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 4, 15, 0.95) 0%,
    rgba(4, 4, 15, 0.7) 40%,
    transparent 100%
  );
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(111, 146, 255, 0.5);
  box-shadow: 0 20px 60px rgba(111, 146, 255, 0.3);
}

.gallery-item:hover .gallery-item__image {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay h3 {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.gallery-item__chapter {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  animation: lightbox-zoom-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(111, 146, 255, 0.3);
}

.lightbox-info {
  padding: 32px;
  background: rgba(18, 22, 52, 0.6);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-info h3 {
  margin: 0 0 16px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2rem;
  color: #fff;
  line-height: 1.3;
}

.lightbox-info p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lightbox-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(111, 146, 255, 0.15);
  border: 1px solid rgba(111, 146, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-meta);
  font-weight: 600;
}

/* Lightbox Controls */
.lightbox-close {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(18, 22, 52, 0.9);
  border: 1px solid rgba(111, 146, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.6);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(111, 146, 255, 0.3);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(18, 22, 52, 0.9);
  border: 1px solid rgba(111, 146, 255, 0.3);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

.lightbox-nav:hover {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(111, 146, 255, 0.3);
}

/* ========================================
   RESPONSIVE GALLERY
   ======================================== */

@media (max-width: 1200px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 32px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .lightbox-content img {
    max-height: 60vh;
  }

  .lightbox-info {
    padding: 24px;
  }

  .lightbox-info h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .visual-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .gallery-item__overlay {
    padding: 20px;
  }

  .gallery-item__overlay h3 {
    font-size: 1.1rem;
  }

  .gallery-item__chapter {
    font-size: 0.75rem;
  }

  .gallery-filters {
    gap: 8px;
    margin: 32px 0;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-content {
    gap: 24px;
  }

  .lightbox-content img {
    max-height: 50vh;
    border-radius: 16px;
  }

  .lightbox-info {
    padding: 20px;
    border-radius: 20px;
  }

  .lightbox-info h3 {
    font-size: 1.5rem;
  }

  .lightbox-info p {
    font-size: 1rem;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

@media (max-width: 480px) {
  .visual-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .gallery-section {
    padding-bottom: 80px;
  }

  .gallery-filters {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .lightbox-content img {
    max-height: 45vh;
    border-radius: 12px;
  }

  .lightbox-info {
    padding: 16px;
  }

  .lightbox-info h3 {
    font-size: 1.3rem;
  }

  .lightbox-info p {
    font-size: 0.95rem;
  }

  .lightbox-tag {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .lightbox-nav {
    font-size: 2rem;
  }
}

/* ========================================
   ESCHATOLOGICAL STUDIES SYSTEM
   ======================================== */

/* Study Filters */
.study-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 60px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.study-filter-btn {
  padding: 12px 28px;
  background: rgba(111, 146, 255, 0.06);
  border: 1px solid rgba(111, 146, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
}

.study-filter-btn:hover {
  background: rgba(111, 146, 255, 0.12);
  border-color: rgba(111, 146, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.study-filter-btn.active {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(111, 146, 255, 0.2);
}

/* Studies Grid */
.studies-section {
  padding-top: 0;
}

.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  animation: fade-in 0.8s ease-out 0.4s both;
}

/* Study Card */
.study-card {
  background: rgba(18, 22, 52, 0.6);
  border: 1px solid rgba(111, 146, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .study-card {
    background: rgba(18, 22, 52, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
}

.study-card:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 146, 255, 0.4);
  box-shadow: 0 16px 48px rgba(111, 146, 255, 0.15);
}

.study-card__image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.study-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 22, 52, 0.9), transparent);
}

.study-card__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.study-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.study-card__date {
  color: var(--color-meta);
  font-weight: 600;
}

.study-card__reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.study-card__reading-time::before {
  content: '📖';
  font-size: 0.9rem;
}

.study-card__title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.4;
  font-weight: 600;
}

.study-card__scripture {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(111, 146, 255, 0.15);
  border: 1px solid rgba(111, 146, 255, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-meta);
  font-weight: 600;
  font-family: "Georgia", serif;
  font-style: italic;
  width: fit-content;
}

.study-card__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
  flex: 1;
}

.study-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.study-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(111, 146, 255, 0.1);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ========================================
   STUDY MODAL (Full Reading Experience)
   ======================================== */

.study-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-modal.active {
  opacity: 1;
  visibility: visible;
}

.study-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.study-modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 80px 20px 60px;
  z-index: 1;
}

.study-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 22, 52, 0.9);
  border: 1px solid rgba(111, 146, 255, 0.3);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.study-modal__close:hover {
  background: rgba(111, 146, 255, 0.2);
  border-color: rgba(111, 146, 255, 0.6);
  transform: rotate(90deg) scale(1.05);
}

/* Study Detail Article */
.study-detail {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(18, 22, 52, 0.7);
  border: 1px solid rgba(111, 146, 255, 0.25);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modal-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px)) {
  .study-detail {
    background: rgba(18, 22, 52, 0.5);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.study-detail__header {
  border-bottom: 1px solid rgba(111, 146, 255, 0.2);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.study-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.study-detail__date {
  color: var(--color-meta);
  font-weight: 600;
}

.study-detail__reading-time::before {
  content: '• ';
  margin: 0 4px;
}

.study-detail__title {
  margin: 0 0 20px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #fff;
  line-height: 1.3;
  font-weight: 700;
}

.study-detail__scripture {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(111, 146, 255, 0.15);
  border-left: 3px solid rgba(111, 146, 255, 0.6);
  border-radius: 6px;
  font-size: 1.05rem;
  color: var(--color-meta);
  font-weight: 600;
  font-family: "Georgia", serif;
  font-style: italic;
  margin-bottom: 16px;
}

.study-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Study Content (Long-form Reading) */
.study-detail__image {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(111, 146, 255, 0.25);
}

.study-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}

.study-detail__content {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
  font-family: "Inter", sans-serif;
}

.study-detail__content p {
  margin: 0 0 20px;
}

.study-detail__content h3 {
  margin: 36px 0 16px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
}

.study-detail__content h4 {
  margin: 28px 0 12px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.study-detail__content ul,
.study-detail__content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.study-detail__content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.study-detail__content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(111, 146, 255, 0.08);
  border-left: 4px solid rgba(111, 146, 255, 0.6);
  border-radius: 8px;
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.study-detail__content strong {
  color: #fff;
  font-weight: 600;
}

.study-detail__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(111, 146, 255, 0.2);
}

.study-detail__references h3 {
  margin: 0 0 16px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  color: #fff;
}

.study-detail__references > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scripture-ref {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(111, 146, 255, 0.12);
  border: 1px solid rgba(111, 146, 255, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--color-meta);
  font-weight: 600;
  font-family: "Georgia", serif;
  font-style: italic;
}

/* ========================================
   RESPONSIVE STUDIES
   ======================================== */

@media (max-width: 768px) {
  .studies-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .study-card__image {
    height: 180px;
  }

  .study-card__content {
    padding: 20px;
  }

  .study-card__title {
    font-size: 1.25rem;
  }

  .study-filters {
    gap: 10px;
    margin: 32px 0 48px;
  }

  .study-filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .study-modal__container {
    padding: 70px 16px 48px;
  }

  .study-modal__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .study-detail {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .study-detail__title {
    font-size: 1.7rem;
  }

  .study-detail__content {
    font-size: 1rem;
  }

  .study-detail__content h3 {
    font-size: 1.4rem;
    margin: 28px 0 14px;
  }

  .study-detail__content h4 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
  }
}

@media (max-width: 480px) {
  .studies-grid {
    gap: 20px;
  }

  .study-card__image {
    height: 160px;
  }

  .study-filters {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .study-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .study-modal__container {
    padding: 60px 16px 40px;
  }

  .study-detail {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .study-detail__header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .study-detail__title {
    font-size: 1.5rem;
  }

  .study-detail__scripture {
    padding: 8px 14px;
    font-size: 0.95rem;
  }

  .study-detail__content {
    font-size: 0.95rem;
  }

  .study-detail__content h3 {
    font-size: 1.3rem;
  }

  .study-detail__content h4 {
    font-size: 1.1rem;
  }

  .study-detail__content blockquote {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .scripture-ref {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}
