/* Landing Page Responsive Styles */

/* Base responsive styles */
@media (max-width: 768px) {
  /* Navigation */
  nav > div {
    padding: 1rem !important;
  }
  
  nav > div > div:last-child {
    gap: 1rem !important;
  }
  
  nav > div > div:last-child > a {
    display: none;
  }

  /* Hero Section */
  .hero-container {
    padding: 2rem 1rem 3rem !important;
  }
  
  .hero-container h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-container p {
    font-size: 1.125rem !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-cta {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .hero-cta button {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .hero-stats {
    gap: 1.5rem !important;
  }

  /* App Preview Section */
  .app-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .app-preview-grid > div:first-child {
    order: 2;
  }
  
  .app-preview-grid > div:last-child {
    order: 1;
  }
  
  .phone-mockup {
    width: 250px !important;
    height: 500px !important;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Section headings */
  section h2 {
    font-size: 2rem !important;
  }
  
  section p {
    font-size: 1rem !important;
  }

  /* Privacy section grid */
  .privacy-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Testimonials grid */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Download section */
  .download-form {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .download-form input {
    min-width: auto !important;
  }
  
  .download-badges {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .hero-container h1 {
    font-size: 2rem !important;
  }
  
  .phone-mockup {
    width: 220px !important;
    height: 440px !important;
  }
  
  section {
    padding: 3rem 1rem !important;
  }
  
  .features-card {
    padding: 1.5rem !important;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #60b3b1;
  outline-offset: 2px;
}

button:focus,
input:focus {
  outline: 2px solid #60b3b1;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: #60b3b1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #366460;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  * {
    text-shadow: none !important;
    box-shadow: none !important;
  }
  
  .gradient-text {
    background: none !important;
    color: #000 !important;
  }
}

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