/*
  Med-Vault - Main Stylesheet
  Author: Med-Vault Team
  Date: June 2025
*/
/*-----------------------------------
  General Styles
-----------------------------------*/
:root {
  --primary-color: #1e88e5;
  --secondary-color: #3949ab;
  --accent-color: #00acc1;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --white: #ffffff;
  --success: #38a169;
  --warning: #e3a008;
  --danger: #e53e3e;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Tap Highlight Fix (iOS/Android) */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  /* Text Size Adjust Fix (Mobile Zoom Prevention) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Font Smoothing Fix (system-native for all 19 occurrences) */
  font-smooth: never;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--secondary-color);
}
.btn {
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}
.section-title {
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}
.section-title.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}
.bg-light {
  background-color: var(--bg-light) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
/* Fixed: Consistent naming for height class */
.height-400px {
  height: 400px; /* Was 500px—match class name */
  width: 100%;
  object-fit: cover;
}
/* Apply font-smoothing fix to key classes (covers your 19 occurrences) */
.navbar, .video-card, .fa-user, /* Add any other icon-heavy classes */ {
  font-smooth: never;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
/*-----------------------------------
  Navigation
-----------------------------------*/
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 0 20px;
  transition: all 0.3s ease-in-out;
  min-height: 80px;
  display: flex;
  align-items: center;
}
.navbar.navbar-shrink {
  padding: 0.05rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  min-height: 70px;
}
.navbar-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
  padding: 0;
  margin: 0;
  height: 60px;
}
.brand-text {
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.navbar-brand img {
  margin-right: 0.3rem;
}
.navbar-nav {
  gap: 2rem;
}
.navbar .container {
  padding: 0.5rem 1rem;
}
.navbar-expand-lg {
  min-height: 40px !important;
}
.navbar-nav .nav-item {
  margin: 0;
  padding: 0;
}
.nav-link {
  font-weight: 500;
  padding: 0.2rem 1rem;
  color: var(--white) !important;
  position: relative;
  margin: 0 0.3rem;
  letter-spacing: 0.2px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 18px;
}
.nav-link:after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -0.1rem;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}
.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: rgba(255, 255, 255, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.nav-btn {
  margin-left: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  background-color: var(--white);
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
}
.nav-btn:hover {
  transform: translateY(-2px);
  background-color: var(--white);
  color: var(--secondary-color) !important;
}
/* Icon-only nav button */
.nav-btn i {
  font-size: 1.1rem;
}
.nav-btn:only-child {
  padding: 0.2rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
/* User Avatar Styles */
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}
.user-avatar:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.user-avatar.subscriber {
  position: relative;
}
.subscriber-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ffd700;
  color: #333;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* Notification Button Styles */
.notification-btn {
  position: relative;
  padding: 0.5rem 0.8rem !important;
  color: var(--white) !important;
  transition: var(--transition);
}
.notification-btn:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
/* Dropdown Styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0;
}
.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}
.dropdown-divider {
  margin: 0.5rem 0;
  border-color: #e9ecef;
}
/*-----------------------------------
  Hero Sections
-----------------------------------*/
#hero,
#about-hero,
#features-hero,
#download-hero,
#contact-hero,
#tutorials-hero {
  color: var(--white);
  padding: 8rem 0 6rem;
  margin-bottom: 2rem;
  margin-top: 0;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}
#hero {
  padding: 0rem 0 8rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  position: relative;
  margin-bottom: 10rem;
}
.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-text p {
  font-size: 1rem;
  margin-bottom: 2rem;
}
.hero-img {
  animation: float 4s ease-in-out infinite;
}
.container {
  padding-top:5rem;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}
