#experiences {
  padding: 120px 80px;
}

.experiences-header {
  text-align: center;
  margin-bottom: 64px;
}

.experiences-header h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 52px;
  margin-bottom: 16px;
}

.experiences-header p {
  font-size: 18px;
  color: var(--text-subtle);
}

.experiences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.exp-card {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.exp-card:hover {
  transform: scale(1.03);
}

.exp-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.3) 60%);
}

.exp-card:hover .card-desc {
  opacity: 1;
  transform: translateY(0);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, transparent 60%);
  transition: background 0.3s ease;
}

.card-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  z-index: 2;
}

.card-desc {
  position: absolute;
  bottom: 60px;
  left: 24px;
  right: 24px;
  color: var(--text-subtle);
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  line-height: 1.6;
}

#card-1 {
  background: url('../assets/smart-home.png') center/cover no-repeat;
}

#card-2 {
  background: url('../assets/smart-business.png') center/cover no-repeat;
}

#card-3 {
  background: url('../assets/smart-outdoor.png') center/cover no-repeat;
}

#card-4 {
  background: linear-gradient(135deg, #111111, #1e3a5f, #0EA5E9);
  background-size: 300%;
  animation: gradientShift 6s ease infinite;
  cursor: default;
}

#card-4:hover {
  transform: none;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-4-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-4-icon {
  font-size: 64px;
  color: var(--accent-blue);
  line-height: 1;
}

.card-4-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
}

.card-4-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-subtle);
}

.exp-card.animate-on-scroll { transition-delay: 0s; }
.exp-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.exp-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.exp-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.exp-card.animate-on-scroll:nth-child(4) { transition-delay: 0.45s; }

@media (max-width: 768px) {
  #experiences {
    padding: 80px 24px;
  }

  .experiences-grid {
    grid-template-columns: 1fr;
  }
}
