/* Responsive Styles for Digital Note-Taking SaaS Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 200px;
}
  
  /* Card spacing */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 1rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on small mobile devices */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-padding {
    padding: 75px 0;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Adjust featured price card scaling */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .price-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section responsive layout */
@media (max-width: 767.98px) {
  #hero .row {
    flex-direction: column-reverse;
  }
  
  .hero-content {
    text-align: center;
    margin-top: 2rem;
    padding-top: 200px;
}
}

/* Services grid responsive */
@media (max-width: 767.98px) {
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Team section responsive */
@media (max-width: 575.98px) {
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Price plan responsive */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    border: 2px solid var(--primary-blue);
  }
  
  .price-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  #footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* Form responsive */
@media (max-width: 575.98px) {
  .form-control {
    padding: 10px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Blog cards responsive */
@media (max-width: 767.98px) {
  .blog-content {
    padding: 1.5rem;
  }
}

/* FAQ responsive */
@media (max-width: 575.98px) {
  .faq-card {
    padding: 1.5rem;
  }
}

/* Process section responsive */
@media (max-width: 575.98px) {
  .process-step {
    margin-bottom: 1.5rem;
  }
}

/* Case study responsive */
@media (max-width: 767.98px) {
  .case-card {
    padding: 2rem 1.5rem;
  }
}

/* Button responsive */
@media (max-width: 575.98px) {
  .btn-primary-custom {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .feature-icon,
  .process-number {
    background-size: contain;
  }
}

/* Print styles */
@media print {
  * {
    box-shadow: none !important;
    background: white !important;
    color: black !important;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  .section-padding {
    padding: 20px 0;
  }
} 

body {
    overflow-x: hidden;
}