/* ============================================
   GLOBAL STYLES & CSS VARIABLES
   ============================================ */

/* Define CSS custom properties (variables) for consistent theming throughout the site */
:root {
  /* Color palette */
  --color-primary: #ff6b35; /* Orange - Primary CTA color */
  --color-secondary: #2c3e50; /* Dark blue-gray - Header/Footer background */
  --color-accent: #015e93; /* Blue - Links and accents */
  --color-light-bg: #f5f5f5; /* Light gray - Section backgrounds */
  --color-white: #ffffff; /* White - Card backgrounds */
  --color-dark-text: #333333; /* Dark gray - Main text */
  --color-light-text: #666666; /* Medium gray - Secondary text */
  --color-border: #e0e0e0; /* Light border color */
  --color-black:#000; /* color black */
  

  /* Typography */
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing - Base unit is 1rem (16px) */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-xxl: 4rem; /* 64px */

  /* Grid system */
  --grid-max-width: 1200px; /* Maximum container width */
  --grid-gutter: 2rem; /* Space between grid columns */
  --grid-column-width: calc(
    (100% - (5 * var(--grid-gutter))) / 6
  ); /* 6-column grid */

  /* Border radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* Reset default browser margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling - Sets up the base for the entire page */
body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-dark-text);
  background-color: var(--color-white);
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive image class */
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   GRID SYSTEM - CUSTOM LAYOUT
   ============================================ */

/* Main page container - Sets max-width and centers content */
.page-container {
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-white);
}

/* Grid container - Constrains content width and manages horizontal padding */
.grid-container {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--grid-gutter);
}

/* Grid row - Creates a flex container for columns */
.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gutter);
  margin: 0 calc(-1 * var(--grid-gutter) / 2);
}

/* Grid column base styles - 6 column grid system */
[class*="grid-col-"] {
  flex: 0 0 auto;
  padding: 0 calc(var(--grid-gutter) / 2);
}

/* 6-column width (50% of container) */
.grid-col-6 {
  width: calc((100% - var(--grid-gutter)) / 2);
}

/* 4-column width (33.33% of container) */
.grid-col-4 {
  width: calc((100% - 2 * var(--grid-gutter)) / 3);
}

/* ============================================
   OFF-CANVAS MOBILE MENU STYLES
   ============================================ */

/* Off-canvas menu container - slides in from right */
.offcanvas-menu {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--color-secondary);
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  padding: var(--spacing-lg);
  overflow-y: auto;
}

/* Off-canvas menu open state */
.offcanvas-menu.active {
  right: 0;
}

/* Off-canvas menu list styling */
.offcanvas-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: var(--spacing-lg);
}

/* Off-canvas menu items */
.offcanvas-nav li {
  margin-bottom: var(--spacing-md);
}

/* Off-canvas menu links */
.offcanvas-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  display: block;
  padding: var(--spacing-sm) 0;
  transition: color var(--transition-normal);
}

/* Off-canvas link hover state */
.offcanvas-link:hover {
  color: var(--color-primary);
}

/* CTA button in off-canvas menu */
.btn-cta-offcanvas {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 25px;
  display: inline-block;
  margin-top: var(--spacing-md);
}

.btn-cta-offcanvas:hover {
  background-color: #e55a2b;
  color: var(--color-white);
}

/* Close button for off-canvas menu */
.offcanvas-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-normal);
}

.offcanvas-close:hover {
  color: var(--color-primary);
}

/* Backdrop overlay for off-canvas menu */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Backdrop visible when menu is open */
.offcanvas-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HEADER / NAVIGATION STYLES
   ============================================ */

