/* ==================================
ENHANCED MOBILE RESPONSIVENESS 
Mobile-First Approach for All Devices
=================================== */

/* TABLET & SMALL DEVICES (768px and below) */
@media (max-width: 768px) {
  /* SPACING & LAYOUT */
  section {
    padding: 40px 0;
  }

  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* TYPOGRAPHY - Reduce font sizes for readability */
  h1 { font-size: 28px; margin-bottom: 15px; }
  h2 { font-size: 22px; margin-bottom: 12px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  p { font-size: 15px; line-height: 1.5; }

  /* HERO SECTION */
  .hero, .hero-home, .about-hero, .jobs-hero {
    padding: 60px 20px !important;
  }

  .hero__title, .hero-home h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero__subtitle, .hero-home p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero__search, .job-search {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    max-width: 100%;
  }

  .hero__icons,
  .floating-icon {
    display: none;
  }

  /* NAVIGATION */
  .header__inner {
    padding: 12px 0;
  }

  .nav__menu {
    width: min(90vw, 280px);
    max-height: 70vh;
    overflow-y: auto;
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
  }

  .nav--open .nav__menu {
    left: 0;
  }

  .nav__item a {
    padding: 12px 0;
    display: block;
    font-size: 16px;
  }

  /* GRIDS - Convert to single column */
  .dashboard-grid,
  .applications-grid,
  .clients-grid,
  .values-grid,
  .why-grid,
  .process-grid,
  .stats-grid,
  .services-grid,
  .about-grid,
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .job-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .job-sidebar {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CARDS & BOXES */
  .job-card,
  .card,
  .dashboard-card,
  .service-card,
  .profile-box,
  .feature,
  .value-card,
  .stat-box {
    padding: 20px;
  }

  .job-card:hover,
  .card:hover,
  .dashboard-card:hover,
  .service-card:hover {
    transform: translateY(-3px);
  }

  /* FORMS */
  .contact-form form,
  .profile-box form,
  .filter-form,
  .jobs-search {
    gap: 10px;
    flex-direction: column;
  }

  .contact-form input,
  .contact-form textarea,
  .profile-box input,
  .jobs-search input,
  .jobs-search select,
  .job-search input {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
  }

  /* BUTTONS */
  .button,
  .apply-button,
  .cta__btn,
  .job-search button,
  .btn,
  .apply-btn {
    padding: 12px 20px;
    font-size: 15px;
    width: 100%;
    min-height: 44px;
    display: block;
  }

  .cta-buttons,
  .job-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* TABLE RESPONSIVENESS */
  .applications-table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .applications-table th,
  .applications-table td {
    padding: 8px;
  }

  /* TIMELINE - Stack vertically */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    margin-left: 0;
    flex-direction: row;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline-content {
    width: calc(100% - 90px);
    margin-left: 20px;
    padding: 15px;
  }

  .timeline-year {
    min-width: 60px;
    font-size: 12px;
    padding: 8px;
  }

  /* TESTIMONIALS */
  .testimonial-card {
    min-width: 100%;
  }

  /* SOCIAL FLOAT WIDGET - Hide on tablet */
  .social-float {
    opacity: 0;
    pointer-events: none;
  }

  /* VIDEO GALLERY */
  .video-card iframe {
    height: 200px;
  }

  /* PARALLAX - Disable on mobile for better performance */
  .parallax-section {
    background-attachment: scroll !important;
    padding: 80px 20px;
  }

  /* IMAGES */
  .about-intro-img img,
  .image-responsive {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
  }

  /* FOOTER */
  .footer {
    padding: 40px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer a,
  .footer__bottom {
    font-size: 14px;
  }

  /* TOUCH-FRIENDLY TARGETS (44px minimum) */
  input,
  select,
  textarea,
  button,
  a.button,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  /* STAT NUMBERS */
  .counter,
  .stat__number {
    font-size: 28px;
  }

  /* JOB METADATA */
  .job-meta {
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
  }

  /* STATUS BADGES */
  .status {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    margin-top: 5px;
  }

  /* MODALS & OVERLAYS */
  .modal-dialog,
  .modal-content {
    width: 90vw;
    margin: 20px auto;
  }

  /* HEADER LOGO */
  .header__logo {
    font-size: 18px;
  }

  .header__logo img {
    height: 35px;
  }

  /* SEARCH BOX */
  .topbar {
    display: none;
  }
}

/* SMALL MOBILE DEVICES (480px and below) */
@media (max-width: 480px) {
  /* EXTREME SPACING REDUCTION */
  section {
    padding: 30px 0;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }

  /* TYPOGRAPHY - Further reduction for small screens */
  h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  h4 {
    font-size: 14px;
  }

  p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* HERO */
  .hero,
  .hero-home,
  .about-hero,
  .jobs-hero {
    padding: 40px 10px !important;
  }

  .hero__title,
  .hero-home h1 {
    font-size: 18px;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  /* EXTREME PADDING REDUCTION */
  .job-card,
  .card,
  .dashboard-card,
  .service-card,
  .profile-box,
  .feature,
  .value-card {
    padding: 15px;
    margin-bottom: 10px;
  }

  /* BUTTON SIZING */
  .button,
  .apply-button,
  .btn {
    padding: 10px 15px;
    font-size: 14px;
    min-height: 40px;
  }

  /* GRID REDUCTION */
  .jobs-grid,
  .services-grid,
  .dashboard-grid {
    gap: 10px;
  }

  /* TABLE OPTIMIZATION */
  .applications-table {
    font-size: 11px;
  }

  .applications-table th,
  .applications-table td {
    padding: 6px;
  }

  /* INPUT HEIGHT */
  input,
  select,
  textarea,
  button {
    min-height: 40px;
    font-size: 16px;
    padding: 10px;
  }

  /* TIMELINE OPTIMIZATION */
  .timeline-year {
    font-size: 11px;
    padding: 4px 6px;
    min-width: 50px;
  }

  .timeline-content {
    padding: 12px;
    width: calc(100% - 70px);
    margin-left: 10px;
  }

  .timeline::before {
    left: 15px;
  }

  /* STAT NUMBERS */
  .counter,
  .stat__number {
    font-size: 22px;
  }

  /* FOOTER */
  .footer {
    padding: 25px 0;
  }

  .footer__grid {
    gap: 15px;
  }

  .footer {
    font-size: 13px;
  }

  /* ABOUT IMAGES */
  .about-intro-img img {
    max-height: 180px;
  }

  /* NAV MENU */
  .nav__menu {
    width: 100vw;
    max-width: 280px;
    top: 60px;
  }

  /* MODALS */
  .modal-dialog {
    width: 95vw;
  }

  /* HEADER */
  .header {
    padding: 10px 0;
  }

  .header__inner {
    padding: 8px 0;
  }

  /* HIDE LOW-PRIORITY ELEMENTS */
  .logo-carousel {
    display: none;
  }

  /* APPLY BOX */
  .apply-box {
    padding: 15px;
  }

  .apply-button {
    width: 100%;
  }

  /* CONTACT SECTION */
  .contact-info {
    padding: 15px;
  }

  /* JOB SEARCH FOCUS */
  .job-search {
    padding: 8px;
  }

  .job-search input {
    font-size: 16px;
  }
}

/* LANDSCAPE/TABLET MODE (Height < 600px, Width > 768px) */
@media (max-height: 600px) and (min-width: 769px) {
  section {
    padding: 25px 0;
  }

  .hero,
  .hero-home,
  .about-hero {
    padding: 30px 20px !important;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .button {
    padding: 8px 16px;
  }
}

/* EXTRA SMALL (320px phones) */
@media (max-width: 360px) {
  .container {
    width: 100%;
    padding: 0 8px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 16px;
  }

  p {
    font-size: 13px;
  }

  .button {
    padding: 8px 12px;
    font-size: 13px;
  }

  input,
  select,
  textarea {
    padding: 8px;
    font-size: 14px;
  }

  .job-card,
  .card {
    padding: 12px;
  }

  section {
    padding: 20px 0;
  }
}

/* LARGE DESKTOPS (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .dashboard-grid,
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  section {
    padding: 120px 0;
  }
}
