/* TechTonic Services - Responsive Styles */
/* Mobile-first responsive design with organized breakpoints */

/* ===== MOBILE FIRST (Base styles are in main CSS) ===== */

/* ===== MOBILE RESPONSIVE (max-width: 767px) ===== */
@media (max-width: 767px) {
  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
  }

  /* Hide navigation menu by default on mobile */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }

  /* Show navigation menu when active */
  .nav-menu.active {
    left: 0;
  }

  /* Mobile menu user info */
  .user-info {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
  }

  /* Mobile menu items container */
  .mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Mobile menu links */
  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
  }

  .mobile-menu-link:hover,
  .mobile-menu-link.active {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary-blue);
  }

  /* Mobile logout button */
  .logout-btn {
    margin-top: auto;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: inherit;
    cursor: pointer;
    color: #ef4444;
  }

  /* Dashboard Layout Improvements */
  .dashboard-layout {
    flex-direction: column;
    padding: 1rem;
  }

  /* Show navigation menu when open */
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile navigation links */
  .nav-link {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0;
    justify-content: flex-start;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    transform: none;
    border-left: 4px solid var(--primary-blue);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===== MOBILE RESPONSIVE (max-width: 480px) ===== */
@media (max-width: 480px) {
  body {
    padding-top: 30px;
  }

  .main-header {
    height: auto;
    padding: 0.5rem 0;
  }

  .header-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .site-logo {
    height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  /* Dashboard Components */
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Table Responsiveness */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .table {
    min-width: 650px;
  }

  /* Form Components */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Button Improvements */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  /* Status and Priority Badges */
  .status-badge,
  .priority-badge {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Mobile navigation is handled by the mobile-first media query above */

  .main-container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1rem 0;
  }

  .page-layout {
    padding: 1rem;
  }

  .hero-section {
    padding: 3rem 1rem;
    margin: 1rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .welcome-section {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .welcome-section h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .welcome-section p {
    font-size: 0.95rem;
  }

  .cta-section {
    margin: 1.5rem 0.5rem;
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: 280px;
  }

  .service-title {
    font-size: 1.4rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .table th, .table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
  }

  .modal-content {
    padding: 1.5rem;
    max-width: 95%;
    margin: 5% auto;
  }

  .contact-item {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .member-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .member-name {
    font-size: 1rem;
  }

  .member-role {
    font-size: 0.85rem;
  }

  .member-description {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer h3 {
    font-size: 1.2rem;
  }

  .footer p {
    font-size: 0.85rem;
  }

  .container {
    padding: 0 0.5 0rem;
  }
}

/* ===== TABLET RESPONSIVE (max-width: 768px) ===== */
@media (max-width: 768px) and (min-width: 481px) {
  body {
    padding-top: 40px;
  }

  .main-header {
    height: auto;
    padding: 0.5rem 0;
  }

  .header-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  /* Tablet navigation remains horizontal */
  .hamburger-menu {
    display: none;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .nav-link {
    width: calc(50% - 0.75rem);
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .main-container {
    padding: 0 1.5rem;
  }

  .main-content {
    padding: 1.5rem 0;
  }

  .page-layout {
    padding: 1.5rem;
  }

  .hero-section {
    padding: 4rem 1.5rem;
    margin: 1.5rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.15rem;
  }

  .welcome-section {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    max-width: 100%;
  }

  .welcome-section h1 {
    font-size: 2.5rem;
  }

  .welcome-section p {
    font-size: 1.1rem;
  }

  .cta-section {
    margin: 2rem 1rem;
    padding: 3rem 2rem;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
    min-height: 320px;
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-description {
    font-size: 1rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .card {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .table th, .table td {
    padding: 0.8rem 0.6rem;
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 2rem;
    max-width: 90%;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-icon {
    font-size: 2rem;
  }
}

/* ===== DESKTOP RESPONSIVE (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  .page-layout {
    max-width: 1400px;
  }

  .welcome-section h1 {
    font-size: 3.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cards-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }

  .btn-group {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }

  .hamburger-menu {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-link {
    width: auto;
    font-size: 1.08rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== LARGE DESKTOP (max-width: 1400px) ===== */
@media (max-width: 1400px) and (min-width: 1201px) {
  .page-layout {
    max-width: 1200px;
  }
  
  .welcome-section h1 {
    font-size: 3rem;
  }
}

/* ===== TABLET LANDSCAPE (1024px - 1200px) ===== */
@media (max-width: 1200px) and (min-width: 769px) {
  .page-layout {
    max-width: 1000px;
    padding: 1.5rem;
  }
  
  .cards-container {
    max-width: 800px;
    gap: 2rem;
  }
  
  .welcome-section {
    max-width: 800px;
    padding: 3rem 2rem;
  }

  .welcome-section h1 {
    font-size: 2.8rem;
  }

  .welcome-section p {
    font-size: 1.15rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
    min-height: 320px;
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-description {
    font-size: 1rem;
  }

  .hero-section {
    margin: 2rem 1rem;
    padding: 5rem 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 1rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.2rem;
  }

  .card {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }
}

/* ===== THEME ADAPTATIONS ===== */
@media (prefers-color-scheme: light) {
  .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
  }

  .glass-dark {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
  }

  .card, .service-card {
    
    border: 1px solid var(--border-color);
  }

  .table th {
    background: rgba(0, 0, 0, 0.02);
  }

  .table tr:hover {
    background: rgba(0, 0, 0, 0.02);
  }

  input, select, textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text);
  }

 

  .status-badge, .priority-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
  }
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
  }

  .glass-dark {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
  }

  .card, .service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
  }

  .table th {
    background: rgba(255, 255, 255, 0.05);
  }

  .table tr:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text);
  }

  .modal-content {
    background: rgba(30, 41, 59, 0.95);
  }

  .status-badge, .priority-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
  }
}