/* Header section wrapper */
.header-section {
  background-color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation bar container */
.navbar-container {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--grid-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar logo styling */
.navbar-logo {
  height: 60px;
  width: auto;
}

/* Navigation links styling */
.navbar-nav .nav-link {
  color: var(--color-white) !important;
  margin-left: var(--spacing-md);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-normal);
}

/* Hover effect for navigation links */
.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

/* CTA button in navigation */
.btn-cta-nav {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 25px;
  font-weight: var(--font-weight-bold);
  transition: background-color var(--transition-normal);
}

.btn-cta-nav:hover {
  color: #e55a2b !important;
  background-color: var(--color-white) !important;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

/* Hero section background and layout */
.hero-section {
  background: linear-gradient(135deg, #3a4a5c 0%, #2c3e50 100%);
  color: var(--color-white);
  padding: var(--spacing-xxl) var(--grid-gutter);
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Hero content column */
.hero-content {
  padding: var(--spacing-lg) 0;
}

/* Hero label - Small uppercase text above title */
.hero-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #97d5fe;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
}

/* Hero main title */
.hero-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
}

/* Italic emphasis in hero title */
.hero-title em {
  font-style: italic;
  color: var(--color-white);
}

/* Hero subtitle - Key value proposition */
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  color: #97d5fe;
}

/* Hero description text */
.hero-description {
  font-size: 1rem;
  color: #d0d0d0;
  max-width: 500px;
  line-height: 1.8;
}

/* Hero image column */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}

/* ============================================
   FEATURES SECTION STYLES
   ============================================ */

/* Features section container */
.features-section {
  background-color: var(--color-light-bg);
  padding: var(--spacing-xxl) var(--grid-gutter);
}

/* Feature card wrapper - Provides spacing */
.feature-card-wrapper {
  display: flex;
}

/* Feature card styling */
.feature-card {
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    gap: 24px;
  background-color: var(--color-white);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  width: 100%;
}

/* Hover effect for feature cards */
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Feature icon styling */
.feature-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

/* Feature title */
.feature-title {
    text-align:left;
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
  color: var(--color-dark-text);
}

/* Feature description text */
.feature-text {
    text-align:left;
  font-size: 0.95rem;
  color: var(--color-light-text);
  line-height: 1.6;
}

/* ============================================
   SAAS INTRO SECTION STYLES
   ============================================ */

/* SaaS intro section background */
.saas-intro-section {
  background-color: var(--color-white);
  padding: var(--spacing-xxl) var(--grid-gutter);
}

/* Section title - Used across multiple sections */
.section-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-text);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

/* Section subtitle - Used across multiple sections */
.section-subtitle {
  font-size: 1rem;
  color: var(--color-light-text);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Steps row - Grid for 3-step process */
.steps-row {
  margin-bottom: var(--spacing-xl);
}

/* Individual step item */
.step-item {
  padding: var(--spacing-lg);
  background-color: var(--color-light-bg);
  border-radius: var(--border-radius-md);
  text-align: center;
}

/* Step title - Number and action */
.step-title {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

/* Step description text */
.step-description {
  font-size: 0.95rem;
  color: var(--color-light-text);
}

/* SaaS intro CTA text */
.saas-intro-cta {
  font-size: 1rem;
  color: var(--color-light-text);
  text-align: center;
  font-weight: var(--font-weight-medium);
}

/* ============================================
   WHY CHOOSE SECTION STYLES
   ============================================ */

/* Why choose section background */
.why-section {
  background-color: var(--color-light-bg);
  padding: var(--spacing-md) var(--grid-gutter);
}

.why-section .grid-row{
    align-items:center;
}

/* Why content column */
.why-content {
  padding: var(--spacing-lg) 0;
}

/* Why section title */
.why-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-lg);
}

/* Benefits list styling */
.benefits-list {
  list-style: none;
  padding: 0;
}

/* Individual benefit item */
.benefits-list li {
  font-size: 1rem;
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-md);
  padding-left: 2rem;
  position: relative;
  line-height: 1.8;
}

/* Bullet point for benefits */
.benefits-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
}

/* Why image column */
.why-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}

.why-img-responsive {
  box-shadow: none !important;
}
/* ============================================
   SAAS MATRIX GRID SECTION STYLES
   ============================================ */

/* SaaS matrix section background */
.saas-matrix-section {
  background-color: #f5f1e9;
  padding: var(--spacing-sm) var(--grid-gutter);
}

/* SaaS matrix header */
.saas-matrix-header {
  text-align: center;
  margin-bottom: 0px;
}

/* SaaS label - Small uppercase text */
.saas-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
}

/* SaaS title */
.saas-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-sm);
}

/* SaaS description */
.saas-description {
  font-size: 1rem;
  color: var(--color-light-text);
}

