/* ==========================================================================
   LogoMark Pro - Responsive CSS File
   ========================================================================== */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile as per requirements */
  @media (prefers-reduced-motion: no-preference) {
    [data-sal] {
      animation: none !important;
      transform: none !important;
      transition: none !important;
    }
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  /* Hero section mobile optimization */
  .hero-section {
    padding-top: 5rem;
    min-height: 100vh;
    text-align: center;
  }
  
  .hero-section .display-4 {
    font-size: 1.8rem;
  }
  
  .hero-section .h4 {
    font-size: 1.1rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-right: 0 !important;
  }
  
  /* Hide decorative elements on mobile */
  .hero-blob-1,
  .hero-blob-2,
  .hero-decorative-shapes {
    display: none;
  }
  
  /* Typography adjustments */
  .h1, h1 { font-size: 1.75rem; }
  .h2, h2 { font-size: 1.5rem; }
  .h3, h3 { font-size: 1.25rem; }
  .h4, h4 { font-size: 1.1rem; }
  .h5, h5 { font-size: 1rem; }
  .h6, h6 { font-size: 0.875rem; }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Section padding adjustments */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Service cards mobile layout */
  .service-image {
    width: 60px;
    height: 60px;
  }
  
  /* Team images smaller on mobile */
  .team-image-container {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps stacked */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number .badge {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Contact form adjustments */
  .contact-form-container {
    padding: 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery .col-lg-3,
  .gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Footer adjustments */
  footer .col-lg-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Additional page specific adjustments */
  .innovation-card,
  .trend-card,
  .practice-item,
  .case-story-card,
  .future-card,
  .privacy-card,
  .terms-card,
  .cookie-item,
  .gdpr-card,
  .compliance-card {
    margin-bottom: 1rem;
  }
  
  /* Icon adjustments */
  .feature-icon,
  .info-icon,
  .future-icon,
  .compliance-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  /* Breadcrumb adjustments */
  .breadcrumb-section {
    padding: 1rem 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .team-image-container {
    width: 130px;
    height: 130px;
  }
  
  .service-image {
    width: 70px;
    height: 70px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section .display-4 {
    font-size: 2.2rem;
  }
  
  .team-image-container {
    width: 140px;
    height: 140px;
  }
  
  /* Adjust grid layouts for tablets */
  .about .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .services .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .pricing .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section .display-4 {
    font-size: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section .display-4 {
    font-size: 3rem;
  }
  
  /* Enhanced hover effects for larger screens */
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }
  
  .service-card:hover {
    transform: translateY(-12px);
  }
  
  .blog-card:hover {
    transform: translateY(-10px);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-section .display-4 {
    font-size: 1.8rem;
  }
  
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images and better quality for high DPI screens */
  .service-image,
  .team-image-container img,
  .blog-card .card-img-top {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .btn,
  footer,
  .hero-decorative-shapes,
  .hero-blob-1,
  .hero-blob-2 {
    display: none !important;
  }
  
  .container {
    max-width: none !important;
    width: auto !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
  
  p, li {
    orphans: 3;
    widows: 3;
  }
  
  .py-5 {
    padding: 1rem 0 !important;
  }
}

/* Dark mode support (if preferred) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    filter: none;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .card {
    border: 1px solid var(--gray);
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover,
  .service-card:hover,
  .blog-card:hover,
  .team-member:hover,
  .review-card:hover,
  .case-study-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments for different screen sizes */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Gallery responsive improvements */
@media (max-width: 767.98px) {
  .gallery .col-lg-3,
  .gallery .col-md-4,
  .gallery .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .gallery .col-lg-3,
  .gallery .col-md-4,
  .gallery .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Timeline responsive adjustments */
@media (max-width: 767.98px) {
  .timeline-item {
    margin-bottom: 1rem;
  }
  
  .timeline-year {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
}

/* Pricing cards responsive */
@media (max-width: 991.98px) {
  .pricing-card .card-header {
    text-align: center;
  }
  
  .price-display {
    text-align: center;
  }
}

/* Contact section responsive */
@media (max-width: 991.98px) {
  .contact-info {
    margin-top: 2rem;
  }
  
  .contact-item {
    margin-bottom: 1rem;
  }
}

/* Blog grid responsive */
@media (max-width: 767.98px) {
  #blog_grid .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Additional responsive utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 767.98px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* Fix for iOS Safari viewport units */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
} 

.hero-section h1 {
    padding-top: 275px;
}