/* =========================================================================
   RADHA KRISHNA DAS - DESIGN SYSTEM
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #E65100;
  /* Bright ISKCON Saffron */
  --color-secondary: #0D47A1;
  /* Krishna Royal Blue */
  --color-accent: #FFB300;
  /* Golden Yellow */
  --color-bg-light: #FFFAED;
  /* Warm Lotus Ivory */
  --color-bg-dark: #1A237E;
  /* Deep Night Blue */
  --color-text-main: #3E2723;
  /* Deep Earth Brown */
  --color-text-muted: #5D4037;
  --color-white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-dark-bg: rgba(26, 21, 20, 0.7);
  --glass-dark-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

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

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.dark-mode,
.dark-mode {
  color: var(--color-bg-light);
  background-color: var(--color-bg-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: var(--color-accent);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.mt-sm {
  margin-top: var(--space-sm);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.p-lg {
  padding: var(--space-lg);
}

.p-sm {
  padding: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
}

.dark-mode .glass-panel {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.form-group {
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.gate-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gate-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(230, 81, 0, 0.7) 100%);
  z-index: 1;
}

.gate-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.gate-card h1 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

.gate-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
}

.gate-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

#access-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 10px;
  opacity: 0;
  transition: auto;
}

#access-error.visible {
  opacity: 1;
}

.sticky-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--color-text-main);
  margin-left: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-secondary);
}

.hero.full-bleed {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 21, 20, 0.4), rgba(26, 21, 20, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 4rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.split-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .split-screen {
    flex-direction: row;
  }

  .split-screen>* {
    flex: 1;
  }
}

.split-screen.align-center {
  align-items: center;
}

.drop-cap::first-letter {
  font-size: 4rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--color-secondary);
  font-family: var(--font-heading);
}

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

.rounded-image {
  border-radius: 8px;
  width: 100%;
}

.shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.bento-item {
  background: #fff;
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: left;
}

.quote {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: var(--space-sm);
}

.author {
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mega-footer {
  padding: var(--space-lg) 0 2rem;
  background: var(--color-bg-dark);
  color: var(--color-bg-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.footer-col p,
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

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

.footer-bottom a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Accordion */
details.glass-panel {
  cursor: pointer;
  transition: var(--transition-smooth);
}

details>summary {
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  outline: none;
  display: flex;
  justify-content: space-between;
}

details>summary::-webkit-details-marker {
  display: none;
}

details>summary::after {
  content: '+';
  color: var(--color-secondary);
  font-size: 1.5rem;
  line-height: 1;
}

details[open]>summary::after {
  content: '-';
}

/* Masonry Gallery */
.masonry-grid {
  column-count: 1;
  column-gap: var(--space-md);
}

@media (min-width: 600px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  object-fit: contain;
  /* Prevents cutting of image as per user req */
}

.masonry-item:hover img {
  transform: scale(1.02);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-3px);
}

/* Mosaic Gallery Design */
.mosaic-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 4px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mosaic-item:hover img {
  transform: scale(1.08);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 21, 20, 0.95) 0%, rgba(26, 21, 20, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

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

.mosaic-caption {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mosaic-item:hover .mosaic-caption {
  transform: translateY(0);
}

.span-col-2 {
  grid-column: span 2;
}

.span-row-2 {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .mosaic-gallery {
    grid-auto-rows: 250px;
  }
}

@media (max-width: 900px) {
  .mosaic-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-col-2 {
    grid-column: span 1;
  }

  .span-row-2 {
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .mosaic-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
}