@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colors */
  --header-bg: #ffffff;
  --nav-hover: #FF9933; /* Saffron */
  --hero-bg-1: #0A1128; /* Dark blue */
  --hero-bg-2: #1D3557;
  --hero-heading: #D4AF37; /* Gold */
  --button-saffron: #FF9933;
  --button-saffron-hover: #E68A00;
  --content-bg: #FFF5EE; /* Creamy seashell */
  --content-bg-alt: #FDFBF7;
  --heading-maroon: #800000;
  --footer-bg: #0A1128;
  --footer-icons: #D4AF37;
  --text-dark: #333333;
  --text-light: #F8F9FA;
  
  /* Tyopgraphy */
  --font-primary: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-display: 'Cinzel', serif;
  
  /* Layout */
  --container-width: 1200px;
  --section-padding: 5rem 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--content-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-maroon);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

/* Base Styles */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--nav-hover);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--button-saffron);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--button-saffron-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
  color: white; /* Ensure text remains white */
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--button-saffron);
  color: var(--button-saffron);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--button-saffron);
  color: white;
}

/* Header & Navigation */
.header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hero-bg-1);
}

.logo span {
  color: var(--nav-hover);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-hover);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hero-bg-1);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Soft glow overlay */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--nav-hover);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  color: var(--hero-heading);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
}

.hero.fullscreen {
  min-height: 100vh;
  text-align: center;
}
.hero.fullscreen .container {
  flex-direction: column;
  justify-content: center;
}
.hero.fullscreen .hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero.fullscreen h1 {
  font-size: 5rem;
}

/* Layout Patterns */

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: var(--section-padding);
}

.two-column.reverse {
  direction: rtl; /* simple way to reverse on desktop */
}
.two-column.reverse > * {
  direction: ltr;
}

.text-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.text-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* F-Pattern / Z-Pattern (Zig-Zag) */
.zig-zag-section {
  padding: var(--section-padding);
  background: var(--content-bg-alt);
}
.zig-zag-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}
.zig-zag-row:nth-child(even) {
  flex-direction: row-reverse;
}
.zig-zag-row:last-child {
  margin-bottom: 0;
}
.zig-zag-content {
  flex: 1;
}
.zig-zag-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
  padding: var(--section-padding);
}
.bento-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s ease;
}
.bento-item:hover {
  transform: translateY(-5px);
}
.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-item.wide {
  grid-column: span 2;
}
.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: center;
}
.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}
.bento-content h3 {
  color: var(--hero-heading);
  margin-bottom: 0.5rem;
}

/* Editorial Layout */
.editorial {
  padding: var(--section-padding);
  max-width: 900px;
  margin: 0 auto;
}
.editorial-img {
  width: 100%;
  margin: 3rem 0;
  border-radius: 4px;
}
.editorial p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #444;
}
.editorial p.lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-maroon);
}
.editorial blockquote {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--hero-heading);
  text-align: center;
  margin: 4rem 0;
  padding: 0 2rem;
  position: relative;
}

/* Cards Grid (Teachings, Works) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: var(--section-padding);
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.card-img {
  height: 250px;
  width: 100%;
  object-fit: cover; object-position: center;
}
.card-body {
  padding: 2rem;
}
.card-body h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Split Hero (Text + Image) */
.split-hero {
  display: flex;
  min-height: 80vh;
}
.split-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 10%;
  background: var(--hero-bg-1);
  color: white;
}
.split-image {
  flex: 1;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: center;
}
.split-text h1 {
  color: var(--hero-heading);
}

/* Timeline (Achievements) */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: var(--section-padding);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--nav-hover);
  transform: translateX(-50%);
}
.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 50%;
  padding-right: 3rem;
}
.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 3rem;
}
.timeline-item::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--button-saffron);
  border: 4px solid var(--content-bg);
}
.timeline-item:nth-child(even)::after {
  left: -8px;
}
.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.timeline-date {
  color: var(--nav-hover);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Split-screen Contact */
.contact-section {
  display: flex;
  min-height: 80vh;
}
.contact-info {
  flex: 1;
  background: var(--hero-bg-2);
  color: white;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-form-area {
  flex: 1;
  padding: 5rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info h2 {
  color: var(--hero-heading);
  margin-bottom: 2rem;
}
.contact-item {
  margin-bottom: 1.5rem;
}
.contact-item h4 {
  color: var(--button-saffron);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--nav-hover);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 5rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: var(--container-width);
  margin: 0 auto 4rem;
}

.footer-col h3 {
  color: var(--footer-icons);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--nav-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: var(--nav-hover);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero .container, .two-column, .zig-zag-row {
    flex-direction: column !important;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-item.large, .bento-item.wide {
    grid-column: span 1;
  }
  .split-hero, .contact-section {
    flex-direction: column;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }
  .timeline-item::after {
    left: 12px !important;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none; /* Add mobile menu JS later */
  }
  .mobile-menu-btn {
    display: block;
  }
  .contact-info, .contact-form-area {
    padding: 3rem 2rem;
  }
}
