/* ═══════════════════════════════════════════════════
  SREE VELANGATTU KARUPPASAMY TRUST
   Premium Temple Website - Mobile-First Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES / DESIGN TOKENS ─── */
:root {
  /* Colors */
  --clr-black: #0a0a0a;
  --clr-black-light: #111111;
  --clr-black-card: #1a1a1a;
  --clr-black-card2: #151515;
  --clr-red-deep: #8b1a1a;
  --clr-red-dark: #6d0f0f;
  --clr-red-maroon: #5a0f0f;
  --clr-gold: #d4a843;
  --clr-gold-light: #f5d060;
  --clr-gold-dark: #c9952f;
  --clr-gold-muted: #a88832;
  --clr-saffron: #ff9933;
  --clr-cream: #fdf5e6;
  --clr-cream-dark: #f8f0dc;
  --clr-text: #e8e0d0;
  --clr-text-muted: #9a9080;
  --clr-text-dim: #6a6055;
  --clr-whatsapp: #25D366;
  --clr-facebook: #1877f2;
  --clr-instagram-start: #f09433;
  --clr-instagram-end: #bc1888;

  /* Typography */
  --ff-tamil-heading: 'Noto Serif Tamil', serif;
  --ff-tamil-body: 'Noto Sans Tamil', sans-serif;
  --ff-en-heading: 'Cinzel', serif;
  --ff-en-body: 'Outfit', sans-serif;

  /* Spacing */
  --section-pad-mobile: 50px 0;
  --section-pad-desktop: 90px 0;
  --container-pad: 0 16px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(212,168,67,0.3);
  --shadow-glow: 0 0 30px rgba(212,168,67,0.15);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Header height */
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-tamil-body);
  background: var(--clr-black);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevent iOS zoom */
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-black); }
::-webkit-scrollbar-thumb {
  background: var(--clr-gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-gold); }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-pad);
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,168,67,0.2);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo { flex-shrink: 0; }

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--clr-gold);
  object-fit: cover;
}

.header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.header-title-ta {
  font-family: var(--ff-tamil-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.header-subtitle-ta {
  font-family: var(--ff-tamil-heading);
  font-size: 9px;
  color: var(--clr-gold-muted);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  padding: 4px 10px;
  border: 1px solid var(--clr-gold);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-gold);
  transition: var(--transition);
  font-family: var(--ff-en-body);
}

.lang-toggle:hover,
.lang-toggle:active {
  background: var(--clr-gold);
  color: var(--clr-black);
}

/* Hamburger */
.hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.active {
  pointer-events: all;
  visibility: visible;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.active .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #0f0a08 0%, #0a0a0a 100%);
  border-left: 1px solid rgba(212,168,67,0.3);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px 0;
}

.mobile-nav.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212,168,67,0.15);
}

.mobile-nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--clr-gold);
  object-fit: cover;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
  font-size: 20px;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: var(--clr-gold);
  color: var(--clr-black);
}

.mobile-nav-temple-name {
  text-align: center;
  padding: 16px 20px;
  font-family: var(--ff-tamil-heading);
  font-size: 13px;
  color: var(--clr-gold);
  line-height: 1.5;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}

.mobile-nav-links {
  padding: 8px 0;
  flex: 1;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(212,168,67,0.06);
}

.mobile-nav-links a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text);
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: rgba(212,168,67,0.08);
  color: var(--clr-gold);
  padding-left: 32px;
}

.mobile-nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid rgba(212,168,67,0.15);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--clr-text);
  transition: var(--transition);
}

.social-link.whatsapp:hover {
  background: var(--clr-whatsapp);
  border-color: var(--clr-whatsapp);
  color: white;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, var(--clr-instagram-start), var(--clr-instagram-end));
  border-color: transparent;
  color: white;
}

.social-link.facebook:hover {
  background: var(--clr-facebook);
  border-color: var(--clr-facebook);
  color: white;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.7) 0%,
    rgba(10,10,10,0.5) 30%,
    rgba(10,10,10,0.6) 60%,
    rgba(10,10,10,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 700px;
}

.hero-logo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--clr-gold);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(212,168,67,0.4), 0 0 60px rgba(212,168,67,0.15);
  animation: logoPulse 3s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ornament {
  font-size: 16px;
  color: var(--clr-gold);
  letter-spacing: 12px;
  animation: shimmer 2.5s ease-in-out infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-ta {
  font-family: var(--ff-tamil-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--clr-gold);
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(212,168,67,0.3);
}

.hero-title-sub {
  font-family: var(--ff-tamil-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-gold-light);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--clr-cream);
  line-height: 1.7;
  max-width: 500px;
  opacity: 0.9;
}

