/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  /* Icon sizes */
  --icon-sm: 1.5rem;
  --icon-md: 2.5rem;
  --icon-lg: 3.5rem;
  --icon-xl: 4rem;

  /* Spacing scale */
  --section-padding-y: 6rem;
  --section-padding-y-mobile: 4rem;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

/* Heading hierarchy with clear visual weight */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Lead paragraphs */
.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--bs-secondary-color);
}

/* Card text */
.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bs-body-color);
  opacity: 0.85;
}

/* Section headers with subtitles */
.section-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--bs-secondary-color);
  margin-top: 0.75rem;
}

/* Optimal line length for readability */
.prose {
  max-width: 65ch;
}

.container-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.container-content {
  max-width: 1000px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 60px;
  padding-top: 56px;
  animation: pageLoad 0.5s ease;
  line-height: 1.7;
}

/* Page load fade-in animation */
@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  body {
    padding-top: 60px;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Theme transition animations */
html,
body,
.navbar,
.nav-link,
.btn,
.card,
footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Theme toggle button styling */
#theme-toggle {
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

#theme-toggle:hover {
  opacity: 0.8;
}

#theme-toggle:focus {
  box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem var(--bs-primary);
}

/* Theme toggle icon sizing - ensure icons are visible on all screen sizes */
#theme-icon-light,
#theme-icon-dark {
  font-size: 1.25rem;
  display: inline-block;
  line-height: 1;
}

/* Mobile adjustments for theme toggle icons */
@media (max-width: 575px) {
  #theme-toggle {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  #theme-icon-light,
  #theme-icon-dark {
    font-size: 1.5rem;
  }
}

