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

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

:root {
  --brick-red: #000000;
  --burnt-sienna: #8b4513;
  --deep-gold: #f0f0f0;
  --dark-wood: #654321;
  --warm-cream: #ffffff;
  --text-dark: #000000;
  --text-medium: #4a3728;
  --shadow-light: rgba(139, 69, 19, 0.1);
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--warm-cream);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--warm-cream);
  border-bottom: 0px solid rgba(184, 134, 11, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brick-red);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--brick-red);
}

.hero {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  background-image: url('background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 140px 0;
  color: white;
  z-index: 1;
  overflow: hidden;
  min-height: 50vh;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-highlight {
  color: var(--brick-red);
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 0 3rem 0;
  font-weight: 300;
  text-align: left;
}

.temple-accent {
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, var(--brick-red), var(--deep-gold));
  margin: 0 auto;
  opacity: 0.6;
}

.highlights {
  padding: 80px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-light);
  border-left: 3px solid var(--deep-gold);
  transition: transform 0.3s ease;
}

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

.highlight-card h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--brick-red);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.highlight-card .btn {
  color: var(--brick-red);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--brick-red);
  transition: all 0.3s ease;
}

.highlight-card .btn:hover {
  color: var(--burnt-sienna);
  border-color: var(--burnt-sienna);
}

/* Chatbot Styles */
.chatbot-section {
  padding: 80px 0;
  background: rgba(184, 134, 11, 0.05);
}

.chatbot-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-light);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.chatbot-header {
  background: var(--brick-red);
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chatbot-header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.chatbot-status {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--warm-cream);
  scroll-behavior: smooth;
}

.chatbot-msg {
  margin-bottom: 0.8rem;
  max-width: 75%;
  line-height: 1.3;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.chatbot-msg.user {
  background: var(--brick-red);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}

.chatbot-msg.bot {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chatbot-form {
  display: flex;
  background: white;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  font-size: 1rem;
  border: none;
  padding: 0.75rem 1rem;
  outline: none;
  font-family: 'Nunito', sans-serif;
}

.chatbot-send {
  background: var(--brick-red);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0 1.5rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.3s ease;
}

.chatbot-send:hover {
  background: var(--burnt-sienna);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.typing {
  opacity: 0.7;
  font-style: italic;
}

/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brick-red);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  background: var(--burnt-sienna);
}

.chatbot-modal {
  width: 100%;
  max-width: 400px;
  height: 500px;
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  overflow: hidden;
}

.chatbot-modal.active {
  display: flex;
}

.chatbot-modal-header {
  background: var(--brick-red);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chatbot-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chatbot-modal .chatbot-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  background: var(--warm-cream);
  min-height: 0;
}

.chatbot-modal .chatbot-form {
  flex-shrink: 0;
  background: white;
  border-top: 1px solid #ddd;
}

/* Custom Scrollbar for Webkit browsers */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--deep-gold);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--brick-red);
}

footer {
  background: #fefbf3;
  color: #958b76;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-accent {
  width: 20px;
  height: 20px;
  background: var(--deep-gold);
  border-radius: 50%;
  display: inline-block;
  margin: 0 0.5rem;
  opacity: 0.7;
}

/* About Section */

/* Match hero section styles for the About section */
/* About Section - Reduced Line Height */

#about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

#about-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 300px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4; /* Reduced from 1.6 */
}

#about h2 {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.1; /* Reduced from 1.2 */
}

.about-text p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5; /* Reduced from 1.8 */
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 600px;
}

.about-text a {
  text-decoration: none; /* removes underline */
  color: #6dc3c3; /* light blue, adjust as needed */
  transition: color 0.2s ease;
}

.about-text a:hover {
  color: #1c6cd6; /* slightly darker blue on hover */
}



