/* Solution Pages Styling */

/* Hero Section */
.solution-hero {
  min-height: 80vh;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 30, 0.85) 100%);
  position: relative;
  overflow: hidden;
}

.solution-hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-bg.svg');
  opacity: 0.05;
  z-index: 0;
  animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, 5px) rotate(0.5deg); }
  50% { transform: translate(-5px, 8px) rotate(-0.5deg); }
  75% { transform: translate(3px, -5px) rotate(0.25deg); }
}

.solution-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.solution-hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: white;
}

/* Updated emotion tag in hero section */
.solution-hero-content .emotion-tag {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 30px;
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 25px;
  padding: 8px 16px;
  display: inline-block;
}

.solution-tagline {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--gray);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.solution-tagline:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: lineExpand 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes lineExpand {
  to { width: 100%; }
}

.solution-hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--gold-glow);
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.solution-hero-image img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.solution-hero-image:hover img {
  transform: scale(1.02);
}

/* Emotional Benefits Section */
.emotional-benefits {
  padding: 5rem 0;
  background-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.emotional-benefits:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(50px);
  transform: translate(30%, -30%);
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.1; transform: translate(30%, -30%) scale(1); }
  50% { opacity: 0.15; transform: translate(30%, -30%) scale(1.1); }
}

.emotional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.emotional-card {
  background-color: var(--secondary-dark);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.emotional-card:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--gold), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.emotional-card:hover:before {
  opacity: 1;
}

.emotional-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px var(--gold-glow);
}

.emotional-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.emotional-card:hover .emotional-icon {
  transform: scale(1.1) rotate(5deg);
}

.emotional-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.emotional-card:hover h3 {
  transform: translateY(-3px);
}

.emotional-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.emotional-card:hover h3:after {
  width: 40px;
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Pain Points Section */
.pain-points {
  padding: 5rem 0;
  background-color: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.pain-points:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.problem-solution-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px;
}

.problem-solution-card {
  background-color: var(--primary-dark);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px) rotateX(-10deg);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 62px;
}

.problem-solution-card.animate-in {
  animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.problem-solution-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
              0 0 15px var(--gold-glow),
              0 0 30px rgba(212, 175, 55, 0.1);
}

.problem-solution-card.solution {
  background-color: rgba(46, 204, 113, 0.05);
  border-left: 5px solid #2ecc71;
  animation-delay: 0.2s;
}

.problem-solution-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
  font-size: 1.3rem;
  line-height: 1.4;
  transition: transform 0.3s ease;
  margin-top: 0;
  z-index: 1;
}

.problem-solution-card:hover h3 {
  transform: translateX(5px);
}

.problem-solution-card h3:before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.problem-solution-card:hover h3:before {
  transform: scale(1.2) rotate(-10deg);
}

.problem-solution-card.solution h3:before {
  content: '✓';
  color: #2ecc71;
}

.problem-solution-card.solution:hover h3:before {
  transform: scale(1.2) rotate(10deg);
}

.emotion-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  transform-origin: left;
}

.problem-solution-card .emotion-tag {
  position: absolute;
  top: 20px; 
  left: 25px;
  right: 25px;
  margin-bottom: 0;
  z-index: 2;
}

.problem-solution-card:hover .emotion-tag {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.emotion-tag.pain-point {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.1);
}

.emotion-tag.solution-point {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.1);
}

.problem-solution-card p:not(.emotion-tag) {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--gray);
  transition: all 0.3s ease;
}

.problem-solution-card:hover p:not(.emotion-tag) {
  color: var(--white);
}

