/* ===================================
   RESPONSIVE CSS FOR CODING BOOTCAMP
   Additional responsive design rules
   =================================== */

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */

@media (max-width: 5711px) {
  /* Typography */
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.27rem;
  }
  
  .section-title {
    font-size: 1.89rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Spacing */
  .section {
    padding: 2rem 0;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.38rem !important;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Cards */
  .service-card, .custom-card {
    margin-bottom: 1.72rem;
  }
  
  /* Team Members */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process Steps */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.30rem;
  }
}

/* ===================================
   TABLET OPTIMIZATIONS
   =================================== */

@media (min-width: 577px) and (max-width: 768px) {
  .hero-title {
    font-size: 2.65rem;
  }
  
  .hero-subtitle {
    font-size: 1.33rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   DESKTOP OPTIMIZATIONS
   =================================== */

@media (min-width: 992px) {
  /* Hero Section */
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
  }
  
  .hero-image {
    padding-left: 2rem;
  }
  
  /* Services Grid */
  .service-card {
    min-height: 350px;
  }
  
  /* Team Grid */
  .team-member {
    padding: 2rem 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   LARGE DESKTOP OPTIMIZATIONS
   =================================== */

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .navbar,
  .footer,
  .btn,
  .faq-question::after {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Focus indicators */
.nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .custom-card,
  .service-card,
  .nav-link,
  .btn {
    transition: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .pulse-animation {
    animation: none;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 5px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Form validation styling */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.33rem;
  font-size: 0.98rem;
  color: #db345b;
}

.form-control.is-invalid {
  border-color: #f12f35;
  box-shadow: 0 0 0 0.2rem rgba(220, 45, 33, 0.25);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ===================================
   STEP NUMBER STYLING
   =================================== */

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.58rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}
