/* 
 * Dynamic Theme for ScienceSpark Maharashtra
 * Vibrant color scheme with decorative elements and animations
 */

/* Base Styles and Variables */
:root {
  /* Primary Colors */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #e2e8ff;
  
  /* Secondary Colors */
  --secondary-color: #4cc9f0;
  --secondary-dark: #3db8dd;
  --secondary-light: #e3f8ff;
  
  /* Accent Colors - Yellow and Florence Pink */
  --accent-yellow: #ffca28;
  --accent-yellow-dark: #ffb300;
  --accent-yellow-light: #fff8e6;
  
  --accent-pink: #ff5c8d;
  --accent-pink-dark: #ff3377;
  --accent-pink-light: #ffecf2;
  
  /* Gradient Combinations */
  --gradient-blue: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-yellow-pink: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-pink) 100%);
  --gradient-blue-pink: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-pink) 100%);
  --gradient-yellow-blue: linear-gradient(135deg, var(--accent-yellow) 0%, var(--secondary-color) 100%);
  
  /* Text and Background Colors */
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  
  /* Shadows and Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Transitions and Animations */
  --transition-fast: all 0.2s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Font Family */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Typography with Decorative Elements */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
  position: relative;
}

h1, h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

h1::after, h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-yellow-pink);
  margin: 15px 0 0;
  border-radius: 2px;
}

h1.text-center::after, h2.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-blue-pink);
  border-radius: 1.5px;
}

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

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* Enhanced Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

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

.btn-secondary {
  background: var(--gradient-yellow-blue);
  color: white;
}

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

.btn-accent {
  background: var(--gradient-yellow-pink);
  color: white;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--gradient-blue);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

/* Enhanced Cards with Decorative Elements */
.card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-blue-pink);
  border-radius: 3px 0 0 3px;
}

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

.card-header {
  padding: 1.25rem 1.5rem;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--light-color);
  border-top: 1px solid var(--border-color);
}

/* Grade Cards with Colorful Accents */
.grade-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.grade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-yellow-pink);
  border-radius: 3px 0 0 3px;
}

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

.grade-header {
  background: var(--gradient-blue);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.grade-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/pattern.png');
  opacity: 0.1;
}

.grade-header h3 {
  margin: 0;
  font-size: 2rem;
  color: white;
  position: relative;
}

.grade-header h3::after {
  display: none;
}

.grade-body {
  padding: 2rem;
}

/* Feature Cards with Colorful Accents */
.feature-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-yellow-blue);
  border-radius: 3px 3px 0 0;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-blue-pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover .feature-icon::before {
  left: 0;
}

/* Chapter Cards with Colorful Accents */
.chapter-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-blue-pink);
  border-radius: 3px 0 0 3px;
}

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

.chapter-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-yellow-pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

/* Enhanced Header with Colorful Elements */
.main-header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo a:hover {
  transform: scale(1.05);
}

.main-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-menu li {
  position: relative;
  margin: 0 5px;
}

.main-nav .nav-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--dark-color);
  font-weight: 600;
  border-radius: var(--border-radius);
  position: relative;
}

.main-nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-yellow-pink);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 1.5px;
}

.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a.active::after {
  width: 80%;
}

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

/* Enhanced Footer with Colorful Elements */
.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 1.5rem;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-yellow-pink);
}

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

.footer-links h3,
.footer-grades h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-grades h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-yellow-pink);
}

.footer-links a,
.footer-grades a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.5rem 0;
  transition: var(--transition);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before,
.footer-grades a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-yellow);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.footer-links a:hover::before,
.footer-grades a:hover::before {
  background: var(--accent-pink);
}

.footer-links a:hover,
.footer-grades a:hover {
  color: white;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-yellow-pink);
  transition: var(--transition);
  z-index: -1;
}

.social-icons a:hover::before {
  left: 0;
}

.social-icons a:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--shadow);
}

/* Enhanced Hero Section with Colorful Elements */
.hero-section {
  background: var(--gradient-blue);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/pattern.png');
  opacity: 0.1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--gradient-yellow-pink);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content h1::after {
  background: var(--gradient-yellow-pink);
  margin: 15px auto 0;
  width: 100px;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Section Headers with Colorful Elements */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-yellow-pink);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Comment Section Styles - Enhanced */
.reviews-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-top: 30px;
  position: relative;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-yellow-pink);
  border-radius: 5px 5px 0 0;
}

.reviews-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

.reviews-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-yellow-pink);
  margin: 15px auto 0;
  border-radius: 2px;
}

.comment {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.comment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-blue-pink);
  border-radius: 3px 0 0 3px;
}

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

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.comment-user {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 5px;
  font-size: 18px;
}

.comment-rating {
  display: flex;
  gap: 2px;
  margin-top: 5px;
}

.comment-rating i {
  color: var(--accent-yellow);
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slideIn {
  animation: slideIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
  }
  
  .main-nav .nav-menu.active {
    left: 0;
  }
  
  .main-nav .nav-menu a::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.5rem 1.2rem;
  }
}
