/* ================================
   1. Color Theme (Blue → Orange)
   ================================ */
:root {
  --gradient-bg: linear-gradient(90deg, #5285A4 0%, #DFA04C 100%);
  --primary-color: #007bff; /* Bright Blue */
  --secondary-color: #ff7e00; /* Vivid Orange */
  --accent-color: #ff9800; /* Soft Amber Accent */
  --text-dark: #131921ff;
  --text-light: #ffffff;
  --bg-light: #f8fafc;
}

/* ================================
   2. Global Styles
   ================================ */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--text-dark);
}

img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

/* ================================
   3. Hero Section (Improved)
   ================================ */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  background: var(--gradient-bg);
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 3rem;
  min-height: 85vh;
  box-sizing: border-box;
}

.hero-container + section {
  margin-top: 3rem;
}

/* Text content */
.hero-content {
  flex: 1 1 50%;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #201e1e;
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Video container */
.hero-visual {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .hero-video {
    max-width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}


/* ================================
   4. Service Highlights Section
   ================================ */
.service-highlights {
  padding: 4rem 5%;
  background: var(--bg-light);
}

.highlights-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ===== Feature Block Layout ===== */
.feature-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}


/* ===== Feature Visual (Images) ===== */
.feature-visual {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-screenshot {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.visual-screenshot img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
}

.image-wrapper img:first-child {
  /* This image stays in the normal flow */
  width: 90%;
  height: auto;
  display: block;
  position: relative;
  z-index: 10;
  margin-left: 20px;
 
}

/* --- The Background Image --- */
/* Selects the last <img> in the wrapper (dashboard.jpg) */
.image-wrapper img:last-child {
  
}
  


/* ===== Feature Content (Text) ===== */
.feature-content {   
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  opacity: 0.2;
  position: relative;
  top: -10px;
}

.feature-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.feature-benefit,
.feature-value {
  margin-bottom: 1rem;
}

.benefit-label,
.value-label {
  font-weight: 600;
  color: var(--secondary-color);
}

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.check-icon {
  flex-shrink: 0;
  color: var(--secondary-color);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  .feature-block {
    flex-direction: column;
    text-align: center;
  }

  .feature-content {
    order: 2 !important;
  }

  .feature-visual {
    order: 1 !important;
    margin-bottom: 1.5rem;
  }

  .visual-screenshot {
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .feature-title {
    font-size: 1.4rem;
  }

  .feature-number {
    font-size: 2.2rem;
  }

  .visual-screenshot {
    max-width: 300px;
  }
}



/* ================================
   6. Summary Table
   ================================ */
.quick-overview {
   background: url('../assets/quickOverview-bg.jpg');

  background-size: cover;
  background-position: center;
  width: 100%;
  margin: 2rem auto; /* Centers the section on the page */
  padding: 1.5rem;
  
}

.table-caption {
 color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

/* --- Content Wrapper (Mobile-First) --- */
.overview-content {
  display: flex;
  flex-direction: column; /* MOBILE: Stacks items vertically */
  gap: 6vw; /* Space between table and button on mobile */
}

.video-btn {
  display: flex;
  items-aligns: center;
  justify-content: center;
  margin-top: 6vh;
  margin-bottom: 4vh;
}

/* 2. THE TABLE & ANIMATED GRADIENT */
table {
    width: 100%;
    border-collapse: collapse; /* Removes default spacing */
    color: white; /* Makes text readable on the dark gradient */
    border-radius: 10px; /* Rounds the corners */
    overflow: hidden; /* Clips the gradient to the rounded corners */

    /* * THE ANIMATED GRADIENT:
     * We make the gradient extra-wide (400%) and then
     * move it using the 'gradient-animation'.
     * #0077be is the ocean blue, #f39c12 is the orange.
    */
    background: linear-gradient(135deg, #0077be, #f39c12, #0077be, #f39c12);
    background-size: 400% 400%;
    
    /* Link to the @keyframes animation */
    animation: gradient-animation 10s ease infinite;
}

/* * This animation code block moves the background position
 * from start to end and back, creating the "changing" effect.
*/
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* 3. THE CELLS (Header and Data) */
th, td {
    padding: 16px 20px;
    text-align: left;
    
    /* This faint border creates a nice separation between rows */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Style the header row (thead) */
thead tr {
    /* Adds a semi-transparent background to make the header stand out */
    background-color: rgba(0, 0, 0, 0.15);
}

/* Style the body rows (tbody) */
tbody tr:hover {
    /* Adds a subtle hover effect for usability */
    background-color: rgba(255, 255, 255, 0.1);
}

/* Remove the border from the very last row */
tbody tr:last-child td {
    border-bottom: none;
}

@media (min-width: 768px) {
  
  .overview-content {
    flex-direction: row;  /* DESKTOP: Arrange items side-by-side */
    align-items: flex-start; /* Aligns items to the top */
  }

  .video-btn{
    margin-left: 240px;
    margin-top: 100%;
  }

  /*
    This is the magic! We use the 'order' property
    to swap the visual order of the elements.
  */

  .summary-table-container {
    order: 2; /* DESKTOP: Moves this item to the 2nd position (right) */
    flex-basis: 70%; /* Takes up 70% of the width */
    overflow-x: hidden; /* No longer need to scroll the container */
  }
  
  table {
    min-width: auto; /* Reset min-width on desktop */
  }

  .demo-button-container {
    order: 1; /* DESKTOP: Moves this item to the 1st position (left) */
    flex-basis: 40%; /* Takes up 30% of the width */
    padding-right: 2rem; /* Adds space between button and table */
    padding-top: 1rem; /* Aligns button nicely */
  }
}

/* ================================
   7. Responsiveness
   ================================ */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 5rem 5%;
    gap: 2rem;
  }

  .hero-content {
    flex: 1 1 100%;
    padding-right: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
    justify-content: center;
    text-align: center;
  }

  .hero-subtitle,
  .hero-cta-text {
    text-align: center;
    font-size: 1rem;
  }

  .hero-visual img {
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .hero-container {
    padding: 4rem 1.5rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .hero-visual img {
    max-width: 100%;
  }
}

/* ================================
   Fix Text Wrapping Alignment
   ================================ */

/* Ensure all section text aligns to the left */
.hero-content,
.feature-content,
.why-choose h2,
.why-card,
.summary-table-section h2 {
  text-align: left;
}

/* Fix .hero-title and subtitle line wrapping */
.hero-title,
.hero-subtitle,
.hero-cta-text,  {
  text-align: left;
  display: block; /* ensure full line control */
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

li {
    text-align: left;
    display: block;
}

/* Fix feature titles and descriptions */
.feature-title,
.feature-benefit,
.feature-value {
  text-align: left;
  display: block;
}

/* Fix "Why Choose" cards text alignment */
.why-card .why-title,
.why-card .why-description {
  text-align: left;
  display: block;
}

/* Fix table section headings alignment */
.summary-table-section h2 {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* Optional: For smaller screens, allow centered text again */
@media (max-width: 768px) {
  .hero-content,
  .feature-content,
  .why-card,
  .summary-table-section h2 {
    text-align: center;
  }
}


