
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.features-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.features-hero {
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.features-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: var(--primary-light);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  opacity: 0.15;
  display: none;
}

.features-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.features-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.features-hero-title span {
  background: #293241;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-hero-description {
  font-size: 1.25rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

/* Features Overview Grid */
.features-overview {
  margin-bottom: 5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.feature-point.blue .feature-point-icon {
  background-color: rgba(51, 74, 139, 0.3); 
}

.feature-point.blue .feature-point-icon svg {
  stroke: #334A8B; 
}

.feature-point.gold .feature-point-icon {
  background-color: rgba(var(--primary-blue-light-rgb), 0.3); 
}

.feature-point.gold .feature-point-icon svg {
  stroke: var(--primary-blue-light); 
}

.feature-point.dark .feature-point-icon {
  background-color: rgba(var(--primary-purple-light-rgb), 0.3) !important; 
}

.feature-point.dark .feature-point-icon svg {
  stroke: var(--primary-purple-light); 
}

.feature-point.purple .feature-point-icon {
  background-color: rgba(94, 75, 139, 0.3); 
}

.feature-point.purple .feature-point-icon svg {
  stroke: #5E4B8B; 
}

.feature-point.blue2 .feature-point-icon {
  background-color: rgba(51, 74, 139, 0.3); 
}

.feature-point.blue2 .feature-point-icon svg {
  stroke: #334A8B; 
}

.feature-point.gold2 .feature-point-icon {
  background-color: rgba(var(--primary-blue-light-rgb), 0.3); 
}

.feature-point.gold2 .feature-point-icon svg {
  stroke: var(--primary-blue-light); 
}

.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-link {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.feature-link:hover {
  color: var(--secondary-color);
}

.feature-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-link:hover::after {
  transform: translateX(5px);
}

/* Scroll-triggered Features Section */
.scroll-triggered-features {
    padding: 6rem 0;
    position: relative;
    overflow: visible;
}

.features-scroll-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Left Content Area */
.features-content-left {
    flex: 1;
    max-width: 50%;
}

.feature-scroll-item {
    padding: 8rem 0;
    transition: opacity 0.4s ease;
    opacity: 0.3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-scroll-item.active {
    opacity: 1;
}

.feature-scroll-item:first-child {
    padding-top: 4rem;
}

.feature-scroll-item:last-child {
    padding-bottom: 12rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-badge.blue {
    background: linear-gradient(135deg, #334A8B, #5E4B8B);
}


.feature-badge.light-blue {
    background: linear-gradient(135deg, #7FA8E8, #5E9CE8);
}

.feature-badge.light-purple {
    background: linear-gradient(135deg, #A688E8, #8B6CE8);
}

.feature-point.light-blue .feature-point-icon {
    background-color: rgba(127, 168, 232, 0.3);
}

.feature-point.light-blue .feature-point-icon svg {
    stroke: #7FA8E8;
}

.feature-point.light-purple .feature-point-icon {
    background-color: rgba(166, 136, 232, 0.3);
}

.feature-point.light-purple .feature-point-icon svg {
    stroke: #A688E8;
}

.feature-badge.dark {
    background: linear-gradient(135deg, #293241, #1F2937);
}

.feature-badge.purple {
    background: linear-gradient(135deg, #5E4B8B, #7C3AED);
}

.feature-scroll-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-dark);
}

.feature-scroll-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.feature-points-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-point {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-point-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.feature-point-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-point.blue .feature-point-icon {
    background-color: rgba(51, 74, 139, 0.3);
}

.feature-point.blue .feature-point-icon svg {
    stroke: #334A8B;
}

.feature-point.gold .feature-point-icon {
    background-color: rgba(187, 165, 61, 0.3);
}

.feature-point.gold .feature-point-icon svg {
    stroke: #BBA53D;
}

.feature-point.dark .feature-point-icon {
    background-color: rgba(41, 50, 65, 0.3);
}

.feature-point.dark .feature-point-icon svg {
    stroke: #293241;
}

.feature-point.purple .feature-point-icon {
    background-color: rgba(94, 75, 139, 0.3);
}

.feature-point.purple .feature-point-icon svg {
    stroke: #5E4B8B;
}

.feature-point-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature-point-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Right Sticky Image Area */
.features-content-right {
    flex: 1;
    max-width: 50%;
    position: sticky !important;
    top: 5rem;             
    align-self: flex-start;
    will-change: transform;
}

.feature-image-sticky {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important
    right: -5%;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


.feature-image-container {
    position: static !important;
    top: 5rem;
    will-change: transform;
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.feature-image.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-scroll-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .features-content-left,
    .features-content-right {
        max-width: 100%;
    }

    .features-content-right {
        display: none; /* Hide sticky image on mobile */
    }

    .feature-image-sticky {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        transform: none;
        margin-bottom: 2rem;
    }

    .feature-image-container {
        height: 400px;
        margin: 0 auto 2rem;
    }

    .feature-scroll-item {
        padding: 3rem 0;
        min-height: auto;
    }

    .feature-scroll-item:last-child {
        padding-bottom: 3rem;
    }

    .feature-scroll-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .feature-scroll-title {
        font-size: 1.75rem;
    }

    .feature-scroll-subtitle {
        font-size: 1.125rem;
    }

    .feature-points-list {
        gap: 1.5rem;
    }

    .feature-point {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Additional Features Section */
.features-additional {
  padding: 6rem 0;
  background-color: white;
}

.features-additional-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.features-additional-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-additional-subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  font-weight: 500;
}

.features-additional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.features-additional-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background-color: #FAFAFA;
  transition: transform 0.3s ease;
}

.features-additional-item:hover {
}

.features-additional-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.features-additional-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary-color);
}

.features-additional-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.features-additional-description {
  font-size: 1rem;
  color: var(--text-color);
}

/* CTA Section */
.features-cta-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.features-cta-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.features-cta-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.features-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white !important;
}

.features-cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.features-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.features-cta-button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.features-cta-button.primary {
  background-color: var(--secondary-color);
  color: white;
}

.features-cta-button.secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.features-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .feature-detail-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
  
  .feature-alternate .feature-detail-wrapper {
    flex-direction: column;
  }
  
  .features-hero-title {
    font-size: 2.5rem;
  }
  
  .feature-detail-title {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .features-hero::before {
    display: none;
}

.scroll-triggered-features {
    padding: 0rem 0;
    position: relative;
    overflow: visible;
}

}

@media (max-width: 768px) {
  .features-hero {
    padding: 6rem 0 3rem;
  }
  
  .features-hero-title {
    font-size: 2rem;
  }
  
  .features-hero-description {
    font-size: 1.125rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-detail-section {
    padding: 4rem 0;
  }
  
  .feature-detail-title {
    font-size: 1.75rem;
  }
  
  .feature-detail-subtitle {
    font-size: 1.125rem;
  }
  
  .features-additional-title {
    font-size: 1.75rem;
  }
  
  .features-cta-title {
    font-size: 1.75rem;
  }
  
  .features-cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .feature-point {
    flex-direction: column;
    gap: 1rem;
  }

  .features-hero::before {
    display: none;
  }
  .scroll-triggered-features {
    padding: 0rem 0;
    position: relative;
    overflow: visible;
}
}