/* JSR Pharma - Premium Corporate Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  /* Premium Color Palette */
  --primary-color: #004e92;
  /* Richer Deep Blue */
  --primary-light: #0072ff;
  /* Vibrant Blue for gradients */
  --secondary-color: #00c6ff;
  /* Cyan Gradient End */
  --accent-color: #ff9966;
  /* Soft Orange/Peach */
  --text-dark: #1a1a1a;
  --text-gray: #4a5568;
  --bg-white: #ffffff;
  --bg-off-white: #f7f9fc;
  --border-light: #e2e8f0;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing */
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-gray);
  background-color: var(--bg-off-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 25px;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 78, 146, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar a:hover {
  color: var(--secondary-color);
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 90px;
  height: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 25px;
}

.logo {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo span {
  color: inherit;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-light);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Abstract background shape */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 25px;
  line-height: 1.1;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* standard property */
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 650px;
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002244 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 10px;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.stat-label {
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.card {
  background: white;
  padding: 40px 30px;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card::top {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card h3,
.card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

/* Product List Improved */
.product-item {
  display: flex;
  background: white;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image-container {
  width: 350px;
  min-height: 280px;
  flex-shrink: 0;
  background-color: #f1f3f5;
  position: relative;
  display: flex;
  /* Ensure image centers if smaller */
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-item:hover .product-img {
  transform: scale(1.05);
  /* Subtle zoom effect on hover */
}

.product-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Gradients */
.bg-sugar {
  background: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
}

.bg-mcc {
  background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.bg-lactose {
  background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
  color: #555;
  text-shadow: none;
}

.bg-starch {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bg-nps {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
  margin-top: 100px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-col a {
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
}

.footer-col p a {
  display: inline;
  margin-bottom: 0;
}

.footer-col a:hover {
  color: #38bdf8;
  padding-left: 5px;
}

.disclaimer {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .top-bar-left, .top-bar-right {
    flex-direction: column;
    gap: 5px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .product-item {
    flex-direction: column;
  }

  .product-image-container {
    width: 100%;
    min-height: 200px;
    height: 200px;
  }
}

/* About Us Page Specific Styles */

/* Section Utilities */
.section-padding {
  padding: 80px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

.align-items-center {
  align-items: center;
}

/* About Hero */
.about-hero {
  background: linear-gradient(135deg, #002244 0%, #004e92 100%);
  padding: 100px 0 140px;
  /* Increased bottom padding for the slant */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  border-bottom: none;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Title */
.section-title {
  margin-bottom: 30px;
}

.sub-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.text-center .section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* About Image / Pattern */
.about-image-wrapper {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-right: 30px;
}

.about-pattern-bg {
  width: 100%;
  height: 100%;
  background-color: #e2e8f0;
  background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 120px;
}

.experience-badge .count {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.experience-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-gray);
}

.signature-block {
  margin-top: 30px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Mission Cards */
.mission-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary-color);
}

.mission-card h3 {
  margin-top: 20px;
  margin-bottom: 15px;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 78, 146, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Feature Grid (Why Us) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-box:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.feature-box p {
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  /* Blue Theme */
  padding: 80px 0;
  color: white;
  margin-top: 60px;
}

.cta-content h2 {
  color: white;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-primary-inv {
  background: white;
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-inv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
  color: var(--secondary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }

  .about-image-wrapper {
    margin-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 60px 0;
  }

  .about-hero h1 {
    font-size: 2rem;
  }
}