/* style.css — Dark Theme (Online Retreats palette applied globally) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* ── Dark space palette ── */
  --primary-bg:  #07051a;
  --surface-1:   #100e1f;
  --surface-2:   #0d0b1a;
  --surface-3:   #1a1430;

  --text-main:   #f1f5f9;
  --text-muted:  #ffffff;
  --text-sub:    rgba(255,255,255,0.65);

  --accent-gold: #C5A880;
  --accent-gold-light: #e8c98a;
  --accent-gold-rgb: 197,168,128;

  --header-bg:   rgba(7,5,26,0.85);
  --border-dim:  rgba(255,255,255,0.07);
  --border-gold: rgba(197,168,128,0.3);

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 138px;
}

/* Global page background orbs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,168,128,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(79,70,229,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 60%, rgba(197,168,128,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

p {
  color: #ffffff;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(197,168,128,0.15);
}

/* Top Banner */
.scroller-banner {
  background: linear-gradient(90deg, #1a1430, #0d0b1a 40%, #1a1430);
  border-bottom: 1px solid rgba(197,168,128,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.45rem 1rem;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.scroller-content {
  display: inline-block;
}

.scroller-content span {
  margin: 0 10px;
  display: inline-block;
  color: rgba(255,255,255,0.65);
}

.scroller-content span:nth-child(odd) {
  color: var(--accent-gold);
  font-weight: 600;
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-gold);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(13,11,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197,168,128,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0;
  border-radius: 12px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: capitalize;
  color: rgba(255,255,255,0.65);
}

.dropdown-menu li a:hover {
  background: rgba(197,168,128,0.08);
  color: var(--accent-gold);
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
}

/* Globals */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.text-3d {
  text-shadow: 
    1px 1px 0 var(--accent-gold),
    2px 2px 0 var(--accent-gold),
    3px 3px 0 #a28966,
    4px 4px 0 #8b7454,
    5px 5px 0 #736044,
    6px 6px 0 #5b4b34,
    7px 7px 10px rgba(0, 0, 0, 0.6),
    0px 0px 15px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-5px);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.text-3d:hover {
  transform: translateY(-2px);
  text-shadow: 
    1px 1px 0 var(--accent-gold),
    2px 2px 0 var(--accent-gold),
    3px 3px 0 #a28966,
    4px 4px 0 #8b7454,
    5px 5px 10px rgba(0, 0, 0, 0.5),
    0px 0px 10px rgba(0, 0, 0, 0.3) !important;
}

.section {
  padding: var(--spacing-lg) 0;
  background: var(--surface-1);
}

.section + .section {
  background: var(--surface-2);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
  color: #fff;
}

.section-title em {
  font-style: italic;
  color: var(--accent-gold);
}

/* Gold divider line used between sections */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 40%, var(--accent-gold-light) 60%, transparent);
  border: none;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent-gold), #a8875e);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 24px rgba(197,168,128,0.35);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(197,168,128,0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(197,168,128,0.1);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Home Hero with Slider — 1920px wide, height auto */
.hero {
  width: 1920px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1920 / 800;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 3-slide slider (home page: main_banner + 2 existing) */
.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%; /* 3 slides */
  height: 100%;
  z-index: 1;
  display: flex;
  animation: slide-container-3 15s infinite ease-in-out;
}

.slide {
  width: 33.333%;
  height: 100%;
  background-size: 100% 100%;   /* stretch image to fill container — no top/bottom cut */
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

@keyframes slide-container-3 {
  0%, 28%         { transform: translateX(0); }
  33%, 61%        { transform: translateX(-33.333%); }
  66%, 94%        { transform: translateX(-66.666%); }
  100%            { transform: translateX(0); }
}

/* ── Page Banner Slider (inner pages) ── */
.page-banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  max-height: 800px;
  overflow: hidden;
  margin: 0 auto;
}

.page-banner-slider .pbs-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%; /* 2 slides */
  height: 100%;
  display: flex;
  animation: pbs-slide 12s infinite ease-in-out;
}

.page-banner-slider .pbs-slide {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}

/* dark overlay on each slide */
.page-banner-slider .pbs-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7,5,26,0.35) 0%, rgba(7,5,26,0.65) 100%);
}

@keyframes pbs-slide {
  0%, 42%  { transform: translateX(0); }
  50%, 92% { transform: translateX(-50%); }
  100%     { transform: translateX(0); }
}

/* Text content sitting over the slider */
.page-banner-slider .pbs-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 5%;
}

.page-banner-slider .pbs-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.page-banner-slider .pbs-content h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 3s linear infinite;
}

.page-banner-slider .pbs-content p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 1rem auto 0;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Bottom gold bar */
.page-banner-slider::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 40%, var(--accent-gold-light) 60%, transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: #f1f5f9;
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Page Header (for inner pages) */
.page-header {
  aspect-ratio: 1920 / 800;
  max-width: 1920px;
  max-height: 800px;
  height: auto;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,168,128,0.12) 0%, transparent 70%),
    var(--primary-bg);
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 40%, var(--accent-gold-light) 60%, transparent);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
}

