/* TeDaCo Mobile Optimization CSS */
/* Enhanced mobile experience for all devices */

/* ===== MOBILE-FIRST IMPROVEMENTS ===== */

/* Touch-friendly navigation */
@media (max-width: 991px) {
  .navbar-mobile a {
    padding: 15px 20px !important;
    font-size: 16px !important;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .mobile-nav-toggle {
    font-size: 32px !important;
    padding: 10px;
    min-width: 48px;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Hero section mobile optimization */
@media (max-width: 768px) {
  #hero {
    height: auto !important;
    min-height: 100vh;
    padding: 80px 0 40px 0 !important;
  }
  
  #hero .intro-info h2 {
    font-size: 28px !important;
    line-height: 1.3;
    margin-bottom: 20px !important;
  }
  
  #hero .intro-info p {
    font-size: 16px !important;
    line-height: 1.5;
    margin-bottom: 25px !important;
  }
  
  #hero .btn-get-started,
  #hero .btn-services {
    font-size: 14px !important;
    padding: 12px 24px !important;
    margin: 5px !important;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Services section mobile optimization */
@media (max-width: 768px) {
  #services .box {
    margin-bottom: 30px !important;
    padding: 25px 20px !important;
  }
  
  #services .box .icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 20px !important;
  }
  
  #services .box h4 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
  }
  
  #services .box p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* About section mobile optimization */
@media (max-width: 768px) {
  #about .content h3 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
  }
  
  #about .content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  
  #about .content ul li {
    font-size: 14px !important;
    padding: 8px 0 !important;
  }
}

/* Contact form mobile optimization */
@media (max-width: 768px) {
  #contact .form-group {
    margin-bottom: 20px !important;
  }
  
  #contact input,
  #contact textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 15px !important;
    min-height: 48px !important;
  }
  
  #contact button[type="submit"] {
    width: 100% !important;
    font-size: 16px !important;
    padding: 15px !important;
    min-height: 48px !important;
  }
}

/* Footer mobile optimization */
@media (max-width: 768px) {
  #footer .footer-top {
    padding: 40px 0 !important;
  }
  
  #footer .footer-top .footer-info,
  #footer .footer-top .footer-links,
  #footer .footer-top .footer-contact {
    margin-bottom: 30px !important;
  }
  
  #footer .social-links a {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    margin: 0 5px 10px 0 !important;
  }
}

/* ===== ENHANCED TOUCH INTERACTIONS ===== */

/* Larger touch targets */
@media (max-width: 768px) {
  .btn,
  button,
  a.btn,
  input[type="submit"],
  input[type="button"] {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  
  /* Social media links */
  .social-links a {
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ===== IMPROVED READABILITY ===== */

@media (max-width: 768px) {
  /* Better text spacing */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }
  
  p {
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
  }
  
  /* Improved section spacing */
  section {
    padding: 40px 0 !important;
  }
  
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }
  
  /* Disable complex animations on mobile */
  [data-aos] {
    animation-duration: 0.5s !important;
  }
  
  /* Optimize hover effects for touch */
  .box:hover,
  .card:hover {
    transform: translateY(-2px) !important;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */

@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    height: auto !important;
    min-height: 80vh !important;
    padding: 60px 0 30px 0 !important;
  }
  
  #hero .intro-info h2 {
    font-size: 24px !important;
  }
  
  .navbar-mobile ul {
    top: 45px !important;
  }
}

/* ===== VERY SMALL SCREENS (320px and below) ===== */

@media (max-width: 320px) {
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  #hero .intro-info h2 {
    font-size: 24px !important;
  }
  
  #hero .intro-info p {
    font-size: 14px !important;
  }
  
  .btn,
  button {
    font-size: 14px !important;
    padding: 10px 16px !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

@media (max-width: 768px) {
  /* Focus indicators for keyboard navigation */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus {
    outline: 2px solid #1bb1dc !important;
    outline-offset: 2px !important;
  }
  
  /* Skip link for screen readers */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1bb1dc;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
  }
  
  .skip-link:focus {
    top: 6px;
  }
}

/* ===== LOADING OPTIMIZATIONS ===== */

/* Optimize images for mobile */
@media (max-width: 768px) {
  img {
    height: auto !important;
    max-width: 100% !important;
  }
  
  /* Lazy loading placeholder */
  .lazy-loading {
    background: #f0f0f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .navbar-mobile ul {
    background-color: #2d2b46 !important;
  }
  
  .navbar-mobile a {
    color: #ffffff !important;
  }
  
  .navbar-mobile a:hover {
    color: #1bb1dc !important;
  }
}
