/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Yatra+One&display=swap');

:root {
  /* Color Palette */
  --primary-orange: #FF6600;
  --primary-orange-rgb: 255, 102, 0;
  --primary-red: #D32F2F;
  --primary-red-rgb: 211, 47, 47;
  --accent-gold: #FFD700;
  --accent-gold-rgb: 255, 215, 0;
  --forest-green: #2D6A4F;
  
  /* Backgrounds */
  --bg-dark: #0A0A0C;
  --bg-card: rgba(22, 22, 28, 0.7);
  --bg-card-hover: rgba(32, 32, 42, 0.9);
  --bg-nav: rgba(10, 10, 12, 0.85);
  
  /* Text Colors */
  --text-light: #F8F9FA;
  --text-muted: #B0B3B8;
  --text-dark: #121212;
  
  /* Gradients */
  --gradient-sun: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
  --gradient-gold: linear-gradient(135deg, #FFE066, var(--accent-gold), #CC9900);
  --gradient-dark: linear-gradient(180deg, #0A0A0C, #15151A);
  --gradient-forest: linear-gradient(135deg, #1B4332, #2D6A4F);
  --gradient-glow: radial-gradient(circle, rgba(255, 102, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

  /* Typography */
  --font-headings: 'Yatra One', cursive;
  --font-sans: 'Outfit', sans-serif;
  
  /* Borders and Shadow */
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --border-glow: 1px solid rgba(255, 102, 0, 0.2);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 10px 30px rgba(255, 102, 0, 0.3);
  --shadow-gold: 0 10px 30px rgba(255, 215, 0, 0.25);
  
  /* Misc */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

/* Base Headings & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
}

.devotional-heading {
  font-family: var(--font-headings);
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Decorative Background Glows */
.glow-effect {
  position: fixed;
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  border-radius: 50%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.text-gradient {
  background: var(--gradient-sun);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-sun);
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
  z-index: -1;
  transition: var(--transition-smooth);
  opacity: 0;
}

.btn-primary {
  background: var(--gradient-sun);
  color: var(--text-light);
  box-shadow: var(--shadow-orange);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: var(--border-glow);
}

.btn-secondary:hover {
  background: rgba(255, 102, 0, 0.1);
  border-color: var(--primary-orange);
  transform: translateY(-3px);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 102, 0, 0.25);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 0;
  border-bottom: var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.8rem;
  color: var(--text-light);
  position: relative;
}

.nav-logo-icon {
  font-size: 1.5rem;
  color: var(--primary-orange);
  animation: pulse-glow 2s infinite ease-in-out;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-sun);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-light);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

@media (max-width: 991px) {
  .hamburger {
    display: block;
  }

  /* Solid fixed header on mobile — no backdrop-filter (fixes iOS scroll hide bug) */
  .navbar,
  .navbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: #0A0A0C;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: var(--border-glass);
    padding: calc(14px + env(safe-area-inset-top, 0)) 0 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transform: none;
    -webkit-transform: none;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-orange);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-orange);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80%, 350px);
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: var(--border-glass);
    z-index: 999;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }
  
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   HERO / HOME SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-dark);
  padding-top: 80px;
}

/* spiritual visual overlay: subtle radiating light behind content */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

@media (max-width: 991px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-top: calc(110px + env(safe-area-inset-top, 0));
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

.hero-badge i {
  color: var(--accent-gold);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero h1 span {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero h1 span {
    font-size: 1.4rem;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 991px) {
  .hero-subtitle {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.hero-quote-box {
  margin: 30px 0 40px;
  padding-left: 25px;
  border-left: 4px solid var(--primary-orange);
  position: relative;
}

@media (max-width: 991px) {
  .hero-quote-box {
    border-left: none;
    border-top: 2px solid var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    padding: 20px 0;
    max-width: 600px;
    margin: 30px auto;
  }
}

.hero-quote-box blockquote {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.hero-quote-box cite {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  color: var(--accent-gold);
  display: block;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

@media (max-width: 991px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Interactive Hero Visual Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shape-outline {
  position: absolute;
  width: 110%;
  height: 110%;
  border: 1px dashed rgba(255, 102, 0, 0.25);
  border-radius: 41% 59% 45% 55% / 54% 45% 55% 46%;
  animation: morph 12s ease-in-out infinite alternate;
}

.hero-image-wrapper {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-orange);
  box-shadow: var(--shadow-orange);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.5);
  border-color: var(--accent-gold);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating spiritual element background */
.hero-mandala {
  position: absolute;
  font-size: 10rem;
  color: rgba(255, 102, 0, 0.04);
  z-index: 1;
  pointer-events: none;
  animation: rotate 60s linear infinite;
}

/* ==========================================================================
   ABOUT & TIMELINE SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* Lord Hanuman Devotion Card */
.hanuman-devotion-card {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.15) 0%, rgba(255, 102, 0, 0.15) 100%);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-top: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.05);
}

.hanuman-devotion-card::before {
  content: '🕉️';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.08;
  pointer-events: none;
  font-family: var(--font-headings);
}

.hanuman-devotion-card h4 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hanuman-devotion-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Timeline Components */
.education-timeline-box {
  background: var(--bg-card);
  border: var(--border-glass);
  padding: 35px;
  border-radius: var(--radius-lg);
}

.timeline-title {
  font-size: 1.6rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-orange), var(--primary-red));
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary-orange);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-orange);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold);
  transform: scale(1.2);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.timeline-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.05), transparent 70%);
  z-index: -1;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.service-icon-box i {
  font-size: 2rem;
  background: var(--gradient-sun);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:hover .service-icon-box {
  transform: rotateY(180deg) scale(1.1);
  background: var(--gradient-sun);
  box-shadow: var(--shadow-orange);
}

.service-card:hover .service-icon-box i {
  -webkit-text-fill-color: var(--text-light);
  background: none;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-sun);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(255, 102, 0, 0.25));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay span {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-orange);
  transform: scale(1.1);
}

