/* =========================================================================
   official Website of Anuttama Dasa - Global Stylesheet
   Design System: Spiritual, Modern Editorial, RNG-Integrated, ISKCON Palette
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette (ISKCON Inspired) */
  --color-saffron: #F47C20;
  --color-krishna-blue: #0A369D;
  --color-golden-yellow: #F9A03F;
  --color-temple-cream: #FDFBF7;
  --color-leaf-green: #4D7C0F;
  --color-lotus-pink: #E8A598;
  --color-soft-gold: #D4AF37;
  --color-dark: #1E1B18;
  --color-text: #333333;
  --color-light-text: #FFFFFF;
  --color-subtle-overlay: rgba(253, 251, 247, 0.85);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Utilities */
  --transition-smooth: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   Base Resets & Globals
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-temple-cream);
  line-height: 1.6;
  overflow-x: hidden;
  /* subtle watercolor gradient / mandala texture is applied via JS RNG or pseudo-elements */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: radial-gradient(circle at 50% 50%, var(--color-temple-cream) 0%, rgba(249, 160, 63, 0.05) 50%, rgba(244, 124, 32, 0.05) 100%);
  opacity: 0.7;
}

/* =========================================================================
   Typography & Headers
   ========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1.1rem;
  font-weight: 300;
}

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

/* =========================================================================
   Layout & Container
   ========================================================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

/* =========================================================================
   Navigation
   ========================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: transparent;
}

header.scrolled {
  background: var(--color-subtle-overlay);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-krishna-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-krishna-blue);
  cursor: pointer;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
  background-color: var(--color-dark);
  color: #FFFFFF;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h3 {
  color: var(--color-soft-gold);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--color-saffron);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-icons a:hover {
  background: var(--color-saffron);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  color: #FFFFFF;
}

.footer-bottom p {
  color: #FFFFFF;
  margin-bottom: 0;
}

.credit-link {
  color: var(--color-soft-gold);
  font-weight: 500;
}

/* =========================================================================
   Buttons & Inputs
   ========================================================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-saffron);
  color: var(--color-light-text);
  border: 2px solid var(--color-saffron);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-krishna-blue);
  border-color: var(--color-krishna-blue);
}

.btn-secondary:hover {
  background-color: var(--color-krishna-blue);
  color: var(--color-light-text);
}

/* =========================================================================
   Animations & RNG Hooks
   ========================================================================= */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* RNG Hooks - classes used by script.js to randomize layouts */
.rng-shape-1 {
  border-radius: 50% 50% 0 0;
}

.rng-shape-2 {
  border-radius: 0 50% 50% 0;
}

.rng-shape-3 {
  border-radius: 20px 0 20px 0;
}

.rng-shape-4 {
  border-radius: 0;
}

.rng-bg-1 {
  background-color: rgba(244, 124, 32, 0.05);
}

/* saffron tint */
.rng-bg-2 {
  background-color: rgba(10, 54, 157, 0.03);
}

/* blue tint */
.rng-bg-3 {
  background-color: rgba(212, 175, 55, 0.08);
}

/* gold tint */

.rng-align-1 {
  text-align: left;
}

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

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--color-temple-cream);
    padding: 6rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
}