/* -------------------------------------------------------------------------- */
/* Global Layout & Flex-Based Sticky Footer                                   */
/* -------------------------------------------------------------------------- */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Root Variables                                                             */
/* -------------------------------------------------------------------------- */

:root {
  --primary-color: #2e7d32; /* Green */
  --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  --secondary-color: #d32f2f; /* Red */
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #222;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Navbar                                                                     */
/* -------------------------------------------------------------------------- */

.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar-brand .logo-wrapper {
  position: relative;
  display: inline-block;
}

.navbar-brand .logo-default {
  opacity: 1;
  transition: var(--transition);
}

.navbar-brand .logo-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.navbar-brand:hover .logo-default {
  opacity: 0;
}

.navbar-brand:hover .logo-hover {
  opacity: 1;
}

.navbar-brand .motto small {
  opacity: 0;
  transition: var(--transition);
}

.navbar-brand:hover .motto small {
  opacity: 1;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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

.language-toggle {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.language-toggle:hover {
  background: var(--primary-color);
  color: white;
}

/* -------------------------------------------------------------------------- */
/* Hero Section                                                               */
/* -------------------------------------------------------------------------- */

.hero {
  background-color: white;
  color: var(--primary-color);
  padding: 6rem 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content > .row > .col-lg-8 > p {
  color: black;
}

/* -------------------------------------------------------------------------- */
/* Features Section                                                           */
/* -------------------------------------------------------------------------- */

.features-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

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

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-left: 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  transition: all 0.4s ease;
}

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

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.feature-link:hover {
  gap: 0.8rem;
  color: var(--primary-color);
}

.feature-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

.feature-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.features-grid {
  position: relative;
}

.features-grid::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.feature-badge {
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Portal Sections                                                            */
/* -------------------------------------------------------------------------- */

.portal-section {
  padding: 4rem 0;
}

.portal-section--dark {
  background: var(--primary-gradient);
  color: #fff;
}

.portal-section--light {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.portal-section--dark h2,
.portal-section--dark p,
.portal-section--dark .lead {
  color: #fff;
}

.portal-section-title {
  font-size: 2rem;
}

.offset-image-container {
  position: relative;
  display: inline-block;
}

.offset-shadow {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50%;
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 8px;
  z-index: 0;
}

.offset-image {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  max-width: 80%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Benefits Section                                                           */
/* -------------------------------------------------------------------------- */

.benefits-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

/* -------------------------------------------------------------------------- */
/* Pricing Section                                                            */
/* -------------------------------------------------------------------------- */

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1b5e20;
  border-color: #1b5e20;
}

.btn-outline-light:hover {
  color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/* Contact Section                                                            */
/* -------------------------------------------------------------------------- */

.contact-section {
  position: relative;
}

.snake-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

footer {
  background-color: var(--dark-gray);
  color: white;
}

footer a {
  color: var(--text-white);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* -------------------------------------------------------------------------- */
/* Basic Fade-In Animations                                                  */
/* -------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Responsive Adjustments                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Additional Styles & Overrides                                             */
/* -------------------------------------------------------------------------- */

.required_mark {
  color: red;
  margin-left: 90%;
}

/* Override for bold text within blog posts */
.blog-post strong {
  color: black; /* Change to var(--primary-color) if you prefer green */
}

/* Optional informational text color */
#notice {
  font-size: 14px;
  color: grey;
}

/* Overlay for confirmations or modals */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

/* Success Modal */
#successModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 2000;
  border-radius: 20px;
  width: 300px;
  text-align: center;
}

#successModal button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#successModal button:hover {
  background-color: var(--primary-color);
}

/* Full-screen overlay for requests or other modals */
#myModal_request {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#myModal_request form {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

#myModal_request input,
#myModal_request button {
  margin-bottom: 1rem;
}

#myModal_request label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

#myModal_request .text-red-500 {
  color: red;
}

/* -------------------------------------------------------------------------- */
/* Blog Pages                                                                 */
/* -------------------------------------------------------------------------- */

.breadcrumb-item > a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