.page-header h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 3s linear infinite;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.7;
}

@keyframes shimmerGold {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Animations - scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card styles */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

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

/* Timeline */
.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--accent-gold);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--accent-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  right: auto;
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--border-gold);
}

.timeline-content h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* Timeline Custom Animations */
.timeline-item.left.reveal {
  transform: translateX(-50px) translateY(0);
}
.timeline-item.right.reveal {
  transform: translateX(50px) translateY(0);
}
.timeline-item.left.reveal.active,
.timeline-item.right.reveal.active {
  transform: translateX(0) translateY(0);
}

.timeline-content p {
  font-size: 1rem;
  color: rgba(255,255,255,1);
  line-height: 1.6;
}

.timeline::after {
  background-color: var(--accent-gold);
}

.timeline-item::after {
  background-color: var(--surface-1);
  border-color: var(--accent-gold);
}

/* Novena Tabs UI */
.novena-tabs-section {
  margin-top: 4rem;
}

.novena-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.novena-tab-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(200, 200, 200, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.novena-tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.novena-tab-btn.active {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(184, 147, 63, 0.4);
}

.novena-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.novena-tab-content.active {
  display: block;
}

.novena-tab-content h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.novena-tab-content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.jesus-words {
  font-style: italic;
  color: var(--dark);
  font-weight: 500;
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
  background: rgba(184, 147, 63, 0.05);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

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

/* Reusable 3D Effects */
.image-3d {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transform: perspective(1000px) rotateY(-5deg) scale(0.98);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
}

.image-3d:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.0);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.card-3d {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.3s ease;
}

.card-3d:hover {
  border-color: var(--border-gold);
  transform: perspective(1000px) translateY(-5px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Contact 3D Section */
.contact-3d-section {
  position: relative;
  background-color: var(--dark, #1a1a2e);
  color: white;
  padding: 3rem 0;
  overflow: hidden;
}

.contact-3d-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../assets/divine_mercy_jesus.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(8px);
  z-index: 0;
}

.contact-3d-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 0 5%;
}

.contact-3d-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.contact-3d-card:hover {
  transform: perspective(1000px) translateY(-10px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.2);
}

.contact-3d-image {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-8deg) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-3d-image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.0);
}

.contact-3d-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-3d-card h2 {
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.contact-3d-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: #cbd5e1;
}

