.features .features-header {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--background1) 0%, var(--background2) 50%, var(--background3) 100%);
  position: relative;
  overflow: hidden;
}
.features .features-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(95, 1, 173, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(95, 1, 173, 0.1) 0%, transparent 50%);
}
.features .features-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent1-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.features .features-header h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.features .feature-row {
  padding: 4rem 0;
  position: relative;
  margin-bottom: 6rem;
}
.features .feature-row .col-md-7 {
  position: relative;
  padding: 0;
  width: 80%;
  max-width: 80%;
  flex: 0 0 100%;
  margin: 0 auto;
}
.features .feature-row .col-md-7 img {
  width: 100%;
  height: auto;
  min-height: 600px;
  object-fit: cover;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}
.features .feature-row .col-md-5 {
  position: absolute;
  z-index: 10;
  padding: 0;
  left: 1%;
  top: 20%;
}
.features .feature-row .col-md-5 .post-it-content {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  min-height: auto;
  cursor: grab;
  transform: translate3d(0, 0, 0) translateY(-3px);
  backface-visibility: hidden;
}
.features .feature-row .col-md-5 .post-it-content:active {
  cursor: grabbing;
}
.features .feature-row .col-md-5 .post-it-content .minimize-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  z-index: 5;
}
.features .feature-row .col-md-5 .post-it-content .minimize-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.8);
}
.features .feature-row .col-md-5 .post-it-content .minimize-btn::before {
  content: '−';
  line-height: 1;
}
.features .feature-row .col-md-5 .post-it-content .tape-handle {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  pointer-events: none;
}
.features .feature-row .col-md-5 .post-it-content .tape-handle::before {
  content: '';
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 8px;
  background-image: radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.15) 1px, transparent 1px), radial-gradient(circle at 2px 6px, rgba(0, 0, 0, 0.15) 1px, transparent 1px), radial-gradient(circle at 6px 2px, rgba(0, 0, 0, 0.15) 1px, transparent 1px), radial-gradient(circle at 6px 6px, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 8px 8px;
  background-repeat: repeat;
}
.features .feature-row .col-md-5 .post-it-content.dragging {
  z-index: 1000;
  transform-origin: center;
  transition: none !important;
  will-change: transform;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.25);
}
.features .feature-row .col-md-5 .post-it-content.dragging .tape-handle {
  cursor: grabbing;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.features .feature-row .col-md-5 .post-it-content h4,
.features .feature-row .col-md-5 .post-it-content .feature-list {
  opacity: 1;
  max-height: none;
  margin-bottom: 1.2rem;
  transition: all 0.4s ease;
}
.features .feature-row .col-md-5 .post-it-content p {
  max-height: none;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}
.features .feature-row .col-md-5 .post-it-content .feature-list {
  margin-top: 1.5rem;
}
.features .feature-row .col-md-5 .post-it-content h3 {
  margin-bottom: 0.8rem;
  transition: margin-bottom 0.4s ease;
}
.features .feature-row .col-md-5 .post-it-content.collapsed {
  padding: 0.5rem 0.75rem 0.3rem 0.75rem;
  min-height: 45px;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}
.features .feature-row .col-md-5 .post-it-content.collapsed .minimize-btn::before {
  content: '+';
}
.features .feature-row .col-md-5 .post-it-content.collapsed h4,
.features .feature-row .col-md-5 .post-it-content.collapsed .feature-list {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
}
.features .feature-row .col-md-5 .post-it-content.collapsed p {
  max-height: 3rem;
  overflow: hidden;
  margin: 0.5rem 0 0;
  position: relative;
}
.features .feature-row .col-md-5 .post-it-content.collapsed p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1.5rem;
  background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.features .feature-row .col-md-5 .post-it-content.collapsed h3 {
  margin-bottom: 0;
}
.features .feature-row:nth-child(1) .col-md-5 .post-it-content {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.features .feature-row:nth-child(2) .col-md-5 .post-it-content {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}
.features .feature-row:nth-child(3) .col-md-5 .post-it-content {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.features .feature-row:nth-child(4) .col-md-5 .post-it-content {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}
.features .feature-row:nth-child(1) .col-md-5 .post-it-content.collapsed p::after {
  background: linear-gradient(transparent 0%, rgba(254, 230, 138, 0.7) 70%, #fee68a 100%);
}
.features .feature-row:nth-child(2) .col-md-5 .post-it-content.collapsed p::after {
  background: linear-gradient(transparent 0%, rgba(187, 247, 208, 0.7) 70%, #bbf7d0 100%);
}
.features .feature-row:nth-child(3) .col-md-5 .post-it-content.collapsed p::after {
  background: linear-gradient(transparent 0%, rgba(191, 219, 254, 0.7) 70%, #bfdbfe 100%);
}
.features .feature-row:nth-child(4) .col-md-5 .post-it-content.collapsed p::after {
  background: linear-gradient(transparent 0%, rgba(251, 207, 232, 0.7) 70%, #fbcfe8 100%);
}
.features .feature-row h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0;
  color: var(--background1);
  line-height: 1.1;
  transition: margin-bottom 0.4s ease;
}
.features .feature-row h4 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.features .feature-row p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.features .feature-row .feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.features .feature-row .feature-list li {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  color: #374151;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.features .feature-row .feature-list li::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent1);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(95, 1, 173, 0.2);
}
.features .feature-row .feature-list li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
}
.features .feature-row .feature-list li strong {
  color: var(--background1);
  font-weight: 600;
}
@media (max-width: 768px) {
  .features .features-header {
    padding: 3rem 0 2rem;
  }
  .features .features-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .features .features-header h3 {
    font-size: 1.1rem;
  }
  .features .feature-row {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }
  .features .feature-row .col-md-7 {
    width: 95%;
    max-width: 95%;
  }
  .features .feature-row .col-md-7 img {
    min-height: 400px;
  }
  .features .feature-row .col-md-5 {
    position: static;
    margin-top: 2rem;
    left: auto;
    top: auto;
  }
  .features .feature-row .col-md-5 .post-it-content {
    transform: none;
    max-width: 100%;
    margin: 0 1rem;
    min-height: auto;
    padding: 1rem;
  }
  .features .feature-row .col-md-5 .post-it-content .tape-handle {
    width: 80px;
    height: 24px;
    top: -10px;
  }
  .features .feature-row .col-md-5 .post-it-content .minimize-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
    top: 0.8rem;
    right: 0.8rem;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed {
    padding: 1rem;
    min-height: auto;
    transform: none;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed h4,
  .features .feature-row .col-md-5 .post-it-content.collapsed .feature-list {
    opacity: 1;
    max-height: none;
    margin-bottom: 1.2rem;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed p {
    max-height: none;
    margin-bottom: 1.5rem;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed p::after {
    display: none;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed .feature-list {
    margin-top: 1.5rem;
  }
  .features .feature-row .col-md-5 .post-it-content.collapsed h3 {
    margin-bottom: 0.8rem;
  }
  .features .feature-row .col-md-5 .post-it-content h4,
  .features .feature-row .col-md-5 .post-it-content .feature-list {
    opacity: 1;
    max-height: none;
    margin-bottom: 1.2rem;
  }
  .features .feature-row .col-md-5 .post-it-content p {
    max-height: none;
    margin-bottom: 1.5rem;
  }
  .features .feature-row .col-md-5 .post-it-content p::after {
    display: none;
  }
  .features .feature-row .col-md-5 .post-it-content .feature-list {
    margin-top: 1.5rem;
  }
  .features .feature-row .col-md-5 .post-it-content h3 {
    margin-bottom: 0.8rem;
  }
}
@media (min-width: 769px) and (max-width: 991px) {
  .features .feature-row .col-md-5 .post-it-content {
    max-width: 380px;
    padding: 2rem;
  }
}
.features .container {
  max-width: 100%;
  padding: 0;
}
@media (max-width: 768px) {
  .features .container {
    padding: 0 1rem;
  }
}
.features .feature-row {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}
.features .feature-row:nth-child(1) {
  animation-delay: 0s;
}
.features .feature-row:nth-child(2) {
  animation-delay: 0.3s;
}
.features .feature-row:nth-child(3) {
  animation-delay: 0.6s;
}
.features .feature-row:nth-child(4) {
  animation-delay: 0.9s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
