:root {
  --primary-color: #e65100; /* Deep Saffron/Orange */
  --secondary-color: #fff3e0;
  --text-dark: #212121;
  --text-light: #757575;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --header-height: 80px;
  
  --font-heading: 'Marcellus', serif;
  --font-body: 'Poppins', sans-serif;
  --font-decorative: 'Tangerine', cursive;
  
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-line-1 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bg-white);
}
.site-header.scrolled .brand-line-1 {
  color: var(--text-dark);
}

.brand-line-2 {
  font-size: 0.75rem;
  color: var(--bg-white);
  opacity: 0.9;
}
.site-header.scrolled .brand-line-2 {
  color: var(--text-light);
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-white);
    position: relative;
  }
  
  .site-header.scrolled .nav-link {
    color: var(--text-dark);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--bg-white);
  transition: all var(--transition-fast);
}

.site-header.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger.active span {
  background: var(--text-dark); /* Ensure it's dark on mobile menu background */
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: right var(--transition-smooth);
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--overlay-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
  z-index: 999;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--bg-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--bg-white);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
  transform: translateY(20px);
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
  .hero-subtitle { font-size: 1.25rem; }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
  transform: translateY(20px);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: #d84315;
  transform: translateY(-2px);
}



/* Quote/Dharma Section */
.quote-section {
  padding: 4rem 1.5rem;
  background: var(--bg-white);
  text-align: center;
}

.quote-image {
  max-width: 150px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 5rem 1.5rem;
  background: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-smooth);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Features Grid */
.features-section {
  padding: 5rem 1.5rem;
  background: var(--secondary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Community Group Section */
.community-group-section {
  padding: 5rem 1.5rem;
  background: var(--bg-white);
}

.community-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .community-group-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.community-group-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.community-group-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}

@media (max-width: 768px) {
  .community-group-image img {
    aspect-ratio: 16/9;
  }
}

.community-group-content h2 {
  text-align: left;
}

.community-group-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 1.5rem;
  background: var(--bg-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Featured Gallery Grid (Homepage) */
.featured-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .featured-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
  }
  
  .featured-gallery-grid .gallery-item {
    aspect-ratio: auto; /* let grid define height */
    height: 100%;
  }

  .featured-gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .featured-gallery-grid .gallery-item:nth-child(2),
  .featured-gallery-grid .gallery-item:nth-child(3),
  .featured-gallery-grid .gallery-item:nth-child(4),
  .featured-gallery-grid .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Full Gallery Grid (Gallery Page) */
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-cta {
  text-align: center;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  padding: 1.5rem;
  text-align: center;
}

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

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

.gallery-overlay h3 {
  color: var(--bg-white);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.gallery-overlay p {
  color: #ccc;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform var(--transition-fast) 0.1s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-counter {
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary-color);
}

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

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; z-index: 10; }
}


/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-about p {
  color: #999;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #999;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #666;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
