/* Shyamananda Mandali - Spiritual Website Styles */

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

:root {
  --bg-deep: #0a1220;
  --bg-card: rgba(255, 255, 255, 0.04);
  --gold: #d4af37;
  --gold-soft: #e8d48b;
  --saffron: #e07a3d;
  --cream: #f8f1e3;
  --text-muted: #b8c0cc;
  --border: rgba(212, 175, 55, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at top, #132038 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, #1a0f2e 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 8px;
}

h3 {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.sanskrit {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.15rem;
}

/* Header & Navigation */
header {
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.logo span {
  color: var(--cream);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
  position: relative;
}

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

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

/* Main Content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.hero {
  text-align: center;
  padding: 3.5rem 1rem 4rem;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.8;
}

/* Cards & Sections */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.guru-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

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

.guru-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: 2px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guru-photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.15);
}

.guru-photo figcaption {
  margin-top: 0.9rem;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* Content pages */
.content-section {
  max-width: 780px;
  margin: 0 auto;
}

.content-section p {
  text-align: justify;
}

.quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(212, 175, 55, 0.06);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
}

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

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

/* Videos */
.video-placeholder {
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.video-placeholder p {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 560px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #0a1220;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.email-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.email-note a {
  color: var(--gold);
  text-decoration: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
}

footer .sanskrit {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  nav ul {
    justify-content: center;
    gap: 1rem;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  .hero {
    padding: 2rem 0.5rem 3rem;
  }
}