/* VoicePresent Pro - Responsive CSS */

/* Mobile First Approach */
/* Base styles are for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  .display-4 {
    font-size: 1.87rem;
  }
  
  h1 {
    font-size: 1.64rem;
  }
  
  h2 {
    font-size: 1.34rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.17rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Hero Section */
  #hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  #hero .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.66rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  /* Buttons */
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
  
  /* Spacing */
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Team Section */
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-form .col-md-6 {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  #footer .col-lg-3 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Hide animations on mobile to respect reduced motion */
  .fade-in-up,
  .card:hover {
    animation: none;
    transform: none;
  }
  
  /* Improve touch targets */
  .btn {
    min-height: 49px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  #hero {
    min-height: 80vh;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .display-4 {
    font-size: 2.36rem;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  /* Navigation */
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
}

/* Large devices (desktops, 995px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .display-4 {
    font-size: 2.55rem;
  }
  
  .card-img-top {
    height: 220px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .display-4 {
    font-size: 2.84rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .card-img-top {
    height: 240px;
  }
  
  /* Enhanced hover effects for desktop */
  .card:hover {
    transform: translateY(-4px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .display-4 {
    font-size: 3rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print media adjustments */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.3;
    overflow-x: hidden;
}
  
  .container {
    max-width: none;
  }
  
  .col-lg-4,
  .col-md-6 {
    width: 50%;
    float: left;
  }
  
  .col-lg-3 {
    width: 25%;
    float: left;
  }
  
  .py-5 {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #000;
  }
  
  .btn {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations on mobile */
  @media (max-width: 991.98px) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms;
      animation-iteration-count: 1;
      transition-duration: 0.01ms;
      scroll-behavior: auto;
    }
    
    .card:hover,
    .btn:hover {
      transform: none;
    }
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid;
  }
  
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .text-muted {
    color: var(--text-primary);
  }
}

/* Container breakpoint overrides */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Custom responsive utilities */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Responsive typography scale */
.responsive-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.responsive-heading {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Responsive spacing */
.responsive-padding {
  padding: clamp(1rem, 5vw, 4rem);
}

.responsive-margin {
  margin: clamp(0.5rem, 2.5vw, 2rem);
}

/* Grid system enhancements for better mobile experience */
@media (max-width: 575.98px) {
  .row > * {
    margin-bottom: 1rem;
  }
  
  .row > *:last-child {
    margin-bottom: 0;
  }
}

/* Form responsiveness */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .form-row .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Navigation enhancements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    border-bottom: 1px solid #c1cae0;
    margin-bottom: 0.64rem;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
}

/* Accessibility improvements for touch devices */
@media (pointer: coarse) {
  .btn {
    padding: 0.875rem 1.75rem;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .card {
    margin-bottom: 1.57rem;
  }
}

/* Landscape phone specific adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
  }
  
  .py-5 {
    padding-top: 1.57rem;
    padding-bottom: 1.58rem;
  }
}

/* Tablet portrait adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
  /* Disable expensive CSS properties on mobile */
  .card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .btn {
    box-shadow: none;
  }
  
  /* Simplify gradients on mobile for better performance */
  .btn-primary {
    background: var(--primary);
  }
  
  #hero {
    background: var(--bg-primary);
  }
}

/* Foldable device support */
@media (max-width: 280px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.90rem;
  }
}

/* Wide mobile devices */
@media (min-width: 375px) and (max-width: 575.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-buttons .btn {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
  }
} 