.social-links {
  margin-top: 2rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.social-links a {
  font-size: 3rem;
  margin: 0;
  color: var(--brick-red, #b22222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--gold, goldenrod);
}

/* Dark mode styles */
.dark-mode {
  --brick-red: #ffffcc;
  --burnt-sienna: #ffffcc;
  --deep-gold: #ffffcc;
  --dark-wood: #121212;
  --warm-cream: #1e1e1e;
  --text-dark: #f0f0f0;
  --text-medium: #ffffcc;
  --shadow-light: rgba(144, 164, 174, 0.2);
  background: var(--dark-wood);
  color: var(--text-dark);
}

.dark-mode .hero {
  background-image: url('darkbackground.png');
}

.dark-mode body {
  background: var(--dark-wood);
  color: var(--text-dark);
}

.dark-mode .chatbot-container,
.dark-mode .chatbot-modal {
  background: var(--warm-cream);
  color: var(--text-dark);
}

.dark-mode .chatbot-messages {
  background: var(--dark-wood);
}

.dark-mode .chatbot-msg.bot {
  background: var(--warm-cream);
  color: var(--text-dark);
}

/* Toggle Switch with Icon */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 1rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--deep-gold);
  border-radius: 26px;
  transition: background-color 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  top: 2px;
  background-color: var(--warm-cream);
  border-radius: 50%;
  transition: transform 0.4s;
}

.icon {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
  transition: transform 0.4s;
}

input:checked + .slider .icon {
  transform: translateX(24px);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

a:focus {
  outline: 2px solid var(--deep-gold);
  outline-offset: 2px;
}

#nav-toggle {
  display: none;
}

.footer-note {
  flex: 1;
  min-width: 300px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  text-align: center;
  margin-top: 2rem;
}


@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-intro {
    font-size: 1rem;
  }
  
  .highlights {
    padding: 60px 0;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile styles - Large phones */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Navigation */
  nav {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  #nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--warm-cream);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 1rem;
  }

  /* Hero Section - Major improvements */
  .hero {
    padding: 0px 0 60px;
    min-height: 70vh;
    background-position: center center;
    background-size: 100%;
    background-attachment: scroll;
    display: flex;
    align-items: center;
  }
  
  .hero .container {
    width: 100%;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-intro {
    font-size: 0.85rem;
    max-width: 200px;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  /* Highlights section */
  .highlights {
    padding: 50px 0;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .highlight-card {
    padding: 1.5rem;
  }
  
  .highlight-card h3 {
    font-size: 1.25rem;
  }

  /* About section */
  #about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  #about-img {
    width: 100%;
    max-width: 300px;
  }

  .about-text {
    width: 100%;
    text-align: left;
  }
  
  .social-links {
    justify-content: center;
    margin-left: 0;
    margin-top: 3rem;
    gap: 1.5rem;
  }
  
  .social-links a {
    font-size: 2.5rem;
  }

  /* Chatbot styles */
  .chatbot-container {
    height: 450px;
    margin: 0 10px;
  }

  .chatbot-modal {
    width: calc(100vw - 30px);
    height: 70vh;
    max-height: 450px;
    right: 15px;
    left: 15px;
    bottom: 90px;
  }
  
  .chatbot-toggle {
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .chatbot-msg {
    max-width: 85%;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
  
  .chatbot-input {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }
  
  .chatbot-send {
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }
}

/* Mobile styles - Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .logo {
    font-size: 1.3rem;
  }

  /* Hero adjustments for very small screens */
  .hero {
    padding: 0px 0 50px;
    min-height: 55vh;
    background-position: top center;
    background-size: 100%;
  }

  .hero h1 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-intro {
    font-size: 0.6rem;
    max-width: 180px;
    line-height: 1.6;
  }

  /* Highlight cards */
  .highlight-card {
    padding: 1.2rem;
  }
  
  .highlight-card h3 {
    font-size: 1.1rem;
  }
  
  .highlight-card p {
    font-size: 0.9rem;
  }

  /* About section */
  #about {
    padding: 0rem;
  }

  #about-img {
    max-width: 300px;
  }
  
  .social-links a {
    font-size: 2.4rem;
  }

  /* Chatbot very small screens */
  .chatbot-modal {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 80px;
    height: 65vh;
    max-height: 400px;
  }
  
  .chatbot-toggle {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .chatbot-header h2 {
    font-size: 1.2rem;
  }
  
  .chatbot-header p {
    font-size: 0.85rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .hero-intro {
    font-size: 0.85rem;
  }
  
  .highlight-card {
    padding: 1rem;
  }
  
  .social-links a {
    font-size: 2rem;
  }
}