/* Root Variables */
:root {
  --primary-color: #198754;
  --secondary-color: #ffc107;
  --accent-color: #dc3545;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-color: #495057;
  --border-color: #dee2e6;
  --white-color: #ffffff;
  --black-color: #000000;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 76px; /* Account for fixed navbar */
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Navigation Styles */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);

  .nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
  }

  .nav-link:hover {
    color: var(--primary-color) !important;
  }

  .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 80%;
  }

  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-card {
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.product-card .card-img-top {
  position: relative;
  overflow: hidden;
}

.product-card .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Feature Items */
.feature-item {
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 1rem;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(25, 135, 84, 0.05);
}

.feature-icon {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Contact Items */
.contact-item {
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 1rem;
}

.contact-item:hover {
  background: rgba(25, 135, 84, 0.05);
  transform: translateX(10px);
}
.form-control-lg:focus {
  box-shadow: none !important;
  border-color: var(--primary-color);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: none !important;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--primary-color);
}

/* Button Styles */
.btn {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #157347 0%, #1aa085 100%);
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
  margin: 0.25rem;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
}

/* Card Hover Effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Accordion Styles */
.accordion-button {
  font-weight: 600;
  background: rgba(25, 135, 84, 0.05);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Footer Styles */
footer {
  a {
    color: var(--white-color);
    transition: all 0.3s ease;
    &:hover {
      color: var(--secondary-color);
      transition: all 0.3s ease;
    }
  }

  .rights-text {
    color: #b2bfd7;
  }
}

/* Social Media Icons */
.social-link {
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--secondary-color) !important;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Design Enhancements */
@media (max-width: 992px) {
  .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .hero-card {
    margin-top: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-header {
    padding: 100px 0 60px;
    text-align: center;
  }

  .feature-item {
    margin-bottom: 2rem;
  }

  .contact-item {
    text-align: center;
    margin-bottom: 2rem;
  }

  .navbar-nav {
    padding: 1rem 0;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .hero-section {
    min-height: 70vh;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .page-header {
    background: none !important;
    color: black !important;
  }

  .hero-section {
    background: none !important;
    color: black !important;
    min-height: auto;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-success {
    background: #000;
    border-color: #000;
  }

  .text-success {
    color: #000 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-float,
  .animate-pulse {
    animation: none;
  }
}

/* Focus Styles for Accessibility */
.subscribe-input:focus {
  outline: none;
  border: none;
}

.form-control {
  outline: none;
}
.form-control:focus {
  outline: none;
}

.form-select:focus {
  outline: none !important;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