/* Override for specific cards with complex content */
.sales-data .emotion-tag {
  top: 15px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Ensure consistent styling in all solution pages */
.problem-solution-card p.emotion-tag {
  margin-bottom: 0;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.features:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
}

.feature-card {
  background-color: var(--secondary-dark);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
}

.feature-card:hover:before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(212, 175, 55, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.feature-card:hover h3 {
  transform: translateX(5px);
}

.feature-benefits {
  margin-top: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-benefits {
  opacity: 1;
}

.feature-benefits li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.75rem;
  transition: transform 0.3s ease;
}

.feature-benefits li:before {
  content: '✓';
  color: var(--gold);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.feature-benefits li:hover {
  transform: translateX(5px);
}

.feature-benefits li:hover:before {
  transform: scale(1.2);
  opacity: 1;
}

/* Stagger animation for feature cards */
.feature-card {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-play-state: paused;
}

.feature-card.animate {
  animation-play-state: running;
}

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

/* Demo Section */
.demo {
  padding: 5rem 0;
  background-color: var(--secondary-dark);
}

.demo-video {
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.demo-cta {
  text-align: center;
}

.demo-cta p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .solution-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .solution-hero-content {
    order: 1;
  }
  
  .solution-hero-image {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .solution-hero-content .emotion-tag {
    position: static !important;
    margin: 0 auto 1.5rem !important;
    display: inline-block !important;
  }
  
  .solution-hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .solution-hero {
    padding: 7rem 0 3rem;
  }
  
  .solution-tagline {
    font-size: 1.1rem;
  }
  
  .emotional-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-video iframe {
    height: 300px;
  }
}

/* Solution Pages Shared Styles */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 3rem 0;
}

.showcase-item {
  background: var(--primary-dark);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.showcase-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px var(--gold-glow);
}

.showcase-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.01);
}

.showcase-item:hover .feature-image {
  transform: scale(1.08);
}

.feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  padding: 2rem;
}

.showcase-item:hover .feature-overlay {
  opacity: 1;
  transform: translateY(0);
}

.showcase-item h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.showcase-item h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.showcase-item:hover h3:after {
  width: 60px;
}

.showcase-item p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.showcase-item:hover p {
  opacity: 1;
}

/* Animation Styles */
.typing-animation, .grades-animation, .sales-animation,
.communication-animation, .resource-animation,
.customer-animation, .pos-animation {
  width: 100%;
  color: var(--white);
  font-family: var(--font-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.showcase-item:hover .typing-animation,
.showcase-item:hover .grades-animation,
.showcase-item:hover .sales-animation,
.showcase-item:hover .communication-animation,
.showcase-item:hover .resource-animation,
.showcase-item:hover .customer-animation,
.showcase-item:hover .pos-animation {
  opacity: 1;
  transform: translateY(0);
}

.result-item, .grade-entry, .sales-metric,
.message, .resource-status, .customer-profile,
.transaction {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  margin: 0.75rem 0;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.result-item:hover, .grade-entry:hover, .sales-metric:hover,
.message:hover, .resource-status:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.result-item.active, .grade-entry.new, .sales-metric.new,
.message.sent {
  background: rgba(212, 175, 55, 0.15);
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.result-item.active:hover, .grade-entry.new:hover,
.sales-metric.new:hover, .message.sent:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Status and Progress Indicators */
.status-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #ffd700 100%);
  animation: progress 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold-glow);
}

@keyframes progress {
  0% { width: 0; opacity: 0.8; }
  50% { width: 70%; opacity: 1; }
  100% { width: 100%; opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .showcase-item {
    padding: 1.5rem;
  }
  
  .showcase-item h3 {
    font-size: 1.3rem;
  }
  
  .showcase-item p {
    font-size: 1rem;
  }
}

.result-item .label,
.result-item .value {
  display: block;
}

.result-item .label {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.result-item .value {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
}

.result-item.active .value {
  color: var(--gold);
}

.result-item:hover .label {
  opacity: 1;
}

/* Responsive adjustments for pain points */
@media (max-width: 1200px) {
  .problem-solution-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .problem-solution-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .problem-solution-card {
    padding: 1.5rem;
  }
  
  .problem-solution-card h3 {
    font-size: 1.2rem;
  }
}

/* Fix for the emotion tags and headings spacing */
.problem-solution-card .emotion-tag {
  position: absolute;
  top: 20px; 
  left: 25px;
  right: 25px;
  margin-bottom: 0;
  z-index: 2;
}

/* Override for specific cards with complex content */
.sales-data .emotion-tag {
  top: 15px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Performance Metrics Section */
.performance-metrics {
    margin: 3rem auto;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.metrics-header {
    text-align: center;
    margin-bottom: 2rem;
}

.metrics-header h4 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.metrics-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.metric-desc {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.metrics-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.metrics-cta p {
    color: var(--white);
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
} 