.hero-location {
  font-size: 12px;
  color: var(--clr-saffron);
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid rgba(255,153,51,0.3);
  border-radius: 20px;
  background: rgba(255,153,51,0.08);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin-top: 8px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--clr-gold-muted);
  font-size: 11px;
  z-index: 1;
  opacity: 0.7;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-tamil-body);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-dark) 100%);
  color: var(--clr-black);
  border: none;
  box-shadow: 0 4px 15px rgba(212,168,67,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(212,168,67,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-gold);
}

.btn-secondary:hover {
  background: rgba(212,168,67,0.1);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════ */
.section {
  padding: var(--section-pad-mobile);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-ornament {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--ff-tamil-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-gold);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  margin: 0 auto 12px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about-section {
  background: #0f0f0f;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  max-height: 350px;
}

.about-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
}

.about-image-frame {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(212,168,67,0.3);
  border-radius: 10px;
  pointer-events: none;
}

.about-content { }

.about-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 24px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--clr-black-card);
  border-radius: 12px;
  border: 1px solid rgba(212,168,67,0.1);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: rgba(212,168,67,0.25);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text h3 {
  font-family: var(--ff-tamil-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   PERSON SECTION
   ═══════════════════════════════════════════════════ */
.person-section {
  background: linear-gradient(180deg, #0a0808 0%, #0f0a08 100%);
}

.person-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.person-hero-image {
  position: relative;
  width: 220px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.person-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--clr-gold);
}

.person-image-glow {
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.15) 0%, transparent 70%);
  z-index: -1;
  animation: logoPulse 4s ease-in-out infinite;
}

.person-info {
  text-align: center;
}

.person-name-card {
  margin-bottom: 16px;
}

.person-name {
  font-family: var(--ff-tamil-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--clr-gold);
  margin-bottom: 4px;
}

.person-role {
  font-size: 14px;
  color: var(--clr-saffron);
  font-weight: 500;
}

.person-bio p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.editable-note {
  font-style: italic;
  color: var(--clr-text-dim) !important;
  border: 1px dashed rgba(212,168,67,0.2);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(212,168,67,0.03);
  font-size: 13px !important;
}

.person-gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.person-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(212,168,67,0.3);
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.person-thumb:hover {
  border-color: var(--clr-gold);
  transform: scale(1.08);
}

.person-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   HISTORY / TIMELINE SECTION
   ═══════════════════════════════════════════════════ */
.history-section {
  background: #0f0f0f;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--clr-gold) 0%, var(--clr-gold-dark) 50%, rgba(212,168,67,0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-black);
  border: 2px solid var(--clr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
}

.timeline-content {
  background: var(--clr-black-card);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(212,168,67,0.1);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(212,168,67,0.25);
}

.timeline-title {
  font-family: var(--ff-tamil-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--clr-text-muted);
}

/* ═══════════════════════════════════════════════════
   ARULVAAKKU SECTION
   ═══════════════════════════════════════════════════ */
.arulvaakku-section {
  background: var(--clr-black);
  position: relative;
}

.arulvaakku-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,26,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.arulvaakku-grid {
  position: relative;
  z-index: 1;
}

.arulvaakku-main-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(139,26,26,0.15) 0%, rgba(10,10,10,0.9) 100%);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 16px;
  margin-bottom: 24px;
}

.arulvaakku-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.arulvaakku-main-card h3 {
  font-family: var(--ff-tamil-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.arulvaakku-main-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--clr-text);
}

.arulvaakku-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.arulvaakku-card {
  padding: 20px;
  background: var(--clr-black-card);
  border-radius: 12px;
  border: 1px solid rgba(212,168,67,0.1);
  transition: var(--transition);
}

.arulvaakku-card:hover {
  border-color: rgba(212,168,67,0.25);
}

.arulvaakku-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.arulvaakku-card h4 {
  font-family: var(--ff-tamil-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 8px;
}

.arulvaakku-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--clr-text-muted);
}

/* ═══════════════════════════════════════════════════
   DEITY SECTION
   ═══════════════════════════════════════════════════ */
.deity-section {
  background: var(--clr-black-light);
}

.deity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.deity-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.deity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.deity-card:hover .deity-card-img {
  transform: scale(1.08);
}

