* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #014531;
  --secondary-color: #f6f4f1;
  --tertiary-color: #dfff68;
  --accent-yellow: #c8eb2d;
  --text-dark: #014531;
  --text-light: #4a6b5d;
  --bg-light: #f6f4f1;
  --bg-dark: #012a1f;
  --gradient-primary: linear-gradient(135deg, #014531 0%, #026d4a 100%);
  --gradient-accent: linear-gradient(135deg, #dfff68 0%, #c5e650 100%);
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--secondary-color);
}

/* Full width section styles */
.full-section {
  width: 100%;
  position: relative;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 20px;
}

/* Header Styles */
header {
  position: fixed;
  margin: auto;
  top: 0;
  width: 100%;
  padding-top: 20px;
  background: transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(1, 69, 49, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  /* margin-left: 20px;
  margin-right: 20px; */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--secondary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

.login-btn {
  background: var(--accent-yellow);
  color: var(--primary-color);
  padding: 8px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: absolute;
  right: 0;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 235, 45, 0.4);
  background: #d4f230;
}

/* Hero Section */
.hero-section {
  background: var(--primary-color);
  color: var(--secondary-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(0, 150, 100, 0.3) 42%, rgba(0, 150, 100, 0.3) 44%, transparent 46%), linear-gradient(-30deg, transparent 30%, rgba(0, 130, 85, 0.4) 32%, rgba(0, 130, 85, 0.4) 35%, transparent 37%), linear-gradient(120deg, transparent 60%, rgba(0, 140, 90, 0.25) 62%, rgba(0, 140, 90, 0.25) 65%, transparent 67%);
  animation: flowingLines 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-60deg, transparent 50%, rgba(0, 160, 110, 0.3) 52%, rgba(0, 160, 110, 0.3) 54%, transparent 56%), linear-gradient(75deg, transparent 20%, rgba(0, 120, 80, 0.35) 22%, rgba(0, 120, 80, 0.35) 25%, transparent 27%), linear-gradient(-15deg, transparent 70%, rgba(0, 145, 95, 0.2) 72%, rgba(0, 145, 95, 0.2) 75%, transparent 77%);
  animation: flowingLines2 4s ease-in-out infinite reverse;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  margin-top: 60px;
  text-align: center;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--secondary-color);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

