/* Responsive Styles for Hadaya CO Website */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

/* Tablets */
@media (max-width: 992px) {
  /* Hero Section */
  .slider_section {
    min-height: 70vh;
  }

  .slider_section .detail-box,
  .hero-content {
    padding: 60px 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* Stats Section */
  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  /* Service Cards */
  .service-card-body {
    padding: 25px;
  }

  /* Partners */
  .partner-logo {
    margin-bottom: 20px;
  }

  /* Info Section */
  .info_main_row > div:nth-child(1),
  .info_main_row > div:nth-child(2) {
    margin-bottom: 30px;
  }

  /* Page Headers */
  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  /* About Page Timeline */
  .timeline-year {
    width: 120px;
    height: 120px;
    font-size: 1.5rem;
  }

  .timeline-item::before {
    left: 59px;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  /* Contact Cards */
  .contact-card,
  .email-card {
    margin-bottom: 20px;
  }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
  /* Typography */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    width: 100%;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* Hero Button */
  .hero-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  /* Stats Section */
  .stats-section {
    padding: 60px 0;
  }

  .stat-item {
    padding: 20px 10px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Services Section */
  .services-showcase {
    padding: 60px 0;
  }

  .service-card-img {
    height: 220px;
  }

  .service-card-body h3 {
    font-size: 1.3rem;
  }

  /* Partners Section */
  .partners-section {
    padding: 60px 0;
  }

  .partner-logo img {
    max-height: 60px;
  }

  /* About Page */
  .about_section {
    padding: 60px 0;
  }

  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-map iframe {
    height: 300px;
  }

  /* Features Section */
  .features-section {
    padding: 60px 0;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  /* Timeline Section */
  .timeline-section {
    padding: 60px 0;
  }

  .timeline-item {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-year {
    width: 100px;
    height: 100px;
    font-size: 1.3rem;
    margin: 0 auto;
  }

  .timeline-content {
    width: 100%;
  }

  /* Services Page */
  .services-section {
    padding: 60px 0;
  }

  .service-card-title {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Gallery Page */
  .gallery-section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item img {
    height: 250px;
  }

  .gallery-item::after {
    height: 250px;
  }

  .nav-tabs {
    gap: 10px;
  }

  .nav-tabs .nav-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Modal Navigation */
  .modal-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
    padding: 10px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-close {
    top: -40px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  /* Contact Page */
  .contact_section {
    padding: 60px 0;
  }

  .contact-form-container {
    padding: 30px 20px;
  }

  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 40px;
  }

  /* Info Section */
  .info_section {
    padding: 50px 0 20px;
  }

  .info_main_row > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
  }

  .info_contact {
    align-items: center;
  }

  .info_section .social_box {
    justify-content: center;
    margin-top: 20px;
  }

  /* Scroll to Top */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  /* Hero Section */
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  /* Page Headers */
  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* Stats */
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title h2::after {
    width: 60px;
  }

  /* Service Cards */
  .service-card-body {
    padding: 20px;
  }

  .service-card-title {
    font-size: 1.2rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  /* Partners */
  .partner-logo img {
    max-height: 50px;
  }

  /* About Page */
  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-map iframe {
    height: 250px;
  }

  /* Feature Cards */
  .feature-card h3 {
    font-size: 1.2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  /* Timeline */
  .timeline-year {
    width: 90px;
    height: 90px;
    font-size: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content p {
    font-size: 0.95rem;
  }

  /* Gallery */
  .gallery-item img {
    height: 220px;
  }

  .gallery-item::after {
    height: 220px;
  }

  .nav-tabs .nav-link {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .gallery-caption h3 {
    font-size: 1rem;
  }

  /* Contact */
  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .email-card {
    padding: 30px 20px;
  }

  .email-card h3 {
    font-size: 1.2rem;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .submit-btn {
    font-size: 1rem;
  }

  /* Modal */
  .modal-content-wrapper {
    max-width: 95%;
  }

  .modal-caption {
    font-size: 1rem;
    padding: 15px;
  }

  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* Info Section */
  .info_section h4 {
    font-size: 1.2rem;
  }

  .info_detail p {
    font-size: 0.9rem;
  }

  .info_contact a {
    font-size: 0.9rem;
  }

  .social_box a {
    width: 40px;
    height: 40px;
  }

  /* Footer */
  .footer_section p {
    font-size: 0.85rem;
    padding: 20px 0;
  }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .service-card-title {
    font-size: 1.1rem;
  }

  .timeline-year {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
  }

  .nav-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .page-header {
    padding: 80px 0 50px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .stats-section,
  .services-showcase,
  .partners-section,
  .about_section,
  .features-section,
  .timeline-section,
  .gallery-section,
  .contact_section {
    padding: 50px 0;
  }

  .modal-content-wrapper {
    max-height: 80vh;
  }

  .modal-image {
    max-height: 80vh;
  }
}

/* High Resolution Screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap target sizes */
  .nav-tabs .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  .learn-more-btn,
  .hero-btn,
  .submit-btn {
    min-height: 44px;
  }

  .gallery-item {
    -webkit-tap-highlight-color: transparent;
  }

  /* Disable hover effects on touch devices */
  .service-card:hover,
  .gallery-item:hover,
  .partner-logo:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .header_section,
  .scroll-to-top,
  .custom_menu-btn,
  .social_box,
  .hero-btn,
  .learn-more-btn,
  .submit-btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
  }

  .page-header {
    background: white;
    color: black;
    padding: 20px 0;
  }

  .info_section {
    background: white;
    color: black;
  }
}
