/* Mobile Responsive CSS */

/* Hide mobile menu toggle by default (desktop view) */
.mobile-menu-toggle {
  display: none;
}

/* Base responsive adjustments */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    flex-direction: column;
  }
  
  .feature-content {
    width: 100%;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .slideshow-container {
    width: 100%;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: auto;
    color: var(--primary-color);
    position: relative;
    z-index: 1001;
    border-radius: 10px;
    background: var(--light-background);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-toggle:hover {
    background: var(--border-color);
  }
  
  .mobile-menu-toggle i {
    font-size: 18px;
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-toggle.active i {
    transform: rotate(90deg);
  }
  
  header .container {
    flex-wrap: wrap;
    position: relative;
  }
  
  .logo {
    margin-right: auto;
  }
  
  nav {
    flex-basis: 100%;
    display: none;
    margin-top: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  nav.active {
    display: block;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    animation: fadeEffect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
  }

  nav ul li a:hover {
    background: var(--light-background);
  }

  nav ul li a::after {
    display: none;
  }
  
  .feature-card {
    padding: 1.75rem;
  }
  
  .feature-icon {
    margin-bottom: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    width: 100%;
  }
  
  .footer-column {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .demo-btn, .cta-button {
    padding: 0.75rem 1.5rem;
    display: inline-block;
  }
  
  .social-icons a {
    width: 44px;
    height: 44px;
  }

  input, select, textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  .team-member {
    margin-bottom: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    padding: 2rem 1.5rem;
  }
  
  .cta-content {
    padding: 0 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .container {
    width: 95%;
    padding: 0 12px;
  }
  
  .feature-card, .benefit-card {
    padding: 1.5rem;
  }
  
  .slideshow-img {
    max-height: 300px;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero {
    padding: 9rem 0 4rem;
  }

  .features, .benefits {
    padding: 4rem 0;
  }

  .cta-section {
    padding: 4rem 0;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .demo-btn, .cta-button {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
}

/* Ensure images scale properly */
.feature-img, .slideshow-img, .benefit-img {
  max-width: 100%;
  height: auto;
}

/* Pulsating animation for CTA buttons */
@keyframes pulse-animation {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}

.cta-button.pulse {
  animation: pulse-animation 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: relative;
  overflow: visible;
}

.cta-button.pulse:hover {
  animation: none;
}