.deity-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 12px 12px;
  background: linear-gradient(transparent, rgba(10,10,10,0.85));
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.deity-card:hover .deity-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Always visible on mobile (touch) */
@media (hover: none) {
  .deity-card-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

.deity-card-overlay span {
  font-family: var(--ff-tamil-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-gold);
}

/* ═══════════════════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════════════════ */
.gallery-section {
  background: var(--clr-black);
}

.gallery-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.gallery-filter {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--clr-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  font-family: var(--ff-tamil-body);
}

.gallery-filter:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.gallery-filter.active {
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-dark) 100%);
  color: var(--clr-black);
  border-color: var(--clr-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: var(--transition-slow);
}

.gallery-item.hidden {
  display: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, rgba(10,10,10,0.8));
  font-size: 11px;
  font-weight: 500;
  color: var(--clr-cream);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 50px 40px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition);
}

.lightbox-caption {
  font-size: 14px;
  color: var(--clr-text);
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--clr-text-muted);
}

/* ═══════════════════════════════════════════════════
   VIDEOS SECTION
   ═══════════════════════════════════════════════════ */
.videos-section {
  background: var(--clr-black-light);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.video-card {
  background: var(--clr-black-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,0.08);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  border-color: rgba(212,168,67,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(212,168,67,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--clr-black);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--clr-gold);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--ff-en-body);
}

.video-info {
  padding: 14px 16px;
}

