/* ====== CSS CUSTOM PROPERTIES ====== */
:root {
  --primary-color: #D11E1B;
  --primary-hover: #b91c1c;
  --primary-light: rgba(209, 30, 27, 0.1);
  --text-dark: #1a1a1a;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
}

/* ====== BASE STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ====== UTILITY CLASSES ====== */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }
.section-padding { padding: 5rem 0; }

/* ====== BUTTONS ====== */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-size: 1rem;
  line-height: 1.5;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-light {
  background-color: white;
  border-color: white;
  color: var(--text-dark);
}

.btn-light:hover, .btn-light:focus {
  background-color: var(--bg-light);
  border-color: var(--bg-light);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  color: white;
  border-color: white;
  background-color: transparent;
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: white;
  border-color: white;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ====== NAVIGATION ====== */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  padding: 1rem 0;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* ====== NAVIGATION CTA BUTTON FIX ====== */
.btn-cta {
  background: var(--primary-color) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem !important;
  margin-left: 1rem;
  border: 2px solid var(--primary-color) !important;
  font-weight: 600 !important;
}

.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active,
.btn-cta.active {
  background: var(--primary-hover) !important;
  color: white !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ensure the CTA button text stays white in all states */
.btn-cta,
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active,
.btn-cta.active,
.btn-cta:visited {
  color: white !important;
}

/* Override any conflicting nav-link styles for the CTA button */
.nav-link.btn-cta::after {
  display: none;
}

.nav-link.btn-cta:hover,
.nav-link.btn-cta.active {
  color: white !important;
}

/* ====== HERO SECTION ====== */
.hero-section {
  background: linear-gradient(135deg, #eeebe3 0%, #e6e1d6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-image {
  text-align: center;
  position: relative;
}

.certificate-float {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ====== CONTENT BLOCKS ====== */
.content-block {
  padding: 2rem 0;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.image-container img {
  transition: var(--transition);
  opacity: 1 !important;
  visibility: visible !important;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* ====== FEATURE LIST ====== */
.feature-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-content p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* ====== BENEFITS GRID ====== */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.benefit-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(8px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.benefit-content h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.benefit-content p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* ====== STATISTICS SECTION ====== */
.stat-card {
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.8;
  display: inline-block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ====== PRICING SECTION ====== */
.pricing-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.pricing-header {
  padding: 2rem;
  text-align: center;
  background: var(--bg-light);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.pricing-body {
  padding: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

/* ====== TESTIMONIAL ====== */
.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  position: relative;
  margin: 2rem 0;
}

.testimonial-quote-icon {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-quote {
  position: relative;
  z-index: 2;
}

.blockquote {
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-name {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ====== CTA SECTION ====== */
.cta-section {
  background: linear-gradient(135deg, #eeebe3 0%, #e6e1d6 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
}

.cta-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(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-logo-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: pulse 3s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

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

.cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  position: relative;
  z-index: 2;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-image {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.cta-image img {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100%;
  height: auto;
}

/* ====== CHECKERBOARD STRIPE ====== */
.checkerboard-stripe {
  height: 256px;
  background-image: url('img/checkerboard.png');
  background-repeat: repeat;
  background-size: 256px 256px;
  background-position: center;
  width: 100%;
  position: relative;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ====== FOOTER ====== */
.footer {
  padding: 3rem 0 2rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.footer-social {
  margin: 2rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: var(--transition);
  font-size: 1.25rem;
}

.social-link:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ====== FOOTER COPYRIGHT FIX ====== */
.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom p {
  color: white !important;
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* ====== IMAGE FIXES ====== */
img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block;
  max-width: 100%;
  height: auto;
}

.img-fluid {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure images are always visible */
.fade-in img,
.visible img,
img.fade-in,
img.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero-title,
  .hero-subtitle,
  .section-title,
  .lead,
  .text-muted {
    text-align: center;
  }

  .btn {
    display: flex;
    font-size: medium;
  }

  .checkerboard-stripe {
    height: 124px;
    background-size: 124px 124px;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .feature-list,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .btn-cta {
    margin-left: 0 !important;
    margin-top: 1rem;
  }
  
  .cta-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .feature-item,
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-item {
    align-items: center;
  }
  
  .benefit-item {
    align-items: center;
  }
  
  .cta-logo {
    width: 50px;
    height: 50px;
  }
}

/* ====== ANIMATIONS ====== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Ensure images remain visible during animations */
  .fade-in img,
  .fade-in.visible img {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

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