/* Logo styling */
.navbar-brand svg {
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover svg {
  opacity: 0.9;
}

/* Responsive logo sizing */
@media (max-width: 576px) {
  .navbar-brand svg {
    width: 140px;
    height: auto;
  }
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

/* Sticky navbar with shadow on scroll */
.navbar.fixed-top {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Nav link hover effects */
.navbar-nav .nav-link:not(#theme-toggle) {
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.navbar-nav .nav-link:not(#theme-toggle):hover {
  opacity: 0.8;
}

.navbar-nav .nav-link:not(#theme-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:not(#theme-toggle):hover::after {
  width: 100%;
  left: 0;
}

/* CTA button styling */
.cta-button {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* Dark theme CTA adjustments */
[data-bs-theme="dark"] .cta-button {
  box-shadow: 0 2px 4px rgba(61, 139, 253, 0.3);
}

[data-bs-theme="dark"] .cta-button:hover {
  box-shadow: 0 4px 8px rgba(61, 139, 253, 0.4);
}

/* Scroll margin to account for fixed navbar */
#features,
#why-choose-us,
#testimonials,
#pricing,
#faq,
#contact {
  scroll-margin-top: 80px;
}

/* ============================================
   MOBILE NAVBAR ADJUSTMENTS
   ============================================ */

@media (max-width: 575px) {
  /* Stack nav items with spacing */
  .navbar-nav .nav-item {
    text-align: center;
    padding: 0.25rem 0;
  }

  /* Full width CTA on mobile */
  .cta-button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Center theme toggle on mobile */
  #theme-toggle {
    margin: 0 auto;
    display: block;
  }

  /* Add spacing in collapsed menu */
  .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

/* Hero Section Container */
.hero-section {
  background: var(--bs-body-bg);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Hero Background Image with Gradient Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.85) 100%
    ),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark theme hero background adjustment */
[data-bs-theme="dark"] .hero-section::before {
  background-image:
    linear-gradient(
      135deg,
      rgba(13, 17, 23, 0.9) 0%,
      rgba(13, 17, 23, 0.7) 100%
    ),
    url('../images/hero-bg.jpg');
}

/* Ensure hero content appears above background */
.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Hero Title */
.hero-title {
  color: var(--bs-body-color);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Rotating Text Container */
.rotating-text {
  display: inline-block;
  min-width: 280px;
  min-height: 1.2em;
  position: relative;
  color: var(--bs-primary);
  font-weight: 700;
  vertical-align: baseline;
}

/* Individual Text Items */
.text-item {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  animation: textRotate 12s infinite;
  animation-timing-function: ease-in-out;
  will-change: opacity, transform;
  transition: color 0.3s ease;
}

/* Staggered animation delays for each item */
.text-item:nth-child(1) {
  animation-delay: 0s;
}

.text-item:nth-child(2) {
  animation-delay: 3s;
}

.text-item:nth-child(3) {
  animation-delay: 6s;
}

.text-item:nth-child(4) {
  animation-delay: 9s;
}

/* Keyframe Animation for Text Rotation */
@keyframes textRotate {
  0%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }

  2%, 23% {
    opacity: 1;
    transform: translateY(0);
  }

  25% {
    opacity: 0;
    transform: translateY(-10px);
  }

  27%, 100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Buttons */
.hero-buttons .btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(var(--bs-primary-rgb), 0.3);
}

.hero-buttons .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .rotating-text {
    min-width: 200px;
    min-height: 2.5em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
    padding: 0 1rem;
    word-wrap: break-word;
  }

  .rotating-text {
    min-width: 150px;
    min-height: 3em;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .text-item {
    animation: none;
    position: static;
    opacity: 1;
    transform: none;
  }

  .text-item:not(:first-child) {
    display: none;
  }

  .hero-buttons .btn-primary:hover {
    transform: none;
  }
}

/* ============================================
   APP PREVIEW SECTION STYLES
   ============================================ */

/* App Preview Section Container */
.app-preview-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* App Preview Container with perspective for 3D tilt */
.app-preview-container {
  perspective: 2000px;
  perspective-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* App Preview Image with shadow and tilt */
.app-preview-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 12px;

  /* Drop shadow - theme-aware */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08);

  /* Subtle tilt */
  transform: perspective(2000px) rotateX(2deg) rotateY(-2deg);

  /* Float animation */
  animation: floatImage 6s ease-in-out infinite;
  will-change: transform;

  /* Smooth transitions */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme shadow enhancement */
[data-bs-theme="dark"] .app-preview-image {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Hover effect - subtle scale and enhanced shadow */
.app-preview-image:hover {
  transform: perspective(2000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .app-preview-image:hover {
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Float animation keyframes */
@keyframes floatImage {
  0%, 100% {
    transform: perspective(2000px) rotateX(2deg) rotateY(-2deg) translateY(0);
  }
  50% {
    transform: perspective(2000px) rotateX(2deg) rotateY(-2deg) translateY(-15px);
  }
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
  .app-preview-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .app-preview-container {
    padding: 1.5rem 0.5rem;
  }

  .app-preview-image {
    border-radius: 10px;

    /* Reduce tilt on tablets */
    transform: perspective(2000px) rotateX(1deg) rotateY(-1deg);

    /* Lighter shadows on smaller screens */
    box-shadow:
      0 15px 45px rgba(0, 0, 0, 0.12),
      0 6px 15px rgba(0, 0, 0, 0.08);
  }

  .app-preview-image:hover {
    transform: perspective(2000px) rotateX(1deg) rotateY(-1deg) scale(1.01);
  }

  @keyframes floatImage {
    0%, 100% {
      transform: perspective(2000px) rotateX(1deg) rotateY(-1deg) translateY(0);
    }
    50% {
      transform: perspective(2000px) rotateX(1deg) rotateY(-1deg) translateY(-10px);
    }
  }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .app-preview-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .app-preview-container {
    padding: 1rem 0;
  }

  .app-preview-image {
    border-radius: 8px;

    /* Remove tilt on mobile for better visibility */
    transform: none;

    /* Minimal shadows on mobile */
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.1),
      0 4px 10px rgba(0, 0, 0, 0.06);
  }

  .app-preview-image:hover {
    transform: scale(1.01);
  }

  @keyframes floatImage {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .app-preview-image {
    animation: none;
    will-change: auto;
  }

  .app-preview-image:hover {
    transform: perspective(2000px) rotateX(2deg) rotateY(-2deg);
  }

  @media (max-width: 768px) {
    .app-preview-image:hover {
      transform: perspective(2000px) rotateX(1deg) rotateY(-1deg);
    }
  }

  @media (max-width: 576px) {
    .app-preview-image:hover {
      transform: none;
    }
  }
}

/* ============================================
   SECTION DIVIDER STYLES
   ============================================ */

/* Section Divider Container */
.section-divider {
  width: 100%;
  height: 200px;
  background-image: url('../images/section-divider.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Overlay for better theme integration */
.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bs-body-bg) 0%, transparent 20%, transparent 80%, var(--bs-body-bg) 100%);
  opacity: 0.7;
}

/* Dark theme section divider adjustment */
[data-bs-theme="dark"] .section-divider {
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-divider {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .section-divider {
    height: 100px;
  }
}

/* ============================================
   VALUE PROPS SECTION STYLES
   ============================================ */

/* Value Props Section Container */
.value-props-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Value Prop Card - Extended from Bootstrap card */
.value-prop-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
}

/* Hover effect - lift and enhance shadow */
.value-prop-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark theme shadow enhancement */
[data-bs-theme="dark"] .value-prop-card:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Icon container for premium feel */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.icon-container i {
  font-size: var(--icon-lg);
  color: var(--bs-primary);
  transition: transform 0.3s ease;
}

/* Dark mode icon container */
[data-bs-theme="dark"] .icon-container {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.1));
}

/* Icon styling with smooth transition */
.value-prop-icon {
  font-size: var(--icon-lg);
  transition: transform 0.3s ease;
}

.value-prop-card:hover .icon-container {
  transform: scale(1.05);
}

.value-prop-card:hover .icon-container i {
  transform: scale(1.1);
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
  .value-props-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  /* Reduce lift effect on tablets */
  .value-prop-card:hover {
    transform: translateY(-6px);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .value-props-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Minimal lift effect on mobile */
  .value-prop-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }

  [data-bs-theme="dark"] .value-prop-card:hover {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

/* Pricing tier icons */
.pricing-tier-icon {
  font-size: var(--icon-md);
  margin-bottom: 0.5rem;
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .value-prop-card {
    transition: box-shadow 0.3s ease;
  }

  .value-prop-card:hover {
    transform: none;
  }

  .value-prop-icon {
    transition: none;
  }

  .icon-container {
    transition: background 0.3s ease;
  }

  .icon-container i {
    transition: none;
  }

  .value-prop-card:hover .icon-container,
  .feature-card:hover .icon-container,
  .why-choose-card:hover .icon-container {
    transform: none;
  }

  .value-prop-card:hover .icon-container i,
  .feature-card:hover .icon-container i,
  .why-choose-card:hover .icon-container i {
    transform: none;
  }
}

/* ============================================
   ABOUT SECTION STYLES
   ============================================ */

/* About Section Container */
.about-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* About Image Styling */
.about-image {
  transition: transform 0.3s ease;
  border-left: 4px solid var(--bs-primary);
}

.about-image:hover {
  transform: scale(1.02);
}

/* Responsive Adjustments - Tablet */
@media (max-width: 768px) {
  .about-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }
}

/* Responsive Adjustments - Mobile */
@media (max-width: 576px) {
  .about-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .about-image:hover {
    transform: scale(1.01);
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .about-image {
    transition: none;
  }

  .about-image:hover {
    transform: none;
  }
}

/* ============================================
   FEATURES SECTION STYLES
   ============================================ */

/* Features Section Container */
.features-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Feature Card Base Styling */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .feature-card:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Feature Icon Styling */
.feature-icon {
  font-size: var(--icon-lg);
  transition: transform 0.3s ease;
}

.feature-card:hover .icon-container {
  transform: scale(1.05);
}

.feature-card:hover .icon-container i {
  transform: scale(1.1);
}

/* Tenant Timeline Highlight (Differentiation) */
.feature-card-highlight {
  border: 2px solid var(--bs-primary);
  position: relative;
}

.feature-card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 1px 1px 0 0;
}

/* Coming Soon Features (Muted Styling) */
.feature-card-coming-soon {
  opacity: 0.75;
}

.feature-card-coming-soon:hover {
  transform: translateY(-4px);
  opacity: 0.9;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .feature-card-coming-soon:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.feature-card-coming-soon .feature-icon {
  opacity: 0.7;
}

/* Responsive Adjustments - Tablet */
@media (max-width: 768px) {
  .features-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .feature-card:hover {
    transform: translateY(-6px);
  }
}

/* Responsive Adjustments - Mobile */
@media (max-width: 576px) {
  .features-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }

  [data-bs-theme="dark"] .feature-card:hover {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: box-shadow 0.3s ease;
  }

  .feature-card:hover {
    transform: none;
  }

  .feature-icon {
    transition: none;
  }

  .feature-card:hover .feature-icon {
    transform: none;
  }
}

/* ============================================
   WHY CHOOSE US SECTION STYLES
   ============================================ */

/* Why Choose Us Section Container */
.why-choose-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Why Choose Card - distinct from value prop cards */
.why-choose-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
}

.why-choose-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .why-choose-card:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.why-choose-icon {
  font-size: var(--icon-lg);
  transition: transform 0.3s ease;
}

.why-choose-card:hover .icon-container {
  transform: scale(1.05);
}

.why-choose-card:hover .icon-container i {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .why-choose-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .why-choose-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 576px) {
  .why-choose-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }

  [data-bs-theme="dark"] .why-choose-card:hover {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .why-choose-card {
    transition: box-shadow 0.3s ease;
  }

  .why-choose-card:hover {
    transform: none;
  }

  .why-choose-icon {
    transition: none;
  }

  .why-choose-card:hover .why-choose-icon {
    transform: none;
  }
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

/* Testimonials Section Container */
.testimonials-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  scroll-margin-top: 80px;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Testimonial Card Base Styling */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .testimonial-card:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Testimonial Avatar Styling */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--bs-primary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
}

/* Testimonial Quote Styling */
.testimonial-quote {
  font-style: italic;
  color: var(--bs-body-color);
  line-height: 1.6;
  position: relative;
  padding-top: 1rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--bs-primary);
  opacity: 0.2;
  line-height: 1;
}

/* Testimonial Author Styling */
.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--bs-body-color);
}

.testimonial-author .text-muted {
  font-size: 0.875rem;
}

/* Responsive Adjustments - Tablet */
@media (max-width: 768px) {
  .testimonials-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .testimonial-card:hover {
    transform: translateY(-6px);
  }
}

/* Responsive Adjustments - Mobile */
@media (max-width: 576px) {
  .testimonials-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }

  [data-bs-theme="dark"] .testimonial-card:hover {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.15);
  }

  .testimonial-avatar {
    width: 70px;
    height: 70px;
  }

  .testimonial-quote::before {
    font-size: 2.5rem;
  }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: box-shadow 0.3s ease;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .testimonial-avatar {
    transition: border-color 0.3s ease;
  }

  .testimonial-card:hover .testimonial-avatar {
    transform: none;
  }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

