/* 
  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;
}

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;
}

/*-----------------------------------
  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.75rem 0;
  transition: all 0.3s ease-in-out;
}

.navbar.navbar-shrink {
  padding: 0.5rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.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.7rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  color: var(--white) !important;
  position: relative;
  margin: 0 0.2rem;
  letter-spacing: 0.2px;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  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.85) !important;
}

.nav-btn {
  margin-left: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background-color: var(--white);
  color: var(--primary-color) !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background-color: var(--white);
  color: var(--secondary-color) !important;
}

/*-----------------------------------
  Hero Sections
-----------------------------------*/
#hero, #about-hero, #features-hero, #download-hero, #contact-hero, #tutorials-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 8rem 0 6rem;
  margin-bottom: 2rem;
  margin-top: 0;
  position: relative;
}

#hero {
  padding: 10rem 0 8rem;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-img {
  animation: float 4s ease-in-out infinite;
}

@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;
}

/*-----------------------------------
  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: 100%;
  height: 250px;
  object-fit: cover;
  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: 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;
}

/*-----------------------------------
  Responsive Adjustments
-----------------------------------*/
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  }
  
  .navbar-collapse {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  }
  
  .nav-link {
    padding: 0.7rem 0;
  }
  
  .nav-link:after {
    display: none;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
    color: var(--white);
  }
  
  .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");
  }
  
  #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;
  }
}

@media (max-width: 767.98px) {
  .hero-text {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .feature-card, .why-us-card, .testimonial-card {
    padding: 1.5rem;
  }
  
  .download-card, .contact-info-card, .contact-form-card {
    padding: 1.5rem;
  }
}

/* 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: grid;
  gap: 15px;
}

.image-grid img {
  width: 100%;
  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);
}

/*-----------------------------------
  Scroll Navigation Elements
-----------------------------------*/
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.scroll-down-arrow a {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down-arrow a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

.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);
}
