/* ===== Global Styles ===== */
:root {
  --primary-color: #47f07f;
  --primary-dark: #68cfdd;
  --primary-light: #e8f9ee;
  --secondary-color: #f8f9fa;
  --accent-color: #ff6b00;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #6c757d;
  --white: #ffffff;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
}

/* ===== Top Bar ===== */
.top-bar {
  font-size: 0.9rem;
  background-color: var(--primary-color);
}

.top-bar .contact-info span {
  margin-right: 1rem;
}

.top-bar .social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-left: 0.5rem;
}

.top-bar .social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-item .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: var(--text-color);
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-item .btn {
  margin-left: 0.5rem;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}

.dropdown-item {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 7rem 0 5rem;
  background-color: var(--primary-color);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/hero-bg-pattern.png') no-repeat center center/cover;
  opacity: 0.1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-section .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .hero-section img {
    margin-top: 2rem;
  }
}

/* ===== Features Section ===== */
.features-section {
  padding: 5rem 0;
}

.feature-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 2rem;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--dark-gray);
}

/* ===== Products Section ===== */
.products-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.product-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 2rem;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.product-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-card ul li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.product-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.product-card .btn {
  width: 100%;
}

/* ===== Calculator Section ===== */
.calculator-section {
  padding: 5rem 0;
}

.calculator-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.calculator-tips {
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.calculator-tips h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.calculator-tips ul {
  list-style: none;
}

.calculator-tips ul li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.calculator-tips ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(71, 240, 127, 0.25);
}

.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  -webkit-appearance: none;
  margin-bottom: 1rem;
}

.form-range:focus {
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.25rem;
  background-color: var(--primary-color);
  border: 0;
  border-radius: 1rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  cursor: pointer;
  background-color: #dee2e6;
  border-radius: 1rem;
}

#calculator-results {
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.result-item {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-label {
  display: block;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.result-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.testimonial-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 0 1rem;
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-light);
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin: 1.5rem 0;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-text::before {
  top: -1.5rem;
  left: -1rem;
}

.testimonial-text::after {
  bottom: -3rem;
  right: -1rem;
}

.testimonial-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--dark-gray);
  font-size: 0.875rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 600;
}

.cta-section .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  font-weight: 600;
}

.cta-section .btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer p {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}




/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  z-index: 999;
  display: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
}

/* ===== Responsive Styles ===== */
@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .footer .col-lg-4,
  .footer .col-lg-3,
  .footer .col-lg-2 {
    margin-bottom: 2rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Animation Classes ===== */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 1s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}