/* SaaS Features Grid - Responsive 5-column layout */
.saas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Individual SaaS grid item */
.saas-grid-item {
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

/* Hover effect for SaaS grid items */
.saas-grid-item:hover {
  border-color: var(--color-black);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  transform: translateY(-3px);
}

/* Selected SaaS grid item */
.saas-grid-item.selected {
  background-color: var(--color-primary);
  border-color: var(--color-black));
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.saas-grid-item.selected .saas-icon , .saas-grid-item.selected .saas-label-text{
    color:var(--color-white);
}

/* SaaS icon styling */
.saas-icon {
  font-size: 2rem;
  color: var(--color-black);
  margin-bottom: var(--spacing-sm);
}

/* SaaS label text */
.saas-label-text {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-text);
  line-height: 1.4;
}

/* ============================================
   SELECTION PANEL STYLES
   ============================================ */

/* Selection panel container */
.selection-panel {
    max-width:767px !important;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Selection panel title */
.selection-title {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-sm);
}

/* Selection hint text */
.selection-hint {
  font-size: 0.9rem;
  color: var(--color-light-text);
  margin-bottom: var(--spacing-md);
}

/* Selected items container */
.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  min-height: 40px;
  align-items: center;
}

/* Empty message when no items selected */
.empty-message {
  color: #999;
  font-style: italic;
  margin: 0;
}

/* Individual selected item badge */
.selected-item {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
}

/* Remove button in selected item */
.remove-btn {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: opacity var(--transition-normal);
}

.remove-btn:hover {
  opacity: 0.8;
}

/* ============================================
   CONTACT FORM SECTION STYLES
   ============================================ */