.contact-3d-details div {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-3d-details strong {
  color: white;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-icon {
  background: rgba(197, 168, 128, 0.2);
  color: var(--accent-gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-style: normal;
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--surface-3);
  border-top: 1px solid rgba(197,168,128,0.15);
  color: var(--text-main);
  padding: var(--spacing-lg) 5%;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 40%, var(--accent-gold-light) 60%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #c0c0c0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: #c0c0c0;
  line-height: 1.8;
}

.footer-address a {
  color: #c0c0c0;
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--accent-gold);
}

.footer-label {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .card-3d { padding: 1.5rem !important; }

  /* Navigation & Header Scale Down */
  .logo img {
    height: 45px !important;
  }
  
  nav {
    padding: 0.6rem 5% !important;
  }

  .scroller-banner {
    padding: 0.35rem 5% !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .scroller-banner::-webkit-scrollbar {
    display: none;
  }

  /* Fix the overlapping by adjusting the body top padding to match new compact header */
  body {
    padding-top: 95px !important;
    font-size: 0.95rem;
  }

  /* Fix hero banner on mobile — images are ultra-wide (~3:1), use contain to show full image */
  .hero {
    aspect-ratio: unset !important;
    height: 33vw !important;
    min-height: 220px !important;
    max-height: 360px !important;
    background-color: #07051a !important;
  }

  .slider-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 300% !important; /* 3 slides */
  }

  .slide {
    width: 33.333% !important; /* 1 of 3 slides */
    height: 100% !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #07051a !important;
  }

  .page-header {
    aspect-ratio: auto !important;
    min-height: 280px;
    padding: 3rem 5% !important;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 500px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .hamburger {
    display: block;
  }

  /* Typography scale-down */
  .hero-content h1,
  .page-header h1 {
    font-size: 2.2rem !important;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  /* Page banner slider — reduce h1 & p by ~50% on mobile */
  .page-banner-slider .pbs-content h1 {
    font-size: clamp(1.1rem, 4.5vw, 1.9rem) !important;
  }
  .page-banner-slider .pbs-content p {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
  }

  .section-title {
    font-size: 1.6rem;
  }

  body {
    font-size: 0.95rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Stack inline structual grids (side-by-side boxes) to 1 column on mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Float elements → scale to fit mobile block */
  .container [style*="float: left"],
  .container [style*="float: right"],
  [style*="float: left"],
  [style*="float: right"] {
    float: none !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 2rem auto !important;
    display: block !important;
  }

  /* Who Is He? — image capped at 60% on mobile */
  #about .image-3d,
  #about img[style*="float"] {
    width: 60% !important;
    max-width: 60% !important;
  }

  /* Section padding reduction */
  .section {
    padding: 2.5rem 0;
  }

  /* Cards */
  .card h3 {
    font-size: 1.4rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col img {
    height: 120px !important;
    width: auto;
  }

  footer {
    padding: 2rem 5%;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-address {
    text-align: center;
  }

  /* Timeline responsive */
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item.left::after, .timeline-item.right::after {
    left: 21px;
  }
  .timeline-item.right {
    left: 0;
  }

  /* Contact 3D responsive */
  .contact-3d-container {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .contact-3d-image {
    transform: none;
    margin-bottom: 1rem;
  }
  .contact-3d-card {
    transform: none;
    padding: 2rem;
  }
  .contact-3d-card h2 {
    font-size: 2rem;
  }
  .contact-3d-card:hover {
    transform: translateY(-5px);
  }

  /* Reset generic 3D transforms on mobile */
  .card-3d, .card-3d:hover, 
  .image-3d, .image-3d:hover {
    transform: none !important;
  }
}
/* ==================================================== */
/* Global Dark Theme Utilities                          */
/* ==================================================== */

/* Gold chip / badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197,168,128,0.1);
  border: 1px solid rgba(197,168,128,0.3);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

/* Gold underline bar */
.gold-bar {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* Shimmer gold text */
.text-gold-shimmer {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 3s linear infinite;
}

/* Glassmorphism dark card */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Stat / number card */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

@keyframes shimmerGold {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Fade-up reveal for inline use */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==================================================== */
/* Daiva Keerthanalu Catalogue Styles                   */
/* ==================================================== */

.catalogue-section {
    padding: 5rem 0;
    background: var(--surface-2);
}

.catalogue-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.catalogue-tab {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-dim);
    background: rgba(255,255,255,0.04);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.catalogue-tab:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

.catalogue-tab.active {
    background: linear-gradient(135deg, var(--accent-gold), #a8875e);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(197,168,128,0.35);
}

.catalogue-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.catalogue-grid.active {
    display: grid;
}

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

/* 3D Video Card */
.video-3d-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dim);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-3d-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: -5px 20px 50px rgba(0,0,0,0.45);
    border-color: var(--border-gold);
}

.video-card-bg {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.video-3d-card:hover .video-card-bg {
    transform: scale(1.05);
}

.video-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; 
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-3d-card:hover .video-card-overlay {
    background: rgba(0,0,0,0.4);
}

.play-button-3d {
    width: 60px;
    height: 42px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
    transform: translateZ(30px);
    transition: transform 0.3s ease, background 0.3s;
}

.video-3d-card:hover .play-button-3d {
    background: #ff0000;
    transform: translateZ(50px) scale(1.1);
}

.play-button-3d::after {
    content: '';
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-left: 16px solid white;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(16,14,31,0.95);
    transform: translateZ(10px);
}

.video-card-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.karaoke-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-top: auto;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .video-3d-card {
        transform: none !important;
    }
}

/* ── Inauguration Image Slider ── */
.inauguration-slider-wrap {
    user-select: none;
}

.inaug-slides {
    position: relative;
    width: 100%;
}

.inaug-slide {
    display: none;
    animation: inaugFadeIn 0.6s ease;
}

.inaug-slide.active {
    display: block;
}

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

/* Prev / Next arrow buttons */
.inaug-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(197,168,128,0.35);
    color: var(--accent-gold);
    font-size: 2.2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    padding: 0;
}

.inaug-btn:hover {
    background: rgba(197,168,128,0.25);
    transform: translateY(-50%) scale(1.1);
}

.inaug-prev { left: 14px; }
.inaug-next { right: 14px; }

/* Dot indicators */
.inaug-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.inaug-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(197,168,128,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.inaug-dot.active {
    background: var(--accent-gold);
    transform: scale(1.3);
    border-color: var(--accent-gold);
}

@media (max-width: 600px) {
    .inaug-btn {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    .inaug-dots {
        bottom: 10px;
    }
    /* Make slider images responsive on mobile — drop fixed 520px height */
    .inaug-slide img {
        height: auto !important;
        max-height: 56vw !important;
        min-height: 180px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
    /* Keep the wrapper from overflowing horizontally */
    .inauguration-slider-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }
}

/* ── Back to Top Button ── */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #a8875e);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 24px rgba(197, 168, 128, 0.45);
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
    pointer-events: none;
    line-height: 1;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    box-shadow: 0 10px 32px rgba(197, 168, 128, 0.65);
    transform: translateY(-3px) scale(1.08);
}

@media (max-width: 600px) {
    #back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}