/* Site Footer Container */
.site-footer {
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  margin-top: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Footer Logo Link */
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
}

.footer-logo-link img {
  transition: opacity 0.3s ease;
}

/* Footer Tagline */
.footer-tagline {
  font-size: 0.9375rem;
  color: var(--bs-secondary-color);
  margin-top: 0.5rem;
}

/* Footer Navigation Links */
.footer-nav-links {
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--bs-primary);
  opacity: 0.9;
}

.footer-link:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer Copyright Text */
.footer-copyright {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

/* Footer Contact Text */
.footer-contact {
  font-size: 0.875rem;
}

.footer-contact .footer-link {
  color: var(--bs-secondary-color);
}

.footer-contact .footer-link:hover {
  color: var(--bs-primary);
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments - Mobile */
@media (max-width: 576px) {
  .footer-logo-link img {
    width: 120px;
    height: auto;
  }

  .footer-tagline {
    font-size: 0.875rem;
  }

  .footer-link {
    font-size: 0.8125rem;
  }

  .footer-copyright,
  .footer-contact {
    font-size: 0.8125rem;
  }

  /* Stack navigation links vertically on very small screens */
  .footer-nav-links .list-inline-item {
    display: block;
    margin: 0.25rem 0;
  }

  .footer-nav-links .list-inline-item.mx-2 {
    display: none;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .footer-tagline {
    font-size: 0.875rem;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .footer-logo-link,
  .footer-logo-link img,
  .footer-link {
    transition: none;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Base state - hidden before reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Revealed state - triggered by Intersection Observer */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sequential reveal animations */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

.reveal-delay-7 {
  transition-delay: 0.7s;
}

.reveal-delay-8 {
  transition-delay: 0.8s;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .reveal-delay-5,
  .reveal-delay-6,
  .reveal-delay-7,
  .reveal-delay-8 {
    transition-delay: 0s;
  }
}

/* ============================================
   ENHANCED BUTTON MICRO-INTERACTIONS
   ============================================ */

/* Global button enhancements */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Primary button hover effects */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* Primary button active (pressed) effect */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* Outline button hover effects */
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

/* Secondary button hover effects */
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Dark theme button shadows */
[data-bs-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(61, 139, 253, 0.5);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  box-shadow: 0 4px 12px rgba(61, 139, 253, 0.4);
}

/* Focus state for accessibility */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

[data-bs-theme="dark"] .btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.5);
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ============================================
   PRIVACY WIDGET STYLES
   ============================================ */

/* Sticky Privacy Icon - Fixed Position Bottom Right */
.privacy-widget-icon {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1040;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.privacy-widget-icon:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.privacy-widget-icon:active {
  transform: translateY(-2px);
}

/* Dark theme adjustments for icon */
[data-bs-theme="dark"] .privacy-widget-icon {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .privacy-widget-icon:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Privacy Modal Customization */
#privacyModal .modal-content {
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] #privacyModal .modal-content {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

#privacyModal .modal-header {
  border-bottom: 1px solid var(--bs-border-color);
}

#privacyModal .modal-footer {
  border-top: 1px solid var(--bs-border-color);
}

/* Privacy Category Styling */
.privacy-category .form-check-input {
  cursor: pointer;
  width: 3rem;
  height: 1.5rem;
}

.privacy-category .form-check-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Modal Footer Button Spacing */
#privacyModal .modal-footer button {
  margin-left: 0.5rem;
}

#privacyModal .modal-footer button:first-child {
  margin-left: 0;
}

/* Responsive Adjustments - Mobile */
@media (max-width: 576px) {
  .privacy-widget-icon {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  #privacyModal .modal-dialog {
    margin: 0.5rem;
  }

  #privacyModal .modal-content {
    border-radius: 8px;
  }

  #privacyModal .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  #privacyModal .modal-footer button {
    width: 100%;
    margin-left: 0;
  }
}

