/* Responsive Design CSS */
:root {
  --sidebar-width: 280px;
  --header-height: 80px;
}

/* Disable all animations and transitions in responsive mode */
@media (max-width: 767.98px) {
  /* Disable all animations */
  *,
  *::before,
  *::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: none !important;
    animation-play-state: paused !important;
  }
  
  /* Disable all transitions */
  *,
  *::before,
  *::after {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    transition-property: none !important;
    transition-timing-function: ease !important;
  }
  
  /* Disable all transforms */
  *,
  *::before,
  *::after {
    transform: none !important;
    transform-origin: center !important;
    transform-style: flat !important;
    perspective: none !important;
    perspective-origin: center !important;
    backface-visibility: visible !important;
  }
  
  /* Disable hover effects */
  *:hover,
  *:focus,
  *:active {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable specific animation classes */
  .animate,
  .animated,
  .fade-in,
  .slide-in,
  .zoom-in,
  .float,
  [class*="animate-"],
  [class*="fade"],
  [class*="slide"],
  [class*="zoom"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Body overflow fix for mobile */
@media (max-width: 767.98px) {
  body {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Prevent horizontal scroll */
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Mobile Header Styles */
@media (max-width: 767.98px) {
  .glass-navbar {
    padding: 0.8rem 0;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  /* Hide default navbar collapse */
  .navbar-collapse {
    display: none !important;
  }
  
  /* Show only call icon and hide text */
  .call-now {
    margin-right: 10px;
    display: none !important; /* Ensure it's visible */
  }
  .call-now a {
    display: none !important; /* Hide the text */
  }
  .call-now i {
    margin-right: 0 !important; /* Remove margin if no text */
  }
  
  
  .navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  .sidebar-menu a:hover{
    background: none !important;
    color: #fff !important;
  }
  .nav-link:hover::after{
    display: none !important;
  }
  .scroll-top-float{
    bottom: 60px !important;
    right: 8px !important;
  }
  .hero-section{
    min-height: inherit !important;
  }
  .hero-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .wave-transition{
    display: none !important;
  }
}

/* Sidebar Styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, #565865 0%, #2d2d3a 100%);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-logo img {
  height: 80px;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(218, 36, 30, 0.2);
  color: #da241e;
  padding-left: 30px;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #da241e;
  transform: scaleY(0);
  transition: transform 0.3s;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
  transform: scaleY(1);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.sidebar-call {
  background: #da241e;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition: background 0.3s;
}

.sidebar-call:hover {
  background: #c4201b;
  color: white;
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animation for sidebar items */
.sidebar-menu li {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 0.3s ease forwards;
}

.sidebar-menu li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-menu li:nth-child(2) { animation-delay: 0.2s; }
.sidebar-menu li:nth-child(3) { animation-delay: 0.3s; }
.sidebar-menu li:nth-child(4) { animation-delay: 0.4s; }
.sidebar-menu li:nth-child(5) { animation-delay: 0.5s; }
.sidebar-menu li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Override sidebar animations in responsive mode */
@media (max-width: 767.98px) {
  .sidebar-menu li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .mobile-sidebar {
    transition: none !important;
  }
  
  .sidebar-overlay {
    transition: none !important;
  }
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

/* Responsive adjustments for larger mobile screens */
@media (max-width: 480px) {
  .mobile-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .sidebar-header {
    padding: 15px;
  }
  
  .sidebar-menu a {
    padding: 18px 20px;
    font-size: 18px;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mobile-sidebar {
    width: 320px;
  }
}
