/* Enhanced Responsive Styles for Mobile and Tablet */

/* Extra Small Devices (320px and up) */
@media (min-width: 320px) and (max-width: 575.98px) {
  /* Hero Section */
  .hero-overlay {
    position: relative;
    height: auto;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    margin-bottom: 15px;
    margin-right: 0 !important;
  }
  
  .hero-stats {
    margin-top: 30px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .section-title::after {
    width: 50px;
    height: 3px;
  }
  
  /* Slider */
  .carousel-item {
    height: 300px;
  }
  
  .slider-title {
    font-size: 1.4rem;
  }
  
  .slider-description {
    font-size: 0.9rem;
  }
  
  .slider-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  /* About PEC */
  .about-pec {
    padding: 40px 0;
  }
  
  /* Facilities */
  .facilities {
    padding: 40px 0;
  }
  
  .facility-card {
    margin-bottom: 20px;
  }
  
  /* Products Slider */
  .products-slider {
    padding: 40px 0;
  }
  
  .product-item {
    width: 260px;
    margin-right: 15px;
  }
  
  .product-item .card-img-top {
    height: 150px;
  }
  
  /* Clients Slider */
  .clients-slider {
    padding: 40px 0;
  }
  
  .client-item {
    width: 140px;
  }
  
  .client-logo {
    height: 100px;
  }
  
  .client-logo img {
    max-height: 60px;
  }
  
  /* About Us */
  .about-us {
    padding: 40px 0;
  }
  
  .team-member-photo {
    height: 200px;
  }
  
  .team-member-placeholder {
    height: 200px;
  }
  
  /* Footer */
  footer .col-md-4 {
    margin-bottom: 30px;
  }
  
  /* Contact Page */
  .contact-form, .contact-info {
    margin-bottom: 30px;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-overlay {
    position: relative;
    height: auto;
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    margin-bottom: 15px;
    margin-right: 0 !important;
  }
  
  .hero-stats {
    margin-top: 40px;
    padding: 25px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }
  
  .section-title::after {
    width: 60px;
  }
  
  /* Slider */
  .carousel-item {
    height: 350px;
  }
  
  .slider-title {
    font-size: 1.6rem;
  }
  
  /* About PEC */
  .about-pec {
    padding: 50px 0;
  }
  
  /* Facilities */
  .facilities {
    padding: 50px 0;
  }
  
  /* Products Slider */
  .products-slider {
    padding: 50px 0;
  }
  
  .product-item {
    width: 280px;
  }
  
  .product-item .card-img-top {
    height: 180px;
  }
  
  /* Clients Slider */
  .clients-slider {
    padding: 50px 0;
  }
  
  .client-item {
    width: 160px;
  }
  
  .client-logo {
    height: 110px;
  }
  
  /* About Us */
  .about-us {
    padding: 50px 0;
  }
  
  .team-member-photo {
    height: 250px;
  }
  
  .team-member-placeholder {
    height: 250px;
  }
  
  /* Footer */
  footer .col-md-4 {
    margin-bottom: 25px;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-overlay {
    position: relative;
    height: auto;
    padding: 100px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons .btn {
    width: auto;
    margin-bottom: 0;
  }
  
  .hero-stats {
    margin-top: 50px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Slider */
  .carousel-item {
    height: 450px;
  }
  
  .slider-title {
    font-size: 2rem;
  }
  
  /* About PEC */
  .about-pec {
    padding: 70px 0;
  }
  
  /* Facilities */
  .facilities {
    padding: 70px 0;
  }
  
  /* Products Slider */
  .products-slider {
    padding: 70px 0;
  }
  
  .product-item {
    width: 300px;
  }
  
  /* Clients Slider */
  .clients-slider {
    padding: 70px 0;
  }
  
  .client-item {
    width: 180px;
  }
  
  /* About Us */
  .about-us {
    padding: 70px 0;
  }
  
  /* Contact Page */
  .contact-form, .contact-info {
    margin-bottom: 30px;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  /* Slider */
  .carousel-item {
    height: 550px;
  }
  
  /* Products Slider */
  .product-item {
    width: 280px;
  }
  
  /* Clients Slider */
  .client-item {
    width: 190px;
  }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  /* Slider */
  .carousel-item {
    height: 600px;
  }
  
  /* Products Slider */
  .product-item {
    width: 300px;
  }
  
  /* Clients Slider */
  .client-item {
    width: 200px;
  }
}

/* Admin Dashboard */
@media (max-width: 767.98px) {
  .dashboard-cards .col-lg-3 {
    margin-bottom: 20px;
  }
  
  .dashboard-cards .card {
    margin-bottom: 0;
  }
  
  .dashboard-cards .card-body {
    padding: 15px;
  }
  
  .dashboard-cards .card-title {
    font-size: 1.5rem;
  }
  
  .recent-enquiries-table th,
  .recent-enquiries-table td {
    padding: 8px;
    font-size: 0.85rem;
  }
  
  .recent-enquiries-table th:nth-child(4),
  .recent-enquiries-table td:nth-child(4),
  .recent-enquiries-table th:nth-child(5),
  .recent-enquiries-table td:nth-child(5) {
    display: none;
  }
  
  .card-header {
    padding: 12px 15px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .dashboard-cards .col-lg-3 {
    margin-bottom: 15px;
  }
  
  .dashboard-cards .card-body {
    padding: 12px;
  }
  
  .dashboard-cards .card-title {
    font-size: 1.3rem;
  }
  
  .recent-enquiries-table th:nth-child(3),
  .recent-enquiries-table td:nth-child(3) {
    display: none;
  }
  
  .table-responsive {
    font-size: 0.8rem;
  }
  
  .h2, h2 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .nav-link {
    padding: 15px 25px !important;
  }
  
  .btn {
    padding: 12px 25px !important;
    min-height: 48px;
  }
  
  .form-control, .form-select {
    min-height: 48px;
    padding: 12px 15px;
  }
  
  /* Reduce animations */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-overlay {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) {
  .hero-overlay {
    padding: 80px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    margin-bottom: 15px;
    margin-right: 0 !important;
  }
}