/* Janasetu - Modern Landing Page Styles */

:root {
  --primary-color: #4C51BF;
  --light-bg: #FAFAFA;
  --white: #FFFFFF;
  --text-dark: #1A202C;
  --text-muted: #718096;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gradient-primary: linear-gradient(135deg, #4C51BF 0%, #6366F1 100%);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Custom Bootstrap overrides */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
  cursor: pointer;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: var(--light-bg);
  color: var(--primary-color);
  cursor: pointer;
}

.btn-light:active {
  transform: translateY(0);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 1.1rem;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(76, 81, 191, 0.05) 100%);
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.coming-soon {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-stats .stat {
  text-align: center;
  padding: 1rem;
}

.hero-stats .stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero-stats .stat p {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.hero-image {
  position: relative;
}

.phone-mockup {
  position: relative;
  padding: 2rem;
}

.app-icon {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.05);
}

.qr-code-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.qr-code-section h5 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

#qr-code {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

#qr-code canvas {
  border-radius: 8px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

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

.feature-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Languages Section */
.languages-section {
  background-color: var(--light-bg);
  padding: 6rem 0;
}

.language-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  height: 100%;
}

.language-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.language-card h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.language-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

/* Download Section */
.download-section {
  background: var(--gradient-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.download-section .section-title {
  color: var(--white);
}

.download-buttons {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section {
    text-align: center;
  }
  .hero-content {
    margin-bottom: 3rem;
  }
  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .app-icon {
    width: 150px;
    height: 150px;
  }
  
  .qr-code-section {
    padding: 1.5rem;
  }
  
  .feature-card,
  .language-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    text-align: center;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 0 auto 1rem;
    width: 100%;
    max-width: 300px;
  }
  
  .coming-soon {
    display: block;
    text-align: center;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-card,
  .language-card {
    padding: 1.2rem 0.8rem;
    max-width: 250px;
  }
  
  .language-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .language-card p {
    font-size: 0.95rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .features-section,
  .languages-section {
    padding: 4rem 0;
  }
}

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

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

.feature-card,
.language-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .navbar,
  .download-section,
  .footer {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}