/* style.css - Expansive & Enhanced Designer Theme */

:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent: #6366f1;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-soft: #f8fafc;
  --card-radius: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
.brand-name,
.footer-heading {
  font-family: "Outfit", sans-serif;
}

/* --- BRANDING --- */
.brand-name {
  font-size: 1.8rem;
  color: var(--text-dark);
  letter-spacing: -1px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-name-white {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  color: white !important;
}

.logo-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- SECTION PADDING --- */
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}
/* Reduce the overall section height */
#features.py-10 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Shrink the section main heading */
#features h2.display-3 {
  font-size: 2.2rem !important; /* Reduced from 3.5rem */
  margin-bottom: 2rem !important;
}

/* Glassmorphism Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding: 1.5rem 0;
}

/* Buttons */
.btn-premium {
  background: var(--primary-gradient);
  color: #fff !important;
  border: none;
  border-radius: 18px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.btn-premium-lg {
  background: var(--primary-gradient);
  color: #fff !important;
  border-radius: 24px;
  padding: 1.6rem 5rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
}

/* --- MEGA CARDS FOR TECH ECOSYSTEM --- */
.mega-card {
  padding: 2.5rem 1.5rem !important; /* Reduced from 4rem 2.5rem */
  min-height: 350px;                 /* Reduced from 480px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.mega-icon {
  font-size: 2.5rem !important;   /* Reduced from 3.5rem */
  width: 100px !important;        /* Reduced from 140px */
  height: 100px !important;       /* Reduced from 140px */
  margin-bottom: 1.5rem !important; /* Reduced from 2.5rem */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;            /* Slightly sharper corners for smaller size */
  position: relative;
  transition: all 0.4s ease;
}

/* Glassmorphism Icon Effects */
.glass-icon-rocket {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #ef4444;
}
.glass-icon-chart {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #22c55e;
}
.glass-icon-globe {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
}
.glass-icon-shield {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #8b5cf6;
}
.glass-icon-code {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #a855f7;
}
.glass-icon-calendar {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #06b6d4;
}

.mega-icon i {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.modern-card:hover.mega-card {
  transform: translateY(-20px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 60px 100px -30px rgba(15, 23, 42, 0.15) !important;
}

.modern-card:hover .mega-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* UI Elements */
.hero-badge {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rounded-custom {
  border-radius: var(--card-radius);
}
.bg-soft-gradient {
  background: radial-gradient(circle at top left, #f7f9ff, #ffffff);
}

/* CTA Banner */
.cta-premium-box {
  background: var(--text-dark);
  border-radius: 60px;
  color: white;
  overflow: hidden;
  padding: 4rem 0;
}
.btn-white-premium {
  background: white;
  color: var(--text-dark);
  border-radius: 20px;
  border: none;
  font-size: 1.2rem;
  padding: 1.2rem 3.5rem;
}

.cta-img-offset {
  height: 600px;
  margin-bottom: -120px;
  filter: drop-shadow(0 40px 80px rgba(59, 14, 99, 0.566));
}

/* Footer Styling */
.footer-custom {
  padding-top: 100px;
  padding-bottom: 40px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.15rem;
  transition: 0.2s;
}
.footer-link:hover {
  color: var(--accent);
  transform: translateX(5px);
  display: inline-block;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f1f5f9;
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s;
}
.social-icon:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(99, 102, 241, 0.2);
}

/* --- LOGO SIZE --- */
.brand-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.mega-card h3 {
  font-size: 1.5rem !important; /* Makes the card titles more compact */
}

@media (max-width: 768px) {
  .display-2 {
    font-size: 3.5rem;
  }
  .cta-img-offset {
    display: none;
  }
}

/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* --- DEMO PAGE SPECIFIC CLASSES --- */

/* Main Card Layout */
.demo-card {
  min-height: 620px;
  border-radius: 40px !important;
  background: white;
  box-shadow: 0 45px 90px -20px rgba(15, 23, 42, 0.15);
}

/* Sidebar Styling */
.brand-side {
  background: var(--primary-gradient);
  border-radius: 40px 0 0 40px;
}

.testimonial-snippet {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Form Styling */
.form-label-custom {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.05em;
}

.form-control-custom {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  transition: 0.2s;
}

.form-control-custom:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Referral Box Styling */
.referral-container {
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.referral-container:focus-within {
  border-color: var(--accent);
  background: #f5f7ff;
}

/* Responsive Fix for Demo Sidebar */
@media (max-width: 991px) {
  .brand-side {
    border-radius: 40px 40px 0 0;
  }
  .demo-card {
    min-height: auto;
  }
}

/* --- Catchy Referral Section Styling --- */
.referral-box {
  background: #f8faff; /* Very light blue tint to distinguish it */
  border: 2px dashed #6366f1; /* Dashed brand color border */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.referral-box:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.referral-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.referral-icon {
  position: absolute;
  left: 15px;
  color: #6366f1;
  font-size: 1.1rem;
  z-index: 5;
}

.referral-field {
  padding-left: 45px !important; /* Make room for the icon */
  background: white !important;
  border: 1.5px solid #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.referral-field:focus {
  border-color: #8b5cf6;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1) !important;
}

/* Label specific to referral */
.referral-box .form-label-custom {
  color: #4338ca;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* Career Modal Styling */
.fw-600 {
  font-weight: 600;
}
.fw-800 {
  font-weight: 800;
}

.custom-input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Custom Upload Area */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: #f8fafc;
  position: relative;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #6366f1;
  background: #f1f5f9;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #64748b;
  pointer-events: none;
}

.btn-light-custom {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.modal-content {
  border-radius: 24px;
  overflow: hidden;
}

/* Matches your existing button style if not already defined */
.btn-premium {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  color: white;
  opacity: 0.9;
}

/* Container styling */
.innovation-section {
  background-color: #fff;
  position: relative;
}

/* Image Base Style */
.scattered-img {
  position: absolute;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  z-index: 2;
}

.scattered-img:hover {
  transform: scale(1.1) rotate(3deg);
  z-index: 10;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 767px) {
  .col-md-3 {
    min-height: 200px !important;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .scattered-img {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 80px;
    height: 80px;
  }
}
/* --- UNIVERSAL SCATTERED IMAGE STYLE --- */
.scattered-img {
  position: absolute;
  width: 200px !important; /* Unified larger size */
  height: 200px !important; /* Unified larger size */
  object-fit: cover;
  border-radius: 24px;
  border: 5px solid #ffffff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 2;
}

/* Hover effect for interactivity */
.scattered-img:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
}

/* --- LEFT SIDE POSITIONING --- */
.img-l-1 {
  top: 0%;
  right: 5%;
}
.img-l-2 {
  top: 22%;
  left: -10%;
}
.img-l-3 {
  top: 48%;
  right: -5%;
}
.img-l-4 {
  bottom: 15%;
  left: 0%;
}

/* Top Right: Pushed slightly out to the right */
.img-r-1 {
  top: 0%;
  left: 5%; /* Increased from 5% to move away from center */
}

/* Mid Top Right: Pushed to the far right edge */
.img-r-2 {
  top: 22%;
  right: -10%; /* Keeps it consistent with left-side spacing */
}

/* Center Right: Shifted slightly left to fill the gap near the text */
.img-r-3 {
  top: 48%;
  left: -5%; /* Increased to prevent overlap with the image above it */
}

/* Mid Bottom Right: Pushed to the far right edge */
.img-r-4 {
  bottom: 15%;
  right: 0%;
}

/* --- CONTAINER ADJUSTMENT --- */
@media (min-width: 992px) {
  .innovation-section [class*="col-md-3"] {
    min-height: 850px !important; /* Prevents bottom images from being cut off */
  }
}
/* Enhanced Floating Animation */
@keyframes floatLarge {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.floating-img {
  animation: floatLarge 6s ease-in-out infinite;
}

/* Delay Overrides for 8 images */
.float-delay-1 {
  animation-delay: 0s;
}
.float-delay-2 {
  animation-delay: 1.2s;
  animation-duration: 7s;
}
.float-delay-3 {
  animation-delay: 0.5s;
  animation-duration: 5.5s;
}
.float-delay-4 {
  animation-delay: 2s;
  animation-duration: 8s;
}
.float-delay-5 {
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

/* Mobile Handling */
@media (max-width: 991px) {
  .scattered-img {
    width: 100px;
    height: 100px;
  }
  .col-md-3 {
    min-height: 300px !important;
  }
}

/* GLOBAL ANALYTICS SECTION - SIDE BY SIDE LAYOUT */

/* Ensure the section has a clean background */
.bg-white {
  background-color: #ffffff !important;
}

/* Card styling to match your brand's premium feel */
.analytics-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%; /* Ensures it fills the column height */
}

.analytics-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Map image handling */
.analytics-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Custom progress bar styling */
.location-stats .progress {
  background-color: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
}

.location-stats .progress-bar {
  background-color: #6366f1 !important; /* Premium brand purple/blue */
  border-radius: 100px;
}

/* Testimonial styling with a branded accent */
.testimonial-snippet {
  border-left: 4px solid #6366f1 !important;
  background: rgba(99, 102, 241, 0.03);
  padding: 1.5rem 2rem;
  border-radius: 0 16px 16px 0;
}
/* FORCE SIDE-BY-SIDE LAYOUT */
.global-collaboration-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

/* On screens larger than 768px, force 50/50 split */
@media (min-width: 768px) {
  .side-by-side-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Adds the space between the card and the text */
  .content-column-padding {
    padding-left: 5rem !important;
  }
}

.display-4 {
  font-size: 2.5rem; /* Smaller heading for mobile */
}
/* PREMIUM ANALYTICS SECTION STYLES */

.analytics-card-premium {
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.map-container img {
  filter: saturate(1.2);
  transition: transform 0.5s ease;
}

.custom-bar {
  background-color: #6366f1 !important; /* Branded Blue/Purple */
  border-radius: 10px;
}

.progress {
  background-color: #f3f4f6;
  border-radius: 10px;
}

.border-start-primary {
  border-left: 5px solid #6366f1 !important;
}

.fw-800 {
  font-weight: 800;
}
.shadow-xl {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

/* Forces the side-by-side gap and alignment */
@media (min-width: 992px) {
  .content-wrapper {
    padding-left: 60px;
  }

  .display-3 {
    font-size: 3.5rem;
  }
}

/* Mobile responsive fix */
@media (max-width: 767px) {
  .col-md-5,
  .col-md-6 {
    text-align: center;
  }
  .border-start-primary {
    border-left: none !important;
    border-top: 3px solid #6366f1;
    padding-top: 20px;
    padding-left: 0 !important;
  }
}

/* --- EXPANSIVE PROJECTS SECTION --- */

.bg-light-soft {
  background-color: #f8fafc;
}

/* Ensure the grid stretches to the edges */
.container-fluid {
  max-width: 96% !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

.project-card-large {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  /* 1. This forces the boxes to be tall and fill the page height */
  min-height: 480px;
  background: #ffffff;
  /* 2. Increased padding (p-5 in HTML) plus this radius fills the space */
  border-radius: 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.project-card-large:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1) !important;
  border-color: #6366f1 !important;
}

/* 3. Make text larger so the box doesn't look "empty" */
.project-card-large p {
  font-size: 1.15rem !important;
  line-height: 1.8;
  color: #475569 !important;
}

/* 4. Increase heading size for the full-page look */
.display-3 {
  font-size: 3.5rem;
  font-weight: 800;
}
/* demo css
/* Matches your existing button style if not already defined */
.btn-premium {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  color: rgb(57, 71, 122);
  opacity: 0.9;
}

/* Container for the brand text */
.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Style for "Neoera's" */
.sub-brand {
  font-size: 0.65rem; /* Smaller size */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #09090b; /* Using your premium indigo color */
  font-weight: 700;
  margin-bottom: -2px; /* Pulls Peoplora closer to it */
}

/* Style for "Peoplora" */
.main-brand {
  font-size: 1.5rem; /* Standard brand size */
  color: #1a1a1a;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}
/* --- PREMIUM TESTIMONIAL UI --- */

.premium-testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.08);
  border-color: var(--accent);
}

.testimonial-text {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
}

.client-info {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 1.5rem;
}

.client-avatar-circle {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 12px;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.client-name {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.client-org {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsiveness */
@media (max-width: 991px) {
  .premium-testimonial-card {
    padding: 1.8rem;
  }
}
/* Custom Icon Boxes for Problem/Solution */
.icon-box-danger {
  width: 70px;
  height: 70px;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box-success {
  width: 70px;
  height: 70px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-light-soft {
  background-color: #f8f9fc;
}

/* Add a subtle hover effect to the boxes */
.col-md-6 .card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.col-md-6 .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1) !important;
}
/* --- PRODUCT FAQ STYLING --- */
.custom-faq .accordion-item {
    border-radius: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-faq .accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
}

.custom-faq .accordion-button {
    border-radius: 20px !important;
    box-shadow: none !important;
}

.custom-faq .accordion-button:not(.collapsed) {
    color: #6366f1; /* Your primary accent color */
    background-color: #ffffff;
}

.custom-faq .accordion-button::after {
    transition: transform 0.3s ease;
}

.custom-faq .accordion-body {
    border-top: 1px solid rgba(0,0,0,0.05);
    line-height: 1.6;
}
/* --- COMPREHENSIVE MOBILE RESPONSIVENESS --- */

@media (max-width: 991px) {
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Hero Section Adjustments */
    .display-2 {
        font-size: 2.5rem !important; /* Scale down hero text */
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        padding: 0 15px;
    }

    /* Demo Card: Stack vertically */
    .brand-side {
        border-radius: 40px 40px 0 0 !important; /* Round top corners only */
        padding: 3rem 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Global Collaboration Section Fix */
    .content-wrapper {
        padding-left: 0 !important; /* Remove desktop-only padding */
        text-align: center;
        margin-top: 40px;
    }

    /* Testimonial Box border fix for mobile */
    .border-start-primary {
        border-left: none !important;
        border-top: 4px solid #6366f1 !important;
        padding-left: 0 !important;
        padding-top: 20px;
    }

.mega-card p {
  font-size: 1rem !important;   /* Standardizes description text size */
}

    /* CTA Section: Ensure text doesn't hit edges */
    .cta-premium-box h2 {
        font-size: 2rem !important;
    }
}

/* Fix for the Innovation (Engineers) Section */
@media (max-width: 767px) {
    .innovation-section .col-md-3 {
        min-height: auto !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .scattered-img {
        position: relative !important; /* Remove absolute positioning */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 80px !important;
        height: 80px !important;
        margin: 5px;
    }
}

/* --- STANDARDIZED COMPACT HEADINGS --- */

/* Targets: "HR as Strategic", "Built for Tech Ecosystem", and "The Minds Behind" */
.display-3, 
.display-4, 
#features h2.display-3, 
.innovation-section h2.display-3 {
    font-size: 2rem !important; /* Standardized reduced size */
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.5px !important;
}

/* Standardize the sub-brand and badges */
.hero-badge, 
.badge.bg-soft-primary {
    font-size: 0.75rem !important;
    padding: 0.5rem 1.2rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reduce standard paragraph sizes to match new heading scale */
.text-secondary.fs-4, 
.text-secondary.fs-5,
.mega-card p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Reduce padding for all major sections */
.py-10, 
.section-padding,
#features.py-10 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Compact the Innovation (Engineers) text container */
.innovation-section .content-box {
    padding: 0 10px !important;
}

/* Compact the Strategic Impact cards */
.col-md-6 .card.p-5 {
    padding: 2rem !important;
}

/* --- SLIGHTLY REDUCED STANDARDIZED HEADINGS --- */

/* Targets all major headings: Hero, Tech Ecosystem, Innovation, Strategic Impact */
h1.display-2,
h2.display-3, 
h2.display-4,
.innovation-section h2.display-3,
#features h2.display-3 {
    font-size: 2.4rem !important; /* Slightly reduced but clear scale */
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.5px !important;
}

/* Slightly scale down the badge text */
.hero-badge, 
.badge.bg-soft-primary {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.4rem !important;
}

/* Subtle reduction for sub-headlines and paragraph text */
.hero-subtitle,
.text-secondary.fs-4, 
.text-secondary.fs-5 {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    max-width: 800px;
}

/* Compact Mega Cards Padding and Titles */
.mega-card {
    padding: 2.2rem 1.8rem !important;
    min-height: 380px !important;
}

.mega-card h3.display-6 {
    font-size: 1.4rem !important; /* Standardized card headings */
    margin-bottom: 12px !important;
}

/* --- SECTION PADDING TWEAKS --- */
.py-10, 
.section-padding {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Update these in style.css to reduce gaps significantly */

.section-padding {
  padding-top: 40px !important;    /* Reduced from 100px */
  padding-bottom: 40px !important; /* Reduced from 100px */
}

.py-10 {
  padding-top: 30px !important;    /* Reduced from 80px */
  padding-bottom: 30px !important; /* Reduced from 80px */
}

/* Specific fix for the gap between sections like Leave Management and Strategic Impact */
section.bg-soft-gradient, 
section.bg-light-soft {
  margin-bottom: 0 !important;
  padding-top: 30px !important;
}

@media (max-width: 991px) {
  /* Round top corners only on mobile for a clean stack */
  .brand-side {
    border-radius: 24px 24px 0 0 !important; 
    padding: 2.5rem 1.5rem !important;
    text-align: center;
  }
  
  .main-brand {
    font-size: 1.8rem !important; /* Scaled down for mobile view */
  }

  /* Reduce gap between branding text and testimonial snippet on mobile */
  .brand-side .mb-5 {
    margin-bottom: 1.5rem !important;
  }
}