/* CSS Custom Properties */
:root {
  /* Colors */
  --saffron: #FF9933;
  --gold: #FFD700;
  --cream: #FFF8E7;
  --teal: #1E9E9E;
  --lotus-pink: #F4A7B9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--teal) 0%, var(--lotus-pink) 100%);
  --gradient-soft: linear-gradient(135deg, var(--cream) 0%, rgba(255, 215, 0, 0.1) 100%);
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-mobile: 60px 0;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(255, 153, 51, 0.1);
  --shadow-medium: 0 8px 32px rgba(255, 153, 51, 0.15);
  --shadow-strong: 0 12px 48px rgba(255, 153, 51, 0.2);
  
  /* Border Radius */
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: #2c2c2c;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 153, 51, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand a {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--saffron);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.download-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-small);
  font-weight: 600;
}

.download-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-soft);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
}

.hero-artwork {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.verse-of-day {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 153, 51, 0.1);
}

.verse-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--teal);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.verse-translation {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.verse-reference {
  font-size: 0.875rem;
  color: var(--saffron);
  font-weight: 600;
  font-style: normal;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: white;
  color: var(--saffron);
  border: 2px solid var(--saffron);
}

.btn-secondary:hover {
  background: var(--saffron);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: white;
}

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

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-large);
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 153, 51, 0.1);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.feature-description {
  color: #666;
  line-height: 1.7;
}

/* Demo Section */
.demo {
  padding: var(--section-padding);
  background: var(--gradient-soft);
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.demo-text {
  text-align: left;
}

.demo-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.7;
}

.demo-interface {
  background: white;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.demo-box {
  padding: 2.5rem;
}

.demo-label {
  display: block;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
}

.demo-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 153, 51, 0.2);
  border-radius: var(--radius-medium);
  font-family: var(--font-sans);
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition-smooth);
}

.demo-input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.demo-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.demo-response {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--gradient-soft);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(255, 153, 51, 0.1);
}

.response-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.response-icon {
  width: 24px;
  height: 24px;
}

.response-label {
  font-weight: 600;
  color: var(--teal);
}

.response-verse {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--teal);
  margin-bottom: 1rem;
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.response-explanation {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.response-reference {
  font-size: 0.875rem;
  color: var(--saffron);
  font-weight: 600;
  font-style: normal;
}

/* Read Gita Section */
.read-gita {
  padding: var(--section-padding);
  background: #FAF7F2;
}

.read-gita-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.read-gita-text {
  text-align: left;
  /* Use flex so content vertically centers alongside the visual column */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.read-gita .section-title {
  color: var(--teal);
  font-size: 2.25rem;
  /* Ensure the title is left-aligned (overrides global .section-title center) */
  text-align: left;
}

.read-gita .section-icon {
  /* Make sure icon aligns to the left of the text block */
  text-align: left;
}

.insights .section-title {
  color: var(--saffron);
  font-size: 2.25rem;
}

.section-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.7;
  color: var(--teal);
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn-read-gita {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 153, 51, 0.2);
}

.btn-read-gita:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Insights Section */
.insights {
  padding: var(--section-padding);
  background: white;
}

.insights-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.insights-text {
  text-align: left;
}

.btn-insights {
  background: var(--teal);
  color: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 158, 158, 0.2);
}

.btn-insights:hover {
  background: #177A7A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Krishna-Arjuna Imagery */
.app-screenshot-placeholder {
  width: 320px;
  height: 400px;
  background: var(--gradient-soft);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 153, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.krishna-arjuna-visual {
  width: 100%;
  height: 100%;
  background-image: url('assets/krishna-arjuna.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  position: relative;
}

.krishna-arjuna-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: var(--radius-large);
}

.visual-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--teal);
  font-family: var(--font-serif);
  z-index: 2;
}

.visual-overlay .overlay-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.visual-overlay .overlay-subtitle {
  font-size: 1rem;
  opacity: 0.6;
  font-family: var(--font-sans);
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-padding);
  background: white;
}

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

.testimonial-card {
  background: var(--gradient-soft);
  padding: 2rem;
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 153, 51, 0.1);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.author-name {
  font-weight: 600;
  color: var(--teal);
}

.author-title {
  font-size: 0.875rem;
  color: #666;
}

/* Footer */
.footer {
  background: var(--teal);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--gold);
  color: var(--teal);
  transform: translateY(-3px);
}

.footer-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 2;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-verse {
  text-align: left;
}

.sanskrit-verse {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.verse-meaning {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .demo-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .read-gita-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .insights-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-bg {
    display: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .app-screenshot-placeholder {
    width: 280px;
    height: 350px;
  }
  
  .section-icon {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .verse-of-day {
    padding: 2rem;
  }
  
  .demo-box {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .verse-of-day {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .demo-box {
    padding: 1.5rem;
  }
  
  .app-screenshot-placeholder {
    width: 240px;
    height: 300px;
  }
  
  .section-icon {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Animation delays for staggered effects */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.demo-input:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .hero-buttons,
  .demo,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