.video-title {
  font-family: var(--ff-tamil-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 6px;
}

.video-desc {
  font-size: 12px;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.video-channel-cta {
  text-align: center;
  padding: 24px 0;
}

.video-channel-cta p {
  font-size: 14px;
  color: var(--clr-text-muted);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-section {
  background: var(--clr-black);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form-wrap {
  background: var(--clr-black-card);
  border-radius: 16px;
  padding: 24px 18px;
  border: 1px solid rgba(212,168,67,0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-gold);
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 10px;
  color: var(--clr-text);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 10px rgba(212,168,67,0.15);
  background: rgba(255,255,255,0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 11px;
  color: #e74c3c;
  min-height: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.form-status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  padding: 8px 0;
}

.form-status.success { color: var(--clr-whatsapp); }
.form-status.error { color: #e74c3c; }

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--clr-black-card);
  border-radius: 12px;
  border: 1px solid rgba(212,168,67,0.08);
}

.contact-info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-family: var(--ff-tamil-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.contact-social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-social.whatsapp {
  color: var(--clr-whatsapp);
  border-color: rgba(37,211,102,0.3);
}
.contact-social.whatsapp:hover {
  background: var(--clr-whatsapp);
  color: white;
}

.contact-social.instagram {
  color: #e1306c;
  border-color: rgba(225,48,108,0.3);
}
.contact-social.instagram:hover {
  background: linear-gradient(45deg, var(--clr-instagram-start), var(--clr-instagram-end));
  color: white;
  border-color: transparent;
}

.contact-social.facebook {
  color: var(--clr-facebook);
  border-color: rgba(24,119,242,0.3);
}
.contact-social.facebook:hover {
  background: var(--clr-facebook);
  color: white;
}

/* ═══════════════════════════════════════════════════
   LOCATION SECTION
   ═══════════════════════════════════════════════════ */
.location-section {
  background: var(--clr-black-light);
}

.location-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,0.15);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

.location-info { }

.location-address-card {
  padding: 20px;
  background: var(--clr-black-card);
  border-radius: 12px;
  border: 1px solid rgba(212,168,67,0.1);
  margin-bottom: 18px;
}

.location-address-card h3 {
  font-family: var(--ff-tamil-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 10px;
}

.location-address-card p {
  font-size: 14px;
  color: var(--clr-text);
  line-height: 1.6;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: #050505;
  padding: 40px 0 0;
  position: relative;
  border-top: 1px solid rgba(212,168,67,0.15);
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--clr-gold-dark),
    var(--clr-gold),
    var(--clr-gold-dark),
    transparent
  );
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 28px;
}

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

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--clr-gold);
  object-fit: cover;
  margin: 0 auto 12px;
}

.footer-temple-name-ta {
  font-family: var(--ff-tamil-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 4px;
}

.footer-temple-name-en {
  font-family: var(--ff-en-heading);
  font-size: 11px;
  color: var(--clr-gold-muted);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 12px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

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

.footer-links h4,
.footer-contact h4 {
  font-family: var(--ff-tamil-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

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

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

.footer-contact p {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.25);
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.footer-social-link:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  transform: translateY(-2px);
}

.footer-social-link.whatsapp:hover {
  border-color: var(--clr-whatsapp);
  color: var(--clr-whatsapp);
}

.footer-social-link.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
}

.footer-social-link.facebook:hover {
  border-color: var(--clr-facebook);
  color: var(--clr-facebook);
}

.footer-social-link.maps:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.footer-bottom {
  border-top: 1px solid rgba(212,168,67,0.1);
  padding: 18px 0;
  text-align: center;
  padding-bottom: 80px; /* Space for floating actions */
}

.footer-bottom p {
  font-size: 11px;
  color: var(--clr-text-dim);
  margin-bottom: 4px;
}

.footer-credit {
  color: var(--clr-gold-muted) !important;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   FLOATING ACTION BUTTONS
   ═══════════════════════════════════════════════════ */
.floating-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(5,5,5,0.98) 100%);
  border-top: 1px solid rgba(212,168,67,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.fab:active { transform: scale(0.92); }

.fab-whatsapp { background: var(--clr-whatsapp); }
.fab-instagram { background: linear-gradient(45deg, var(--clr-instagram-start), #e1306c, var(--clr-instagram-end)); }
.fab-call { background: #4285f4; }
.fab-facebook { background: var(--clr-facebook); }
.fab-maps { background: #ea4335; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212,168,67,0.3), 0 0 40px rgba(212,168,67,0.1); }
  50% { box-shadow: 0 0 30px rgba(212,168,67,0.5), 0 0 60px rgba(212,168,67,0.2); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

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

/* ═══════════════════════════════════════════════════
   RESPONSIVE: 480px+
   ═══════════════════════════════════════════════════ */
@media (min-width: 480px) {
  .header-title-ta { font-size: 13px; }
  .header-subtitle-ta { font-size: 10px; }

  .hero-logo-wrap { width: 120px; height: 120px; }
  .hero-title-ta { font-size: 26px; }
  .hero-title-sub { font-size: 20px; }
  .hero-subtitle { font-size: 14px; }
  .hero-buttons {
    flex-direction: row;
    max-width: 400px;
  }

  .arulvaakku-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    gap: 12px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .person-hero-image {
    width: 250px;
    height: 320px;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: 768px+
   ═══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --header-h: 68px;
    --container-pad: 0 24px;
  }

  .section { padding: 70px 0; }

  .header-title-ta { font-size: 15px; }
  .header-subtitle-ta { font-size: 11px; }
  .logo-img { width: 46px; height: 46px; }

  .section-title { font-size: 30px; }
  .section-ornament { font-size: 38px; }

  .hero-title-ta { font-size: 32px; }
  .hero-title-sub { font-size: 24px; }
  .hero-subtitle { font-size: 15px; }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-image-wrap {
    flex: 0 0 320px;
    max-height: none;
  }

  .about-image { height: 400px; }

  .about-content { flex: 1; }

  .person-layout {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }

  .person-info {
    text-align: left;
    flex: 1;
    min-width: 280px;
  }

  .person-gallery-strip { justify-content: flex-start; }

  .deity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .contact-grid {
    flex-direction: row;
  }

  .contact-form-wrap { flex: 1; }
  .contact-info-wrap { flex: 0 0 320px; }

  .location-grid {
    flex-direction: row;
  }

  .map-wrap { flex: 1; }
  .location-info { flex: 0 0 320px; }
  .location-buttons { flex-direction: row; }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand { text-align: left; }
  .footer-links { text-align: left; }
  .footer-links ul { justify-content: flex-start; flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: 1024px+
   ═══════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .section { padding: var(--section-pad-desktop); }

  .header-inner { padding: 0 24px; }

  .hero-logo-wrap { width: 140px; height: 140px; }
  .hero-title-ta { font-size: 38px; }
  .hero-title-sub { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }

  .section-title { font-size: 34px; }

  .about-image-wrap { flex: 0 0 400px; }
  .about-image { height: 450px; }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .person-hero-image {
    width: 300px;
    height: 380px;
  }

  .person-thumb {
    width: 90px;
    height: 90px;
  }

  /* Desktop: show floating as side pills instead of bottom bar */
  .floating-actions {
    flex-direction: column;
    top: 50%;
    left: auto;
    right: 16px;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    padding: 10px;
    border-radius: 28px;
    border-top: none;
    border: 1px solid rgba(212,168,67,0.15);
    gap: 8px;
    background: rgba(10,10,10,0.9);
  }

  .fab {
    width: 42px;
    height: 42px;
  }

  .footer-bottom { padding-bottom: 18px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: 1200px+
   ═══════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .hero-title-ta { font-size: 44px; }
  .hero-title-sub { font-size: 32px; }
  .section-title { font-size: 38px; }
}

/* ═══════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════ */
@media print {
  .header, .mobile-nav, .floating-actions, .lightbox { display: none !important; }
  .hero { min-height: auto; }
  body { background: white; color: black; }
}
