/* =============================================
   DINA SHARANA DEVI DASI — Global Stylesheet
   Design: Elegant, knowledge-centric, asymmetric
   Typography: Playfair Display + Lora
   ============================================= */

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  --saffron: #E8751A;
  --saffron-light: #F4A94D;
  --gold: #C5963A;
  --gold-light: #D4AF5E;
  --cream: #FDF6EC;
  --cream-dark: #F5EBD8;
  --soft-blue: #7BA7BC;
  --soft-blue-light: #A8CAD9;
  --white: #FFFFFF;
  --text-dark: #2C2418;
  --text-medium: #5C4E3C;
  --text-light: #8A7A66;
  --border-subtle: rgba(197, 150, 58, 0.15);
  --shadow-soft: 0 4px 30px rgba(44, 36, 24, 0.06);
  --shadow-card: 0 8px 40px rgba(44, 36, 24, 0.08);
  --shadow-layered: 0 16px 60px rgba(44, 36, 24, 0.10);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --transition-smooth: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', 'Book Antiqua', Palatino, serif;
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

a:hover {
  color: var(--gold);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 65ch;
}

.accent-text {
  color: var(--saffron);
  font-family: var(--font-heading);
  font-style: italic;
}

.subheading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ---------- LAYOUT UTILITIES ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt {
  background: var(--white);
}

/* Asymmetric Grid System */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-asymmetric--reverse {
  grid-template-columns: 1fr 1.3fr;
}

.grid-equal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ---------- BACKGROUND TEXTURES ---------- */
.texture-dots {
  position: relative;
}

.texture-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.texture-lines {
  position: relative;
}

.texture-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 59px,
    var(--border-subtle) 59px,
    var(--border-subtle) 60px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---------- LAYERED CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-layered);
}

.card--overlap {
  margin-top: -3rem;
  margin-left: 2rem;
  z-index: 3;
}

.card--accent {
  border-left: 4px solid var(--saffron);
}

.card--soft {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border: 1px solid var(--border-subtle);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- IMAGE STYLES ---------- */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

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

.img-frame:hover img {
  transform: scale(1.04);
}

.img-frame--offset {
  position: relative;
}

.img-frame--offset::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.img-rounded {
  border-radius: var(--radius-xl);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition-smooth), padding var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__brand span {
  color: var(--saffron);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-medium);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width var(--transition-smooth);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--saffron);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ---------- HERO SECTIONS ---------- */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 6rem;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--saffron);
}

.hero__description {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.85;
}

.hero__image {
  position: relative;
}

.hero__image .img-frame {
  aspect-ratio: 4/5;
}

/* Decorative elements */
.hero__decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  opacity: 0.12;
  filter: blur(60px);
  z-index: 0;
}

/* Page header for inner pages */
.page-header {
  padding: 10rem 0 5rem;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 50%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  opacity: 0.08;
  filter: blur(80px);
}

.page-header h1 {
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  max-width: 55ch;
  margin: 0 auto;
  font-size: 1.1rem;
  position: relative;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
}

.btn--primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 117, 26, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 117, 26, 0.35);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--saffron);
  border: 2px solid var(--saffron);
}

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

/* ---------- DIVIDERS ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-light));
  border-radius: 3px;
  margin: 1.5rem 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- QUOTE BLOCK ---------- */
.quote-block {
  position: relative;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
}

.quote-block::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.5;
}

.quote-block p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 100%;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 36, 24, 0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.gallery-item.span-2 {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item.span-row {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ---------- CONTACT FORM ---------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 117, 26, 0.1);
}

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

/* ---------- CONTACT INFO ---------- */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  font-size: 0.95rem;
}

/* ---------- SOCIAL LINKS ---------- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  font-size: 1.1rem;
  transition: all var(--transition-smooth);
}

.social-links a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text-dark);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

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

.footer h4 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p,
.footer a {
  color: var(--text-light);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--saffron-light);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer__bar p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 auto;
}

.footer__bar a {
  color: var(--saffron-light);
  font-weight: 600;
}

.footer .social-links a {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--cream);
}

.footer .social-links a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
}

/* ---------- ACCESS PAGE ---------- */
.access-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 40%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.access-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  opacity: 0.08;
  filter: blur(100px);
}

.access-page::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-blue-light), var(--gold-light));
  opacity: 0.06;
  filter: blur(80px);
}

.access-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-layered);
}

.access-card .om-symbol {
  font-size: 3rem;
  color: var(--saffron);
  margin-bottom: 1rem;
  display: block;
}

.access-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.access-card p {
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  text-align: center;
}

.access-card input[type="password"] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.3em;
  background: var(--white);
  margin-bottom: 1rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.access-card input[type="password"]:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 117, 26, 0.12);
}

.access-card .btn {
  width: 100%;
  justify-content: center;
}

.access-error {
  color: #c0392b;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  display: none;
}

/* ---------- STAT CARDS ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--saffron);
  font-weight: 700;
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--saffron), var(--gold-light), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--saffron);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 24, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-asymmetric,
  .grid-asymmetric--reverse,
  .grid-equal {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .card--overlap {
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-smooth);
    z-index: 999;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

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

  .gallery-item.span-2 {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .page-header {
    padding: 8rem 0 3rem;
  }

  .quote-block {
    padding: 2rem;
  }

  .access-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .stat-card .stat-number {
    font-size: 2rem;
  }
}
