/* AI-Powered Blog Outline Generator - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE - respect the requirement */
  .sal-animate {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments for mobile */
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 100vh;
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 225px;
}
  
  /* Section padding adjustments */
  section {
    padding: 60px 0;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Hide decorative shapes on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Gallery grid adjustments */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  /* Services grid - 2 columns on tablets */
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  section {
    padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look sharp on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and other interactive elements */
  #header,
  .btn,
  .navbar,
  #footer {
    display: none !important;
  }
  
  /* Ensure content is readable */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff0000;
    --accent-color: #008000;
    --text-color: #000000;
    --background-color: #ffffff;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Navigation improvements for mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--primary-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form improvements for mobile */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Gallery responsive grid */
@media (min-width: 576px) {
  .gallery-grid .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .gallery-grid .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .gallery-grid .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Services responsive grid */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-row .col-lg-4:nth-child(3n+1) {
    clear: left;
  }
}

/* Team responsive adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .team-row .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* FAQ responsive layout */
@media (min-width: 768px) {
  .faq-grid .col-md-6:nth-child(odd) {
    padding-right: 15px;
  }
  
  .faq-grid .col-md-6:nth-child(even) {
    padding-left: 15px;
  }
}

/* Price plan responsive */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Blog cards responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
  .blog-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
  }
}

/* Utility classes for responsive display */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
} 