/*-----------------------------------
  Tutorial Cards
-----------------------------------*/
.tutorial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.tutorial-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(30, 136, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}
/*-----------------------------------
  Feature Cards
-----------------------------------*/
.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(30, 136, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.icon-box i {
  font-size: 2rem;
  color: var(--primary-color);
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}
.feature-card ul li {
  margin-bottom: 0.5rem;
}
/*-----------------------------------
  Why Choose Us
-----------------------------------*/
.why-us-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}
.why-us-card:hover {
  transform: translateY(-5px);
}
.why-us-card .icon-box {
  margin: 0 auto 1.5rem;
}
.why-us-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
/*-----------------------------------
  Testimonials
-----------------------------------*/
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
}
.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.testimonial-content:before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: serif;
}
.avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.author-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
/*-----------------------------------
  Video Cards
-----------------------------------*/
.video-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}
.video-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.video-wrapper {
    margin-bottom: 1rem;
}
/*-----------------------------------
  Feature Details (Features Page)
-----------------------------------*/
.feature-detail-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
  display: flex;
  gap: 1.5rem;
}
.feature-icon {
  flex-shrink: 0;
}
.feature-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}
.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
/*-----------------------------------
  Security Cards
-----------------------------------*/
.security-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem 2rem;
  height: 100%;
}
.security-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
/*-----------------------------------
  Team Cards
-----------------------------------*/
.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
}
.team-img {
  overflow: hidden;
}
.team-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  align-item: center; /* Typo: Should be align-items if flex, but remove as it's not */
  transition: var(--transition);
}
.team-card:hover .team-img img {
  transform: scale(1.05);
}
.team-info {
  padding: 1.5rem;
}
.team-info h5 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.team-info p {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.team-info .small {
  color: var(--text-light);
}
.team-social {
  margin-top: 1rem;
}
.team-social a {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: rgba(30, 136, 229, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-right: 0.5rem;
  transition: var(--transition);
}
.team-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}
/*-----------------------------------
  Download Page
-----------------------------------*/
.download-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}
.download-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}
.qr-code {
  max-width: 150px;
  border: 1px solid #eee;
  padding: 0.5rem;
  background-color: var(--white);
}
.requirements-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
}
.requirements-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.req-icon {
  font-size: 2rem;
  color: var(--primary-color);
}
.installation-step {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  height: 100%;
  position: relative;
}
.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
/*-----------------------------------
  Contact Page
-----------------------------------*/
.contact-info-card,
.contact-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
  height: 100%;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(30, 136, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
}
.map-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
/*-----------------------------------
  Footer
-----------------------------------*/
footer {
  margin-top: 0rem;
  padding-top: 3rem;
}
footer h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
footer .social-icons a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
  font-size: 1.2rem;
}
footer .social-icons a:hover {
  opacity: 1;
}
footer ul li {
  margin-bottom: 0.8rem;
}
footer address p {
  margin-bottom: 0.8rem;
}
.hidden {
    display: none !important;
}
/*-----------------------------------
  Responsive Adjustments
-----------------------------------*/
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    min-height: 70px;
  }
  .navbar-collapse {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .nav-link {
    padding: 1rem 0;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
  }
  .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
    border-radius: 0 25px 25px 0;
  }
  .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1rem;
    border-radius: 0 25px 25px 0;
    border-left: 4px solid var(--white);
  }
  .nav-link:after {
    display: none;
  }
  .navbar-toggler {
    border: none;
    padding: 0.75rem;
    outline: none !important;
    box-shadow: none !important;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  .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");
  }
  /* Mobile Menu User Section */
  .mobile-menu-user {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-user-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-user-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  .mobile-user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .mobile-user-avatar .avatar-initials {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
  }
  .mobile-user-info h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  .mobile-user-info small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
  }
  .mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-menu-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    text-decoration: none;
  }
  .mobile-menu-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
  }
  .mobile-menu-btn.primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  }
  .mobile-menu-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .mobile-menu-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
  }
  .mobile-menu-btn.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    font-weight: 600;
  }
  .mobile-menu-btn.premium:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  }
  .mobile-menu-btn.signout {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
  }
  .mobile-menu-btn.signout:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.5);
  }
  .mobile-auth-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .notification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }
  #hero,
  #about-hero,
  #features-hero,
  #download-hero,
  #contact-hero {
    padding: 8rem 0 4rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text h2 {
    font-size: 1.5rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .feature-detail-card {
    flex-direction: column;
  }
 
    /* Container padding - Reduced for less scroll jump */
  #hero .container,
  .container.hero-container {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 10rem; /* Was 15/20rem—better for mobile */
  }
 
  .hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  /* Hero section improvements */
 
  .hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }
 
 
  .hero-text {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 5rem;
  }
  .hero-text h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
 
  .hero-img-responsive {
    margin-bottom: 1.5rem !important;
  }
  /* Section titles */
  .section-title h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .section-title p {
    font-size: 0.95rem;
  }
  /* Card improvements */
  .feature-card,
  .why-us-card,
  .testimonial-card,
  .tutorial-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .download-card,
  .contact-info-card,
  .contact-form-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  /* Tutorial card specific improvements */
  .tutorial-card .tutorial-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .tutorial-card .tutorial-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  .tutorial-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  .tutorial-card .tutorial-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  /* Button improvements */
  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    width: 50%;
    margin: 1rem;
  }
  .btn-sm {
    font-size: 0.5rem;
    padding: 0.4rem 0.8rem;
  }
  /* Button groups in tutorial cards */
  .tutorial-card .mt-3 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .tutorial-card .btn {
    width: 100%;
    margin: 0;
    font-size:1rem;
  }
  /* Modal improvements */
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-body {
    padding: 1rem;
  }
  .modal-header {
    padding: 1rem;
  }
  .modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
  /* Container padding */
  #hero .container,
  .container.hero-container {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 10rem; /* Reduced from 20rem for better mobile flow */
  }
  /* Row spacing */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .col-lg-6,
  .col-md-6,
  .col-sm-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  /* Navigation improvements */
  .navbar-brand img {
    height: 28px;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 0.95rem;
  }
  /* Footer improvements */
  footer {
    padding: 2rem 0;
  }
  footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
  /* Image improvements */
  img {
    max-width: 100%;
    height: auto;
  }
  /* Text improvements */
  p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
  }
  /* Touch target improvements */
  .btn,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Spacing improvements */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
    margin-top: 5rem !important; /* Fixed typo: space before !important */
  }
  .mt-5 {
    margin-top: 2rem !important;
  }
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }
  /* Improve form elements */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  /* Improve table responsiveness */
  .table-responsive {
    font-size: 0.85rem;
  }
  /* Improve accordion */
  .accordion-button {
    font-size: 0.95rem;
    padding: 1rem;
  }
  .accordion-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
