/* Bursalazer Elektrik - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }
  
  .section-sm {
    padding: 30px 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-friendly minimum size */
  }
  
  /* Touch-friendly spacing */
  .navbar-nav .nav-link {
    padding: 1rem !important;
    margin: 0.5rem 0 !important;
  }
  
  /* Improved text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better form controls */
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Optimized hero section */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-top: 8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  /* Service cards optimization */
  .service-card .card-body {
    padding: 1.5rem 1rem;
  }
  
  .service-icon {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Contact form improvements */
  .contact-form-container,
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Gallery optimizations */
  .gallery-item img {
    height: 180px;
  }
  
  .gallery-filter .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .service-card .card-body {
    padding: 1.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
    margin-top: 8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  /* Tablet-specific optimizations */
  .service-card .card-body {
    padding: 2rem;
  }
  
  .about-content {
    padding: 2rem;
  }
  
  .contact-form-container,
  .contact-info {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section {
    padding: 70px 0;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-logo,
  .navbar-brand img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 11rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-stats {
    margin-bottom: 1rem;
  }
  
  .hero-features {
    margin-top: 1rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-buttons,
  .contact-form,
  .gallery-filter,
  .modal,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .hero-section {
    background: none !important;
    color: #000 !important;
  }
  
  .contact-section {
    background: none !important;
    color: #000 !important;
  }
  
  .about-content,
  .contact-info {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image img {
    animation: none !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #2a2a2a;
    --border-color: #404040;
  }
}