.hero-content h2 {
  color: var(--secondary-color);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

.hero-content .subtext {
  color: var(--secondary-color);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-primary {
  background: var(--accent-yellow);
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(200, 235, 45, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(200, 235, 45, 0.5);
  background: #d4f230;
}

/* Video Section - Fixed Aspect Ratio */
.video-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-wrapper {
  background: rgba(1, 69, 49, 0.3);
  border-radius: 20px;
  /* padding: 4px; */
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  header {
    padding-top: 10px;
  }

  nav {
    padding: 10px 16px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -108%;
    top: 70px;
    flex-direction: column;
    background: rgba(1, 69, 49, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(20px);
    justify-content: flex-start;
    gap: 3rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .login-btn {
    position: static;
    margin-top: 0;
  }

  .section-content {
    padding: 3rem 15px;
  }

  .hero-content {
    margin-top: 80px;
  }

  .hero-content h1 {
    font-size: 2rem;
    padding: 0 10px;
  }

  .hero-content .subtext {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .cta-primary {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .video-section {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content .subtext {
    font-size: 1rem;
  }

  .logo img {
    height: 35px;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 14px;
  }

  .login-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@keyframes flowingLines {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    background-size: 200% 200%;
  }
  25% {
    transform: translateX(-20px) translateY(-30px) rotate(2deg);
    background-size: 250% 180%;
  }
  50% {
    transform: translateX(30px) translateY(20px) rotate(-1deg);
    background-size: 180% 220%;
  }
  75% {
    transform: translateX(-10px) translateY(40px) rotate(3deg);
    background-size: 220% 190%;
  }
}

@keyframes flowingLines2 {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    background-size: 180% 180%;
  }
  33% {
    transform: translateX(25px) translateY(-20px) rotate(-2deg);
    background-size: 210% 160%;
  }
  66% {
    transform: translateX(-35px) translateY(25px) rotate(1deg);
    background-size: 160% 200%;
  }
}

/* Data Underutilization Section  */
/* Full width section styles */
.full-section {
  width: 100%;
  position: relative;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header .subtext {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Data Under-utilization Section */
.data-underutilization-section {
  background: linear-gradient(180deg, var(--secondary-color) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.section-subtitle {
  color: #666;
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

.data-impact-container {
  max-width: 1200px;
  margin: 60px auto 40px;
  position: relative;
}

/* Enhanced Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
  padding: 0 20px;
}

/* Enhanced Impact Metric Cards */
.impact-metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(1, 69, 49, 0.08);
  min-height: 280px;
}

.impact-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.impact-metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(1, 69, 49, 0.2);
}

.impact-metric-card:hover::before {
  transform: scaleX(1);
}

.metric-icon-wrapper {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: rgba(89, 80, 66, 0.21) 0px 0.796192px 1.43315px -0.875px, rgba(89, 80, 66, 0.2) 0px 2.41451px 4.34611px -1.75px, rgba(89, 80, 66, 0.17) 0px 6.38265px 11.4888px -2.625px, rgba(89, 80, 66, 0.09) 0px 20px 36px -3.5px;
}

.impact-metric-card:hover .metric-icon-wrapper {
  transform: scale(1.05);
}

.metric-icon {
  width: 100%;
  height: 100%;
  /* animation: iconFloat 4s ease-in-out infinite; */
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.metric-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, #027a52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.5;
  font-weight: 500;
  max-width: 280px;
  margin-bottom: 8px;
}

.metric-source {
  font-size: 13px;
  color: #999;
  font-style: normal;
  opacity: 0.8;
  margin-top: auto;
  text-decoration: none;
  transition: color 0.3s ease;
}

.metric-source:hover {
  color: var(--primary-color);
  opacity: 1;
}

/* Fade in animation */
.fade-in-card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-card:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-card:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-card:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-card:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in-card:nth-child(5) {
  animation-delay: 0.5s;
}

.fade-in-card:nth-child(6) {
  animation-delay: 0.6s;
}

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

/* Responsive Design */
@media (max-width: 900px) {
  .svg-tooltip {
    font-size: 13px;
    min-width: 105px;
    max-width: 135px;
    padding: 11px 8px 11px 8px;
  }
}

@media (max-width: 768px) {
  .section-content {
    padding: 3rem 1rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .impact-metric-card {
    padding: 28px;
    min-height: 260px;
  }

  .metric-value {
    font-size: 28px;
  }

  .factory-visualization {
    max-width: 100%;
    margin-bottom: 60px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .impact-metric-card {
    padding: 24px;
    gap: 20px;
    min-height: 240px;
  }

  .metric-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-label {
    font-size: 15px;
  }

  .impact-cta p {
    font-size: 20px;
  }
}

/* How it works Section */
/* Full width section styles */
.full-section {
  width: 100%;
  position: relative;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2%;
}

/* How It Works Section */
.how-it-works-section {
  background: #fafaf8;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 1rem;
}

.workflow-step {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  min-width: 120px;
}

.workflow-step h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin: 0.75rem 0 0.5rem 0;
  font-weight: 600;
}

.workflow-step p {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  margin: 0;
  color: var(--text-light);
}

.workflow-arrow {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-color);
  flex-shrink: 0;
  margin: 0 0.5rem;
  margin-top: -4.5rem;
}

.workflow-icon {
  width: clamp(60px, 8vw, 80px);
  height: clamp(60px, 8vw, 80px);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--secondary-color);
}

/* Mobile styles */
@media (max-width: 768px) {
  .workflow-steps {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 300px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .workflow-step {
    min-width: auto;
    width: 100%;
    padding: 1rem;
  }

  .section-content {
    padding: 3rem 5%;
  }

  .section-header {
    margin-bottom: 3rem;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .workflow-steps {
    max-width: 250px;
    gap: 1rem;
  }

  .workflow-step {
    padding: 0.5rem;
  }
}

/* Solution Section with Vertical Tabs */
/* Solution Section with Vertical Tabs */
.tabs-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vertical-tabs {
  flex: 0 0 300px;
}

.tab-button {
  width: 100%;
  font-size: 1.1rem;
  padding: 1.5rem 2rem;
  background: white;
  border: none;
  border-left: 4px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
}

.tab-button:hover {
  background: var(--bg-light);
  transform: translateX(5px);
}

.tab-button.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-left-color: var(--tertiary-color);
  box-shadow: 0 5px 20px rgba(1, 69, 49, 0.3);
}

.tab-button i {
  font-size: 1.5rem;
}

.tab-content {
  flex: 1;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(1, 69, 49, 0.08);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

/* Mobile tab content - hidden by default */
.mobile-tab-content {
  display: none;
  background: white;
  margin: 0.5rem 0 1rem 0;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(1, 69, 49, 0.1);
  border-left: 4px solid var(--primary-color);
}

.mobile-tab-content h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mobile-tab-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.mobile-tab-content ul {
  list-style: none;
  padding: 0;
}

.mobile-tab-content li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-tab-content li:last-child {
  border-bottom: none;
}

.mobile-tab-content li i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .tabs-container {
    flex-direction: column;
    gap: 1rem;
  }

  .vertical-tabs {
    flex: none;
  }

  .tab-button {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border-left: none;
    border-radius: 10px;
    margin-bottom: 0;
    border: 2px solid #e0e0e0;
  }

  .tab-button:hover {
    transform: none;
    border-color: var(--primary-color);
  }

  .tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  .tab-button.active + .mobile-tab-content {
    display: block;
    animation: slideDown 0.3s ease;
  }

  /* Hide desktop tab content on mobile */
  .tab-content {
    display: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding: 0 1.5rem;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding: 1.5rem;
  }
}

/* Business Impact Section */
/* Full width section styles */
.full-section {
  width: 100%;
  position: relative;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header .subtext {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

.challenge-section {
  background: #fafaf8;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 80px;  */
  /* Space for arrows on sides */
}

/* Modern Carousel Styles */
.modern-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(1, 69, 49, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  background: white;
  display: flex;
  align-items: stretch;
  min-height: 450px;
}

.carousel-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  max-height: 450px !important;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

.carousel-image img:not(.loaded) {
  opacity: 0;
}

.carousel-image img.loaded {
  opacity: 1;
}

/* Navigation arrows positioned at the top */
.carousel-nav-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 1200px; /* Match carousel width */
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.carousel-nav-btn {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color, #014531);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.carousel-nav-btn:hover {
  background: rgba(1, 69, 49, 0.1);
  color: var(--primary-color, #014531);
}

/* Navigation arrows positioned outside */
/* .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-nav-btn {
  width: 60px;
  height: 60px;
  background: var(--secondary-color, #ffffff);
  border: 2px solid var(--primary-color, #014531);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(1, 69, 49, 0.15);
  transition: all 0.3s ease;
  color: var(--primary-color, #014531);
  font-size: 1.2rem;
  user-select: none;
}

.carousel-nav-btn:hover {
  transform: scale(1.1);
  background: var(--primary-color, #014531);
  color: white;
  box-shadow: 0 6px 30px rgba(1, 69, 49, 0.25);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
} */

/* Indicators positioned below carousel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  z-index: 10;
}

.carousel-indicator {
  width: 50px;
  height: 4px;
  background: rgba(1, 69, 49, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary-color, #014531);
  width: 70px;
}

.carousel-indicator:hover {
  background: rgba(1, 69, 49, 0.4);
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 20px; /* Reduced padding for mobile */
  }

  .carousel-slide {
    flex-direction: column;
    min-height: auto;
  }

  .carousel-content {
    padding: 2rem;
  }

  .carousel-image {
    display: none;
  }

  .carousel-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .carousel-indicators {
    margin-top: 1.5rem;
  }

  .carousel-indicator {
    width: 30px;
    height: 3px;
  }

  .carousel-indicator.active {
    width: 45px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 0 10px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* AI Agents Info Section with Stacked Cards */
/* =================================
   STACK CARDS AI AGENT INFO SECTION
   ================================= */

/* Main Section Container */
.stack-section {
  min-height: 90vh;
  background: #f6f4f1;
  padding: 0;
  position: relative;
  margin-top: -40px; /* Reduce gap from previous section */
}

/* =================================
   SECTION HEADER
   ================================= */

.stack-section-header {
  position: sticky;
  top: 60px;
  z-index: 5;
  background: #f6f4f1;
  padding: 40px 0 20px; /* Reduced padding to minimize overlap */
  text-align: center;
  transition: all 0.3s ease;
}

/* Normal scroll mode - remove sticky behavior for header */
.stack-section-header.normal-scroll {
  position: relative;
  top: auto;
  padding: 60px 0 40px; /* Restore normal padding for non-sticky header */
}

.stack-section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1b4332;
  margin: 0;
  letter-spacing: -0.5px;
}

/* =================================
   STACKED CARDS CONTAINER
   ================================= */

.stacked-cards-container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  padding-top: 20px; /* Add some breathing room */
}

.stack-card {
  position: sticky;
  top: 180px; /* Reduced from 200px to minimize overlap */
  margin: 0 0 20px 0;
  width: 100%;
  min-height: 500px;
  border-radius: 24px;
  background: #1b4332;
  box-shadow: 0 6px 40px #0003, 0 2px 8px #0003;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.16s, margin 0.3s ease;
  z-index: 1;
}

/* Remove margin when card is stacked */
.stack-card.stacked {
  margin-bottom: 0;
}

/* Normal scroll mode - no sticky positioning */
.stack-card.normal-scroll {
  position: relative;
  top: auto;
  margin-bottom: 10px;
}

.stack-card.normal-scroll.stacked {
  margin-bottom: 10px; /* Keep margin in normal scroll mode */
}

/* =================================
   CARD LAYOUT STRUCTURE
   ================================= */

.card-layout {
  display: flex;
  gap: 0; /* Remove gap between sections */
  align-items: stretch; /* Make both sides equal height */
  height: 100%;
  min-height: 500px; /* Ensure minimum height */
}

/* =================================
   AGENT HEADER (LEFT SIDE)
   ================================= */

.agent-header {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(180deg, #000504 0%, var(--token-13c121fb-2479-4912-9c82-bb5c2803e890, rgb(1, 69, 49)) 100%);
  border-radius: 16px 0 0 16px; /* Rounded corners only on left */
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: flex-start;
}

.agent-icon {
  width: 80px;
  height: 80px;
  background: rgba(223, 255, 104, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.agent-icon i {
  font-size: 2.5rem !important; /* Bigger icon */
}

.agent-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.agent-subtitle {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* =================================
   AGENT FEATURES (RIGHT SIDE)
   ================================= */

.agent-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 400px;
  background: #014531;
  border-radius: 0 16px 16px 0; /* Rounded corners only on right */
  padding: 40px 32px;
  justify-content: center; /* Center features vertically */
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}

.feature-item .feature-icon {
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item .feature-icon i {
  color: #ffffff;
  font-size: 16px;
}

.feature-content {
  flex: 1;
}

.feature-content h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.feature-content p {
  color: #c7d9d4;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* =================================
   FEATURE BOX STYLES (ALTERNATIVE)
   ================================= */

.feature-box {
  background: rgba(11, 31, 26, 0.6);
  border: 1px solid rgba(223, 255, 104, 0.15);
  border-radius: 16px;
  padding: 24px 20px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: rgba(11, 31, 26, 0.8);
  border-color: rgba(223, 255, 104, 0.3);
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-box h4 {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.feature-box p {
  color: #c7d9d4;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* =================================
   MOBILE RESPONSIVE - TABLET
   ================================= */

@media (max-width: 768px) {
  /* Section adjustments */
  .stack-section {
    margin-top: -20px; /* Smaller gap reduction on mobile */
  }

  /* Header adjustments */
  .stack-section-header {
    top: 60px;
    padding: 30px 0 15px;
  }

  .stack-section-header.normal-scroll {
    padding: 50px 0 30px; /* Adjusted for mobile normal scroll */
  }

  .stack-section-header h2 {
    font-size: 2rem;
  }

  /* Container adjustments */
  .stacked-cards-container {
    width: 95%;
    padding-top: 15px;
  }

  .stacked-cards-container.normal-scroll {
    padding-top: 0; /* Remove extra padding in normal scroll */
  }

  /* Card adjustments */
  .stack-card {
    min-height: auto;
    top: 120px; /* Adjusted for mobile */
  }

  /* Card layout - switch to vertical */
  .card-layout {
    flex-direction: column;
    min-height: auto;
  }

  /* Agent header mobile */
  .agent-header {
    min-width: auto;
    text-align: center;
    border-radius: 16px 16px 0 0; /* Top corners rounded */
    justify-content: flex-start;
    padding: 30px 24px;
  }

  .agent-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 20px;
  }

  .agent-icon i {
    font-size: 2rem !important;
  }

  .agent-title {
    font-size: 1.8rem;
    text-align: center;
  }

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

  /* Agent features mobile */
  .agent-features {
    min-width: auto;
    border-radius: 0 0 16px 16px; /* Bottom corners rounded */
    padding: 30px 24px;
    justify-content: flex-start;
  }

  .feature-item {
    padding: 10px 0;
  }

  .feature-content h4 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.9rem;
  }

  /* Feature box mobile */
  .feature-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .feature-icon {
    margin: 0 auto;
  }

  .feature-box {
    padding: 20px 16px;
    text-align: center;
  }

  .feature-box h4 {
    font-size: 0.95rem;
  }

  .feature-box p {
    font-size: 0.85rem;
  }
}

/* =================================
   MOBILE RESPONSIVE - SMALL MOBILE
   ================================= */

@media (max-width: 480px) {
  /* Section adjustments */
  .stack-section {
    margin-top: -15px;
  }

  /* Header adjustments */
  .stack-section-header {
    padding: 25px 0 10px;
  }

  .stack-section-header.normal-scroll {
    padding: 40px 0 20px; /* Adjusted for small mobile normal scroll */
  }

  .stack-section-header h2 {
    font-size: 1.6rem;
    padding: 0 20px;
  }

  /* Container adjustments */
  .stacked-cards-container {
    padding-top: 10px;
  }

  .stacked-cards-container.normal-scroll {
    padding-top: 0;
  }

  /* Card adjustments */
  .stack-card {
    margin: 0 0 15px 0;
    /* padding: 24px 20px; */
    top: 110px; /* Further adjusted for small mobile */
  }
}

/* Contact Us Section Starts */
/* Contact Us Section */
/* Contact Section */
.contact {
  padding: 2rem 2rem;
  background: var(--primary-color);
}

.contact .section-header h2 {
  color: #fafaf8 !important;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fafaf8;
}

.contact-info p {
  color: #fafaf8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important; /* ✅ Forces consistent width */
  min-height: 50px !important;
  background: #012a1f;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  /* box-shadow: 0 5px 20px rgba(27, 29, 78, 0.3); */
  flex-shrink: 0; /* ✅ Prevents shrinking on small screens */
  margin-top: 0.25rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #fafaf8;
}

.contact-text p {
  color: #fafaf8;
  font-size: 0.95rem;
  word-break: break-word; /* ✅ Prevents long content from breaking layout */
}

.contact-form {
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 29, 78, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-button {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27, 29, 78, 0.3);
}

/* Toast Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  min-width: 350px;
  max-width: 500px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  position: relative;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
  background: #10b981;
  color: white;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
  background: #ef4444;
  color: white;
}

.toast-message {
  flex: 1;
}

.toast-message h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
}

.toast-message p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

/* Loading spinner */
.htmx-indicator {
  display: none;
  margin-left: 0.5rem;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.form-button {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Add visual feedback for required fields */
.form-group label:after {
  content: " *";
  color: #ef4444;
  display: none;
}

.form-group:has(input:required) label:after,
.form-group:has(select:required) label:after,
.form-group:has(textarea:required) label:after {
  display: inline;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-group select {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: white;
  box-sizing: border-box;
}

/* Responsive Design */
/* Tablets and small laptops */
@media (max-width: 1024px) {
  .contact-container {
    gap: 3rem;
  }

  .contact-info h3 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .contact {
    padding: 2rem 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info h3 {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
  }

  .form-button {
    padding: 0.8rem 1.5rem;
  }
}

/* Small tablets and large phones */
@media (max-width: 640px) {
  .contact {
    padding: 1.5rem 1rem;
  }

  .contact-container {
    gap: 1.5rem;
  }

  /* Hide contact info on small screens */
  .contact-info {
    display: none;
  }

  .contact-form {
    padding: 1.5rem;
    width: 100%;
    max-width: none;
  }

  .section-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .form-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .contact-form {
    border-radius: 15px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .contact {
    padding: 1rem 0.5rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  .contact-form {
    padding: 1.25rem;
    margin: 0 auto;
    border-radius: 10px;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.7rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .form-button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-radius: 40px;
  }
}

/* Very small mobile devices */
@media (max-width: 320px) {
  .contact {
    padding: 0.5rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  .form-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}