/* Tablet Adjustments */
@media (max-width: 768px) {
  .privacy-widget-icon {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .privacy-widget-icon {
    transition: box-shadow 0.3s ease;
  }

  .privacy-widget-icon:hover {
    transform: none;
  }
}

/* ============================================
   PRIVACY POLICY PAGE STYLES
   ============================================ */

/* Privacy Policy Section Container */
.privacy-policy-section {
  background: var(--bs-body-bg);
  transition: background-color 0.3s ease;
  min-height: 80vh;
}

/* Privacy Content Typography */
.privacy-content {
  line-height: 1.8;
  max-width: 100%;
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--bs-body-color);
}

.privacy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* Policy Section Spacing */
.policy-section {
  scroll-margin-top: 80px;
}

/* Table of Contents Styling */
.toc-nav {
  background: var(--bs-body-secondary-bg);
  border: 1px solid var(--bs-border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.toc-list {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc-list a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Section Headings */
.privacy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: var(--bs-body-color);
  font-weight: 700;
}

.privacy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
  font-weight: 600;
}

/* Links in Privacy Content */
.privacy-content a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-content a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Print Styling for Privacy Policy */
@media print {
  .privacy-policy-section {
    padding-top: 0;
    min-height: auto;
  }

  .toc-nav {
    border: 1px solid #000;
    background: #f8f9fa;
  }

  .privacy-content {
    line-height: 1.6;
  }

  .privacy-content h2,
  .privacy-content h3 {
    page-break-after: avoid;
  }

  .policy-section {
    page-break-inside: avoid;
  }

  /* Hide interactive elements when printing */
  .btn,
  .navbar,
  .site-footer,
  .privacy-widget-icon {
    display: none;
  }
}

/* Responsive Adjustments - Tablet */
@media (max-width: 768px) {
  .privacy-content {
    line-height: 1.7;
  }

  .privacy-content h2 {
    font-size: 1.5rem;
  }

  .privacy-content h3 {
    font-size: 1.25rem;
  }
}

/* Responsive Adjustments - Mobile */
@media (max-width: 576px) {
  .privacy-policy-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .privacy-content {
    line-height: 1.6;
  }

  .privacy-content h2 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
  }

  .privacy-content h3 {
    font-size: 1.15rem;
    margin-top: 1rem;
  }

  .toc-nav {
    padding: 1rem;
  }

  .toc-list {
    padding-left: 1.25rem;
  }
}