/* Contact section background - centered layout */
.contact-section {
  background-color: var(--color-light-bg);
  padding: var(--spacing-xxl) var(--grid-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Contact form wrapper - centered container with white background */
.contact-form-wrapper {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  max-width: 767px !important;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

/* Contact form styling - flex container for inline layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

/* Form inputs row - displays inputs inline side by side */
.form-inputs-row {
  display: flex;
  gap: var(--spacing-md);
  width: 100%;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form group wrapper - flex item for inline display */
.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

/* Form input styling */
.form-input {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  width: 100%;
}

/* Form input focus state */
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  outline: none;
}

/* Submit button styling */
.btn-submit {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: background-color var(--transition-normal),
    transform var(--transition-fast);
  min-width: 150px;
  height: fit-content;
}

/* Submit button hover state */
.btn-submit:hover {
  background-color: #e55a2b;
  transform: scale(1.05);
}

/* Submit button active state */
.btn-submit:active {
  transform: scale(0.98);
}

/* ============================================
   FOOTER SECTION STYLES
   ============================================ */

/* Footer section background */
.footer-section {
  background-color: var(--color-white);
  color: var(--color-white);
  padding: var(--spacing-lg) var(--grid-gutter);
  margin-top: var(--spacing-xxl);
}

/* Footer content wrapper - flex layout for logo and links */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  width: 100%;
}

/* Footer brand column */
.footer-brand {
  display: flex;
  align-items: center;
}

/* Footer logo */
.footer-logo {
  height: 40px;
  width: auto;
}

/* Footer links column */
.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Individual footer link */
.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

/* Footer link hover state */
.footer-links a:hover {
  color: var(--color-primary);
}

/* Footer copyright text */
.footer-copyright {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0;
  text-align: left;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (1024px and below)
   ============================================ */

@media (max-width: 1024px) {
  /* Adjust grid gutter for smaller screens */
  :root {
    --grid-gutter: 1.5rem;
  }

  /* Adjust hero title size */
  .hero-title {
    font-size: 2rem;
  }

  /* Adjust section title size */
  .section-title {
    font-size: 1.7rem;
  }

  /* Adjust SaaS grid to 4 columns */
  .saas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px and below)
   ============================================ */

@media (max-width: 768px) {
  /* Adjust spacing for smaller screens */
  :root {
    --grid-gutter: 1rem;
    --spacing-xxl: 2rem;
  }

  /* Hero section adjustments */
  .hero-section {
    padding: var(--spacing-xl) var(--grid-gutter);
    min-height: auto;
  }

  /* Hero title becomes smaller */
  .hero-title {
    font-size: 1.8rem;
  }

  /* Hero subtitle becomes smaller */
  .hero-subtitle {
    font-size: 1.2rem;
  }

  /* Grid columns stack on mobile - 100% width */
  .grid-col-6,
  .grid-col-4 {
    width: 100%;
    padding: 0;
  }

  /* Grid row adjusts gap */
  .grid-row {
    gap: var(--spacing-lg);
    margin: 0;
  }

  /* Navigation adjustments */
  .navbar-nav .nav-link {
    margin-left: 0;
    padding: var(--spacing-sm) 0;
  }

  /* Hide desktop navbar on tablet and mobile */
  .navbar-collapse {
    display: none;
  }

  /* Show hamburger menu on tablet and mobile */
  .navbar-toggler {
    display: block;
  }

  /* Features section adjustments */
  .features-section {
    padding: var(--spacing-xl) var(--grid-gutter);
  }

  /* Feature card adjustments */
  .feature-card {
    padding: var(--spacing-md);
  }

  /* SaaS grid adjusts to 3 columns */
  .saas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }

  /* SaaS grid item adjustments */
  .saas-grid-item {
    min-height: 120px;
    padding: var(--spacing-md);
  }

  /* Contact form adjustments */
  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  /* Form inputs stack vertically on tablet */
  .form-inputs-row {
    flex-direction: column;
  }

  /* Form group full width on tablet */
  .form-group {
    max-width: 100%;
    min-width: 100%;
  }

  /* Footer adjustments */
  .footer-section {
    padding: var(--spacing-lg) var(--grid-gutter);
  }

  /* Footer content stacks vertically on tablet */
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
  }

  /* Footer links stack vertically */
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
  /* Adjust spacing for mobile */
  :root {
    --grid-gutter: 0.75rem;
    --spacing-xxl: 1.5rem;
    --spacing-xl: 1.5rem;
  }

  /* Hero section mobile adjustments */
  .hero-section {
    padding: var(--spacing-lg) var(--grid-gutter);
    min-height: auto;
  }

  /* Hero title mobile size */
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  /* Hero subtitle mobile size */
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Hero label mobile size */
  .hero-label {
    font-size: 0.75rem;
  }

  /* Section title mobile size */
  .section-title {
    font-size: 1.3rem;
  }

  /* SaaS grid adjusts to 2 columns on mobile */
  .saas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* SaaS grid item mobile adjustments */
  .saas-grid-item {
    min-height: 100px;
    padding: var(--spacing-sm);
  }

  /* SaaS icon mobile size */
  .saas-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
  }

  /* SaaS label mobile size */
  .saas-label-text {
    font-size: 0.75rem;
  }

  /* Feature card mobile adjustments */
  .feature-card {
    padding: var(--spacing-md);
  }

  /* Feature icon mobile size */
  .feature-icon {
    font-size: 2rem;
  }

  /* Feature title mobile size */
  .feature-title {
    font-size: 1.1rem;
  }

  /* Step item mobile adjustments */
  .step-item {
    padding: var(--spacing-md);
  }

  /* Step title mobile size */
  .step-title {
    font-size: 1.1rem;
  }

  /* Contact form mobile adjustments */
  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  /* Form inputs stack vertically on mobile */
  .form-inputs-row {
    flex-direction: column;
  }

  /* Form group full width on mobile */
  .form-group {
    max-width: 100%;
    min-width: 100%;
  }

  /* Submit button full width on mobile */
  .btn-submit {
    width: 100%;
    min-width: auto;
  }

  /* Footer mobile adjustments */
  .footer-section {
    padding: var(--spacing-md) var(--grid-gutter);
  }

  /* Footer content mobile adjustments */
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  /* Footer logo mobile size */
  .footer-logo {
    height: 30px;
  }

  /* Footer copyright mobile size */
  .footer-copyright {
    font-size: 0.8rem;
  }

  /* Selection panel mobile adjustments */
  .selection-panel {
    padding: var(--spacing-md);
  }

  /* Selected items mobile adjustments */
  .selected-items {
    gap: var(--spacing-sm);
  }

  /* Selected item mobile size */
  .selected-item {
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text alignment utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Display utilities */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

/* Margin utilities */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-xs);
}
.mb-2 {
  margin-bottom: var(--spacing-sm);
}
.mb-3 {
  margin-bottom: var(--spacing-md);
}
.mb-4 {
  margin-bottom: var(--spacing-lg);
}
.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-xs);
}
.mt-2 {
  margin-top: var(--spacing-sm);
}
.mt-3 {
  margin-top: var(--spacing-md);
}
.mt-4 {
  margin-top: var(--spacing-lg);
}
.mt-5 {
  margin-top: var(--spacing-xl);
}

