/* CloudDash - Responsive Styles */

/* Mobile-first responsive design */
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile as per requirements */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  .display-4 {
    font-size: 1.84rem;
  }
  
  h2 {
    font-size: 1.61rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-shapes {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.16rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #c9cfe1;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Button adjustments */
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.65rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Section spacing */
  .py-5 {
    padding-top: 2.59rem;
    padding-bottom: 2.61rem;
  }
  
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  /* Process numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.29rem;
  }
  
  /* Team cards */
  #team .card-img-top {
    height: 200px;
  }
  
  /* Contact form */
  #contact .form-control {
    padding: 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Footer */
  #footer .container > .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  #footer .container > .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  
  /* Gallery grid */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* FAQ cards */
  #faq .card {
    margin-bottom: 1rem;
  }
  
  /* Services grid */
  #services .col-md-6:not(:last-child) {
    margin-bottom: 1.62rem;
  }
  
  /* Features spacing */
  #f4e7batures .col-md-6:not(:last-child) {
    margin-bottom: 2rem;
  }
  
  /* About features */
  #about .col-md-6:not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.66rem;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  .hero-shapes {
    opacity: 0.5;
  }
  
  .card-img-top {
    height: 190px;
  }
  
  #team .card-img-top {
    height: 220px;
  }
  
  .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .display-4 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.84rem;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .card-img-top {
    height: 195px;
  }
  
  #team .card-img-top {
    height: 240px;
  }
  
  .py-5 {
    padding-top: 3.57rem;
    padding-bottom: 3.72rem;
  }
  
  /* Tablet specific adjustments */
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.52rem;
  }
}

/* Large devices (desktops, 994px and up) */
@media (min-width: 995px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  #team .card-img-top {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .display-4 {
    font-size: 2.55rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.35rem;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  body {
    padding-top: 60px;
    overflow-x: hidden;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top,
  #gallery img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode preference */

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .hero-shapes {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  .py-5 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .card {
    border: 1px solid #cbc0c1;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Override any animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
  .card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .btn:hover {
    transform: none;
  }
  
  #gallery img:hover {
    transform: none;
  }
}

/* Specific mobile menu styling - no custom hamburger as per requirements */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(27, 61, 238, 0.25);
  }
  
  .navbar-collapse {
    border-top: 1px solid #d9dce0;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Ensure proper text scaling */
@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
  .breadcrumb-item img {
    height: 14px;
  }
}

/* Contact section responsive */
@media (max-width: 767.98px) {
  #contact .row > [class*="col-"]:not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Services cards responsive */
@media (max-width: 575.98px) {
  #services .card-body {
    padding: 1rem;
  }
  
  #services .card-title {
    font-size: 1rem;
  }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
  .timeline-date {
    font-size: 0.85rem;
  }
} 