/*
================================================================================
|                                                                              |
|                    RESPONSIVE DESIGN & UI IMPROVEMENTS                       |
|                         Awesome Soft Solutions                               |
|                                                                              |
================================================================================
*/

/* ==========================================================================
   GLOBAL RESPONSIVE FIXES
   ========================================================================== */

/* Ensure proper box-sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   NAVIGATION RESPONSIVE FIXES
   ========================================================================== */



/* ==========================================================================
   HERO SECTION RESPONSIVE FIXES
   ========================================================================== */

.wpo-hero-section-1 {
  padding: 40px 0 60px;
}

@media (max-width: 991px) {
  .wpo-hero-section-1 {
    padding: 30px 0 40px;
  }
  
  .wpo-hero-section-1 .row {
    flex-direction: column-reverse;
  }
  
  .wpo-hero-section-text {
    text-align: center;
    margin-top: 30px;
  }
  
  .wpo-hero-title h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .wpo-hero-subtitle p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .btns .btn {
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .wpo-hero-title h2 {
    font-size: 1.8rem;
  }
  
  .wpo-hero-title-top span {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .btns .btn {
    width: 180px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   SERVICES SECTION RESPONSIVE FIXES
   ========================================================================== */

.wpo-features-section-s2 {
  padding: 60px 0;
}

@media (max-width: 1199px) {
  .wpo-features-item {
    margin-bottom: 30px;
  }
}

@media (max-width: 991px) {
  .wpo-features-section-s2 {
    padding: 40px 0;
  }
  
  .wpo-features-section-s2 .col-lg-8 {
    margin-bottom: 30px;
  }
  
  .wpo-features-section-s2 h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .wpo-features-item {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 25px;
  }
  
  .wpo-features-icon {
    margin-bottom: 20px;
  }
  
  .wpo-features-text h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .wpo-features-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   ABOUT SECTION RESPONSIVE FIXES
   ========================================================================== */

.wpo-about-section-s2 {
  padding: 60px 0;
}

@media (max-width: 991px) {
  .wpo-about-section-s2 {
    padding: 40px 0;
  }
  
  .wpo-about-section-s2 .row {
    flex-direction: column-reverse;
  }
  
  .wpo-about-wrap {
    margin-top: 30px;
    text-align: center;
  }
  
  .wpo-about-text {
    text-align: center;
  }
  
  .wpo-about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .wpo-about-text ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .wpo-about-text h2 {
    font-size: 1.7rem;
  }
  
  .wpo-about-text span {
    font-size: 1rem;
  }
  
  .wpo-about-text ul {
    padding-left: 20px;
  }
}

/* ==========================================================================
   TEAM SECTION RESPONSIVE FIXES
   ========================================================================== */

.wpo-team-area {
  padding: 60px 0;
}

@media (max-width: 991px) {
  .wpo-team-area {
    padding: 40px 0;
  }
  
  .wpo-section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .wpo-team-item {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .wpo-team-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .wpo-team-content span {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   CONTACT CTA SECTION RESPONSIVE FIXES
   ========================================================================== */

.wpo-contact-cta-section {
  padding: 60px 0;
}

@media (max-width: 991px) {
  .wpo-contact-cta-section {
    padding: 40px 0;
  }
  
  .wpo-contact-cta-section .row {
    text-align: center;
  }
  
  .wpo-contact-cta-text {
    margin-bottom: 30px;
  }
  
  .wpo-contact-cta-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .wpo-contact-cta-text h2 {
    font-size: 1.7rem;
  }
  
  .wpo-contact-cta-text p {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   FOOTER RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 991px) {
  .wpo-upper-footer {
    padding: 60px 0 30px;
  }
  
  .wpo-site-footer .widget {
    margin-bottom: 40px;
    text-align: center;
  }
  
  .wpo-site-footer .about-widget ul {
    justify-content: center;
  }
  
  .wpo-site-footer .link-widget ul {
    text-align: center;
  }
  
  .wpo-site-footer .contact-ft ul li {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .wpo-site-footer .contact-ft ul li {
    font-size: 0.9rem;
    padding-left: 25px;
  }
  
  .wpo-site-footer .contact-ft ul li i {
    font-size: 14px;
  }
}

/* ==========================================================================
   BREADCRUMB RESPONSIVE FIXES
   ========================================================================== */

.wpo-breadcumb-area {
  padding: 20px 0;
}

@media (max-width: 991px) {
  .wpo-breadcumb-area {
    padding: 15px 0;
  }
  
  .wpo-breadcumb-wrap h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .wpo-breadcumb-wrap h2 {
    font-size: 1.5rem;
  }
  
  .wpo-breadcumb-wrap ul {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   BUTTON RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 576px) {
  .theme-btn, .theme-btn-s2 {
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 15px 35px !important;
    font-size: 1rem !important;
  }
  
  .btn-sm {
    padding: 8px 20px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   CONTAINER AND SPACING FIXES
   ========================================================================== */

@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 20px;
  }
  
  .section-padding {
    padding: 30px 0;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* ==========================================================================
   TYPOGRAPHY RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ========================================================================== */

/* Hide elements on mobile */
@media (max-width: 767px) {
  .d-md-none {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
}

/* Text alignment utilities */
@media (max-width: 767px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .text-left-mobile {
    text-align: left !important;
  }
}

/* Margin and padding utilities for mobile */
@media (max-width: 767px) {
  .mb-mobile-20 {
    margin-bottom: 20px !important;
  }
  
  .mt-mobile-20 {
    margin-top: 20px !important;
  }
  
  .p-mobile-15 {
    padding: 15px !important;
  }
}

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

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   ENHANCED TOUCH TARGETS & MOBILE UX
   ======================================== */

@media (max-width: 767px) {
  /* Improve touch targets */
  button, .btn, a, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
  }
  
  button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better form controls */
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
  }
  
  input:focus, textarea:focus, select:focus {
    border-color: var(--primary-orange);
    outline: none;
  }
  
  /* Better link targets */
  a {
    padding: 8px;
    margin: -8px;
    border-radius: 4px;
  }
  
  /* Prevent horizontal scroll */
  .container, .container-fluid {
    overflow-x: hidden;
  }
  
  /* Better image handling */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Optimize text for mobile */
  p, li {
    line-height: 1.6;
    word-wrap: break-word;
  }
}

/* ========================================
   ENHANCED ACCESSIBILITY
   ======================================== */

/* Focus states for keyboard navigation */
button:focus, .btn:focus, a:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--primary-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.3);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-orange);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .wpo-features-item,
  .wpo-team-item,
  .service-card {
    border: 2px solid;
  }
  
  button, .btn {
    border: 2px solid;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .wpo-site-header,
  .wpo-site-footer,
  .btns,
  .theme-btn,
  .theme-btn-s2 {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
}



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

@media (max-width: 768px) {
  /* Optimize animations for mobile */
  * {
    animation-duration: 0.3s !important;
  }
  
  /* Reduce box shadows for better performance */
  .wpo-features-item:hover,
  .wpo-team-item:hover,
  .tech-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  /* Optimize transforms */
  .tech-item:hover,
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

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

@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .mobile-menu ul li a {
    font-size: 18px;
    padding: 8px 16px;
  }
}