/* CSS Custom Properties */
:root {
  --primary-green: #15803d;
  --secondary-golden: #d4af37;
  --accent-bright: #22c55e;
  --dark-bg: #0f172a;
  --light-bg: #f0fdf4;
  --text-dark: #1f2937;
  --text-light: #6b7280;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: 'Space Grotesk', sans-serif; */
  font-weight: 700;
}

/* Navigation Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-green) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-golden));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-green) 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Hero Section (Homepage specific) */
.hero-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 50%, var(--primary-green) 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  border: none;
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(21, 128, 61, 0.4);
  background: linear-gradient(135deg, var(--accent-bright), var(--primary-green));
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-golden);
  color: var(--secondary-golden);
  transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
  padding: 80px 0;
  position: relative;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, white, var(--secondary-golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Components */
.service-card {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-golden));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(21, 128, 61, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--secondary-golden);
  transform: scale(1.1);
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-golden));
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
}

.case-study-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
  margin-bottom: 40px;
  transition: all 0.4s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-golden));
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
}

.cert-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.industry-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
}

.contact-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-detail-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
}

.iso-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.iso-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
  border-color: var(--secondary-golden);
}

.phase-card {
  background: linear-gradient(135deg, white, var(--light-bg));
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 5px solid var(--primary-green);
  transition: all 0.3s ease;
}

.phase-card:hover {
  transform: translateX(10px);
  border-left-color: var(--secondary-golden);
}

.partner-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
  text-align: center;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
  border-color: var(--secondary-golden);
}

.process-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
  border-color: var(--secondary-golden);
}

.benefit-card {
  background: linear-gradient(135deg, white, var(--light-bg));
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-golden);
}

.content-section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(21, 128, 61, 0.1);
}

.partnership-benefit {
  background: linear-gradient(135deg, white, var(--light-bg));
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.partnership-benefit:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-golden);
}

/* Client and User Elements */
.stars {
  color: var(--secondary-golden);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 15px;
}

.client-details h6 {
  margin: 0;
  color: var(--text-dark);
}

.client-details small {
  color: var(--text-light);
}

/* Badges and Tags */
.industry-badge {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.service-tag {
  background: var(--light-bg);
  color: var(--primary-green);
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 5px 5px 5px 0;
  display: inline-block;
  border: 1px solid var(--primary-green);
}

.category-header {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 40px;
}

.phase-number {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.partner-logo {
  width: 120px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-bright));
  color: white;
}

/* Grid Layouts */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.result-item {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.result-icon {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Special Sections */
.why-choose-section {
  background: var(--light-bg);
  padding: 100px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(21, 128, 61, 0.1);
  transform: translateX(10px);
}

.feature-icon {
  color: var(--primary-green);
  margin-right: 15px;
  font-size: 1.2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--primary-green);
  margin-right: 10px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-bg));
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

/* Table of Contents */
.toc {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
}

.toc li:last-child {
  border-bottom: none;
}

.toc a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover {
  color: var(--secondary-golden);
}

.highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 10px 10px 0;
}

/* PDCA Circle (Process specific) */
.pdca-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--primary-green),
    var(--accent-bright),
    var(--secondary-golden),
    var(--primary-green)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 50px;
  position: relative;
  animation: rotate 20s linear infinite;
}

.pdca-inner {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pdca-step {
  position: absolute;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.pdca-step:hover {
  transform: scale(1.1);
  background: var(--secondary-golden);
  color: white;
}

.step-plan {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}
.step-do {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}
.step-check {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}
.step-act {
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: white;
  padding: 80px 0 30px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-golden);
  transform: translateX(5px);
}

/* Utility Classes */
.text-primary {
  color: var(--primary-green) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .service-card {
    margin-bottom: 30px;
  }
}

.pdca-container {
  position: relative;
  width: 800px;   /* adjust as needed */
  height: 800px;
  margin: 0 auto;
}

.pdca-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;   /* image size */
}

.pdca-image img {
  width: 100%;
  height: auto;
}

/* Cards styling */
.pdca-card {
  position: absolute;
  width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.plan   { top: 5%;  left: 5%; }
.do     { top: 5%;  right: 5%; }
.check  { bottom: 5%; right: 5%; }
.act    { bottom: 5%; left: 5%; }
