/* Modern Mobile-First Responsive Theme for Vidyasagar Assistive Tech */

:root {
  --primary-color: #1B5E20;
  --secondary-color: #4CAF50;
  --accent-color: #FF9800;
  --dark-color: #212121;
  --light-color: #F5F5F5;
  --text-color: #333333;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span {
  color: var(--accent-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: var(--transition);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(74, 144, 226, 0.1);
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section .img-container {
  margin: 2rem 0;
}

.hero-section .img-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.hero-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  text-align: left;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: none;
}

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

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

.card h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
  color: var(--white);
}

/* Content Pages */
.content-page {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  max-width: 900px;
}

.content-page header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.content-page h1 {
  font-size: 2rem;
  color: var(--dark-color);
  font-weight: 700;
}

.content-page article {
  margin-bottom: 2rem;
}

.content-page article p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.content-page article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.content-page a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.content-page a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Buttons */
.btn-custom {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
  color: var(--white);
}

.btn-back {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.site-footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.site-footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Lists */
.content-page ul,
.content-page li {
  margin-bottom: 1rem;
}

.content-page ul {
  padding-left: 1.5rem;
}

.content-page li {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
    text-align: left;
  }

  .content-page {
    padding: 1.5rem;
    margin: 1rem;
  }

  .content-page h1 {
    font-size: 1.6rem;
  }

  .content-page article p {
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 576px) {
  .main-container {
    padding: 1rem 0.5rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .btn-custom {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
.nav-link:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn-custom,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .content-page {
    box-shadow: none;
    padding: 0;
  }
}
