/* San Jose Pharmaceuticals Custom Styles */

:root {
  --primary-color: #228b22;
  --secondary-color: #9acd32;
  --accent-color: #32cd32;
  --dark-color: #2f4f4f;
  --light-color: #f8f9fa;
  --text-color: #333;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --gradient-primary: linear-gradient(135deg, #228b22 0%, #32cd32 100%);
  --gradient-secondary: linear-gradient(135deg, #9acd32 0%, #228b22 100%);
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.section-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Enhanced Header Styles */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-bar {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item i {
  font-size: 12px;
  opacity: 0.8;
}

.contact-item a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-item a:hover {
  opacity: 0.8;
}

.top-social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* Main Navbar */
.main-navbar {
  background: white !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.main-navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.main-navbar.scrolled .top-bar {
  height: 0;
  padding: 0;
  overflow: hidden;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.brand-tagline {
  font-size: 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Custom Toggler */
.custom-toggler {
  border: none;
  padding: 4px 8px;
  background: transparent;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggler-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
  opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Links */
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-color) !important;
  padding: 12px 16px !important;
  margin: 0 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(34, 139, 34, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(34, 139, 34, 0.1);
}

.nav-icon {
  font-size: 14px;
  opacity: 0.8;
}

/* Mega Dropdown */
.mega-dropdown .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-top: 10px;
  min-width: 600px;
}

.mega-menu .dropdown-header {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.mega-menu .dropdown-item {
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
  background: rgba(34, 139, 34, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

.featured-product-preview {
  text-align: center;
  padding: 20px;
  background: var(--light-color);
  border-radius: 8px;
}

/* CTA Button */
.btn-cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--gradient-secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

/* Hero Section - UPDATED */
.hero-section {
  margin-top: 0;
  position: relative;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

/* UPDATED: Reduced overlay opacity to show banner image */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Reduced opacity from 0.8/0.7 to 0.3/0.2 to make image more visible */
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.3) 0%, rgba(50, 205, 50, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  /* Enhanced text shadow for better readability */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  /* Enhanced text shadow for better readability */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  color: white;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Trust Indicators - UPDATED */
.trust-indicators {
  opacity: 0.9;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  /* Reduced background opacity to show banner image */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  /* Enhanced text shadow */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.trust-item i {
  font-size: 18px;
}

.trust-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Hero Stats - UPDATED */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  /* Reduced background opacity to show banner image */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  /* Enhanced text shadow */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
  /* Enhanced text shadow */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: white;
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

/* About Section */
.about-section {
  padding-top: 100px;
}

.about-section .feature-item {
  text-align: center;
  padding: 1rem;
  transition: all 0.3s ease;
}

.about-section .feature-item:hover {
  transform: translateY(-5px);
}

.about-section .feature-item i {
  font-size: 2rem;
}

/* Services Section - UPDATED WITH BACKGROUND IMAGE */
.services-section {
  background-image: url("https://sanjosepharma.com/assets/images/services-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.05) 0%, rgba(154, 205, 50, 0.05) 100%);
  pointer-events: none;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section .section-title {
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.services-section .lead {
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--secondary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.service-icon {
  background: var(--gradient-primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(34, 139, 34, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: var(--gradient-secondary);
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.9), rgba(50, 205, 50, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.product-title {
  margin: 0.5rem 0;
  font-weight: 600;
}

/* Trusted Partner Banner Section - NEW */
.trusted-partner-section {
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.trusted-partner-banner {
  height: 300px;
 background-image: url("https://sanjosepharma.com/assets/images/section-banner.jpg");
background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.trusted-partner-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.trusted-partner-banner .container {
  position: relative;
  z-index: 2;
}

.partner-content {
  display: flex;
  align-items: center;
  height: 100%;
}

.partner-cta {
  background: rgba(255, 255, 255, 0); /* Fully transparent */
  backdrop-filter: blur(15px);       /* Still applies blur to background */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 350px;
}

.partner-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.partner-subtitle {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.btn-contact-cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 5px 20px rgba(34, 139, 34, 0.3);
}

.btn-contact-cta:hover {
  background: var(--gradient-secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(34, 139, 34, 0.4);
}

.partner-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-info h6 {
  margin: 0;
  font-weight: 600;
}

.author-info span {
  color: #666;
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary) !important;
}

/* Footer */
.footer-section {
  background: var(--dark-color) !important;
}

.footer-widget h5 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-widget ul li {
  margin-bottom: 0.5rem;
}

.footer-widget ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: var(--secondary-color);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.btn-back-to-top:hover {
  background: var(--gradient-secondary);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-slide {
    height: 70vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    margin-top: 2rem;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .top-social-links {
    justify-content: center;
    margin-top: 10px;
  }

  .mega-dropdown .dropdown-menu {
    min-width: 300px;
    padding: 20px;
  }

  .brand-text {
    display: none;
  }

  .service-card,
  .product-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }

  .services-section {
    background-attachment: scroll;
  }

  /* Trusted Partner Section Mobile */
  .trusted-partner-banner {
    height: auto;
    padding: 60px 0;
  }

  .partner-cta {
    padding: 30px 20px;
    margin: 20px;
  }

  .partner-title {
    font-size: 1.5rem;
  }

  .partner-subtitle {
    font-size: 1rem;
  }

  .btn-contact-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
/* Page Header with Background Image */
.page-header {
  position: relative;
  background-image: url("https://www.sanjosepharma.com/assets/images/header-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  margin-bottom: 0;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.4) 0%, rgba(46, 204, 113, 0.3) 100%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .page-title {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.page-header .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
  color: #f39c12;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-header .breadcrumb-item.active {
  color: #f39c12;
  font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
  margin: 0 0.5rem;
}
/* Custom Bootstrap Overrides */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

/* Scrolled Header Effect */
body {
  padding-top: 140px;
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }
}
