/* MindSpace Custom Styles */

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

/* Body */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

/* Feature Cards Hover Effect */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(39, 56, 128, 0.15);
}

/* Download Button Animations */
.download-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* FAQ Accordion */
.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #273880;
}

.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-answer.show {
  display: block !important;
  animation: fadeInUp 0.3s ease;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.show {
  display: block !important;
  animation: fadeInUp 0.3s ease;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #273880 0%, #45668E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Shadows */
.shadow-primary {
  box-shadow: 0 10px 40px rgba(39, 56, 128, 0.2);
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #273880;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  nav,
  footer,
  .download-btn {
    display: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #273880;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #45668E;
}

/* Section Spacing */
section {
  position: relative;
}

/* Fade in on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stats Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  animation: countUp 0.6s ease;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}