:root {
      --tile-size: 200px;
      --tile-gap: 16px;

      --idle-bg: #ffffff;
      --hover-bg: #000000;
      --text-idle: #333333;
      --text-active: #ffffff;
      --outline-color: #c8a45a;
      --card-radius: 24px;
      --transition-fast: 120ms;
    }

    * { box-sizing: border-box; }

    
    .page {
        background-color:#f5f1e9;
      width: 100%;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
    }

    .matrix {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: nowrap;
    }

    .category-column {
      display: grid;
      grid-template-rows: auto repeat(5, var(--tile-size));
      row-gap: var(--tile-gap);
      justify-items: center;
    }

    .category-title {
      font-family: "Roboto", sans-serif;
      font-size: 19px;
      font-weight: 600;
      padding-top: 8px;
      border-top: 4px solid #000;
      width: var(--tile-size);
      text-align: center;
    }

    .status-card {
      width: var(--tile-size);
      height: var(--tile-size);
      border-radius: var(--card-radius);
      background: var(--idle-bg);
      color: var(--text-idle);
      border: 2px solid transparent;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 16px;
      cursor: pointer;
      text-align: center;
      transition:
        background var(--transition-fast) ease,
        color var(--transition-fast) ease,
        border-color var(--transition-fast) ease,
        box-shadow var(--transition-fast) ease,
        transform var(--transition-fast) ease;
    }

    .status-card:hover {
      background: var(--hover-bg);
      color: var(--text-active);
      transform: translateY(-2px);
      box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    }

    .status-card__icon {
      width: 60px;
      height: 60px;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform var(--transition-fast) ease;
    }

    .status-card__icon img {
      max-width: 100%;
      max-height: 100%;
      position: absolute;
      inset: 0;
      margin: auto;
      transition: opacity var(--transition-fast) ease;
    }

    .status-card__icon img.icon-idle { opacity: 1; }
    .status-card__icon img.icon-active { opacity: 0; }

    .status-card:hover .status-card__icon img.icon-idle { opacity: 0; }
    .status-card:hover .status-card__icon img.icon-active { opacity: 1; }
    .status-card:hover .status-card__icon { transform: scale(1.05); }

    .status-card__label {
      font-size: 20px;
      font-weight: 500;
      line-height: 1.2;
    }

    .status-card.is-selected {
      background: var(--hover-bg);
      color: var(--text-active);
      border-color: var(--outline-color);
      box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.4),
        0 20px 34px rgba(0, 0, 0, 0.35);
    }
    .status-card.is-selected .status-card__icon img.icon-idle { opacity: 0; }
    .status-card.is-selected .status-card__icon img.icon-active { opacity: 1; }
    .status-card.is-selected .status-card__icon { transform: scale(1.05); }

    .selection-panel {
      width: 100%;
      max-width: 1100px;
      background: #fff;
      border-radius: 16px;
      padding: 14px 18px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .selection-panel h2 {
      margin: 0 0 6px;
      font-size: 18px;
    }

    .selection-panel small {
      color: #777;
      display: block;
      margin-bottom: 8px;
    }

    #selectionList {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 14px;
    }

    #selectionList li {
      padding: 0;
      border-bottom: none;
    }

    .selection-empty {
      color: #999;
      font-style: italic;
    }

    .selection-tile {
      position: relative;
      width: calc(var(--tile-size) * 0.7);
      height: calc(var(--tile-size) * 0.7);
      border-radius: var(--card-radius);
      background: var(--hover-bg);
      color: var(--text-active);
      border: 2px solid var(--outline-color);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px;
      text-align: center;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
      font-size: 13px;
    }

    .selection-tile__remove {
      position: absolute;
      top: 4px;
      right: 6px;
      border: none;
      background: none;
      color: #ffffff;
      font-size: 16px;
      cursor: pointer;
      line-height: 1;
    }

    .selection-tile__icon {
      width: 40px;
      height: 40px;
    }

    .selection-tile__icon img {
      max-width: 100%;
      max-height: 100%;
      display: block;
      margin: 0 auto;
    }

    .selection-tile__label {
      line-height: 1.2;
    }

    .hover-popup {
      position: absolute;
      max-width: 320px;              /* desktop width */
      background: #ffffff;
      color: #333333;
      border-radius: 14px;
      padding: 14px 16px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
      z-index: 1000;
      opacity: 0;
      pointer-events: none;          /* disabled until visible */
      transform: translate(-50%, 4px); /* very close under the tile */
      transition: opacity var(--transition-fast) ease;
      font-size: 14px;
      line-height: 1.5;
    }

    .hover-popup.is-visible {
      opacity: 1;
      pointer-events: auto;          /* clickable when visible */
    }

    .hover-popup__close {
      position: absolute;
      top: 6px;
      right: 10px;
      background: transparent;
      border: none;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
    }

    .hover-popup__title {
      font-weight: 600;
      margin-bottom: 6px;
      font-size: 15px;
    }

    /* footer/button exists but hidden on desktop (mobile only) */
    .hover-popup__footer { display: none; }
    .hover-popup__action { display: none; }

    @media (max-width: 768px) {
      :root {
        --tile-size: 150px;
        --tile-gap: 12px;
      }

      body {
        align-items: flex-start;
      }

      .page {
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 16px 12px 220px; /* extra bottom space for fixed My Selection bar */
      }

      /* COLUMNS BECOME ACCORDIONS */
      .matrix {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }

      .category-column {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
        grid-template-rows: auto;                         /* title row */
        grid-auto-rows: var(--tile-size);                 /* tile rows */
        column-gap: var(--tile-gap);
        row-gap: var(--tile-gap);
        justify-items: center;
      }

      /* Accordion header bar */
      .category-title {
        grid-column: 1 / -1;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        border-radius: 12px;
        border-top: none;
        border-bottom: 1px solid #ddd;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
      }

      /* Arrow indicator */
      .category-title::after {
        content: "▾";
        font-size: 18px;
      }

      .category-column.is-collapsed .category-title::after {
        content: "▸";
      }

      /* Hide tiles when collapsed */
      .category-column.is-collapsed .status-card {
        display: none;
      }

      /* Tile layout 2 + 2 + 1 */
      .category-column > .status-card {
        width: 100%;
      }

      /* 5th tile (6th child incl. title) centered under first 4 */
      .category-column > .status-card:nth-child(6) {
        grid-column: 1 / -1;
        justify-self: center;
      }

      /* FIXED "MY SELECTION" BAR AT BOTTOM (MOBILE ONLY) */
      .selection-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
      }

      .selection-panel small {
        display: none; /* instruction no longer true on mobile */
      }

      .selection-panel h2 {
        margin: 0 0 8px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      #selectionList {
        justify-content: center;
        gap: 8px;
      }

      .selection-tile {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        padding: 6px;
        gap: 6px;
        font-size: 10px;
      }

      .selection-tile__icon {
        width: 28px;
        height: 28px;
      }

      .selection-tile__label {
        font-size: 10px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .selection-tile__remove {
        top: -2px;
        right: 4px;
        font-size: 18px;
      }

      /* MOBILE POPUP: 90% width, scrollable body + fixed bottom action button */
      .hover-popup {
        width: 90vw;
        max-width: 90vw;
        max-height: 45vh;   /* smaller height */
        overflow: hidden;   /* body scroll is inside .hover-popup__scroll */
        display: flex;
        flex-direction: column;
        padding: 14px 16px 12px;
      }

      .hover-popup__scroll {
        overflow-y: auto;
        padding-right: 2px; /* nicer scrollbar spacing */
      }

      .hover-popup__footer {
        display: block;
        margin-top: 12px;
      }

      .hover-popup__action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        border: none;
        background: #000;
        color: #fff;
        padding: 14px 12px;
        border-radius: 12px;
        font-weight: 700;
        letter-spacing: 0.2px;
        cursor: pointer;
      }

      .hover-popup__action.is-added {
        background: #111;
        opacity: 0.92;
      }
    }

    /* HEIGHT-based scaling for smaller laptop screens */
    @media (max-height: 900px) {
      :root {
        --tile-size: 150px;
        --tile-gap: 12px;
      }
      .status-card__label {
        font-size: 18px;
      }
    }

    @media (max-height: 800px) {
      :root {
        --tile-size: 140px;
        --tile-gap: 8px;
      }
      .status-card__label {
        font-size: 16px;
      }
      .selection-panel {
        padding: 10px 14px;
      }
      .selection-panel h2 {
        font-size: 16px;
      }
      .selection-panel small {
        font-size: 12px;
      }
    }

