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

:root {
  --dark-navy: #1a1f3a;
  --navy: #2d3561;
  --mint: #7fe8d4;
  --light-mint: #a8f0e2;
  --cream: #f8f6f1;
  --gold: #d4af37;
  --text-dark: #1a1f3a;
  --text-light: #f8f6f1;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(26, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  /* height: 50px; */
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height 0.3s ease;
}

/* @media (min-width: 768px) {
  .nav-logo {
    height: 80px;
    max-width: 250px;
  }
}

@media (min-width: 1024px) {
  .nav-logo {
    height: 100px;
    max-width: 300px;
  }
} */

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-menu li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-menu li a:hover {
  color: var(--mint);
  background-color: rgba(127, 232, 212, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(45, 53, 97, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  color: var(--light-mint);
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--mint);
  color: var(--dark-navy);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127, 232, 212, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(127, 232, 212, 0.5);
  background-color: var(--light-mint);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--mint);
  border-radius: 25px;
  z-index: 2;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--mint);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--cream);
}

.detailed-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.detailed-section.alt {
  background-color: var(--cream);
}

.detailed-content {
  max-width: 900px;
  margin: 0 auto;
}

.detailed-text p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--navy);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.detailed-text p:first-letter {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--dark-navy);
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark-navy);
  margin-bottom: var(--spacing-md);
}

.intro-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--navy);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark-navy);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  border-radius: 2px;
}

.timeline-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-navy);
  color: var(--text-light);
}

.timeline-section .section-title {
  color: var(--text-light);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mint), var(--gold));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--spacing-lg);
  animation: fadeIn 0.6s ease;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 22px;
  background-color: var(--mint);
  border: 4px solid var(--dark-navy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(127, 232, 212, 0.2);
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: 12px;
  border-left: 4px solid var(--mint);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.timeline-content h3 {
  color: var(--mint);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.7;
}

.qualities-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--cream);
}

.qualities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.quality-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--mint);
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quality-icon {
  font-size: 3rem;
  color: var(--mint);
  margin-bottom: var(--spacing-sm);
}

.quality-card h3 {
  color: var(--dark-navy);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.quality-card p {
  color: var(--navy);
  line-height: 1.6;
}

.teachings-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--navy), var(--dark-navy));
  color: var(--text-light);
}

.teachings-section .section-title {
  color: var(--text-light);
}

.teachings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.teaching-card {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: 12px;
  border: 1px solid rgba(127, 232, 212, 0.2);
  transition: all 0.3s ease;
}

.teaching-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--mint);
  transform: translateY(-5px);
}

.teaching-card h3 {
  color: var(--mint);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.teaching-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.legacy-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--cream);
}

.legacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.legacy-text {
  margin-bottom: var(--spacing-lg);
}

.legacy-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: var(--spacing-md);
}

.legacy-quote {
  background: linear-gradient(135deg, var(--dark-navy), var(--navy));
  padding: var(--spacing-lg);
  border-radius: 12px;
  border-left: 6px solid var(--mint);
}

.legacy-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

.legacy-quote cite {
  display: block;
  margin-top: var(--spacing-md);
  font-size: 1rem;
  color: var(--mint);
  font-style: normal;
  font-family: 'Inter', sans-serif;
}

.footer {
  background-color: var(--dark-navy);
  color: var(--text-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-text {
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  line-height: 1.7;
  color: rgba(248, 246, 241, 0.8);
}

.footer-copyright {
  color: var(--mint);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(26, 31, 58, 0.98);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    padding: var(--spacing-md) 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: var(--spacing-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 6px;
    width: 18px;
    height: 18px;
  }

  .qualities-grid,
  .teachings-container {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    background-attachment: scroll;
  }

  .nav-logo {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .nav-logo {
    height: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 0.8rem 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .timeline-content,
  .quality-card,
  .teaching-card {
    padding: var(--spacing-sm);
  }

  .legacy-quote blockquote {
    font-size: 1.2rem;
  }
}
