/* AI-Assisted Grant Proposal Writer - Responsive Styles */

/* ===== MOBILE FIRST APPROACH ===== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-decoration {
    width: 100px;
    height: 100px;
  }
  
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Navigation */
  .navbar-brand { font-size: 1.125rem; }
  
  /* Sections */
  section { padding: 2.5rem 0; }
  
  /* Cards */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Icons */
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Price Amount */
  .price-amount {
    font-size: 2rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Cards in rows */
  .service-card,
  .price-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery Grid */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  /* Services Grid */
  .service-card {
    height: auto;
    min-height: 350px;
  }
  
  /* Price Cards */
  .price-card {
    min-height: 400px;
  }
  
  /* Team Cards */
  .team-card {
    min-height: 300px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Service Cards Grid */
  .service-card {
    min-height: 380px;
  }
  
  /* Price Cards */
  .price-card {
    min-height: 450px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container Max Width */
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  /* Service Cards */
  .service-card {
    min-height: 400px;
  }
  
  /* Price Cards */
  .price-card {
    min-height: 480px;
  }
}

/* ===== ORIENTATION SPECIFIC STYLES ===== */

/* Landscape Mobile Devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .gallery-item:hover img {
    display: none !important;
  }
  
  /* Ensure good contrast for printing */
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Remove shadows and transitions */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .contact-form {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions on mobile */
  @media (max-width: 767.98px) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Remove hover effects */
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: none !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  /* Increase border visibility */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .faq-card {
    border: 2px solid #000 !important;
  }
  
  /* Enhance button contrast */
  .btn-primary {
    border: 2px solid #000 !important;
  }
  
  /* Improve form field visibility */
  .form-control {
    border: 2px solid #000 !important;
  }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */

/* Hide elements on specific breakpoints */
.d-mobile-none {
  @media (max-width: 767.98px) {
    display: none !important;
  }
}

.d-tablet-none {
  @media (min-width: 768px) and (max-width: 991.98px) {
    display: none !important;
  }
}

.d-desktop-none {
  @media (min-width: 992px) {
    display: none !important;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  @media (max-width: 767.98px) {
    text-align: center !important;
  }
}

/* Responsive margins and padding */
.mb-mobile-2 {
  @media (max-width: 767.98px) {
    margin-bottom: 1rem !important;
  }
}

.p-mobile-1 {
  @media (max-width: 767.98px) {
    padding: 0.5rem !important;
  }
} 

.hero-content {
    padding-top: 125px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