/* CSS for the min-vh-75 class */
.min-vh-75 {
  min-height: 75vh;
}
/* Success icon in contact success page */
.success-icon {
  margin-bottom: 2rem;
}
/*-----------------------------------
  Image Display Styling
-----------------------------------*/
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.image-grid img {
  width: 100%;
  max-width: 300px; /* Limit max size */
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.image-grid img:hover {
  transform: scale(1.02);
}
.device-showcase {
  margin: 2rem 0;
}
.interface-card {
  padding: 15px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.interface-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}
/* Cameroonian Healthcare section */
#cameroon-healthcare {
  padding: 4rem 0;
}
#cameroon-healthcare .check-list {
  list-style: none;
  padding-left: 0;
}
#cameroon-healthcare .check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
#cameroon-healthcare .check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}
/* App Interfaces Section */
#app-interfaces {
  background-color: var(--bg-light);
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-5px);
}
/*-----------------------------------
  Full-Screen Image Viewer
-----------------------------------*/
/* Make all images clickable for full-screen view */
img {
  cursor: pointer;
  transition: transform 0.3s ease;
}
img:hover {
  transform: scale(1.02);
}
/* Exclude logo from full-screen functionality */
.navbar-brand img,
.logo img {
  cursor: default;
}
.navbar-brand img:hover,
.logo img:hover {
  transform: none;
}
/* Full-screen modal overlay */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-modal.show {
  opacity: 1;
}
/* Modal content */
.image-modal-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}
/* Full-screen image */
.image-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}
/* Close button */
.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
/* Navigation arrows */
.image-modal-prev,
.image-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f1f1f1;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}
.image-modal-prev {
  left: 30px;
}
.image-modal-next {
  right: 30px;
}
.image-modal-prev:hover,
.image-modal-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
/* Image counter */
.image-modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #f1f1f1;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 10000;
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Responsive design for mobile */
@media (max-width: 768px) {
  .image-modal-close {
    top: 10px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  .image-modal-prev,
  .image-modal-next {
    width: 50px;
    height: 50px;
    font-size: 24px;
    padding: 12px;
  }
  .image-modal-prev {
    left: 15px;
  }
  .image-modal-next {
    right: 15px;
  }
  .image-modal-counter {
    bottom: 10px;
    font-size: 14px;
    padding: 8px 16px;
  }
}
/* Keyboard navigation hints */
.image-modal-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #f1f1f1;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 15px;
  opacity: 0.8;
  z-index: 10000;
}
/* Loading spinner for large images */
.image-modal-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f1f1f1;
  font-size: 20px;
  z-index: 10000;
}
.image-modal-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f1f1f1;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}