/* ===== Product Development Section (SCOPED) ===== */
/* Use a unique wrapper: .pds */

/* Variables localized to the component (inherit to descendants) */
.pds {
  --primary-brown: #8B4513;
  --secondary-brown: #A0522D;
  --light-brown: #D2B48C;
  --dark-brown: #654321;
  --cream: #F5E6D3;
  --gold: #DAA520;
  --text-dark: #2C1810;
  --text-light: #6B4E3D;
  --shadow-light: rgba(139, 69, 19, 0.1);
  --shadow-medium: rgba(139, 69, 19, 0.2);
  --shadow-heavy: rgba(139, 69, 19, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
  --gradient-light: linear-gradient(135deg, var(--cream), var(--light-brown));
  --gradient-gold: linear-gradient(135deg, var(--gold), #B8860B);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #FFF8DC 0%, var(--cream) 50%, #F0E68C 100%);
}

/* Background grain */
.pds::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(139,69,19,0.05)"/><circle cx="75" cy="75" r="1.5" fill="rgba(139,69,19,0.03)"/><circle cx="50" cy="10" r="0.8" fill="rgba(139,69,19,0.04)"/><circle cx="10" cy="60" r="1.2" fill="rgba(139,69,19,0.02)"/><circle cx="90" cy="30" r="0.6" fill="rgba(139,69,19,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Typography */
.pds .section-badge {
  display: inline-flex; align-items: center;
  background: var(--gradient-gold); color: #fff;
  padding: 0.5rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--shadow-light);
  margin-bottom: 1rem;
}

.pds .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.2;
}

.pds .text-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-brown);
}

.pds .section-description {
  font-size: 1.1rem; color: var(--text-light);
  line-height: 1.7; max-width: 600px; margin: 0 auto;
}

/* Timeline */
.pds .development-timeline {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; margin: 3rem 0; position: relative;
}

.pds .development-timeline::before {
  content: ''; position: absolute; top: 30px; left: 20%; right: 20%;
  height: 2px; background: var(--gradient-primary); z-index: 1;
}

.pds .timeline-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; cursor: pointer; transition: all .3s ease; position: relative; z-index: 2;
}

.pds .timeline-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--light-brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-light);
  transition: all .3s ease; box-shadow: 0 4px 15px var(--shadow-light);
}

.pds .timeline-item.active .timeline-icon {
  background: var(--gradient-primary); border-color: var(--gold); color: #fff;
  transform: scale(1.1); box-shadow: 0 6px 25px var(--shadow-medium);
}

.pds .timeline-item h6 { font-weight: 600; color: var(--text-dark); margin: 0; transition: color .3s; }
.pds .timeline-item.active h6 { color: var(--primary-brown); }

