/* AI-driven YouTube Title Optimizer - Responsive CSS */
/* Mobile-First Responsive Design */

/* ===== EXTRA SMALL DEVICES (portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
  /* Container adjustments */
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography scaling */
  h1 { font-size: 1.75rem; line-height: 1.2; }
  h2 { font-size: 1.5rem; line-height: 1.3; }
  h3 { font-size: 1.25rem; line-height: 1.4; }
  
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 275px;
}
  
  /* Navigation mobile fixes */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
  
  /* Cards mobile optimization */
  .card-custom, .service-card, .review-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team section mobile */
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .contact-info {
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  /* Price cards mobile */
  .price-value {
    font-size: 2rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  /* Feature icons mobile */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Button adjustments */
  .btn-primary-custom, .btn-outline-primary-custom {
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
  }
  
  .footer .col-md-3, .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 75vh;
  }
  
  /* Cards in rows */
  .service-card, .review-card {
    margin-bottom: 2rem;
  }
  
  /* Team grid adjustment */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Contact form improvements */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-item img {
    height: 220px;
  }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section tablet */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Service cards tablet layout */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team layout tablet */
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  /* Contact form tablet */
  .contact-form {
    padding: 2.5rem 2rem;
  }
  
  /* Gallery tablet */
  .gallery-item img {
    height: 240px;
  }
  
  /* Price cards tablet */
  .price-card {
    margin-bottom: 2rem;
  }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Optimal spacing for large screens */
  .section {
    padding: 4rem 0;
  }
  
  /* Hero optimal sizing */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Gallery desktop */
  .gallery-item img {
    height: 260px;
  }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
  /* Maximum section padding */
  .section {
    padding: 5rem 0;
  }
  
  /* Full hero height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Optimal gallery sizing */
  .gallery-item img {
    height: 280px;
  }
  
  /* Large screen optimizations */
  .container {
    max-width: 1140px;
  }
}

/* ===== LANDSCAPE MOBILE SPECIFIC ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* ===== HIGH DPI / RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .hero-image img, .team-member img, .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transform effects */
  .card-custom:hover, .service-card:hover, .price-card:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover {
    transform: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Print-friendly styles */
  *, *::before, *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar, .footer, .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== MOBILE-SPECIFIC TOUCH OPTIMIZATION ===== */
@media (max-width: 768px) {
  /* Larger touch targets for mobile */
  .btn, .nav-link, .form-control {
    min-height: 44px;
  }
  
  /* Prevent zoom on form focus */
  input[type="text"], input[type="email"], input[type="tel"], textarea {
    font-size: 16px;
  }
  
  /* Mobile scroll optimization */
  .container-fluid {
    overflow-x: hidden;
  }
  
  /* Sticky header on mobile */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* GPU acceleration for smooth animations */
.card-custom, .service-card, .price-card, .btn-primary-custom {
  transform: translateZ(0);
  will-change: transform;
}

/* Optimize background images for mobile */
@media (max-width: 768px) {
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile for performance */
  }
}

