/* General CSS Reset for Responsive Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* General Image Rules */
img {
  max-width: 100%;
  height: auto; /* Maintain aspect ratio */
}

/* Additional Service Cards Responsive */
.service-card {
  min-height: auto;
}

/* Feature Box */
.feature-box {
  max-width: 100%;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Growth section adjustments */
.customer-support .growth {
    display: flex;
    align-items: center;
    gap: 30px;
}

.customer-support .growth-content {
    flex: 1;
}

.customer-support .growth-img {
    flex: 1;
}

.customer-support .growth-img img {
    width: 100%;
    height: auto;
}

/* Team Page */
.achivement-item {
  margin-top: 30px;
}

.team-member {
  margin-bottom: 30px;
}

/* Blog Container */
.blog-container .row {
  margin-bottom: 30px;
}

/* Contact Form */
.project-contact .form-group {
    margin-bottom: 15px;
}

.project-contact .form-group input,
.project-contact .form-group select,
.project-contact .form-group textarea {
    font-size: 1rem;
    padding: 10px;
    width: 100%;
}

.project-contact .contact-image img {
    max-width: 100%;
}

/* Service Details */
.contact-header .right-content img {
  width: 100%;
}

/* Footer */
.footer-content {
    display: flex;
    gap: 30px;
}

.footer p {
    font-size: 14px;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Tablet Breakpoint (768px and below) */
@media (max-width: 768px) {
  .customer-support .growth {
      flex-direction: column;
      gap: 20px;
  }

  .customer-support .growth-content {
      width: 100%;
      text-align: center;
  }

  .customer-support .growth-img {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }

  .feature-box {
    padding: 15px;
    gap: 15px;
  }

  .features-container {
    flex-direction: column;
    gap: 15px;
  }

  .icon {
    width: 60px !important;
    height: 60px !important;
  }

  .achivement-item {
    margin-top: 30px;
  }

  .project-contact h2.service-heading {
      font-size: 1.75rem;
  }

  .project-contact .form-group input,
  .project-contact .form-group select,
  .project-contact .form-group textarea {
      font-size: 1rem;
      padding: 10px;
      width: 100%;
  }

  .contact-header .right-content img {
    width: 70% !important;
  }

  .footer-content {
      flex-direction: column;
      text-align: center;
  }

  .footer p {
      font-size: 12px;
      margin-bottom: 10px;
  }

  .social-icons {
      justify-content: center;
  }
}

/* Mobile Breakpoint (576px and below) */
@media (max-width: 576px) {
  html, body {
    font-size: 14px;
  }

  .feature-box {
    padding: 15px;
    gap: 15px;
  }

  .icon {
    width: 50px !important;
    height: 50px !important;
  }

  .project-contact .form-group input,
  .project-contact .form-group select,
  .project-contact .form-group textarea {
      font-size: 14px;
      padding: 10px;
      width: 100%;
  }

  .project-contact .text-center input[type="submit"] {
      width: 100%;
      padding: 12px;
  }

  .contact-image {
      text-align: center;
      margin-top: 20px;
  }

  .contact-image img {
      max-width: 80%;
  }

  .footer p {
      font-size: 11px;
  }

  .social-icons a {
      font-size: 18px;
      margin-left: 8px;
  }

  /* LOGIN PAGE - MOBILE */
  .auth-body {
    padding: 15px;
  }

  .auth-container {
    max-width: 100%;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .auth-logo img {
    max-height: 40px;
  }

  .auth-tab {
    padding: 10px 12px;
    font-size: 12px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-control {
    font-size: 14px;
    padding: 10px;
  }

  .auth-button {
    font-size: 14px;
    padding: 12px;
  }

  .auth-link {
    font-size: 13px;
  }

  /* DASHBOARD - MOBILE */
  .dashboard-header {
    padding: 2rem 0;
    margin-top: 60px;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-content {
    padding: 1rem 0;
  }

  .stat-card {
    padding: 15px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin: 0 auto;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .dashboard-card {
    margin-bottom: 1.5rem;
  }

  .dashboard-card-header {
    font-size: 1.1rem;
    padding: 15px;
  }

  .dashboard-card-body {
    padding: 15px;
  }

  .list-item {
    padding: 12px;
    flex-direction: column;
  }

  .list-item-title {
    font-size: 14px;
  }

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

  /* ADMIN DASHBOARD - MOBILE */
  .admin-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
    left: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-top: 60px;
  }

  .admin-sidebar.collapsed {
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .admin-sidebar:not(.collapsed) {
    max-height: 400px;
  }

  .sidebar-header {
    margin-bottom: 1rem;
  }

  .sidebar-toggle {
    display: block !important;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
  }

  .sidebar-nav .nav-item {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }

  .sidebar-nav .nav-item i {
    font-size: 16px;
  }

  .admin-content {
    width: 100%;
    padding: 15px;
  }

  .admin-tab-content {
    display: none;
  }

  .admin-tab-content.active {
    display: block;
  }

  .admin-table {
    font-size: 12px;
  }

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

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-body {
    padding: 15px;
  }

  .modal-header {
    padding: 15px;
  }
}

/* TABLET OPTIMIZATIONS (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  /* AUTH PAGES - TABLET */
  .auth-card {
    padding: 35px;
    max-width: 100%;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .auth-tab {
    padding: 11px 15px;
    font-size: 13px;
  }

  .form-control {
    font-size: 15px;
    padding: 11px;
  }

  /* DASHBOARD - TABLET */
  .dashboard-header {
    padding: 2.5rem 0;
    margin-top: 70px;
  }

  .dashboard-title {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 18px;
    gap: 14px;
  }

  .stat-icon {
    width: 55px;
    height: 55px;
  }

  .stat-value {
    font-size: 28px;
  }

  .dashboard-card-header {
    font-size: 1.2rem;
  }

  /* ADMIN DASHBOARD - TABLET */
  .admin-sidebar {
    width: 200px;
    height: calc(100vh - 80px);
  }

  .sidebar-nav {
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-nav .nav-item {
    flex: none;
    padding: 12px 15px;
    font-size: 13px;
  }

  .admin-wrapper {
    margin-left: 200px;
  }

  .admin-content {
    padding: 20px;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px;
  }
}

/* LARGE TABLET / SMALL DESKTOP (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .auth-card {
    max-width: 100%;
  }

  .admin-sidebar {
    width: 220px;
  }

  .admin-wrapper {
    margin-left: 220px;
  }

  .stat-card {
    padding: 20px;
  }

  .dashboard-card {
    margin-bottom: 2rem;
  }
}

/* DESKTOP OPTIMIZATIONS (1025px and above) */
@media (min-width: 1025px) {
  .auth-container {
    max-width: 500px;
  }

  .admin-sidebar {
    width: 250px;
  }

  .admin-wrapper {
    margin-left: 250px;
  }

  .stat-card {
    padding: 25px;
  }

  .dashboard-title {
    font-size: 2.5rem;
  }
}

/* EXTRA SMALL DEVICES (320px and below) */
@media (max-width: 320px) {
  .auth-card {
    padding: 20px 15px;
  }

  .auth-title {
    font-size: 1.25rem;
  }

  .auth-tab {
    padding: 8px 10px;
    font-size: 11px;
  }

  .form-control {
    font-size: 13px;
    padding: 8px;
  }

  .stat-card {
    flex-direction: column;
    padding: 12px;
  }

  .stat-value {
    font-size: 20px;
  }

  .dashboard-title {
    font-size: 1.25rem;
  }
}