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

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Improved color palette */
  --background: #fafafa;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f97316;
  --secondary-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --accent: #7c3aed;
  --accent-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #f9fafb;
  --ring: #2563eb;
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark {
  --background: #0f0f0f;
  --foreground: #fafafa;
  --card: #1a1a1a;
  --card-foreground: #fafafa;
  --primary: #3b82f6;
  --primary-foreground: #0f0f0f;
  --secondary: #fb923c;
  --secondary-foreground: #0f0f0f;
  --muted: #262626;
  --muted-foreground: #9ca3af;
  --border: #404040;
  --input: #262626;
  --ring: #3b82f6;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.dark .navbar {
  background-color: rgba(15, 15, 15, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.mobile-menu-toggle:hover {
  background-color: var(--muted);
}

.mobile-menu {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 8rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon.primary {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.feature-icon.accent {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--accent);
}

.feature-icon.secondary {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
}

/* Hymnals Section - List Style (No Cards) */
.hymnals-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hymnal-category {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.hymnal-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hymnal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.hymnal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  color: var(--foreground);
}

.hymnal-item:hover {
  background-color: var(--muted);
}

.hymnal-item svg {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.hymnal-category.local h3 {
  color: var(--accent);
}

.hymnal-category.local .hymnal-item svg {
  color: var(--accent);
}

/* Audio Player Demo */
.audio-demo {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.player-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.player-info {
  margin-bottom: 1.5rem;
}

.player-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.player-info p {
  color: var(--muted-foreground);
}

.player-mockup {
  background-color: var(--muted);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.player-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.player-btn:hover {
  background-color: rgba(37, 99, 235, 0.9);
}

.player-btn.small {
  width: 3rem;
  height: 3rem;
}

.player-btn.large {
  width: 4rem;
  height: 4rem;
}

.progress-bar {
  position: relative;
  margin-top: 1rem;
}

.progress-track {
  width: 100%;
  height: 0.5rem;
  background-color: var(--border);
  border-radius: 0.25rem;
}

.progress-fill {
  width: 33%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 0.25rem;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item svg {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.developer-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.developer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.developer-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.developer-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.developer-info p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.developer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

.footer-brand {
  grid-column: span 2;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

.social-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

/* Content Pages */
.content-page {
  padding: 8rem 0 3rem;
}

.content-page.muted {
  background-color: var(--muted);
}

.content-header {
  margin-bottom: 3rem;
}

.content-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.content-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.content-section p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.highlight-box {
  background-color: var(--muted);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.highlight-box p {
  margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hymnal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Icons */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.mobile-menu a:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}