/* Advanced Terms Section Styles */

/* Enhanced Sample Terms Section */
.sample-terms {
  text-align: center;
  padding: 5rem 5%;
  position: relative;
}

.sample-terms h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.6s ease forwards 0.2s;
}

.sample-terms h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 6px;
  background: var(--primary-gradient);
  bottom: -10px;
  left: 20%;
  border-radius: 3px;
}

.term-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.term-card {
  position: relative;
  border-left: none;
  overflow: hidden;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.term-card:nth-child(1) {
  animation: fadeUpIn 0.6s ease forwards 0.4s;
}

.term-card:nth-child(2) {
  animation: fadeUpIn 0.6s ease forwards 0.6s;
}

.term-card:nth-child(3) {
  animation: fadeUpIn 0.6s ease forwards 0.8s;
}

.term-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-background);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  border-radius: 16px;
  transition: all 0.5s ease;
}

.term-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary-gradient);
  transition: height 0.5s ease;
}

.term-card:hover {
  transform: translateY(-15px) scale(1.03) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.term-card:hover::before {
  background: var(--medium-dark-color);
}

.term-card:hover::after {
  height: 100%;
}

.term-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.term-card:hover h3 {
  transform: translateX(10px);
  color: var(--accent-color);
}

.term-card p {
  color: var(--light-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.term-examples {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.term-examples p {
  font-style: italic;
  color: var(--gray-color);
  position: relative;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

.term-examples p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.term-card:hover .term-examples p {
  color: #aaa;
}

.cta-center {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.6s ease forwards 1s;
}

.cta-center .btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

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