/* ==========================================================================
   EXTRA / TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: -15px;
  font-size: 4rem;
  color: rgba(255, 102, 0, 0.15);
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-orange);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details h4 {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.author-details p {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

/* Achievements grid in extra section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 60px;
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

.achievement-counter-card {
  text-align: center;
  padding: 30px;
}

.counter-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.counter-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-orange);
}

.contact-info-panel p {
  color: var(--text-muted);
  margin-bottom: 35px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-orange);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.contact-text-box h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-text-box p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Social Connections UI */
.social-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links-container {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  transform: translateY(-5px);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.social-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  border-color: transparent;
}

.social-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
}

.social-btn.tiktok:hover {
  background: #010101;
  border-color: #010101;
}

/* Contact Form Card */
.contact-form-box {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
}

@media (max-width: 480px) {
  .contact-form-box {
    padding: 25px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(10, 10, 12, 0.6);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.15);
  background: rgba(10, 10, 12, 0.9);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Form success message */
.form-response-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  display: none;
}

.form-response-message.success {
  background: rgba(45, 106, 79, 0.2);
  border: 1px solid var(--forest-green);
  color: #74C69D;
  display: block;
}

.form-response-message.error {
  background: rgba(211, 47, 47, 0.2);
  border: 1px solid var(--primary-red);
  color: #FFA5A5;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #050507;
  padding: 40px 0;
  border-top: var(--border-glass);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  color: var(--text-light);
}

.footer-logo span {
  color: var(--primary-orange);
}

.footer-nav {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav-link:hover {
  color: var(--primary-orange);
}

.footer-credits {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  padding-top: 25px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.footer-credits-vam {
  color: var(--accent-gold);
  font-weight: 700;
  position: relative;
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-credits-vam::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-sun);
  transition: var(--transition-fast);
}

.footer-credits-vam:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.footer-credits-vam:hover::after {
  width: 100%;
}

/* ==========================================================================
   SCROLL INTERACTION & REVEAL ANIMATIONS (AOS-LIKE CLASS EFFECTS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delay utilities for reveals */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes morph {
  0% { border-radius: 41% 59% 45% 55% / 54% 45% 55% 46%; }
  50% { border-radius: 56% 44% 60% 40% / 45% 56% 44% 55%; }
  100% { border-radius: 41% 59% 45% 55% / 54% 45% 55% 46%; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.5));
  }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-sun);
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 102, 0, 0.5);
  color: var(--accent-gold);
}

.scroll-to-top-btn:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    right: calc(20px + env(safe-area-inset-right, 0));
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* Prevent horizontal scroll from reveal animations & decorative elements */
@media (max-width: 991px) {
  .glow-effect {
    display: none;
  }

  section,
  .hero,
  .container,
  .nav-container {
    max-width: 100%;
    overflow-x: clip;
  }

  .reveal-left {
    transform: translateY(30px);
  }

  .reveal-right {
    transform: translateY(30px);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }

  .hero-visual {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .hero-shape-outline {
    width: 100%;
    height: 100%;
  }

  .hero-mandala {
    font-size: 7rem;
  }

  .testimonial-quote::before {
    left: 0;
    font-size: 3rem;
  }

  .hanuman-devotion-card {
    overflow: hidden;
  }

  .hanuman-devotion-card::before {
    font-size: 5rem;
    right: -10px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 1rem;
    padding: 0 5px;
  }

  .glass-card {
    padding: 22px;
  }

  .education-timeline-box {
    padding: 25px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials-row {
    grid-template-columns: 1fr;
  }

  /* Always show gallery captions on touch devices (no hover) */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    padding: 18px;
  }

  .lightbox-content {
    max-width: 92%;
    max-height: 85vh;
    padding: 0 10px;
  }

  .lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.85);
    border-radius: 50%;
    z-index: 1001;
  }

  .contact-text-box p {
    word-break: break-word;
  }
}

/* Mobile nav overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

html.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero h1 span {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 7px 14px;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
  }

  .hero-quote-box blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .hero-quote-box cite {
    font-size: 1rem;
    line-height: 1.5;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 7px 16px;
    font-size: 0.85rem;
  }

  .counter-value {
    font-size: 2.5rem;
  }

  .footer-logo {
    font-size: 1.3rem;
    padding: 0 10px;
    line-height: 1.4;
  }

  .footer-nav {
    gap: 15px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
    padding: 0 12px;
  }

  .section-padding {
    padding: 55px 0;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .section-header h2::after {
    width: 60px;
    height: 3px;
  }

  .hero {
    padding-top: calc(100px + env(safe-area-inset-top, 0));
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    flex-direction: column;
    gap: 6px;
    font-size: 1rem;
  }

  .hero-subtitle span:nth-child(2),
  .hero-subtitle span:nth-child(4) {
    display: none;
  }

  .hero-image-wrapper {
    width: 240px;
    height: 240px;
  }

  .hero-mandala {
    font-size: 5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filter-buttons {
    gap: 8px;
    margin-bottom: 28px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hanuman-devotion-card {
    padding: 22px 18px;
  }

  .hanuman-devotion-card h4 {
    font-size: 1.25rem;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
  }

  .contact-form-box {
    padding: 22px 18px;
  }

  .social-links-container {
    flex-wrap: wrap;
  }

  .achievements-grid {
    margin-top: 40px;
    padding-top: 40px;
    gap: 15px;
  }

  .achievement-counter-card {
    padding: 22px 15px;
  }
}
