/* Introduction Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  min-height: 85vh;
  height: 85vh;
  margin: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  box-sizing: border-box;

}

/* Desktop overflow control */
@media (min-width: 1200px) {
  .carousel {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* Global fix to prevent horizontal scrollbars */
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

#introduction {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

#introduction .container-fluid {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

#introduction .row {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Prevent animation overflow causing scrollbar blinking */
.carousel-inner {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.carousel-item {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Animation-safe containers */
.carousel-item .col-lg-6 {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure all animated elements stay within bounds */
.carousel-item.active * {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal scroll on all devices */
@media (max-width: 1200px) {
  .carousel {
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  /* Ensure all carousel content stays within bounds */
  .carousel-inner {
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-item {
    overflow: hidden;
    width: 100%;
  }
}

/* Mobile-specific carousel fixes */
@media (max-width: 768px) {
  .carousel {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Force text containers to respect viewport */
  .carousel-item .col-lg-6 {
    max-width: 100vw !important;
    width: 100vw !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure text doesn't break layout */
  .hero-heading,
  .hero-paragraph {
    max-width: calc(100vw - 20px) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }
  
  /* Prevent illustration from being scrollable */
  .carousel-illustration {
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  
  /* Ensure carousel inner and items don't overflow */
  .carousel-inner {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .carousel-item {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .carousel-illustration img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    overflow: hidden !important;
  }
}

/* Mobile-first responsive approach */
@media (max-width: 768px) {
  .carousel {
    min-height: auto;
    height: auto;
    padding: 0 15px;
    margin: 0;
  }
}

body{
  margin:0;
  padding: 0;
}

/* Mobile viewport improvements */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
  }
  
  /* Prevent zoom on double tap */
  * {
    touch-action: manipulation;
  }
  
  /* Improve text readability */
  .hero-heading, .hero-paragraph {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

.carousel-item {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  padding: 40px 60px;
  transform: translateY(30px) scale(0.98);
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Mobile responsive carousel items */
@media (max-width: 768px) {
  .carousel-item {
    padding: 20px 15px;
    min-height: auto;
    height: auto;
    position: relative;
    display: block;
  }
  
  .carousel-item .row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .carousel-item .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 1.5rem;
  }
  
  .carousel-item .col-lg-6:last-child {
    margin-bottom: 0;
  }
  
  /* Force text alignment and wrapping */
  .carousel-item .text-start {
    text-align: center !important;
  }
  
  .carousel-item .text-center {
    text-align: center !important;
  }
}

.carousel-item.active {
  opacity: 1;
  position: relative;
  transform: translateY(0) scale(1);
}

.carousel-item:not(.active) {
  pointer-events: none;
}

.hero-heading {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

/* Mobile responsive text sizing */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }
}

.carousel-item.active .hero-heading {
  opacity: 1;
  transform: translateY(0);
}

.hero-paragraph {
  font-size: 1.25rem;
  color: #4a4a4a;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Mobile responsive paragraph sizing */
@media (max-width: 768px) {
  .hero-paragraph {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .hero-paragraph {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-paragraph {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

.carousel-item.active .hero-paragraph {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.carousel-item.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.hero-cta .btn-outline-primary {
  border: 2px solid #6366f1;
  color: #6366f1;
  background: transparent;
}

.hero-cta .btn-outline-primary:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-3px);
}

.carousel-illustration {
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
  overflow: hidden;
  box-sizing: border-box;
}

/* Desktop illustration overflow control */
@media (min-width: 1200px) {
  .carousel-illustration {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile responsive illustration */
@media (max-width: 768px) {
  .carousel-illustration {
    padding: 10px;
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .carousel-illustration {
    padding: 8px;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .carousel-illustration {
    padding: 5px;
    max-width: 150px;
  }
}

.carousel-item.active .carousel-illustration {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.carousel-illustration::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

/* Mobile responsive background element */
@media (max-width: 768px) {
  .carousel-illustration::before {
    width: 200px;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 576px) {
  .carousel-illustration::before {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .carousel-illustration::before {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 400px) {
  .carousel-illustration::before {
    width: 100px;
    height: 100px;
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.5; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.05); 
    opacity: 0.3; 
  }
}

/* Mobile pulse animation constraints */
@media (max-width: 768px) {
  @keyframes pulse {
    0%, 100% { 
      transform: translate(-50%, -50%) scale(1); 
      opacity: 0.5; 
    }
    50% { 
      transform: translate(-50%, -50%) scale(1.02); 
      opacity: 0.3; 
    }
  }
}

.carousel-illustration img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 15px;
  transform: scale(1);
}

/* Mobile-specific image optimizations */
@media (max-width: 768px) {
  .carousel-illustration img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
  }
  
  .carousel-illustration img:hover {
    transform: none; /* Disable hover effects on mobile */
  }
}

.carousel-illustration img:hover {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
}

/* Carousel Arrow Navigation */
.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 5;
  pointer-events: none;
}

.carousel-arrow {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0d6efd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 6;
}

/* Mobile responsive arrows */
@media (max-width: 768px) {
  .carousel-arrow {
    width: 65px;
    height: 65px;
  }
  
  .carousel-arrow svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 576px) {
  .carousel-arrow {
    width: 60px;
    height: 60px;
  }
  
  .carousel-arrow svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .carousel-arrow {
    width: 55px;
    height: 55px;
  }
  
  .carousel-arrow svg {
    width: 22px;
    height: 22px;
  }
}

.carousel-arrow:hover {
  background: #0d6efd;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.carousel-arrow:hover svg {
  transform: scale(1.1);
}

/* Enhanced section styling */
#introduction {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 2vh;
}

@media (max-width: 768px) {
  #introduction {
    min-height: auto;
    height: auto;
    padding-top: 1vh;
  }
}

#introduction .container-fluid {
  height: auto;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  #introduction .container-fluid {
    height: auto;
    min-height: auto;
    padding: 0 5px;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  #introduction .row {
    margin: 0;
    padding: 0;
  }
  
  #introduction .col-12 {
    padding: 0;
    margin: 0;
  }
  
  /* Ensure text doesn't overflow */
  .hero-heading,
  .hero-paragraph {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

#introduction .row {
  height: auto;
  align-items: center;
}

@media (max-width: 768px) {
  #introduction .row {
    height: auto;
    min-height: auto;
  }
}

#introduction::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(13, 110, 253, 0.1) 50%, transparent 100%); */
}

/* Smooth slide transitions */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation container constraints to prevent scrollbar blinking */
.carousel-item.active .hero-heading,
.carousel-item.active .hero-paragraph,
.carousel-item.active .hero-cta,
.carousel-item.active .carousel-illustration {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure animations don't cause overflow */
@media (max-width: 768px) {
  .carousel-item.active .hero-heading,
  .carousel-item.active .hero-paragraph,
  .carousel-item.active .hero-cta,
  .carousel-item.active .carousel-illustration {
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Responsive Design */

/* Large Desktop Screens */
@media (min-width: 1400px) {
  .hero-heading {
    font-size: 3.2rem;
  }
  
  .hero-paragraph {
    font-size: 1.4rem;
  }
  
  .carousel-illustration {
    max-width: 550px;
  }
  
  .carousel-item {
    padding: 60px 60px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure desktop carousel doesn't overflow */
  .carousel {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .carousel-inner {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
  .hero-heading {
    font-size: 3.5rem;
  }
  
  .hero-paragraph {
    font-size: 1.5rem;
  }
  
  .carousel-illustration {
    max-width: 600px;
  }
  
  .carousel-item {
    padding: 80px 80px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure ultra-wide carousel doesn't overflow */
  .carousel {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .carousel-inner {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* Standard Desktop */
@media (max-width: 1200px) {
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .hero-paragraph {
    font-size: 1.2rem;
  }
  
  .carousel-illustration {
    max-width: 450px;
  }
}

@media (max-width: 992px) {
  .hero-heading {
    font-size: 2.2rem;
  }
  
  .hero-paragraph {
    font-size: 1.15rem;
  }
  
  .carousel-illustration {
    max-width: 400px;
  }
  
  .carousel-item {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .carousel {
    min-height: auto;
    height: auto;
    padding: 0 10px;
    margin: 0;
  }
  
  .carousel-item {
    padding: 15px 10px;
    min-height: auto;
    height: auto;
    position: relative;
    display: block;
  }
  
  .carousel-item .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .carousel-item .col-lg-6 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0 5px;
  }
  
  .carousel-item .col-lg-6:last-child {
    margin-bottom: 0;
  }
  
  .hero-heading {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-paragraph {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .carousel-illustration {
    padding: 10px;
    max-width: 250px;
    margin: 0 auto;
  }
  
  /* Stack buttons vertically on mobile */
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  
  .hero-cta .btn {
    width: auto;
    min-width: 200px;
    max-width: 280px;
  }
  
  /* Ensure proper spacing on smaller screens */
  .row.align-items-center {
    align-items: center !important;
  }
  
  /* Mobile arrow navigation */
  .carousel-arrows {
    padding: 0 5px;
  }
  
  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
  
  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  .carousel {
    min-height: auto;
    height: auto;
    padding: 0 5px;
  }
  
  .carousel-item {
    padding: 10px 5px;
    min-height: auto;
    height: auto;
  }
  
  .carousel-item .col-lg-6 {
    padding: 0 2px;
  }
  
  .hero-heading {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-paragraph {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-cta {
    margin-top: 0.8rem;
  }
  
  .hero-cta .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    min-width: 160px;
    max-width: 200px;
  }
  
  .carousel-illustration {
    max-width: 200px;
    padding: 8px;
  }
  
  /* Smaller arrows for very small screens */
  .carousel-arrow {
    width: 28px;
    height: 28px;
  }
  
  .carousel-arrow svg {
    width: 10px;
    height: 10px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .carousel {
    min-height: auto;
    height: auto;
    padding: 0 20px;
  }
  
  .carousel-item {
    padding: 15px 10px;
    min-height: auto;
    height: auto;
  }
  
  .carousel-item .row {
    flex-direction: row;
    align-items: center;
  }
  
  .carousel-item .col-lg-6 {
    width: 50%;
    margin-bottom: 0;
  }
  
  .hero-heading {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-paragraph {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .carousel-illustration {
    max-width: 250px;
    padding: 10px;
  }
  
  .hero-cta .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 150px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .carousel {
    padding: 0 3px;
  }
  
  .carousel-item {
    padding: 8px 3px;
  }
  
  .carousel-item .col-lg-6 {
    padding: 0 1px;
  }
  
  .hero-heading {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-paragraph {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .carousel-illustration {
    max-width: 150px;
    padding: 5px;
  }
  
  .hero-cta .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-width: 120px;
    max-width: 160px;
  }
}

/* Very small devices (320px - 450px) */
@media (max-width: 450px) {
  .carousel {
    padding: 0 2px;
  }
  
  .carousel-item {
    padding: 6px 2px;
  }
  
  .carousel-item .col-lg-6 {
    padding: 0;
  }
  
  .hero-heading {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-paragraph {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .carousel-illustration {
    max-width: 100px;
    padding: 2px;
  }
  
  .hero-cta .btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    min-width: 100px;
    max-width: 140px;
  }
  
  .carousel-arrow {
    width: 50px;
    height: 50px;
  }
  
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 400px) {
  .carousel {
    padding: 0 1px;
  }
  
  .carousel-item {
    padding: 5px 1px;
  }
  
  .hero-heading {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.7;
  }
  
  .hero-paragraph {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    line-height: 2;
  }
  
  .carousel-illustration {
    max-width: 80px;
    padding: 1px;
  }
  
  .hero-cta .btn {
    padding: 4px 8px;
    font-size: 0.65rem;
    min-width: 90px;
    max-width: 120px;
  }
  
  .carousel-arrow {
    width: 45px;
    height: 45px;
  }
  
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 350px) {
  .carousel {
    padding: 0;
  }
  
  .carousel-item {
    padding: 4px 0;
  }
  
  .hero-heading {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.8;
  }
  
  .hero-paragraph {
    font-size: 0.6rem;
    margin-bottom: 0.3rem;
    line-height: 2.1;
  }
  
  .carousel-illustration {
    max-width: 60px;
    padding: 0;
  }
  
  .hero-cta .btn {
    padding: 3px 6px;
    font-size: 0.6rem;
    min-width: 80px;
    max-width: 100px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 320px) {
  .carousel {
    padding: 0;
  }
  
  .carousel-item {
    padding: 3px 0;
  }
  
  .hero-heading {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    line-height: 1.9;
  }
  
  .hero-paragraph {
    font-size: 0.55rem;
    margin-bottom: 0.25rem;
    line-height: 2.2;
  }
  
  .carousel-illustration {
    max-width: 50px;
    padding: 0;
  }
  
  .hero-cta .btn {
    padding: 2px 4px;
    font-size: 0.55rem;
    min-width: 70px;
    max-width: 90px;
  }
  
  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
  
  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* High aspect ratio screens (tall/narrow) */
@media (max-aspect-ratio: 1/1) and (max-width: 768px) {
  .carousel-item {
    padding: 20px 15px;
  }
  
  .hero-heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-paragraph {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-illustration {
    max-width: 300px;
    padding: 15px;
  }
}

/* Low aspect ratio screens (wide/short) */
@media (min-aspect-ratio: 16/9) and (max-width: 1200px) {
  .carousel-item {
    padding: 40px 50px;
  }
  
  .hero-heading {
    font-size: 2.2rem;
  }
  
  .hero-paragraph {
    font-size: 1.2rem;
  }
  
  .carousel-illustration {
    max-width: 450px;
  }
}