/* Responsive CSS for Alltake Website */

/* General responsive styles */
img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .container {
    /*padding-right: 10px;*/
    /*padding-left: 10px;*/
  }
  
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h5, .h5 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  .vh-70, .vh-50, .vh-40, .vh-30 {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .container .ScaleHeading {
    font-size: 2.5rem;
  }
  
  /* Improve video background on mobile */
  .video-bg {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Improve text contrast on video background */
  .vh-70 .container {
    /*background-color: rgba(255, 255, 255, 0.7);*/
    padding: 20px;
    border-radius: 5px;
  }
  
  /* Hide budget calculator button on mobile */
  .budgetproposal-button {
    display: none;
  }
  
  /* Adjust sidebar for mobile */
  .sidebar {
    display: none;
  }
  
  /* Timeline adjustments */
  .timeline ul li div {
    width: calc(100vw - 91px);
  }
  
  .timeline ul li:nth-child(even) div {
    left: 45px;
  }
  
  .timeline ul li:nth-child(even) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #1c7dc2 transparent transparent;
  }
  
  /* Mobile slider styles moved to logo-slider.css */
  
  /* Improve mobile navigation */
  .navbar-collapse {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Center align text on mobile */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Adjust button sizes */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Fix custom hover effect for mobile */
  .custom-hover:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Small devices (landscape phones, 576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
  .vh-70, .vh-50, .vh-40, .vh-30 {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .container .ScaleHeading {
    font-size: 3rem;
  }
  
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.8rem;
  }
}

/* Medium devices (tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .vh-70 {
    min-height: 60vh;
  }
  
  .vh-50 {
    min-height: 40vh;
  }
  
  .container .ScaleHeading {
    font-size: 4rem;
  }
}

/* Responsive layout for image grid */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* Enhanced mobile navigation */
@media (max-width: 992px) {
  /* Hide old dropdown styles */
  .services-drpdwn {
    display: none !important;
  }
  
  /* Offcanvas styling */
  .offcanvas {
    max-width: 85%;
  }
  
  .offcanvas-header {
    padding: 1rem 1.5rem;
  }
  
  .offcanvas-title img {
    max-height: 40px;
  }
  
  /* List group styling */
  .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s ease;
  }
  
  .list-group-item:hover {
    background-color: rgba(2, 62, 138, 0.05);
  }
  
  .list-group-item:active {
    background-color: rgba(2, 62, 138, 0.1);
  }
  
  /* Accordion styling */
  .accordion-button {
    font-weight: 600;
    box-shadow: none !important;
  }
  
  .accordion-button:not(.collapsed) {
    color: #023e8a;
    background-color: rgba(2, 62, 138, 0.05);
  }
  
  .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
  }
  
  .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
  }
  
  /* Mobile navbar buttons */
  .navbar-toggler {
    border: none;
    padding: 0;
    color: #023e8a;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  
  /* Quick action button styling */
  .btn-sm.btn-blue {
    transition: all 0.2s ease;
  }
  
  .btn-sm.btn-blue:hover {
    transform: scale(1.05);
  }
  
  /* Mobile menu animation */
  .offcanvas.offcanvas-end {
    transition: transform 0.3s ease-in-out;
  }
}

/* Add mobile-specific spacing classes */
@media (max-width: 768px) {
  .mb-sm-3 {
    margin-bottom: 1rem !important;
  }
  
  .mt-sm-3 {
    margin-top: 1rem !important;
  }
  
  .py-sm-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .px-sm-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Floating budget calculator button for mobile */
  .floating-budget-btn {
    position: fixed;
    bottom: 130px; /* Increased to avoid covering footer */
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #023e8a;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    padding: 0;
  }
  
  .floating-budget-btn i {
    font-size: 22px;
  }
  
  /* Hide text for icon-only button */
  .floating-budget-btn-text {
    display: none;
  }
  
  .floating-budget-btn:hover, 
  .floating-budget-btn:focus {
    background-color: #0353a4;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(2, 62, 138, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(2, 62, 138, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(2, 62, 138, 0);
    }
  }
}

/* Desktop devices (992px and up) */
@media (min-width: 992px) {
  /* Show budget calculator button on desktop */
  .budgetproposal-button {
    display: block;
  }
  
  /* Ensure sidebar is properly styled for desktop */
  .sidebar {
    display: block;
  }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */
  html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  .container, .container-fluid, .row {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix for iPhone horizontal scroll issues */
  .gradient-background, 
  .gradient-sphere, 
  .sphere-1, 
  .sphere-2, 
  .sphere-3,
  .glow,
  .grid-overlay,
  .noise-overlay {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  
  /* Fix for absolute positioned elements that might cause overflow */
  .pricing-card::before,
  .pricing-card::after {
    width: 100%;
    left: 0;
    right: 0;
  }
}