/* Marquee */
.pds .marquee-container { margin: 4rem 0; }
.pds .marquee-title {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  color: var(--text-dark); font-weight: 600; margin-bottom: 3rem;
}
.pds .marquee-wrapper { overflow: hidden; margin: 2rem 0; position: relative; }
.pds .marquee-wrapper::before,
.pds .marquee-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 10; pointer-events: none;
}
.pds .marquee-wrapper::before { left: 0; background: linear-gradient(90deg, #FFF8DC, transparent); }
.pds .marquee-wrapper::after { right: 0; background: linear-gradient(90deg, transparent, #FFF8DC); }
.pds .marquee-content {
  display: flex; gap: 2rem; animation: pds-marqueeLeft 60s linear infinite; width: max-content;
}
.pds .marquee-wrapper.reverse .marquee-content { animation: pds-marqueeRight 60s linear infinite; }

/* Cards */
.pds .product-card {
  width: 350px; flex-shrink: 0; background: #fff; border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 1px solid rgba(139,69,19,.1); overflow: hidden;
  transition: all .4s ease; position: relative;
}
.pds .product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); }
.pds .product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px var(--shadow-medium); border-color: var(--primary-brown); }

.pds .card-header {
  padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start;
  background: var(--gradient-light); position: relative;
}

.pds .status-badge { padding: .4rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pds .status-badge.concept { background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: #fff; }
.pds .status-badge.in-development { background: linear-gradient(135deg, #4ECDC4, #44A08D); color: #fff; }
.pds .status-badge.testing { background: linear-gradient(135deg, #FFD93D, #FF8C42); color: #fff; }
.pds .status-badge.launched { background: linear-gradient(135deg, #6BCF7F, #4D9A6A); color: #fff; }

.pds .card-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.pds .card-body { padding: 1.5rem; }
.pds .card-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--text-dark); margin-bottom: .8rem; line-height: 1.3; }
.pds .card-description { color: var(--text-light); font-size: .95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.pds .progress-section { margin-top: 1.5rem; }
.pds .progress-label { font-size: .85rem; font-weight: 600; color: var(--text-dark); margin-bottom: .5rem; }
.pds .progress-bar { width: 100%; height: 8px; background: var(--cream); border-radius: 10px; overflow: hidden; position: relative; }
.pds .progress-fill {
  height: 100%; background: var(--gradient-primary); border-radius: 10px; width: 0%;
  transition: width 1.5s ease; position: relative;
}
.pds .progress-fill::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: pds-shimmer 2s ease-in-out infinite;
}
.pds .progress-text { font-size: .8rem; font-weight: 600; color: var(--primary-brown); float: right; margin-top: .3rem; }

.pds .card-footer { padding: 1rem 1.5rem; background: rgba(139,69,19,.05); border-top: 1px solid rgba(139,69,19,.1); }
.pds .card-footer small { font-weight: 500; }

/* Innovation Stats */
.pds .innovation-stats {
  margin-top: 5rem; padding: 3rem 0; background: rgba(255,255,255,.7);
  border-radius: 20px; backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px var(--shadow-light); border: 1px solid rgba(139,69,19,.1);
}
.pds .stat-card {
  display: flex; align-items: center; gap: 1.5rem; padding: 2rem;
  background: #fff; border-radius: 16px; box-shadow: 0 6px 20px var(--shadow-light);
  transition: all .3s ease; border: 1px solid rgba(139,69,19,.1); height: 100%;
}
.pds .stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-medium); border-color: var(--primary-brown); }
.pds .stat-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-light); flex-shrink: 0;
}
.pds .stat-content { flex: 1; }
.pds .stat-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--primary-brown); margin: 0; line-height: 1; }
.pds .stat-label { color: var(--text-light); font-weight: 500; margin: .5rem 0 0; font-size: .95rem; }

/* Floating particles */
.pds .floating-particle {
  position: absolute; width: 4px; height: 4px; background: var(--primary-brown);
  border-radius: 50%; opacity: .3; animation: pds-float 10s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .pds .section-title { font-size: 2.5rem; }
  .pds .product-card { width: 320px; }
  .pds .development-timeline { gap: 2rem; }
}

@media (max-width: 992px) {
  .pds .section-title { font-size: 2.2rem; }
  .pds .development-timeline { gap: 1.5rem; }
  .pds .development-timeline::before { left: 10%; right: 10%; }
  .pds .timeline-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .pds .stat-card { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 768px) {
  .pds .section-title { font-size: 2rem; }
  .pds .marquee-title { font-size: 1.8rem; }
  .pds .product-card { width: 280px; }
  .pds .development-timeline { flex-wrap: wrap; gap: 1rem; }
  .pds .development-timeline::before { display: none; }
  .pds .marquee-content { gap: 1rem; }
  .pds .marquee-wrapper::before, .pds .marquee-wrapper::after { width: 50px; }
}

@media (max-width: 576px) {
  .pds { padding: 3rem 0; }
  .pds .section-title { font-size: 1.8rem; }
  .pds .product-card { width: 260px; }
  .pds .card-header { padding: 1rem; }
  .pds .card-body { padding: 1rem; }
  .pds .card-footer { padding: .8rem 1rem; }
  .pds .timeline-item { margin: .5rem; }
  .pds .stat-number { font-size: 2rem; }
  .pds .innovation-stats { margin-top: 3rem; padding: 2rem 0; }
}

/* Print (scoped) */
@media print {
  .pds { background: #fff !important; }
  .pds .marquee-content { animation: none !important; }
  .pds .floating-particle { display: none !important; }
}

/* Keyframes (prefixed so they don't collide) */
@keyframes pds-marqueeLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pds-marqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes pds-shimmer { 0%,100% { opacity: 0; transform: translateX(-100%); } 50% { opacity: 1; transform: translateX(0); } }
@keyframes pds-float {
  0%,100% { transform: translateY(0) rotate(0); opacity: .3; }
  33% { transform: translateY(-30px) rotate(120deg); opacity: .6; }
  66% { transform: translateY(30px) rotate(240deg); opacity: .4; }
}

/* Optional: scoped scrollbar (only if this section scrolls) */
.pds .scroll-area {
  max-height: 60vh; overflow: auto;
}
.pds .scroll-area::-webkit-scrollbar { width: 8px; }
.pds .scroll-area::-webkit-scrollbar-track { background: var(--cream); border-radius: 10px; }
.pds .scroll-area::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 10px; }
.pds .scroll-area::-webkit-scrollbar-thumb:hover { background: var(--primary-brown); }
