/* Real-time Subtitle Service - Responsive CSS */
/* Mobile-first approach with progressive enhancement */

/* Base Mobile Styles (320px and up) */
@media (min-width: 320px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  

  
  .contact-form {
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Small Mobile (375px and up) */
@media (min-width: 375px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Large Mobile (425px and up) */
@media (min-width: 425px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  

}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 2.25rem;
  }
  

  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero Layout */
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-text {
    order: 1;
  }
  
  /* Navigation */
  .navbar-nav {
    flex-direction: row;
    text-align: left;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Cards Layout */
  .card-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  

}

/* Tablet Landscape (1024px and up) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  

  
  .contact-form {
    padding: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Advanced Layouts */
  .card-deck {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Form Layout */
  .contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .contact-form .full-width {
    grid-column: 1 / -1;
  }
}

/* Desktop (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: var(--section-padding);
  }
  

  
  .contact-form {
    padding: 3rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop (1920px and up) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  

}

/* Ultra Wide (2560px and up) */
@media (min-width: 2560px) {
  .container {
    max-width: 2000px;
  }
  

}

/* Height-based Media Queries */
@media (min-height: 600px) {
  .hero {
    min-height: 100vh;
  }
}

@media (max-height: 600px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* Orientation-based Media Queries */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (orientation: portrait) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .hero-text {
    order: 2;
  }
}

/* Device-specific Adjustments */

/* iPhone SE and similar small screens */
@media (max-width: 375px) and (max-height: 667px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.875rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .contact-form {
    padding: 1rem;
  }
}

/* iPad and similar tablets */
@media (min-width: 768px) and (max-width: 1024px) {

}

/* Print Styles */
@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .hero,
  .decorative-shape,
  .navbar,
  footer,
  .btn {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .contact-form {
    border: 1px solid #000;
    padding: 1rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .decorative-shape {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff6600;
    --accent-color: #00aa00;
    --gray-600: #000000;
    --gray-700: #000000;
    --gray-800: #000000;
  }
  
  .card,
  .service-card,
  .team-member,
  .contact-form {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
}


/* Focus Styles for Better Accessibility */
@media (any-hover: hover) {
  .card:hover,
  .service-card:hover,
  .team-member:hover {
    transform: translateY(-5px);
  }
}

@media (any-hover: none) {
  .card:hover,
  .service-card:hover,
  .team-member:hover {
    transform: none;
  }
}

/* Touch Device Adjustments */
@media (any-pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  

}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .hero-image img,
  .gallery-item img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Container Queries (Future-proofing) */
@container (min-width: 400px) {
  .service-card {
    padding: 2rem;
  }
}

@container (min-width: 600px) {
  .contact-form {
    padding: 3rem;
  }
}

/* Utility Classes for Responsive Design */
.d-mobile-none {
  display: none;
}

.d-tablet-none {
  display: initial;
}

.d-desktop-none {
  display: initial;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: initial;
  }
  
  .d-tablet-none {
    display: none;
  }
  
  .d-desktop-none {
    display: initial;
  }
}

@media (min-width: 1024px) {
  .d-mobile-none {
    display: initial;
  }
  
  .d-tablet-none {
    display: initial;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Responsive Typography */
@media (max-width: 576px) {
  .display-1 { font-size: 2rem; }
  .display-2 { font-size: 1.75rem; }
  .display-3 { font-size: 1.5rem; }
  .display-4 { font-size: 1.25rem; }
}

@media (min-width: 577px) and (max-width: 768px) {
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
}

@media (min-width: 769px) {
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
}

/* Responsive Spacing */
.section-sm {
  padding: 2rem 0;
}

.section-md {
  padding: 3rem 0;
}

.section-lg {
  padding: 4rem 0;
}

.section-xl {
  padding: 5rem 0;
}

@media (max-width: 576px) {
  .section-sm { padding: 1rem 0; }
  .section-md { padding: 1.5rem 0; }
  .section-lg { padding: 2rem 0; }
  .section-xl { padding: 2.5rem 0; }
}

@media (min-width: 577px) and (max-width: 768px) {
  .section-sm { padding: 1.5rem 0; }
  .section-md { padding: 2rem 0; }
  .section-lg { padding: 2.5rem 0; }
  .section-xl { padding: 3rem 0; }
}

/* Responsive Grid Utilities */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

@media (max-width: 576px) {
  .grid-auto-fit,
  .grid-auto-fill {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .grid-auto-fit,
  .grid-auto-fill {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Responsive Images */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-contain {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* Responsive Videos */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
} 